i don't know

This commit is contained in:
Lendemor 2017-02-23 10:46:13 +01:00
parent 9fe90a769c
commit ebcfbff5ff
3 changed files with 7 additions and 3 deletions

View File

@ -53,6 +53,5 @@ void ButtonNode::update()
m_callback->exec();
}
}
getEngine().getScene()->updateShaders();
GUINode::update();
}

View File

@ -5,13 +5,18 @@
#include "SparrowRenderer/mesh.h"
#include "SparrowRenderer/phongmaterial.h"
#include <iostream>
LabelNode::LabelNode():
m_string(""),
m_color(glm::vec3(1,1,1))
{
Font* font = RESOURCE_GET(Font,"shellfont");
m_text = font->getTextNode(m_string,m_color,32);
addChild(m_text);
if(m_text){
m_text->setDepth(15);
addChild(m_text);
}
}
void LabelNode::setText(std::string s)

View File

@ -11,7 +11,7 @@
ScrollBarNode::ScrollBarNode(glm::vec2 dimension, glm::vec3 bar_color):
m_dimension(dimension),
m_bar_position(glm::vec2(0)),
m_bar_dimension(m_dimension),
m_bar_dimension(dimension),
m_bar_color(bar_color),
m_bar_color_updated(false),
m_bar_resized(false),