OpenBarnyard
 
Loading...
Searching...
No Matches
AGrassMaterial.h
Go to the documentation of this file.
1#pragma once
3
4#include <Toshi/Toshi.h>
5#include <Render/TMaterial.h>
6
8 : public Toshi::TMaterial
9{
10public:
11 TDECLARE_CLASS( AGrassMaterial, Toshi::TMaterial );
12
13 using BLENDMODE = TINT;
14
15public:
18
19 static void InitialiseStatic();
20
21 //-----------------------------------------------------------------------------
22 // Own methods
23 //-----------------------------------------------------------------------------
24 virtual TBOOL Create( BLENDMODE a_eBlendMode );
25 virtual void SetBlendMode( BLENDMODE a_eBlendMode );
26
27 void SetTexture( TUINT a_uiStage, Toshi::TTexture* a_pTexture )
28 {
30 m_aTextures[ a_uiStage ] = a_pTexture;
31 }
32
33protected:
36};
#define TASSERT(X,...)
Definition Defines.h:138
#define TDECLARE_CLASS(THIS_CLASS, PARENT_CLASS)
Definition TObject.h:38
Main header file for the Toshi game engine.
unsigned int TUINT
Definition Typedefs.h:8
int TINT
Definition Typedefs.h:7
bool TBOOL
Definition Typedefs.h:6
BLENDMODE m_eBlendMode
virtual void SetBlendMode(BLENDMODE a_eBlendMode)
virtual TBOOL Create(BLENDMODE a_eBlendMode)
static void InitialiseStatic()
void SetTexture(TUINT a_uiStage, Toshi::TTexture *a_pTexture)
Toshi::TTexture * m_aTextures[AWorldMaterial::MAX_TEXTURES]
static constexpr TUINT MAX_TEXTURES