 |
BARE2D
|
|
Go to the documentation of this file.
8 #define FIRST_PRINTABLE_CHAR ((char)32)
9 #define LAST_PRINTABLE_CHAR ((char)126)
10 #define MAX_TEXTURE_RES 4096
41 void init(
const char* fontFile,
int size);
84 glm::vec2
measure(
const char* s);
87 static std::vector<int>*
createRows(glm::ivec4* rectangles,
Essentially just a wrapper for the SDL TTF_Font type.
static std::vector< int > * createRows(glm::ivec4 *rectangles, int rectanglesLength, int rows, int padding, int &width)
unsigned int getCharacters() const
CharacterGlyph * getGlyph(int &index)
Gets a character glyph. Does no checking to make sure it exists!
Represents a render glyph, modified for fonts!
GLuint getTextureID() const
glm::vec2 measure(const char *s)
Measures the dimensions of some given text.
unsigned int getHeight() const
CharacterGlyph * m_characterGlyphs
void dispose()
Destroys font resources.
void init(const char *fontFile, int size)
Creates font resources.