#include <TMaterial.h>
Public Types | |
| enum | Flags_ : Flags { FLAGS_NONE = 0 , FLAGS_NO_CULL = BITFLAG( 0 ) , FLAGS_BLENDING = BITFLAG( 1 ) , FLAGS_UNK3 = BITFLAG( 2 ) , FLAGS_GLOW = BITFLAG( 3 ) , FLAGS_CREATED = BITFLAG( 4 ) , FLAGS_NO_DEPTH_TEST = BITFLAG( 27 ) , FLAGS_ALPHAUPDATE = BITFLAG( 28 ) , FLAGS_ALPHATEXTURE = BITFLAG( 31 ) } |
| typedef TUINT32 | Flags |
Public Types inherited from TObject | |
| enum | { IsTObject = TTRUE } |
Public Member Functions | |
| TDECLARE_CLASS (TMaterial, TObject) | |
| TMaterial () | |
| ~TMaterial () | |
| void | Destroy () |
| TShader * | GetShader () const |
| void | SetShader (TShader *a_pShader) |
| TTexture * | GetTexture (TUINT32 a_iStage=0) const |
| void | SetTexture (TUINT32 a_iStage, TTexture *a_pTexture) |
| TUINT32 | GetTextureNum () const |
| void | SetTextureNum (TUINT32 a_iNumTextures) |
| void | SetName (const TCHAR *a_szName) |
| void | SetFlags (Flags a_eFlag, TBOOL a_bEnable) |
| TRegMaterial * | GetRegMaterial () const |
| void | SetRegMaterial (TRegMaterial *a_pRegMaterial) |
| const TCHAR * | GetName () const |
| TBOOL | IsCreated () const |
| TRenderPacket * | AddRenderPacket (TMesh *a_pMesh) |
Public Member Functions inherited from TObject | |
| virtual Toshi::TClass * | GetClass () |
| virtual void | Delete () |
| virtual | ~TObject () |
| TBOOL | IsExactly (TClass *a_pClass) |
| TBOOL | IsA (TClass *a_pClass) |
Public Attributes | |
| friend | TRegMaterial |
Static Public Attributes | |
| static constexpr TUINT | MAXTEXTURES = 6 |
| static constexpr TUINT | NAMESIZELIMIT = 31 |
Static Public Attributes inherited from TObject | |
| static constexpr Toshi::TClass * | PARENTCLASS = TNULL |
| static constinit Toshi::TClass | ms_oClass = Toshi::TClass( "TObject", TObject::CreateTObject, TObject::CreateTObjectInPlace, TObject::InitialiseClass, TObject::DeinitialiseClass, 0, 2, sizeof( TObject ), alignof( TObject ) ) |
Protected Member Functions | |
| virtual void | OnDestroy () |
| virtual TBOOL | Create () |
| virtual void | PreRender () |
| virtual void | PostRender () |
Protected Attributes | |
| Flags | m_Flags |
| TShader * | m_pShader |
| TRegMaterial * | m_pRegMaterial |
| TUINT32 | m_iNumTex |
| TTexture * | m_pTextures [MAXTEXTURES] |
| TCHAR | m_szName [NAMESIZELIMIT+1] |
Additional Inherited Members | |
Static Public Member Functions inherited from TObject | |
| static Toshi::TObject * | CreateTObject () |
| static Toshi::TObject * | CreateTObjectInPlace (void *a_pPtr) |
| static void | InitialiseClass () |
| static void | DeinitialiseClass () |
| static TFORCEINLINE TClass * | GetClassStatic () |
Definition at line 11 of file TMaterial.h.
| typedef TUINT32 TMaterial::Flags |
Definition at line 20 of file TMaterial.h.
| enum TMaterial::Flags_ : Flags |
| Enumerator | |
|---|---|
| FLAGS_NONE | |
| FLAGS_NO_CULL | |
| FLAGS_BLENDING | |
| FLAGS_UNK3 | |
| FLAGS_GLOW | |
| FLAGS_CREATED | |
| FLAGS_NO_DEPTH_TEST | |
| FLAGS_ALPHAUPDATE | |
| FLAGS_ALPHATEXTURE | |
Definition at line 21 of file TMaterial.h.
| TMaterial::TMaterial | ( | ) |
Definition at line 16 of file TMaterial.cpp.
| TMaterial::~TMaterial | ( | ) |
Definition at line 28 of file TMaterial.cpp.
| TRenderPacket * TMaterial::AddRenderPacket | ( | TMesh * | a_pMesh | ) |
Definition at line 131 of file TMaterial.cpp.
|
protectedvirtual |
Definition at line 40 of file TMaterial.cpp.
| void TMaterial::Destroy | ( | ) |
Definition at line 55 of file TMaterial.cpp.
|
inline |
Definition at line 67 of file TMaterial.h.
| TRegMaterial * TMaterial::GetRegMaterial | ( | ) | const |
Definition at line 144 of file TMaterial.cpp.
| TShader * TMaterial::GetShader | ( | ) | const |
Definition at line 67 of file TMaterial.cpp.
Definition at line 89 of file TMaterial.cpp.
| TUINT32 TMaterial::GetTextureNum | ( | ) | const |
Definition at line 84 of file TMaterial.cpp.
| TBOOL TMaterial::IsCreated | ( | ) | const |
Definition at line 126 of file TMaterial.cpp.
|
protectedvirtual |
Definition at line 33 of file TMaterial.cpp.
|
protectedvirtual |
Definition at line 51 of file TMaterial.cpp.
|
protectedvirtual |
Definition at line 47 of file TMaterial.cpp.
Definition at line 109 of file TMaterial.cpp.
| void TMaterial::SetName | ( | const TCHAR * | a_szName | ) |
Definition at line 95 of file TMaterial.cpp.
| void TMaterial::SetRegMaterial | ( | TRegMaterial * | a_pRegMaterial | ) |
Definition at line 139 of file TMaterial.cpp.
| void TMaterial::SetShader | ( | TShader * | a_pShader | ) |
Definition at line 78 of file TMaterial.cpp.
| void TMaterial::SetTextureNum | ( | TUINT32 | a_iNumTextures | ) |
Definition at line 72 of file TMaterial.cpp.
|
protected |
Definition at line 74 of file TMaterial.h.
|
protected |
Definition at line 77 of file TMaterial.h.
|
protected |
Definition at line 76 of file TMaterial.h.
|
protected |
Definition at line 75 of file TMaterial.h.
|
protected |
Definition at line 78 of file TMaterial.h.
|
protected |
Definition at line 79 of file TMaterial.h.
|
staticconstexpr |
Definition at line 17 of file TMaterial.h.
|
staticconstexpr |
Definition at line 18 of file TMaterial.h.
| friend TMaterial::TRegMaterial |
Definition at line 34 of file TMaterial.h.