OpenBarnyard
 
Loading...
Searching...
No Matches
ASysMesh_DX8.cpp
Go to the documentation of this file.
1#include "pch.h"
2#include "ASysMesh_DX8.h"
3
6
7//-----------------------------------------------------------------------------
8// Enables memory debugging.
9// Note: Should be the last include!
10//-----------------------------------------------------------------------------
11#include <Core/TMemoryDebugOn.h>
12
14
16
18{
19 m_iZBias = 0;
20}
21
23{
24 if ( ms_bStopRendering == FALSE )
25 {
26 auto pRenderPacket = GetMaterial()->AddRenderPacket( this );
27
28 pRenderPacket->SetModelViewMatrix(
29 TRenderInterface::GetSingleton()->GetCurrentContext()->GetModelViewMatrix()
30 );
31 }
32
33 return TTRUE;
34}
35
37{
38 m_iZBias = a_iZBias;
39}
Rendering system interface for the Toshi engine.
#define TOSHI_NAMESPACE_USING
Definition Defines.h:46
#define TDEFINE_CLASS(...)
Definition TObject.h:120
int TINT
Definition Typedefs.h:7
#define TTRUE
Definition Typedefs.h:25
bool TBOOL
Definition Typedefs.h:6
static TFORCEINLINE TRenderInterface * GetSingleton()
Definition TSingleton.h:49
virtual void SetZBias(TINT a_iZBias) override
virtual TBOOL Render() override
static BOOL ms_bStopRendering