#include <ThingLight.h>
Inherits Thing.
Inherited by ThingSpotlight.
Inheritance diagram for ThingLight:
Public Member Functions | |
ThingLight (void) | |
constructor | |
ThingLight (int glob) | |
virtual | ~ThingLight (void) |
destructor | |
void | setAmbient (float red, float green, float blue, float intensity) |
set the ambient term of the light | |
void | setDiffuse (float red, float green, float blue, float intensity) |
set the diffuse term of the light | |
void | setSpecular (float red, float green, float blue, float intensity) |
set the specular term of the light | |
void | setPosition (float x, float y, float z, float w) |
void | setConstantAttenuation (float intensity) |
void | setLinearAttenuation (float intensity) |
void | setQuadraticAttenuation (float intensity) |
LightSettings * | getAmbient () |
LightSettings * | getDiffuse () |
LightSettings * | getSpecular () |
bool | isOn () |
bool | shadowIsOn () |
void | switchLight () |
void | switchShadow () |
void | init () |
void | render () |
Public Attributes | |
int | zus |
Protected Attributes | |
bool | shadow |
bool | lightOn |
LightSettings | ambient |
LightSettings | diffuse |
LightSettings | specular |
float | attConstIntensity |
float | attLinIntensity |
float | attQuadIntensity |
float | position [4] |
Light Thing for the scenegraph. Ambient, diffuse and specular settings can be set, attenuation is also editable. Additionally shadow can be enabled for this light.
|
constructor
|
|
|
|
destructor
|
|
|
|
|
|
|
|
Reimplemented from Thing.
Reimplemented in ThingSpotlight.
|
|
|
|
Reimplemented from Thing.
Reimplemented in ThingSpotlight.
|
|
set the ambient term of the light
|
|
|
|
set the diffuse term of the light
|
|
|
|
|
|
|
|
set the specular term of the light
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in ThingSpotlight.
|
|
|
|
|
|
|