![]() |
Kochol Game Engine
0.1.0
|
Custom material base class. More...
#include <CustomMaterial.h>
Public Member Functions | |
CustomMaterial () | |
Constructor. | |
virtual | ~CustomMaterial () |
Destructor. | |
virtual bool | CreateVertexShaderCode (MaterialParams *pMP, VertexShaderEntry ese=EVSE_Unknown)=0 |
Changes the material param shader codes. | |
virtual bool | CreatePixelShaderCode (MaterialParams *pMP, PixelShaderEntry ese)=0 |
virtual void | SetShaderConstants (ShaderInstance *pSI) |
virtual CustomMaterial * | GetCopy () |
CustomMaterialType | GetType () |
![]() | |
KgeUnknown () | |
Constructor. | |
virtual | ~KgeUnknown () |
Destructor. | |
virtual void | AddRef () |
Add a reference to the object. | |
virtual void | DecRef () |
Decrease a reference from the object. if its reference count get 0 then the object will destroy. | |
u32 | GetRefCount () |
Return resource reference count. | |
const char * | GetDebugText () |
returns the instance debug text. |
Protected Attributes | |
CustomMaterialType | m_eType |
Additional Inherited Members | |
![]() | |
void | SetDebugText (char *text) |
Custom material base class.
Definition at line 44 of file CustomMaterial.h.
kge::gfx::CustomMaterial::CustomMaterial | ( | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
Implemented in kge::gfx::SimpleLightingCM, kge::gfx::CMatTree, and kge::gfx::CMatPhong.
|
pure virtual |
Changes the material param shader codes.
Implemented in kge::gfx::SimpleLightingCM, kge::gfx::CMatTree, and kge::gfx::CMatPhong.
|
inlinevirtual |
Reimplemented in kge::gfx::CMatTree.
Definition at line 61 of file CustomMaterial.h.
References kge::KgeUnknown::AddRef().
|
inline |
Definition at line 63 of file CustomMaterial.h.
References m_eType.
|
inlinevirtual |
Reimplemented in kge::gfx::CMatTree, and kge::gfx::CMatPhong.
Definition at line 59 of file CustomMaterial.h.
|
protected |
Definition at line 67 of file CustomMaterial.h.
Referenced by GetType(), and kge::gfx::SimpleLightingCM::SimpleLightingCM().