OpenBarnyard
Loading...
Searching...
No Matches
TIndexPoolResourceInterface.cpp
Go to the documentation of this file.
1
#include "ToshiPCH.h"
2
#include "
TIndexPoolResourceInterface.h
"
3
4
//-----------------------------------------------------------------------------
5
// Enables memory debugging.
6
// Note: Should be the last include!
7
//-----------------------------------------------------------------------------
8
#include "
Core/TMemoryDebugOn.h
"
9
10
TOSHI_NAMESPACE_START
11
12
TDEFINE_CLASS_NORUNTIME
(
TIndexPoolResourceInterface
);
13
14
TIndexPoolResourceInterface::TIndexPoolResourceInterface
()
15
{
16
m_pFactory
=
TNULL
;
17
m_uiFlags
= 0;
18
m_uiMaxIndices
= 0;
19
m_uiNumIndices
= 0;
20
m_uiLockCount
= 0;
21
}
22
23
void
TIndexPoolResourceInterface::OnDestroy
()
24
{
25
TASSERT
( 0 ==
m_uiLockCount
);
26
m_pFactory
->m_uiNumPools -= 1;
27
}
28
29
TBOOL
TIndexPoolResourceInterface::Create
(
TIndexFactoryResourceInterface
* a_pFactory,
TUINT16
a_uiMaxIndices,
TUINT16
a_uiFlags )
30
{
31
m_pFactory
= a_pFactory;
32
m_uiMaxIndices
= a_uiMaxIndices;
33
m_uiFlags
= a_uiFlags;
34
return
TResource::Create
();
35
}
36
37
TOSHI_NAMESPACE_END
TMemoryDebugOn.h
TIndexPoolResourceInterface.h
TASSERT
#define TASSERT(X,...)
Definition
Defines.h:138
TOSHI_NAMESPACE_START
#define TOSHI_NAMESPACE_START
Definition
Defines.h:47
TOSHI_NAMESPACE_END
#define TOSHI_NAMESPACE_END
Definition
Defines.h:50
TDEFINE_CLASS_NORUNTIME
#define TDEFINE_CLASS_NORUNTIME(...)
Definition
TObject.h:138
TUINT16
uint16_t TUINT16
Definition
Typedefs.h:15
TNULL
#define TNULL
Definition
Typedefs.h:23
TBOOL
bool TBOOL
Definition
Typedefs.h:6
TIndexFactoryResourceInterface
Definition
TIndexFactoryResourceInterface.h:10
TIndexPoolResourceInterface
Definition
TIndexPoolResourceInterface.h:8
TIndexPoolResourceInterface::m_uiMaxIndices
TUINT16 m_uiMaxIndices
Definition
TIndexPoolResourceInterface.h:36
TIndexPoolResourceInterface::m_uiNumIndices
TUINT16 m_uiNumIndices
Definition
TIndexPoolResourceInterface.h:37
TIndexPoolResourceInterface::TIndexPoolResourceInterface
TIndexPoolResourceInterface()
Definition
TIndexPoolResourceInterface.cpp:14
TIndexPoolResourceInterface::m_uiFlags
TUINT16 m_uiFlags
Definition
TIndexPoolResourceInterface.h:35
TIndexPoolResourceInterface::m_pFactory
TIndexFactoryResourceInterface * m_pFactory
Definition
TIndexPoolResourceInterface.h:34
TIndexPoolResourceInterface::OnDestroy
virtual void OnDestroy() override
Definition
TIndexPoolResourceInterface.cpp:23
TIndexPoolResourceInterface::m_uiLockCount
TUINT16 m_uiLockCount
Definition
TIndexPoolResourceInterface.h:38
TResource::Create
virtual TBOOL Create()
Definition
TResource.cpp:28
D:
_dev
OpenBarnyard
Source
Toshi
Source
Render
TIndexPoolResourceInterface.cpp
Generated by
1.13.2