44void LoadFontData(Font& font,
unsigned char* fontBuffer, uint64_t size);
45void RenderText(ShaderProgram& shader, Font& font, std::string text,
float x,
float y,
float scale, glm::vec3 color);
The base class for assets.
Definition: asset.h:165
unsigned int VAO
Definition: text.h:37
float initial_size
Definition: text.h:39
unsigned int texture
Definition: text.h:38
AssetType GetAssetType() override
Definition: text.h:41
unsigned int VBO
Definition: text.h:37
std::map< unsigned char, Character > characters
Definition: text.h:36
When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to ...
Definition: asset.h:29
void RenderText(ShaderProgram &shader, Font &font, std::string text, float x, float y, float scale, glm::vec3 color)
Definition: text.cpp:98
AssetType
Definition: asset.h:32
void LoadFontData(Font &font, unsigned char *fontBuffer, uint64_t size)
Definition: text.cpp:32
@ FONT
Font prototype.
Definition: assetprototype.h:28
unsigned int Advance
Definition: text.h:31
unsigned int TextureID
Definition: text.h:28
glm::ivec2 Size
Definition: text.h:29
glm::ivec2 Bearing
Definition: text.h:30