OpenBarnyard
 
Loading...
Searching...
No Matches
ASysMaterial.h
Go to the documentation of this file.
1#pragma once
2#include "ASysShader.h"
3
4#include <Render/TMaterial.h>
5
6class ASysMaterial : public Toshi::TMaterial
7{
8public:
9 TDECLARE_CLASS( ASysMaterial, Toshi::TMaterial );
10
26
27public:
29
30 virtual TBOOL Create() override;
31 virtual TBOOL Create( BLENDMODE a_eBlendMode );
32 virtual void SetBlendMode( BLENDMODE a_eBlendMode );
33
34 void SetTexture( Toshi::TTexture* a_pTexture )
35 {
36 m_pTexture = a_pTexture;
37 }
38
40 {
41 return TSTATICCAST( ASysShader, GetShader() );
42 }
43
44protected:
45 Toshi::TTexture* m_pTexture;
50 Toshi::TVector4 m_Vec3;
51};
#define TSTATICCAST(POINTERTYPE, VALUE)
Definition Defines.h:69
unsigned int TUINT
Definition Typedefs.h:8
bool TBOOL
Definition Typedefs.h:6
Toshi::TTexture * m_pTexture
ASysShader * GetSysShader() const
virtual void SetBlendMode(BLENDMODE a_eBlendMode)
TDECLARE_CLASS(ASysMaterial, Toshi::TMaterial)
virtual TBOOL Create() override
Toshi::TVector4 m_Vec3
BLENDMODE m_eBlendMode
void SetTexture(Toshi::TTexture *a_pTexture)