![]() |
Kochol Game Engine
0.1.0
|
Custom material for trees. More...
#include <CmTree.h>
Public Member Functions | |
CMatTree () | |
Constructor. | |
~CMatTree () | |
Destructor. | |
bool | CreateVertexShaderCode (MaterialParams *pMP, VertexShaderEntry ese) |
Adds custom vertex transform for trees. | |
bool | CreatePixelShaderCode (MaterialParams *pMP, PixelShaderEntry ese) |
Nothing to do for pixel shader. | |
void | SetShaderConstants (ShaderInstance *pSI) |
Set gTree. | |
CustomMaterial * | GetCopy () |
Get a copy. | |
![]() | |
CustomMaterial () | |
Constructor. | |
virtual | ~CustomMaterial () |
Destructor. | |
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. |
Static Public Member Functions | |
static CMatTree * | GetSingletonPtr () |
Gets the singleton pointer. |
Public Attributes | |
float | m_fVar |
Protected Attributes | |
ShaderHandle | m_shVSgTree |
float | m_fgTree [2] |
float | m_fTime |
int | m_iLastFrameNo |
![]() | |
CustomMaterialType | m_eType |
Additional Inherited Members | |
![]() | |
void | SetDebugText (char *text) |
|
inline |
|
virtual |
Nothing to do for pixel shader.
Implements kge::gfx::CustomMaterial.
|
virtual |
Adds custom vertex transform for trees.
Implements kge::gfx::CustomMaterial.
|
virtual |
Get a copy.
Reimplemented from kge::gfx::CustomMaterial.
|
static |
Gets the singleton pointer.
|
virtual |
Set gTree.
Reimplemented from kge::gfx::CustomMaterial.
|
protected |