Cafu Engine
cf::GuiSys::GuiResourcesT Class Reference

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...
 
TrueTypeFontTGetFont (const std::string &FontName)
 Returns (a pointer to) a font instance for the given filename. More...
 
const CafuModelTGetModel (const std::string &FileName, std::string &ErrorMsg)
 Returns (a pointer to) a model instance for the given filename. More...
 

Detailed Description

This class manages and provides resources (fonts and models) for GuiImplT instances.

One GuiResourcesT can be commonly used for several GuiImplT instances at once.

Constructor & Destructor Documentation

GuiResourcesT::GuiResourcesT ( ModelManagerT ModelMan)

The constructor.

GuiResourcesT::~GuiResourcesT ( )

The destructor.

Member Function Documentation

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.

Parameters
FontNameThe name of the font to return.
Returns
A pointer to the specified font, or NULL if there was an error (e.g. the font could not be loaded).
const CafuModelT * GuiResourcesT::GetModel ( const std::string &  FileName,
std::string &  ErrorMsg 
)

Returns (a pointer to) a model instance for the given filename.

See Also
ModelManagerT::GetModel() for more details.

The documentation for this class was generated from the following files: