#include <glfxscene.h>
Inheritance diagram for GLFX::Scene::LightNode:
Public Member Functions | |
LightNode (const LightNode &node) | |
virtual Node * | Clone () |
virtual int | GetType () |
void | SetColor (const Vec4 &color) |
const Vec4 & | GetColor () const |
void | SetAttenuation (float start, float end) |
float | GetAttenuationStart () const |
float | GetAttenuationEnd () const |
GLFX::Scene::LightNode::LightNode | ( | const LightNode & | node | ) | [inline] |
Constructs light node from another one.
virtual Node* GLFX::Scene::LightNode::Clone | ( | ) | [inline, virtual] |
virtual int GLFX::Scene::LightNode::GetType | ( | ) | [inline, virtual] |
void GLFX::Scene::LightNode::SetColor | ( | const Vec4 & | color | ) | [inline] |
Sets light color.
color | new color |
const Vec4& GLFX::Scene::LightNode::GetColor | ( | ) | const [inline] |
Gets light color.
void GLFX::Scene::LightNode::SetAttenuation | ( | float | start, | |
float | end | |||
) | [inline] |
Sets attenuation.
start | attenuation start | |
end | attenuation end |
float GLFX::Scene::LightNode::GetAttenuationStart | ( | ) | const [inline] |
Gets attenutation start or 0.0f if no attenuation.
float GLFX::Scene::LightNode::GetAttenuationEnd | ( | ) | const [inline] |
Gets attenutation end or 0.0f if no attenuation.