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