#include <TIndexPoolResource_DX8.h>
|
using | t_RecurseCb = TBOOL ( * )( TResource* a_pResource, void* a_pUserData ) |
|
enum | { IsTObject = TTRUE
} |
|
static TBOOL | Recurse (t_RecurseCb a_pCallback, TResource *a_pResource, TBOOL a_bFlag, void *a_pUserData) |
|
static Toshi::TObject * | CreateTObject () |
|
static Toshi::TObject * | CreateTObjectInPlace (void *a_pPtr) |
|
static void | InitialiseClass () |
|
static void | DeinitialiseClass () |
|
static TFORCEINLINE TClass * | GetClassStatic () |
|
static constexpr size_t | MAXNAMELEN = 14 |
|
static constexpr Toshi::TClass * | PARENTCLASS = TNULL |
|
static constinit Toshi::TClass | ms_oClass = Toshi::TClass( "TObject", TObject::CreateTObject, TObject::CreateTObjectInPlace, TObject::InitialiseClass, TObject::DeinitialiseClass, 0, 2, sizeof( TObject ), alignof( TObject ) ) |
|
| TNode () |
|
TIndexFactoryResourceInterface * | m_pFactory |
|
TUINT16 | m_uiFlags |
|
TUINT16 | m_uiMaxIndices |
|
TUINT16 | m_uiNumIndices |
|
TUINT16 | m_uiLockCount |
|
TNodeTree< T > * | m_Tree |
|
T * | m_Next |
|
T * | m_Prev |
|
T * | m_Parent |
|
T * | m_Child |
|
Definition at line 9 of file TIndexPoolResource_DX8.h.
◆ TIndexPoolResource()
TIndexPoolResource::TIndexPoolResource |
( |
| ) |
|
◆ ~TIndexPoolResource()
TIndexPoolResource::~TIndexPoolResource |
( |
| ) |
|
◆ Create()
◆ GetHALBuffer()
Definition at line 228 of file TIndexPoolResource_DX8.cpp.
229{
231
233 {
236
237 if ( pIndexBlock->Validate() && pIndexBlock->GetHALBuffer( a_pHALBuffer ) )
238 {
241 }
242 }
243
245}
TIndexBlockResource * GetIndexBlock()
virtual TBOOL Validate() override
◆ GetIndexBlock()
Definition at line 217 of file TIndexPoolResource_DX8.cpp.
218{
220 {
222 }
223
225}
#define TSTATICCAST(POINTERTYPE, VALUE)
friend TIndexBlockResource
TBOOL IsExactly(TClass *a_pClass)
◆ GetIndices()
TUINT16 * TIndexPoolResource::GetIndices |
( |
| ) |
|
◆ GetParent()
TResource * TIndexPoolResource::GetParent |
( |
| ) |
|
◆ Invalidate()
void TIndexPoolResource::Invalidate |
( |
| ) |
|
|
overridevirtual |
◆ Lock()
Implements TIndexPoolResourceInterface.
Definition at line 108 of file TIndexPoolResource_DX8.cpp.
109{
111
113 m_uiNumLocksAllTime += 1;
115
116 if ( uiOldLockCount == 0 )
117 {
119
120 if ( uiUnk1 == 1 )
121 {
122 a_pLockBuffer->pBuffer = m_pIndices;
124 }
125 else if ( uiUnk1 == 2 )
126 {
128
130 {
131 m_uiIndexOffset = a_pLockBuffer->uiOffset;
133 }
134 }
135 else if ( uiUnk1 == 4 )
136 {
138
140 {
141 m_uiIndexOffset = a_pLockBuffer->uiOffset;
143 }
144 }
145 }
146
148}
virtual TBOOL Lock(LockBuffer *a_pLockBuffer) override
TUINT16 GetMaxIndices() const
◆ OnDestroy()
void TIndexPoolResource::OnDestroy |
( |
| ) |
|
|
overridevirtual |
◆ TDECLARE_CLASS()
◆ Unlock()
void TIndexPoolResource::Unlock |
( |
TUINT16 | a_uiNewNumIndices | ) |
|
|
overridevirtual |
Implements TIndexPoolResourceInterface.
Definition at line 151 of file TIndexPoolResource_DX8.cpp.
152{
154
156 {
158
159 if ( iChange != 0 )
160 {
162 {
164 {
166 pIndexBlock->ChildIndexUsedChanged( iChange );
167 }
168 }
169 }
170
172
174 {
176 }
178 {
180 }
181 }
182}
TUINT16 GetNumIndices() const
virtual Toshi::TClass * GetClass()
TBOOL IsA(TClass *a_pClass)
◆ Validate()
TBOOL TIndexPoolResource::Validate |
( |
| ) |
|
|
overridevirtual |
Reimplemented from TResource.
Definition at line 30 of file TIndexPoolResource_DX8.cpp.
31{
33 {
35 }
36
38 auto pBlock = pFactory->FindBlockResource( this );
39
40 if ( !pBlock )
41 {
44
46
47 if ( uiUnk1 == 1 )
48 {
49 uiMaxVertices = pFactory->GetMaxStaticIndices();
50 uiFlags = 1;
51 }
52 else if ( uiUnk1 == 2 )
53 {
55 uiFlags = 2;
56 }
57 else
58 {
59 if ( uiUnk1 != 4 )
60 {
62 }
63
65 uiFlags = 4;
66 }
67
68 pBlock = pFactory->CreateBlockResource( uiMaxVertices, uiFlags );
69
70 if ( !pBlock )
71 {
73 }
74 }
75
76 pBlock->AttachPool( this );
78}
TIndexFactoryResourceInterface * GetFactory() const
◆ TIndexBlockResource
friend TIndexPoolResource::TIndexBlockResource |
The documentation for this class was generated from the following files: