"L. Spiro Engine"
|
Prevents redundant loading of model data. More...
#include <LSDModelManager.h>
Public Member Functions | |
_tType LSE_CALL | GetRes (const CString &_sPath) |
Protected Member Functions | |
_tType LSE_CALL | AddRes (const CString &_sPath) |
Friends | |
class | CResourceManCrtp< CModelManager, CString, _tType > |
Prevents redundant loading of model data.
Class CModelManager Description: Prevents loading model data twice. Allows sharing of drawable models through shared pointers.
_tType LSE_CALL lsd::CModelManager< _tType >::AddRes | ( | const CString & | _sPath | ) | [inline, protected] |
Adds a shared model to the list, returned a shared pointer to it.
_sPath | Path of the model to load. |
_tType LSE_CALL lsd::CModelManager< _tType >::GetRes | ( | const CString & | _sPath | ) | [inline] |
Gets a shared pointer to a model by file name. If there was a failure to load, the shared pointer will be invalid.
_sPath | Path of the model to load. |