|
Public Types |
enum | TLightType { LT_POINT,
LT_DIRECTIONAL,
LT_SPOT
} |
Public Member Functions |
| CIvfOldLight () |
virtual | ~CIvfOldLight () |
CIvfOldLight & | operator= (const CIvfOldLight &) |
| operator void * () |
| IvfClassInfo ("CIvfOldLight", CIvfObject) |
void | setAmbient (const GLfloat r, const GLfloat g, const GLfloat b, const GLfloat a) |
void | setDiffuse (const GLfloat r, const GLfloat g, const GLfloat b, const GLfloat a) |
void | setSpecular (const GLfloat r, const GLfloat g, const GLfloat b, const GLfloat a) |
void | setPosition (const GLfloat x, const GLfloat y, const GLfloat z, const GLfloat w) |
void | setPosition (const GLfloat x, const GLfloat y, const GLfloat z) |
void | setDirection (const GLfloat x, const GLfloat y, const GLfloat z) |
void | setConstAtt (const GLint a) |
void | setLinAtt (const GLint a) |
void | setQuadAtt (const GLint a) |
void | getAmbient (GLfloat &r, GLfloat &g, GLfloat &b, GLfloat &a) const |
void | getDiffuse (GLfloat &r, GLfloat &g, GLfloat &b, GLfloat &a) const |
void | getSpecular (GLfloat &r, GLfloat &g, GLfloat &b, GLfloat &a) const |
void | getPosition (GLfloat &x, GLfloat &y, GLfloat &z, GLfloat &w) const |
void | getConstAtt (GLint &a) const |
void | getLinAtt (GLint &a) const |
void | getQuadAtt (GLint &a) const |
void | render () |
void | setSpotExponent (float exponent) |
float | getSpotExponent () |
void | setSpotCutoff (float cutoff) |
float | getSpotCutoff () |
void | setSpotDirection (float ex, float ey, float ez) |
void | getSpotDirection (float &ex, float &ey, float &ez) |
void | setType (TLightType lightType) |
TLightType | getType () |
void | activate () |
void | deactivate () |
Protected Member Functions |
| CIvfOldLight (const CIvfOldLight &) |
Static Protected Attributes |
static long | lightmask |
Implements a OpenGL lightsource. When used it determines an available light. If all lights are allocated in OpenGL the light will not be rendered.