#include <Lightf.h>
Public Member Functions | |
Lightf () | |
virtual | ~Lightf () |
GLboolean | activatef (GLvoid) |
GLvoid | resetf (GLvoid) |
ES3Denum | setPositionDirectionf (ES3Denum type, GLfloat posDir[3]) |
GLvoid | getPositionf (GLfloat currentPosition[4]) |
GLvoid | getAttenuationf (GLfloat currentAttenuation[3]) |
GLenum | getLightNumberf (GLvoid) |
Static Public Member Functions | |
static Lightf * | getLightf (GLenum light) |
Public Attributes | |
Spotf | spot |
GLboolean | enableSpot |
GLfloat | ambient [4] |
GLfloat | diffuse [4] |
GLfloat | specular [4] |
GLfloat | emission [4] |
Classes | |
class | Spotf |
ES3D::Lightf::Lightf | ( | ) |
Constructor
ES3D::Lightf::~Lightf | ( | ) | [virtual] |
Destructor
GLboolean ES3D::Lightf::activatef | ( | GLvoid | ) |
Enables, activates the light. Tries to aquire a light. Updates all parameters.
GLvoid ES3D::Lightf::getAttenuationf | ( | GLfloat | currentAttenuation[3] | ) |
Rerieves and returns the current attenuation of the light
currentAttenuation | the array to store the attenuations |
Lightf * ES3D::Lightf::getLightf | ( | GLenum | light | ) | [static] |
Returns the light, if one exists.
light | the light to return |
GLenum ES3D::Lightf::getLightNumberf | ( | GLvoid | ) |
Returns the light number used by this light. Returns GL_MAX_LIGHTS if no one is associated to it.
GLvoid ES3D::Lightf::getPositionf | ( | GLfloat | currentPosition[4] | ) |
Retrieves and returns the current position (and type) of the light.
currentPosition | the array to store the position. |
GLvoid ES3D::Lightf::resetf | ( | GLvoid | ) |
Disables the light. Frees the resource.
ES3Denum ES3D::Lightf::setPositionDirectionf | ( | ES3Denum | type, | |
GLfloat | posDir[3] | |||
) |
Sets the position or direction of the light
type | positional or directional light | |
posDir | the position or direction of the light |
GLfloat ES3D::Lightf::ambient[4] |
Ambient light.
GLfloat ES3D::Lightf::diffuse[4] |
Diffuse light.
GLfloat ES3D::Lightf::emission[4] |
Emission light.
GLboolean ES3D::Lightf::enableSpot |
Flag, if spot is enabled
GLfloat ES3D::Lightf::specular[4] |
Specular light.
The spot light, if needed.