Tomb Raider Level Editor Font loader.
More...
#include <FontTRLE.h>
|
| static void | shutdown () |
| |
| static int | initialize (std::string font) |
| |
| static unsigned int | widthText (float scale, std::string s) |
| |
| static unsigned int | heightText (float scale, unsigned int maxWidth, std::string s) |
| |
| static void | drawText (unsigned int x, unsigned int y, float scale, glm::vec4 color, std::string s) |
| |
| static void | drawTextWrapped (unsigned int x, unsigned int y, float scale, glm::vec4 color, unsigned int maxWidth, std::string s) |
| |
|
| static void | setDefaultOffsets () |
| |
| static void | loadLPS (std::string f) |
| |
| static void | writeChar (unsigned int index, unsigned int xDraw, unsigned int yDraw, float scale, std::vector< glm::vec2 > &vertices, std::vector< glm::vec2 > &uvs) |
| |
Tomb Raider Level Editor Font loader.
Definition at line 18 of file FontTRLE.h.
| void FontTRLE::shutdown |
( |
| ) |
|
|
static |
| int FontTRLE::initialize |
( |
std::string |
font | ) |
|
|
static |
| unsigned int FontTRLE::widthText |
( |
float |
scale, |
|
|
std::string |
s |
|
) |
| |
|
static |
| unsigned int FontTRLE::heightText |
( |
float |
scale, |
|
|
unsigned int |
maxWidth, |
|
|
std::string |
s |
|
) |
| |
|
static |
| void FontTRLE::drawText |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
float |
scale, |
|
|
glm::vec4 |
color, |
|
|
std::string |
s |
|
) |
| |
|
static |
| void FontTRLE::drawTextWrapped |
( |
unsigned int |
x, |
|
|
unsigned int |
y, |
|
|
float |
scale, |
|
|
glm::vec4 |
color, |
|
|
unsigned int |
maxWidth, |
|
|
std::string |
s |
|
) |
| |
|
static |
| static void FontTRLE::setDefaultOffsets |
( |
| ) |
|
|
staticprivate |
| void FontTRLE::loadLPS |
( |
std::string |
f | ) |
|
|
staticprivate |
| void FontTRLE::writeChar |
( |
unsigned int |
index, |
|
|
unsigned int |
xDraw, |
|
|
unsigned int |
yDraw, |
|
|
float |
scale, |
|
|
std::vector< glm::vec2 > & |
vertices, |
|
|
std::vector< glm::vec2 > & |
uvs |
|
) |
| |
|
staticprivate |
| bool FontTRLE::mFontInit = false |
|
staticprivate |
| unsigned int FontTRLE::mFontTexture = 0 |
|
staticprivate |
| int FontTRLE::defaultOffsets |
|
staticprivate |
The documentation for this class was generated from the following files: