GpuThesis::Light Class Reference

#include <Light.h>

List of all members.

Public Member Functions

 Light (EngineParameters::LightParams light)
Math::Vector3d getPosition () const
void setPosition (const Math::Vector3d &position)
Util::Color getColor () const
void setColor (const Util::Color &color)
bool getDynamic () const
void setDynamic (bool dynamic)


Detailed Description

Represents a point light, which can be tied to the fire simulation.


Constructor & Destructor Documentation

GpuThesis::Light::Light EngineParameters::LightParams  light  ) 
 

Initialize the light with the given parameters.

Parameters:
light the light parameters.


Member Function Documentation

Util::Color GpuThesis::Light::getColor  )  const
 

Get the light's color.

Returns:
the light's color.

bool GpuThesis::Light::getDynamic  )  const
 

Check if the light is dynamic. A dynamic light gets its color from a fire simulation.

Returns:
whether the light is dynamic.

Math::Vector3d GpuThesis::Light::getPosition  )  const
 

Get the light's position.

Returns:
the light's position.

void GpuThesis::Light::setColor const Util::Color color  ) 
 

Set the light's color.

Parameters:
color the light's new color.

void GpuThesis::Light::setDynamic bool  dynamic  ) 
 

Set whether the light is dynamic.

Parameters:
dynamic whether the light is dynamic.

void GpuThesis::Light::setPosition const Math::Vector3d &  position  ) 
 

Set the light's position.

Parameters:
position the light's new position.


The documentation for this class was generated from the following files:
Generated on Fri Jun 16 08:42:50 2006 for GPU Thesis by  doxygen 1.4.6-NO