OpenBarnyard
 
Loading...
Searching...
No Matches
TVertexFactoryResourceInterface.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
20
21TBOOL TVertexFactoryResourceInterface::Create( TVertexFactoryFormat* a_pVertexFormat, TUINT16 a_uiMaxStaticVertices, TUINT32 a_uiFlags )
22{
23 TVALIDPTR( a_pVertexFormat );
24
25 m_VertexFormat = *a_pVertexFormat;
26 m_uiMaxStaticVertices = a_uiMaxStaticVertices;
27 m_uiFlags = a_uiFlags;
28 return TResource::Create();
29}
30
32{
33 m_uiNumPools += 1;
34 return TNULL;
35}
36
#define TOSHI_NAMESPACE_START
Definition Defines.h:47
#define TOSHI_NAMESPACE_END
Definition Defines.h:50
#define TVALIDPTR(PTR)
Definition Defines.h:139
#define TDEFINE_CLASS_NORUNTIME(...)
Definition TObject.h:138
uint16_t TUINT16
Definition Typedefs.h:15
#define TNULL
Definition Typedefs.h:23
uint32_t TUINT32
Definition Typedefs.h:13
bool TBOOL
Definition Typedefs.h:6
virtual TBOOL Create()
Definition TResource.cpp:28
TVertexPoolResourceInterface * CreatePool(TUINT16 a_uiMaxStaticVertices, TUINT32 a_uiFlags)