OpenBarnyard
 
Loading...
Searching...
No Matches
AWorldMaterial.cpp
Go to the documentation of this file.
1#include "pch.h"
2#include "AWorldMaterial.h"
3
4//-----------------------------------------------------------------------------
5// Enables memory debugging.
6// Note: Should be the last include!
7//-----------------------------------------------------------------------------
9
11
13
15 : m_eBlendMode( 0 ), m_fUVAnimX( 0.0f ), m_fUVAnimY( 0.0f ), m_fUVAnimSpeedX( 0.0f ), m_fUVAnimSpeedY( 0.0f )
16{
17 m_aTextures[ 0 ] = TNULL;
18 m_aTextures[ 1 ] = TNULL;
19 m_aTextures[ 2 ] = TNULL;
20 m_aTextures[ 3 ] = TNULL;
21}
22
26
28{
29 SetBlendMode( a_eBlendMode );
30 return TMaterial::Create();
31}
32
34{
35 m_eBlendMode = a_eBlendMode;
36 m_Flags &= ~FLAGS_BLENDING;
37
38 if ( a_eBlendMode != 0 )
39 {
40 m_Flags |= FLAGS_BLENDING;
41 }
42}
#define TOSHI_NAMESPACE_USING
Definition Defines.h:46
#define TDEFINE_CLASS_NORUNTIME(...)
Definition TObject.h:138
#define TNULL
Definition Typedefs.h:23
bool TBOOL
Definition Typedefs.h:6
virtual TBOOL Create()
Definition TMaterial.cpp:40
virtual void SetBlendMode(BLENDMODE a_eBlendMode)
virtual TBOOL Create(BLENDMODE a_eBlendMode)
Toshi::TTexture * m_aTextures[MAX_TEXTURES]
BLENDMODE m_eBlendMode