OpenBarnyard
 
Loading...
Searching...
No Matches
ASkinMaterial.h
Go to the documentation of this file.
1#pragma once
2#include <Render/TMaterial.h>
3
4class ASkinMaterial : public Toshi::TMaterial
5{
6 TDECLARE_CLASS( ASkinMaterial, Toshi::TMaterial );
7
8public:
18
20
21public:
24
25 //-----------------------------------------------------------------------------
26 // Own methods
27 //-----------------------------------------------------------------------------
28 virtual TBOOL Create( BLENDMODE a_eBlendMode );
29 virtual void SetBlendMode( BLENDMODE a_eBlendMode );
30
32
33 void SetTexture( Toshi::TTexture* a_pTexture )
34 {
35 m_pTexture = a_pTexture;
36 SetTextureNum( 1 );
37 }
38
39 void SetLightingTexture( ELightingTexture a_eTex, Toshi::TTexture* a_pTexture )
40 {
41 m_apLightingTextures[ a_eTex ] = a_pTexture;
42 }
43
44protected:
45 Toshi::TTexture* m_pTexture;
46 Toshi::TTexture* m_apLightingTextures[ LT_NUMOF ];
49};
#define TDECLARE_CLASS(THIS_CLASS, PARENT_CLASS)
Definition TObject.h:38
unsigned int TUINT
Definition Typedefs.h:8
bool TBOOL
Definition Typedefs.h:6
virtual void SetBlendMode(BLENDMODE a_eBlendMode)
Toshi::TTexture * m_pTexture
void SetLightingTexture(ELightingTexture a_eTex, Toshi::TTexture *a_pTexture)
void SetTexture(Toshi::TTexture *a_pTexture)
TUINT ELightingTexture
virtual TBOOL Create(BLENDMODE a_eBlendMode)
BLENDMODE GetBlendMode() const
Toshi::TTexture * m_apLightingTextures[LT_NUMOF]
BLENDMODE m_eBlendMode