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

In class interface asli kar ba nor ha hast. More...

#include <Lighting.h>

Inheritance diagram for kge::gfx::Lighting:
kge::KgeUnknown

Public Member Functions

 Lighting ()
 Sazande ke tavasote class renderer seda zade mishe.
virtual ~Lighting ()
 Mokhareb.
virtual void SetAmbientLight (const Colorf &color)=0
 Nore ambient ro set mikone. In noe nor nori hast ke dar tamame jahat be ye andaze pakhsh mishe.
virtual void SetLight (LightData *pLight, int Index)=0
 Ye nore jahat daro dar sahne ezafe mikone. Mesle nore khorshid.
virtual LightDataAddDirectionalLight (const math::Vector &vDir, const Colorf &color)
 Ye nore jahat daro dar sahne ezafe mikone. Mesle nore Khorshid.
virtual LightDataAddPointLight (const math::Vector &vPosition, const Colorf &color)
 Ye nore noghte i ro be sahne ezafe mikone ke noresh dar tamame jahat pakhsh mishe.
virtual LightDataAddSpotLight (const math::Vector &vPosition, const math::Vector &vDirection, const Colorf &color)
 Ye nore spot ro be sahne ezafe mikone mesle nore cheragh ghove.
virtual Colorf GetAmbientLight ()
 Returns the ambient light color.
- 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.

Protected Attributes

Colorf m_cAmbient

Additional Inherited Members

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

Detailed Description

In class interface asli kar ba nor ha hast.

Definition at line 20 of file Lighting.h.

Constructor & Destructor Documentation

kge::gfx::Lighting::Lighting ( )
inline

Sazande ke tavasote class renderer seda zade mishe.

Definition at line 25 of file Lighting.h.

virtual kge::gfx::Lighting::~Lighting ( )
inlinevirtual

Mokhareb.

Definition at line 28 of file Lighting.h.

Member Function Documentation

virtual LightData* kge::gfx::Lighting::AddDirectionalLight ( const math::Vector vDir,
const Colorf color 
)
virtual

Ye nore jahat daro dar sahne ezafe mikone. Mesle nore Khorshid.

Parameters
vDirJahate nor.
colorRange nor.
Returns
Yek LightDir barmigardone ba moshakhasate sakhte shode ke ba taghiresh mishe dobare ba SetLight ono ezafe kard.
virtual LightData* kge::gfx::Lighting::AddPointLight ( const math::Vector vPosition,
const Colorf color 
)
virtual

Ye nore noghte i ro be sahne ezafe mikone ke noresh dar tamame jahat pakhsh mishe.

Parameters
PositionMahale gharar giri nor.
ColorRange nor.
Returns
Yek Nore noghte e ba moshakhasate sakhte shode bar migardone ke mishe ba taghiresh va ferestadane dobareye on be SetLight nore delkhah ro bedast avard.
virtual LightData* kge::gfx::Lighting::AddSpotLight ( const math::Vector vPosition,
const math::Vector vDirection,
const Colorf color 
)
virtual

Ye nore spot ro be sahne ezafe mikone mesle nore cheragh ghove.

Parameters
PositionMahale gharar giri nor.
DirectionJahate nor ra moshakhas mikone.
ColorRange nor.
Returns
Yek Nore Spot ra ba moshakhasate sakhte shode bar migardone ke mishe ba taghiresh va ferestadane dobareye on be SetLight nore delkhah ro bedast avard.
virtual Colorf kge::gfx::Lighting::GetAmbientLight ( )
inlinevirtual

Returns the ambient light color.

Definition at line 72 of file Lighting.h.

virtual void kge::gfx::Lighting::SetAmbientLight ( const Colorf color)
pure virtual

Nore ambient ro set mikone. In noe nor nori hast ke dar tamame jahat be ye andaze pakhsh mishe.

Parameters
colorNore ambient.
virtual void kge::gfx::Lighting::SetLight ( LightData pLight,
int  Index 
)
pure virtual

Ye nore jahat daro dar sahne ezafe mikone. Mesle nore khorshid.

Parameters
pLightEshare gar be Nore jahat dari ke mikhahid be sahne ezafe konid.
Indexshomare nori ke mikhahid jay gozin shavad ya ezafe shavad.

Member Data Documentation

Colorf kge::gfx::Lighting::m_cAmbient
protected

Definition at line 76 of file Lighting.h.


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