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

Simple lighting. More...

#include <CustomMaterial.h>

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

Public Member Functions

 SimpleLightingCM ()
virtual bool CreateVertexShaderCode (MaterialParams *pMP, VertexShaderEntry ese)
 Adds simple lighting vertex shader code.
virtual bool CreatePixelShaderCode (MaterialParams *pMP, PixelShaderEntry ese)
 Adds simple lighting pixel shader code.
- Public Member Functions inherited from kge::gfx::CustomMaterial
 CustomMaterial ()
 Constructor.
virtual ~CustomMaterial ()
 Destructor.
virtual void SetShaderConstants (ShaderInstance *pSI)
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 SimpleLightingCMGetSingletonPtr ()

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

Simple lighting.

Definition at line 72 of file CustomMaterial.h.

Constructor & Destructor Documentation

kge::gfx::SimpleLightingCM::SimpleLightingCM ( )
inline

Definition at line 76 of file CustomMaterial.h.

References kge::gfx::ECMT_Lighting, and kge::gfx::CustomMaterial::m_eType.

Member Function Documentation

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

Adds simple lighting pixel shader code.

Implements kge::gfx::CustomMaterial.

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

Adds simple lighting vertex shader code.

Implements kge::gfx::CustomMaterial.

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

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