Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::gfx::CMatTree Class Reference

Custom material for trees. More...

#include <CmTree.h>

Inheritance diagram for kge::gfx::CMatTree:
kge::gfx::CustomMaterial kge::KgeUnknown

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.
CustomMaterialGetCopy ()
 Get a copy.
- Public Member Functions inherited from kge::gfx::CustomMaterial
 CustomMaterial ()
 Constructor.
virtual ~CustomMaterial ()
 Destructor.
CustomMaterialType GetType ()
- Public Member Functions inherited from kge::KgeUnknown
 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 CMatTreeGetSingletonPtr ()
 Gets the singleton pointer.

Public Attributes

float m_fVar

Protected Attributes

ShaderHandle m_shVSgTree
float m_fgTree [2]
float m_fTime
int m_iLastFrameNo
- Protected Attributes inherited from kge::gfx::CustomMaterial
CustomMaterialType m_eType

Additional Inherited Members

- Protected Member Functions inherited from kge::KgeUnknown
void SetDebugText (char *text)

Detailed Description

Custom material for trees.

Definition at line 17 of file CmTree.h.

Constructor & Destructor Documentation

kge::gfx::CMatTree::CMatTree ( )
inline

Constructor.

Definition at line 22 of file CmTree.h.

References kge::gfx::ECMT_Tree.

kge::gfx::CMatTree::~CMatTree ( )
inline

Destructor.

Definition at line 27 of file CmTree.h.

Member Function Documentation

bool kge::gfx::CMatTree::CreatePixelShaderCode ( MaterialParams pMP,
PixelShaderEntry  ese 
)
virtual

Nothing to do for pixel shader.

Implements kge::gfx::CustomMaterial.

bool kge::gfx::CMatTree::CreateVertexShaderCode ( MaterialParams pMP,
VertexShaderEntry  ese 
)
virtual

Adds custom vertex transform for trees.

Implements kge::gfx::CustomMaterial.

CustomMaterial* kge::gfx::CMatTree::GetCopy ( )
virtual

Get a copy.

Reimplemented from kge::gfx::CustomMaterial.

static CMatTree* kge::gfx::CMatTree::GetSingletonPtr ( )
static

Gets the singleton pointer.

void kge::gfx::CMatTree::SetShaderConstants ( ShaderInstance pSI)
virtual

Set gTree.

Reimplemented from kge::gfx::CustomMaterial.

Member Data Documentation

float kge::gfx::CMatTree::m_fgTree[2]
protected

Definition at line 49 of file CmTree.h.

float kge::gfx::CMatTree::m_fTime
protected

Definition at line 49 of file CmTree.h.

float kge::gfx::CMatTree::m_fVar

Definition at line 44 of file CmTree.h.

int kge::gfx::CMatTree::m_iLastFrameNo
protected

Definition at line 51 of file CmTree.h.

ShaderHandle kge::gfx::CMatTree::m_shVSgTree
protected

Definition at line 48 of file CmTree.h.


The documentation for this class was generated from the following file: