Blender V2.61 - r43446
Public Member Functions | Protected Attributes

KX_LightObject Class Reference

#include <KX_Light.h>

Inheritance diagram for KX_LightObject:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 KX_LightObject (void *sgReplicationInfo, SG_Callbacks callbacks, class RAS_IRenderTools *rendertools, const struct RAS_LightObject &lightobj, bool glsl)
virtual ~KX_LightObject ()
virtual CValueGetReplica ()
RAS_LightObjectGetLightData ()
bool ApplyLight (KX_Scene *kxscene, int oblayer, int slot)
struct GPULampGetGPULamp ()
bool HasShadowBuffer ()
int GetShadowLayer ()
void BindShadowBuffer (class RAS_IRasterizer *ras, class KX_Camera *cam, class MT_Transform &camtrans)
void UnbindShadowBuffer (class RAS_IRasterizer *ras)
void Update ()
void UpdateScene (class KX_Scene *kxscene)
virtual int GetGameObjectType ()

Protected Attributes

RAS_LightObject m_lightobj
class RAS_IRenderToolsm_rendertools
bool m_glsl
Scenem_blenderscene

Detailed Description

Definition at line 45 of file KX_Light.h.


Constructor & Destructor Documentation

KX_LightObject::KX_LightObject ( void *  sgReplicationInfo,
SG_Callbacks  callbacks,
class RAS_IRenderTools rendertools,
const struct RAS_LightObject lightobj,
bool  glsl 
)
KX_LightObject::~KX_LightObject ( ) [virtual]

Member Function Documentation

bool KX_LightObject::ApplyLight ( KX_Scene kxscene,
int  oblayer,
int  slot 
)
void KX_LightObject::BindShadowBuffer ( class RAS_IRasterizer ras,
class KX_Camera cam,
class MT_Transform camtrans 
)
virtual int KX_LightObject::GetGameObjectType ( ) [inline, virtual]

Reimplemented from SCA_IObject.

Definition at line 73 of file KX_Light.h.

References SCA_IObject::OBJ_LIGHT.

GPULamp * KX_LightObject::GetGPULamp ( ) [read]
RAS_LightObject* KX_LightObject::GetLightData ( ) [inline]
CValue * KX_LightObject::GetReplica ( void  ) [virtual]

Inherited from CValue -- return a new copy of this instance allocated on the heap. Ownership of the new object belongs with the caller.

Reimplemented from KX_GameObject.

Definition at line 79 of file KX_Light.cpp.

References RAS_IRenderTools::AddLight(), KX_LightObject(), RAS_LightObject::m_light, m_lightobj, m_rendertools, and KX_GameObject::ProcessReplica().

int KX_LightObject::GetShadowLayer ( )

Definition at line 221 of file KX_Light.cpp.

References GetGPULamp(), and GPU_lamp_shadow_layer().

bool KX_LightObject::HasShadowBuffer ( )

Definition at line 211 of file KX_Light.cpp.

References GetGPULamp(), and GPU_lamp_has_shadow_buffer().

void KX_LightObject::UnbindShadowBuffer ( class RAS_IRasterizer ras)

Definition at line 264 of file KX_Light.cpp.

References GetGPULamp(), and GPU_lamp_shadow_buffer_unbind().

void KX_LightObject::Update ( void  )
void KX_LightObject::UpdateScene ( class KX_Scene kxscene) [inline]

Definition at line 71 of file KX_Light.h.

References m_lightobj, and RAS_LightObject::m_scene.


Member Data Documentation

Definition at line 52 of file KX_Light.h.

Referenced by GetGPULamp(), and KX_LightObject().

bool KX_LightObject::m_glsl [protected]

Definition at line 51 of file KX_Light.h.

Referenced by GetGPULamp(), and KX_LightObject().

Definition at line 50 of file KX_Light.h.

Referenced by GetReplica(), KX_LightObject(), and ~KX_LightObject().


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