button, text is placed in middle of button, plane is placed behind text

This commit is contained in:
Remco
2016-06-20 12:38:16 +02:00
parent 6cf9437620
commit 8dcee70324
7 changed files with 53 additions and 26 deletions
+6 -3
View File
@@ -7,13 +7,16 @@ class Text : public MenuElement
{
private:
std::string text;
Vec3f color;
Vec3f color;
protected:
int textWidth;
int textHeight;
public:
Text(const std::string &text, Vec2f position);
~Text();
void draw();
void update(int x, int y);
virtual void draw();
virtual void update(int x, int y);
void setColor(Vec3f color);
};