KrisLibrary
1.0.0
|
An OpenGL light. More...
#include <GLLight.h>
Public Member Functions | |
GLLight (const Vector3 &direction) | |
GLLight (const Vector3 &position, const Vector3 &direction) | |
GLLight (const GLLight &light) | |
void | setColor (const GLColor &col) |
void | setPointLight (const Vector3 &pos) |
void | setDirectionalLight (const Vector3 &dir) |
void | setSpotLight (const Vector3 &pos, const Vector3 &dir, float exponent=0, float cutoff=180) |
void | setCurrentGL (const int id=0) |
Public Attributes | |
Vector4 | position |
float | att2 |
float | att1 |
float | att0 |
GLColor | diffuse |
GLColor | specular |
Vector3 | spot_direction |
float | spot_exponent |
float | spot_cutoff |
An OpenGL light.