61 class NEO_ENGINE_EXPORT
Font
68 static Font * getNew(
void);
73 unsigned int m_textureId;
74 unsigned int m_textureWidth;
75 unsigned int m_textureHeight;
76 unsigned int m_fontSize;
78 map <unsigned int, Character> m_characters;
83 inline void setTextureId(
unsigned int textureId){ m_textureId = textureId; }
91 inline void setFontSize(
unsigned int fontSize){ m_fontSize = fontSize; }
95 void setCharacter(
unsigned int charCode,
const Character & character);
96 unsigned int getCharactersNumber(
void);
97 Character * getCharacter(
unsigned int charCode);
98 Character * getCharacterByIndex(
unsigned int id);
99 inline map <unsigned int, Character> *
getCharacters(
void){
return &m_characters; }
unsigned int getTextureId(void)
Definition: Font.h:86
unsigned int getTextureWidth(void)
Definition: Font.h:87
map< unsigned int, Character > * getCharacters(void)
Definition: Font.h:99
unsigned int getFontSize(void)
Definition: Font.h:92
float getXAdvance(void)
Definition: Font.h:53
void setTextureHeight(unsigned int height)
Definition: Font.h:85
void setTextureWidth(unsigned int width)
Definition: Font.h:84
Vector2 getPos(void) const
Definition: Font.h:55
Vector2 getScale(void) const
Definition: Font.h:56
Character(float xAdvance, const Vector2 &offset, const Vector2 &pos, const Vector2 &scale)
Definition: Font.h:37
void setTextureId(unsigned int textureId)
Definition: Font.h:83
void setFontSize(unsigned int fontSize)
Definition: Font.h:91
Vector2 getOffset(void) const
Definition: Font.h:54
unsigned int getTextureHeight(void)
Definition: Font.h:88