81{
83 {
84 TASSERT(
TFALSE,
"Couldn't create new model since the registry is all used" );
86 }
87
88 TCHAR filepath[ 248 ];
91
92 for (
TUINT i = 0; i < iFileNameLen; i++ )
93 {
94 if ( filepath[ i ] == '/' )
95 {
96 filepath[ i ] = '\\';
97 }
98 }
99
101
103 {
104 if ( it->GetCRC32() == crc32 )
105 {
106 a_rModelRef.m_pModel = it->GetModel();
107 it->IncRefCount();
108
109 return it;
110 }
111 }
112
115
116 const TCHAR* szFileName;
118
120 {
122 szFileName = filepath;
123 ui8NameLen = -1;
124 }
125
127 pEntry->
Create( crc32, pModel );
128 pEntry->IncRefCount();
129 a_rModelRef.m_pModel = pModel;
130
131 return pEntry;
132}
#define TREINTERPRETCAST(TYPE, VALUE)
static TBOOL GetSkeletonAssetSymbolName(const TCHAR *a_szFileName, const TCHAR *&a_rSymbolName, TUINT8 &a_rNameLen, TTRB *a_pTRB)
virtual TBOOL Create(TTMD *a_pTMD, TBOOL a_bLoad)=0
static T2DList< ModelNode > ms_oUsedList
static T2DList< ModelNode > ms_oFreeList
virtual TModel * CreateModel(TTMD *a_pTMD, TBOOL a_bLoad)=0
static TFORCEINLINE TRenderInterface * GetSingleton()
static TSIZE String8Length(const TCHAR *str)
static TCHAR * String8Copy(TCHAR *dst, const TCHAR *src, TSIZE size=-1)
static TUINT32 CRC32(void *buffer, TUINT32 len)