OpenBarnyard
 
Loading...
Searching...
No Matches
TVertexPoolResourceInterface.cpp
Go to the documentation of this file.
1#include "ToshiPCH.h"
3
4//-----------------------------------------------------------------------------
5// Enables memory debugging.
6// Note: Should be the last include!
7//-----------------------------------------------------------------------------
9
11
13
22
24{
25 TASSERT( 0 == m_uiLockCount );
26 m_pFactory->m_uiNumPools -= 1;
27}
28
30{
31 m_pFactory = a_pFactory;
32 m_uiMaxVertices = a_uiMaxVertices;
33 m_uiFlags = a_uiFlags;
34 return TResource::Create();
35}
36
38{
39 uiNumStreams = 0;
40 uiOffset = 0;
41 apStreams[ 0 ] = TNULL;
42 apStreams[ 1 ] = TNULL;
43 apStreams[ 2 ] = TNULL;
44 apStreams[ 3 ] = TNULL;
45 apStreams[ 4 ] = TNULL;
46 apStreams[ 5 ] = TNULL;
47 apStreams[ 6 ] = TNULL;
48 apStreams[ 7 ] = TNULL;
49}
50
#define TASSERT(X,...)
Definition Defines.h:138
#define TOSHI_NAMESPACE_START
Definition Defines.h:47
#define TOSHI_NAMESPACE_END
Definition Defines.h:50
#define TDEFINE_CLASS_NORUNTIME(...)
Definition TObject.h:138
uint16_t TUINT16
Definition Typedefs.h:15
#define TNULL
Definition Typedefs.h:23
bool TBOOL
Definition Typedefs.h:6
virtual TBOOL Create()
Definition TResource.cpp:28
TVertexFactoryResourceInterface * m_pFactory
TBYTE * apStreams[TVertexFactoryFormat::MAX_NUM_STREAMS]