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

#include <CMatPhongLighting.h>

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

Public Member Functions

 CMatPhong ()
 Constructor.
 ~CMatPhong ()
 Destructor.
bool CreateVertexShaderCode (MaterialParams *pMP, VertexShaderEntry ese)
 Adds Vertex shader code.
bool CreatePixelShaderCode (MaterialParams *pMP, PixelShaderEntry ese)
 Adds pixel shader code.
void SetShaderConstants (ShaderInstance *pSI)
 Set the constants.
- Public Member Functions inherited from kge::gfx::CustomMaterial
 CustomMaterial ()
 Constructor.
virtual ~CustomMaterial ()
 Destructor.
virtual CustomMaterialGetCopy ()
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 CustomMaterialGetSingletonPtr ()
 Returns the singleton pointer.

Additional Inherited Members

- Protected Member Functions inherited from kge::KgeUnknown
void SetDebugText (char *text)
- Protected Attributes inherited from kge::gfx::CustomMaterial
CustomMaterialType m_eType

Detailed Description

Definition at line 15 of file CMatPhongLighting.h.

Constructor & Destructor Documentation

kge::gfx::CMatPhong::CMatPhong ( )

Constructor.

kge::gfx::CMatPhong::~CMatPhong ( )

Destructor.

Member Function Documentation

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

Adds pixel shader code.

Implements kge::gfx::CustomMaterial.

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

Adds Vertex shader code.

Implements kge::gfx::CustomMaterial.

static CustomMaterial* kge::gfx::CMatPhong::GetSingletonPtr ( )
static

Returns the singleton pointer.

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

Set the constants.

Reimplemented from kge::gfx::CustomMaterial.


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