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