OpenBarnyard
 
Loading...
Searching...
No Matches
AGUI2Material.h
Go to the documentation of this file.
1#pragma once
2#include <Render/TMaterial.h>
3#include <Render/TTexture.h>
4
5class AGUI2Material : public Toshi::TMaterial
6{
7public:
8 friend class AGUI2Renderer;
9 friend class AGUI2RendererDX8;
10
11public:
13 {
14 m_iNumTex = 1;
15 m_pTextureResource = TNULL;
16 m_eBlendState = 1;
17 m_eTextureAddress = 1;
18 m_iMipMapLODBias = 0;
19 }
20
21 void SetBlendState( TUINT a_eBlendState )
22 {
23 m_eBlendState = a_eBlendState;
24 }
25
26 void SetTextureAddress( TUINT a_eTextureAddress )
27 {
28 m_eTextureAddress = a_eTextureAddress;
29 }
30
31private:
32 Toshi::TTexture* m_pTextureResource;
33 TUINT m_eBlendState;
34 TUINT m_eTextureAddress;
35 TUINT m_iMipMapLODBias;
36};
Texture system for the Toshi engine.
unsigned int TUINT
Definition Typedefs.h:8
#define TNULL
Definition Typedefs.h:23
friend class AGUI2Renderer
void SetBlendState(TUINT a_eBlendState)
void SetTextureAddress(TUINT a_eTextureAddress)
friend class AGUI2RendererDX8