#include <ivf/IvfLight.h>
Inheritance diagram for CIvfLight:
Public Types | |
enum | TLightType { LT_POINT, LT_DIRECTIONAL, LT_SPOT } |
Public Member Functions | |
void | enable () |
void | disable () |
bool | isEnabled () |
void | setNumber (int number) |
IvfClassInfo ("CIvfLight", CIvfShape) | |
void | setAmbientColor (const float r, const float g, const float b, const float a) |
void | setDiffuseColor (const float r, const float g, const float b, const float a) |
void | setSpecularColor (const float r, const float g, const float b, const float a) |
void | setLightPosition (const float x, const float y, const float z, const float w) |
void | setLightPosition (const float x, const float y, const float z) |
void | setDirection (const float x, const float y, const float z) |
void | setConstAtt (const int a) |
void | setLinAtt (const int a) |
void | setQuadAtt (const int a) |
void | getAmbientColor (float &r, float &g, float &b, float &a) const |
void | getDiffuseColor (float &r, float &g, float &b, float &a) const |
void | getSpecularColor (float &r, float &g, float &b, float &a) const |
void | getLightPosition (float &x, float &y, float &z, float &w) const |
void | getConstAtt (int &a) const |
void | getLinAtt (int &a) const |
void | getQuadAtt (int &a) const |
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 () |
Protected Member Functions | |
virtual void | createGeometry () |
Implements a single OpenGL light source. Instances of the CIvfLight class should be retrieved from the CIvfLighting singleton.
Definition at line 40 of file IvfLight.h.
|
Forces an object recalculation. Reimplemented from CIvfShape. |
|
Disable light Reimplemented from CIvfObject. |
|
Enable light Reimplemented from CIvfObject. |
|
Return ambient light components |
|
return constant attenuation |
|
return diffuse light components |
|
return light position |
|
return linear attenuation |
|
return quadratic attenuation |
|
return specular light components |
|
Return spotlight cutoff angle |
|
Return spotlight direction |
|
Return spotlight exponent value |
|
Return current type of light |
|
Returns true if light enabled Reimplemented from CIvfObject. |
|
Set ambient light components |
|
Set constant attenuation |
|
Set diffuse light components |
|
Set light position
|
|
Set linear attenuation |
|
Set the number of the light = GL_LIGHT0 + number |
|
Set quadratic attenutation |
|
Set specular light components |
|
Set spotlight cutoff angle |
|
Set direction of spotlight |
|
Set spotlight exponent value |
|
Set light type param lightType can be LT_POINT for a point source, LT_DIRECTIONAL for a directional light source and LT_SPOT for a spotlight |