This class manages and provides resources (fonts and models) for GuiImplT instances. More...
#include "GuiResources.hpp"
Public Member Functions | |
GuiResourcesT (ModelManagerT &ModelMan) | |
The constructor. More... | |
~GuiResourcesT () | |
The destructor. More... | |
TrueTypeFontT * | GetFont (const std::string &FontName) |
Returns (a pointer to) a font instance for the given filename. More... | |
const CafuModelT * | GetModel (const std::string &FileName, std::string &ErrorMsg) |
Returns (a pointer to) a model instance for the given filename. More... | |
This class manages and provides resources (fonts and models) for GuiImplT instances.
One GuiResourcesT can be commonly used for several GuiImplT instances at once.
GuiResourcesT::GuiResourcesT | ( | ModelManagerT & | ModelMan | ) |
The constructor.
GuiResourcesT::~GuiResourcesT | ( | ) |
The destructor.
cf::TrueTypeFontT * GuiResourcesT::GetFont | ( | const std::string & | FontName | ) |
Returns (a pointer to) a font instance for the given filename.
The returned font instance is possibly shared with other users, and must not be deleted.
FontName | The name of the font to return. |
const CafuModelT * GuiResourcesT::GetModel | ( | const std::string & | FileName, |
std::string & | ErrorMsg | ||
) |
Returns (a pointer to) a model instance for the given filename.