#include <TOrderTable.h>
Definition at line 64 of file TOrderTable.h.
◆ t_PostFlushCallback
◆ t_PreFlushCallback
◆ TOrderTable()
TOrderTable::TOrderTable |
( |
| ) |
|
◆ ~TOrderTable()
TOrderTable::~TOrderTable |
( |
| ) |
|
Definition at line 46 of file TOrderTable.cpp.
47{
49}
static void DestroyStaticData()
◆ AllocRenderPacket()
Definition at line 31 of file TOrderTable.cpp.
32{
36}
static TRenderPacket * s_pRenderPackets
static TUINT s_uiNumRenderPackets
static TUINT s_uiMaxRenderPackets
◆ Create()
Definition at line 14 of file TOrderTable_DX8.cpp.
15{
16 m_pLastRegMat =
TNULL;
17 m_pShader = a_pShader;
18
19 TNode::SetPriority( a_iPriority );
21
23}
void RegisterOrderTable(TOrderTable *a_pOrderTable)
Registers an order table.
static TFORCEINLINE TRenderD3DInterface * Interface()
Gets the render interface singleton.
◆ CreateStaticData()
void TOrderTable::CreateStaticData |
( |
TUINT | a_uiMaxMaterials, |
|
|
TUINT | a_uiMaxRenderPackets ) |
|
static |
Definition at line 13 of file TOrderTable.cpp.
14{
17
20
23
25 {
28 }
29}
static TUINT s_uiMaxMaterials
static TUINT s_uiOrigMaxRenderPackets
static TNodeList< TRegMaterial > s_llRegMatFreeList
static TRegMaterial * s_pRegMaterials
◆ DeregisterAllMaterials()
void TOrderTable::DeregisterAllMaterials |
( |
| ) |
|
|
static |
Definition at line 135 of file TOrderTable.cpp.
136{
138 {
140 }
141}
static TNodeList< TRegMaterial > s_llRegMatRegisteredList
static void DeregisterMaterial(TRegMaterial *a_pRegMat)
◆ DeregisterMaterial()
void TOrderTable::DeregisterMaterial |
( |
TRegMaterial * | a_pRegMat | ) |
|
|
static |
Definition at line 115 of file TOrderTable.cpp.
116{
118 {
120
121 TMaterial* pMaterial = pRegMat->GetMaterial();
122
123 pRegMat->Remove();
126
127 pRegMat->SetFlags( 0 );
128 pRegMat->SetMaterial(
TNULL );
129 pRegMat->SetOrderTable(
TNULL );
131 }
132}
#define HASANYFLAG(STATE, FLAG)
void SetRegMaterial(TRegMaterial *a_pRegMaterial)
static TUINT s_uiNumRegisteredMaterials
◆ DestroyStaticData()
void TOrderTable::DestroyStaticData |
( |
| ) |
|
|
static |
Definition at line 153 of file TOrderTable.cpp.
154{
156 {
159
162 }
163
166}
static void DeregisterAllMaterials()
◆ Flush()
void TOrderTable::Flush |
( |
| ) |
|
Definition at line 66 of file TOrderTable.cpp.
67{
69
71 {
73 }
74
75 m_pShader->StartFlush();
76
77 for (
auto it = m_pLastRegMat; it !=
TNULL; it = it->GetNextRegMat() )
78 {
79 it->Render();
80 }
81
82 m_pShader->EndFlush();
83
85 m_pLastRegMat =
TNULL;
86}
#define TPROFILER_SCOPE()
static TUINT s_uiMaxNumRenderPackets
◆ GetShader()
TShader * TOrderTable::GetShader |
( |
| ) |
const |
|
inline |
◆ RegisterMaterial()
Definition at line 89 of file TOrderTable.cpp.
90{
92
93 TRegMaterial* pCurrentRegMat = pMat->GetRegMaterial();
94 if ( pCurrentRegMat !=
TNULL )
95 return pCurrentRegMat;
96
98
101
105
109 pMat->SetRegMaterial( pRegMat );
110
111 return pRegMat;
112}
void SetMaterial(TMaterial *a_pMaterial)
void SetFlags(State a_eFlags)
void SetOrderTable(TOrderTable *a_pOrderTable)
◆ Render()
void TOrderTable::Render |
( |
| ) |
|
Definition at line 52 of file TOrderTable.cpp.
53{
55
56 for (
auto it = m_pLastRegMat; it !=
TNULL; it = it->GetNextRegMat() )
57 {
58 it->Render();
59 }
60
62 m_pLastRegMat =
TNULL;
63}
◆ UseMaterial()
Definition at line 143 of file TOrderTable.cpp.
144{
146 {
149 m_pLastRegMat = a_pRegMat;
150 }
151}
void SetNextRegMat(TRegMaterial *a_pRegMat)
◆ s_llRegMatFreeList
◆ s_llRegMatRegisteredList
◆ s_pRegMaterials
◆ s_pRenderPackets
◆ s_uiMaxMaterials
TUINT TOrderTable::s_uiMaxMaterials = 0 |
|
inlinestatic |
◆ s_uiMaxNumRenderPackets
TUINT TOrderTable::s_uiMaxNumRenderPackets = 0 |
|
inlinestatic |
◆ s_uiMaxRenderPackets
TUINT TOrderTable::s_uiMaxRenderPackets = 0 |
|
inlinestatic |
◆ s_uiNumRegisteredMaterials
TUINT TOrderTable::s_uiNumRegisteredMaterials = 0 |
|
inlinestatic |
◆ s_uiNumRenderPackets
TUINT TOrderTable::s_uiNumRenderPackets = 0 |
|
inlinestatic |
◆ s_uiOrigMaxRenderPackets
TUINT TOrderTable::s_uiOrigMaxRenderPackets = 0 |
|
inlinestatic |
The documentation for this class was generated from the following files: