![]() |
Kochol Game Engine
0.1.0
|
#include <Light.h>
Public Member Functions | |
Light (gfx::LightData *light, SceneManager *smgr, gfx::Renderer *renderer) | |
Constructor. | |
~Light () | |
Destructor. | |
void | PreRender (float elapsedTime=0.0f) |
Karhayee ke Ghabl az render bayad anjam shvad. Mesle colision detection. | |
void | Render () |
Render kardane Object. | |
void | PostRender () |
Karhaee ke bad az render bayad anjam beshe. | |
bool | AddEffect (efx::EffectType p, efx::Effect **ppOut) |
void | Draw (bool WithMaterial, bool WithTransform, bool bPosition, bool bNormalTexcoord, bool bTangentBinormal) |
virtual void | SetPosition (const math::Vector &v) |
Set the position of the light. | |
virtual const math::Vector & | GetPosition () const |
Returns the light position. | |
virtual bool | IsPositionChanged () |
Returns true if the light position changed since this function last call. | |
gfx::LightData * | GetLightData () const |
Returns the light data to read/write them. | |
![]() | |
SceneNode () | |
Constructor. | |
virtual | ~SceneNode () |
Destructor. | |
virtual void | AddChild (SceneNode *child) |
Adds a node as child. | |
virtual void | SetSceneManager (SceneManager *smgr) |
Sets the scene manager and renderer pointer. | |
virtual void | SetRotation (const math::Vector &v) |
Set the rotation of the scenenode. | |
virtual void | SetScale (const math::Vector &v) |
Set the scale of the scenenode. | |
virtual void | SetAutomaticCulling (bool isTrue) |
Set Cutting Enable or Disable. | |
virtual void | SetVisible (bool isVisible) |
Set Visible Enable or Disable. | |
virtual bool | GetVisible () |
Get Visible. | |
virtual bool | IsVisibleInFrame () |
Is it visible in this frame? | |
virtual const math::Vector & | GetRotation () const |
Returns the node rotation. | |
virtual const math::Vector & | GetScale () const |
Returns the node scale. | |
virtual math::Matrix * | GetAbsoluteMatrix () const |
Get the absolute matrix. | |
virtual math::Matrix * | GetFinalMatrix () |
Get the final matrix. | |
virtual u32 | GetMaterialCount () |
Get the count of materials this node has. | |
virtual gfx::Material * | GetMaterial (u32 Index) |
virtual math::Sphere * | GetBoundingBox () |
Returns the node bounding box. | |
virtual math::AABB * | GetAxisAlignedBoundingBox () |
Returns the node Axis aligned bounding box. | |
virtual NodeType | GetType () const |
Returns the node type. | |
virtual void | RemoveChild (SceneNode *child) |
virtual void | RemoveChildren () |
Removes all children of this node. | |
virtual const SceneNode * | GetParent () |
Returns the node parent. | |
virtual void | SetParent (SceneNode *parent) |
Sets the node parent. | |
virtual void | SetName (const char *name) |
Sets the node name. | |
virtual core::String * | GetName () |
Gets the node name. | |
virtual void | SetID (int ID) |
Sets the node ID. | |
virtual int | GetID () |
Gets the node ID. | |
void | EnableShadow (bool enable) |
bool | HasShadow () const |
virtual void | UpdateFinalMat () |
Update final matrix. | |
![]() | |
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 | |
gfx::LightData * | m_pLight |
bool | m_bPosChanged |
![]() | |
core::String | m_sName |
int | m_iID |
SceneManager * | m_pSnMan |
gfx::Renderer * | m_pRenderer |
bool | m_bVis |
bool | m_bAutoCulling |
bool | m_bVisFrame |
SceneNode * | m_pParent |
std::vector< SceneNode * > | m_vChilds |
std::vector< int > | m_vEffectType |
std::vector< efx::Effect * > | m_vEffect |
math::Matrix * | m_pAbsMat |
math::Matrix * | m_pFinalMat |
math::Vector | m_Position |
math::Vector | m_Rotation |
math::Vector | m_Scale |
math::Sphere * | m_pBB |
math::AABB * | m_pAABB |
NodeType | m_eNodeType |
bool | m_hasShadow |
Additional Inherited Members | |
![]() | |
virtual bool | HasThisEffect (efx::EffectType p) |
kge::sn::Light::Light | ( | gfx::LightData * | light, |
SceneManager * | smgr, | ||
gfx::Renderer * | renderer | ||
) |
Constructor.
kge::sn::Light::~Light | ( | ) |
Destructor.
|
virtual |
Ezafe kardane effect be hamin gereh.
p | Effecti ke mikhahid ezafe konid. |
ppOut | Class Effect sakhte shode. |
Reimplemented from kge::sn::SceneNode.
|
virtual |
Draw the node with/without its Materials and Transforms.
WithMaterial | Draw it with its own materials or not? |
WithMaterial | Draw it with its own Transformations or not? |
Implements kge::sn::SceneNode.
gfx::LightData* kge::sn::Light::GetLightData | ( | ) | const |
Returns the light data to read/write them.
|
virtual |
Returns the light position.
Reimplemented from kge::sn::SceneNode.
|
virtual |
Returns true if the light position changed since this function last call.
|
virtual |
Karhaee ke bad az render bayad anjam beshe.
Implements kge::sn::SceneNode.
|
virtual |
Karhayee ke Ghabl az render bayad anjam shvad. Mesle colision detection.
Implements kge::sn::SceneNode.
|
virtual |
Render kardane Object.
Implements kge::sn::SceneNode.
|
virtual |
Set the position of the light.
Reimplemented from kge::sn::SceneNode.
|
protected |