"L. Spiro Engine"
Public Member Functions | Protected Member Functions | Friends

lsd::CModelManager< _tType > Class Template Reference

Prevents redundant loading of model data. More...

#include <LSDModelManager.h>

List of all members.

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 >

Detailed Description

template<typename _tType>
class lsd::CModelManager< _tType >

Prevents redundant loading of model data.

Class CModelManager Description: Prevents loading model data twice. Allows sharing of drawable models through shared pointers.


Member Function Documentation

template<typename _tType >
_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.

Parameters:
_sPathPath of the model to load.
Returns:
Returns a shared pointer to the loaded model. If there was a failure to load, the shared pointer will be invalid.
template<typename _tType >
_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.

Parameters:
_sPathPath of the model to load.
Returns:
Returns a shared pointer to a model by file name. If there was a failure to load, the shared pointer will be invalid.

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator