#include <Light.h>
Public Member Functions | |
Light () | |
virtual | ~Light () |
void | setDirection (const math::Vector3f &direction) |
void | setAmbient (const ColorRGBA &ambient) |
void | setDiffuse (const ColorRGBA &diffuse) |
void | setSpecular (const ColorRGBA &specular) |
void | setSpotParams (float32 exponent, float32 cutOff) |
void | setLightType (E_LIGHT_TYPE eType) |
const math::Vector3f & | getDirection () |
const ColorRGBA & | getAmbient () |
const ColorRGBA & | getDiffuse () |
const ColorRGBA & | getSpecular () |
E_LIGHT_TYPE | getLightType () |
void | getSpotParams (float32 &exponent, float32 &cutOff) |
void | setEnable (bool value) |
bool | isEnabled () |
void | setLightNumber (uint32 number) |
uint32 | getLightNumber () |
const char * | toString () |
scene::Light::Light | ( | ) |
Constructor
virtual scene::Light::~Light | ( | ) | [inline, virtual] |
Destructor
void scene::Light::setDirection | ( | const math::Vector3f & | direction | ) |
Set the light direction
direction | The direction value |
void scene::Light::setAmbient | ( | const ColorRGBA & | ambient | ) |
Set the ambient color
ambient | The ambient value |
void scene::Light::setDiffuse | ( | const ColorRGBA & | diffuse | ) |
Set the diffuse color
diffuse | The diffuse value |
void scene::Light::setSpecular | ( | const ColorRGBA & | specular | ) |
Set the specular color
specular | The specular value |
void scene::Light::setSpotParams | ( | float32 | exponent, | |
float32 | cutOff | |||
) |
Set the spot parameters
exponent | The exponent value | |
cutOff | The cutOff value |
void scene::Light::setLightType | ( | E_LIGHT_TYPE | eType | ) |
Set the light type
eType | The light type |
const math::Vector3f& scene::Light::getDirection | ( | ) |
Get the direction
const ColorRGBA& scene::Light::getAmbient | ( | ) |
Get the ambient color
const ColorRGBA& scene::Light::getDiffuse | ( | ) |
Get the diffuse color
const ColorRGBA& scene::Light::getSpecular | ( | ) |
Get the specular color
E_LIGHT_TYPE scene::Light::getLightType | ( | ) |
Get the light type
void scene::Light::getSpotParams | ( | float32 & | exponent, | |
float32 & | cutOff | |||
) |
Get the ambient color
exponent | The exponent value | |
cutOff | The cutOff value |
void scene::Light::setEnable | ( | bool | value | ) |
Enable the light
value | Set to enable the light |
bool scene::Light::isEnabled | ( | ) |
Verify if the light is enabled
void scene::Light::setLightNumber | ( | uint32 | number | ) |
Set the light number
number | Set to light number |
uint32 scene::Light::getLightNumber | ( | ) |
Get the light number
const char* scene::Light::toString | ( | ) | [inline, virtual] |