window ui

This commit is contained in:
Eduardo Bart
2011-04-09 19:55:58 -03:00
parent a9a110f44b
commit f2bdc89d8d
18 changed files with 338 additions and 59 deletions

View File

@@ -64,6 +64,7 @@ public:
void renderText(const std::string& text,
const Rect& screenCoords,
int align = ALIGN_TOP_LEFT,
const Color& color = Color(0xFFFFFFFF),
const Point& startInternalPos = Point(),
bool debug = false);
@@ -74,9 +75,11 @@ public:
Size calculateTextRectSize(const std::string& text);
private:
int m_lineHeight;
int m_cursorSize;
Color m_color;
void calculateGlyphsWidthsAutomatically(const Size& glyphSize);
int m_glyphHeight;
int m_topMargin;
Size m_glyphSpacing;
TexturePtr m_texture;
Rect m_glyphsTextureCoords[256];
Size m_glyphsSize[256];