void setFontFolder(const utils::Path &fldr)
Sets the font folder.
void destroy()
Deletes all data (does not reset folder paths)
void setGLSLFolder(const utils::Path &fldr)
Sets the shader folder.
void reloadShaders()
Reloads all known shaders.
std::map< utils::Path, GLTexture > m_textureMap
a map file names to textures
utils::Path m_texture_folder
Folder containing textures.
void setTextureFolder(const utils::Path &fldr)
Sets the texture folder.
Result< utils::Path > getTextureFile(GLTexture tex)
Gets the name of the file used the create tex.
std::map< std::string, GLSLProgram > m_glslMap
Collection of GLSLProgram.
represents a texture (tied to a specific GL context)
Result< GLTexture > getTexture(const utils::Path &path, crvec2 dimensions=glm::vec2(0))
Gets a GLTexture representing the image at the given path.
std::map< GLTexture, utils::Path > m_textureFiles
Inverse map to m_textureMap.
Result< SpriteFont * > getSpriteFont(const utils::Path &fontPath, int fontSize=32)
Gets SpriteFont created from the given font with the given size.
utils::Path m_glsl_folder
Folder containing shaders.
GLSLProgram * getGLSLProgram(const utils::Path &progPath)
utils::Path m_font_folder
Folder containing fonts.
std::map< std::pair< utils::Path, int >, SpriteFont > m_fontMap
Map front (font name, font size) -> SpriteFont.
void reloadTextures()
Reloads all known texture.