26 static unsigned int heightText(
float scale,
unsigned int maxWidth, std::string s);
28 static void drawText(
unsigned int x,
unsigned int y,
float scale,
29 glm::vec4 color, std::string s);
31 static void drawTextWrapped(
unsigned int x,
unsigned int y,
float scale,
32 glm::vec4 color,
unsigned int maxWidth, std::string s);
36 static void loadLPS(std::string f);
37 static void writeChar(
unsigned int index,
unsigned int xDraw,
unsigned int yDraw,
float scale,
38 std::vector<glm::vec2>& vertices, std::vector<glm::vec2>& uvs);
static void setDefaultOffsets()
static void drawText(unsigned int x, unsigned int y, float scale, glm::vec4 color, std::string s)
static int initialize(std::string font)
Tomb Raider Level Editor Font loader.
OpenGL Shader Implementation.
static unsigned int widthText(float scale, std::string s)
static unsigned int heightText(float scale, unsigned int maxWidth, std::string s)
static void loadLPS(std::string f)
static ShaderBuffer vertexBuffer
static unsigned int mFontTexture
static int offsets[106][5]
static int defaultOffsets[106][5]
static void drawTextWrapped(unsigned int x, unsigned int y, float scale, glm::vec4 color, unsigned int maxWidth, std::string s)
static ShaderBuffer uvBuffer
static void writeChar(unsigned int index, unsigned int xDraw, unsigned int yDraw, float scale, std::vector< glm::vec2 > &vertices, std::vector< glm::vec2 > &uvs)