#include <gauge3d/renderer/light.h>
Inherits GAUGE3D::GObject.
Public Methods | |
virtual | ~GLight () |
virtual void | Show ()=0 |
Turn on the light. More... | |
virtual void | Hide ()=0 |
Turn off the light. | |
virtual void | Remove ()=0 |
Permenantly remove the light from the scene. | |
virtual void | Position (const GVector &position)=0 |
Set the position of the light, and make the light local. | |
virtual void | Direction (const GVector &direction)=0 |
Set the direction of the light, and make the light infinite. | |
virtual void | Color (float red,float green,float blue)=0 |
Set the color of the light. | |
virtual void | Color (const float color[])=0 |
Set the color of the light. (3-element array: RGB). | |
virtual void | LightProps (float ambient,float diffuse,float specular=0.0)=0 |
Set the properties of the light. More... | |
virtual void | LightProps2v (const float lightProps[])=0 |
Set the properties of the light. (ambient and diffuse). | |
virtual void | LightProps3v (const float lightProps[])=0 |
Set the properties of the light. (ambient, diffuse, and specular). | |
virtual void | Attenuation (float linear,float quadratic=0.0)=0 |
Sets linear and quadratic attenuation factors. (makes light dimmer with distance). | |
virtual void | Spotlight (const GVector &direction,float exponent,float width)=0 |
Make the light act like a spotlight. More... |
|
Turn on the light. All lights start out hidden. After you have cached the light, call Show() to enable it. Show and Hide are a good way to turn lights on and off. |
|
Set the properties of the light.
|
|
Make the light act like a spotlight.
|