MercuryLight Class Reference

Logical light to be placed in a scene. More...

#include <MercuryLight.h>

Inheritance diagram for MercuryLight:

Inheritance graph
Collaboration diagram for MercuryLight:

Collaboration graph
List of all members.

Public Member Functions

 MercuryLight ()
virtual ~MercuryLight ()
virtual void Init ()
void SetAttenuation (float value, Attenuation::Type type=Attenuation::CONSTANT)
const AttenuationGetAttenuation (Attenuation::Type type) const
void SetStatic (bool toggle)
bool IsStatic () const
void SetLightType (LightType pLT)
LightType GetLightType () const
void SetColors (const MercuryMaterial &c)
virtual void Draw ()
 [internal] Draw (CALL FIRST when using abstracted draw commands)
virtual void Render ()
 CLASS_RTTI (MercuryLight, MercuryObject)
float ComputeBrightnessFromDistance (const MercuryPoint &objectPos) const
void ComputeRadius ()
float GetRadius () const

Private Attributes

LightType m_pLT
MercuryMaterial m_colors
Attenuation m_attenuation [3]
bool m_static
float m_radius

Detailed Description

Logical light to be placed in a scene.

Definition at line 34 of file MercuryLight.h.

Constructor & Destructor Documentation

MercuryLight::MercuryLight (  ) 

Definition at line 5 of file MercuryLight.cpp.

MercuryLight::~MercuryLight (  )  [virtual]

Definition at line 10 of file MercuryLight.cpp.

Member Function Documentation

void MercuryLight::Init (  )  [virtual]

Reimplemented from MercuryObject.

Definition at line 15 of file MercuryLight.cpp.

void MercuryLight::SetAttenuation ( float  value,
Attenuation::Type  type = Attenuation::CONSTANT 

Definition at line 34 of file MercuryLight.cpp.

const Attenuation& MercuryLight::GetAttenuation ( Attenuation::Type  type  )  const [inline]

Definition at line 44 of file MercuryLight.h.

void MercuryLight::SetStatic ( bool  toggle  )  [inline]

Definition at line 46 of file MercuryLight.h.

bool MercuryLight::IsStatic (  )  const [inline]

Definition at line 47 of file MercuryLight.h.

void MercuryLight::SetLightType ( LightType  pLT  )  [inline]

Definition at line 49 of file MercuryLight.h.

LightType MercuryLight::GetLightType (  )  const [inline]

Definition at line 50 of file MercuryLight.h.

void MercuryLight::SetColors ( const MercuryMaterial c  )  [inline]

Definition at line 52 of file MercuryLight.h.

virtual void MercuryLight::Draw (  )  [inline, virtual]

[internal] Draw (CALL FIRST when using abstracted draw commands)

Reimplemented from MercuryObject.

Definition at line 53 of file MercuryLight.h.

virtual void MercuryLight::Render (  )  [inline, virtual]

Reimplemented from MercuryObject.

Definition at line 54 of file MercuryLight.h.

MercuryLight::CLASS_RTTI ( MercuryLight  ,

float MercuryLight::ComputeBrightnessFromDistance ( const MercuryPoint objectPos  )  const

Definition at line 41 of file MercuryLight.cpp.

void MercuryLight::ComputeRadius (  ) 

Definition at line 51 of file MercuryLight.cpp.

float MercuryLight::GetRadius (  )  const [inline]

Definition at line 60 of file MercuryLight.h.

Member Data Documentation

LightType MercuryLight::m_pLT [private]

Definition at line 64 of file MercuryLight.h.

MercuryMaterial MercuryLight::m_colors [private]

Definition at line 66 of file MercuryLight.h.

Attenuation MercuryLight::m_attenuation[3] [private]

Definition at line 69 of file MercuryLight.h.

bool MercuryLight::m_static [private]

Definition at line 70 of file MercuryLight.h.

float MercuryLight::m_radius [private]

Definition at line 72 of file MercuryLight.h.

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