#include <MercuryLight.h>
Inheritance diagram for MercuryLight:
Public Member Functions | |
MercuryLight () | |
virtual | ~MercuryLight () |
virtual void | Init () |
void | SetAttenuation (float value, Attenuation::Type type=Attenuation::CONSTANT) |
const Attenuation & | GetAttenuation (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 |
Definition at line 34 of file MercuryLight.h.
MercuryLight::MercuryLight | ( | ) |
Definition at line 5 of file MercuryLight.cpp.
MercuryLight::~MercuryLight | ( | ) | [virtual] |
Definition at line 10 of file MercuryLight.cpp.
void MercuryLight::Init | ( | ) | [virtual] |
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] |
MercuryLight::CLASS_RTTI | ( | MercuryLight | , | |
MercuryObject | ||||
) |
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.
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.