#include <mtypes.h>
Data Fields | |
| gl_light * | next |
| double linked list with sentinel. More... | |
| gl_light * | prev |
| GLfloat | Ambient [4] |
| ambient color. More... | |
| GLfloat | Diffuse [4] |
| diffuse color. More... | |
| GLfloat | Specular [4] |
| specular color. More... | |
| GLfloat | EyePosition [4] |
| position in eye coordinates. More... | |
| GLfloat | EyeDirection [4] |
| spotlight dir in eye coordinates. More... | |
| GLfloat | SpotExponent |
| GLfloat | SpotCutoff |
| in degrees. More... | |
| GLfloat | _CosCutoff |
| = MAX(0, cos(SpotCutoff)). More... | |
| GLfloat | ConstantAttenuation |
| GLfloat | LinearAttenuation |
| GLfloat | QuadraticAttenuation |
| GLboolean | Enabled |
| On/off flag. More... | |
Derived fields | |
| GLuint | _Flags |
| State. More... | |
| GLfloat | _Position [4] |
| position in eye/obj coordinates. More... | |
| GLfloat | _VP_inf_norm [3] |
| Norm direction to infinite light. More... | |
| GLfloat | _h_inf_norm [3] |
| Norm( _VP_inf_norm + <0,0,1> ). More... | |
| GLfloat | _NormDirection [4] |
| normalized spotlight direction. More... | |
| GLfloat | _VP_inf_spot_attenuation |
| GLfloat | _SpotExpTable [EXP_TABLE_SIZE][2] |
| to replace a pow() call. More... | |
| GLfloat | _MatAmbient [2][3] |
| material ambient * light ambient. More... | |
| GLfloat | _MatDiffuse [2][3] |
| material diffuse * light diffuse. More... | |
| GLfloat | _MatSpecular [2][3] |
| material spec * light specular. More... | |
| GLfloat | _dli |
| CI diffuse light intensity. More... | |
| GLfloat | _sli |
| CI specular light intensity. More... | |
|
|
= MAX(0, cos(SpotCutoff)).
|
|
|
CI diffuse light intensity.
|
|
|
State.
|
|
|
Norm( _VP_inf_norm + <0,0,1> ).
|
|
|
material ambient * light ambient.
|
|
|
material diffuse * light diffuse.
|
|
|
material spec * light specular.
|
|
|
normalized spotlight direction.
|
|
|
position in eye/obj coordinates.
|
|
|
CI specular light intensity.
|
|
|
to replace a pow() call.
|
|
|
Norm direction to infinite light.
|
|
|
|
|
|
ambient color.
|
|
|
|
|
|
diffuse color.
|
|
|
On/off flag.
|
|
|
spotlight dir in eye coordinates.
|
|
|
position in eye coordinates.
|
|
|
|
|
|
double linked list with sentinel.
|
|
|
|
|
|
|
|
|
specular color.
|
|
|
in degrees.
|
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001