GLFX::Scene::LightNode Class Reference

#include <glfxscene.h>

Inheritance diagram for GLFX::Scene::LightNode:

GLFX::Scene::Node List of all members.

Public Member Functions

 LightNode (const LightNode &node)
virtual NodeClone ()
virtual int GetType ()
void SetColor (const Vec4 &color)
const Vec4GetColor () const
void SetAttenuation (float start, float end)
float GetAttenuationStart () const
float GetAttenuationEnd () const

Constructor & Destructor Documentation

GLFX::Scene::LightNode::LightNode ( const LightNode node  )  [inline]

Constructs light node from another one.

Member Function Documentation

virtual Node* GLFX::Scene::LightNode::Clone (  )  [inline, virtual]

Clone this node.

Reimplemented from GLFX::Scene::Node.

virtual int GLFX::Scene::LightNode::GetType (  )  [inline, virtual]

Get node type.

Reimplemented from GLFX::Scene::Node.

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.

The documentation for this class was generated from the following file: Logo