core  array_cache  math  swrast  swrast_setup  tnl  tnl_dd 
Main Page   Data Structures   File List   Data Fields   Globals   Related Pages  

gl_light Struct Reference

Light. More...

#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...


Detailed Description

Light.


Field Documentation

GLfloat gl_light::_CosCutoff
 

= MAX(0, cos(SpotCutoff)).

GLfloat gl_light::_dli
 

CI diffuse light intensity.

GLuint gl_light::_Flags
 

State.

GLfloat gl_light::_h_inf_norm[3]
 

Norm( _VP_inf_norm + <0,0,1> ).

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::_NormDirection[4]
 

normalized spotlight direction.

GLfloat gl_light::_Position[4]
 

position in eye/obj coordinates.

GLfloat gl_light::_sli
 

CI specular light intensity.

GLfloat gl_light::_SpotExpTable[EXP_TABLE_SIZE][2]
 

to replace a pow() call.

GLfloat gl_light::_VP_inf_norm[3]
 

Norm direction to infinite light.

GLfloat gl_light::_VP_inf_spot_attenuation
 

GLfloat gl_light::Ambient[4]
 

ambient color.

GLfloat gl_light::ConstantAttenuation
 

GLfloat gl_light::Diffuse[4]
 

diffuse color.

GLboolean gl_light::Enabled
 

On/off flag.

GLfloat gl_light::EyeDirection[4]
 

spotlight dir in eye coordinates.

GLfloat gl_light::EyePosition[4]
 

position in eye coordinates.

GLfloat gl_light::LinearAttenuation
 

struct gl_light* gl_light::next
 

double linked list with sentinel.

struct gl_light* gl_light::prev
 

GLfloat gl_light::QuadraticAttenuation
 

GLfloat gl_light::Specular[4]
 

specular color.

GLfloat gl_light::SpotCutoff
 

in degrees.

GLfloat gl_light::SpotExponent
 


The documentation for this struct was generated from the following file:
Generated on Sun May 16 15:55:13 2004 for Mesa Core by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001