#include <Lightf.h>
Public Member Functions | |
Spotf () | |
virtual | ~Spotf () |
GLvoid | setDirectionf (GLfloat newDirection[3]) |
GLvoid | shineAtf (GLfloat centerx, GLfloat centery, GLfloat centerz) |
GLvoid | setExponentf (GLfloat newExponent) |
GLvoid | setCutofff (GLfloat newCutoff) |
GLvoid | getDirectionf (GLfloat currentDirection[3]) |
GLfloat | getExponentf (GLvoid) |
GLfloat | getCutofff (GLvoid) |
ES3D::Lightf::Spotf::Spotf | ( | ) |
Constructor
ES3D::Lightf::Spotf::~Spotf | ( | ) | [virtual] |
Destructor
GLfloat ES3D::Lightf::Spotf::getCutofff | ( | GLvoid | ) |
Returns the cutoff
GLvoid ES3D::Lightf::Spotf::getDirectionf | ( | GLfloat | currentDirection[3] | ) |
Returns the current direction
currentDirection | the current direction |
GLfloat ES3D::Lightf::Spotf::getExponentf | ( | GLvoid | ) |
Returns the exponent
GLvoid ES3D::Lightf::Spotf::setCutofff | ( | GLfloat | newCutoff | ) |
Sets the new cutoff of the spotlight
newCutoff | the new cutoff |
GLvoid ES3D::Lightf::Spotf::setDirectionf | ( | GLfloat | newDirection[3] | ) |
Sets the new direction of the spotlight.
newDirection | the new direction |
GLvoid ES3D::Lightf::Spotf::setExponentf | ( | GLfloat | newExponent | ) |
Sets the new exponent of the spotlight.
newExponent | the new exponent |
GLvoid ES3D::Lightf::Spotf::shineAtf | ( | GLfloat | centerx, | |
GLfloat | centery, | |||
GLfloat | centerz | |||
) |
Changes direction to shine at the center from the current position. Silently ignores directional light.
centerx | x coordiante of the point to shine at | |
centery | y coordiante of the point to shine at | |
centerz | z coordiante of the point to shine at |