Export (0) Print
Expand All

Lighting State Variables

Applies to: desktop apps only

GL_LIGHTING
Description:True if lighting is enabled
Attribute group:lighting/enable
Initial value:GL_FALSE
Get command: glIsEnabled

 

GL_COLOR_MATERIAL
Description:True if color tracking is enabled
Attribute group:lighting
Initial value:GL_FALSE
Get command: glIsEnabled

 

GL_COLOR_MATERIAL_PARAMETER
Description:Material properties tracking current color
Attribute group:lighting
Initial value:GL_AMBIENT_AND_DIFFUSE
Get command: glGetIntegerv

 

GL_COLOR_MATERIAL_FACE
Description:Faces affected by color tracking
Attribute group:lighting
Initial value:GL_FRONT_AND_BACK
Get command: glGetIntegerv

 

GL_AMBIENT
Description:Ambient material color
Attribute group:lighting
Initial value:(0.2,0.2,0.2,1.0)
Get command: glGetMaterialfv

 

GL_DIFFUSE
Description:Diffuse material color
Attribute group:lighting
Initial value:(0.8,0.8,0.8,1.0)
Get command: glGetMaterialfv

 

GL_SPECULAR
Description:Specular material color
Attribute group:lighting
Initial value:(0.0,0.0,0.0,1.0)
Get command: glGetMaterialfv

 

GL_EMISSION
Description:Emissive material color
Attribute group:lighting
Initial value:(0.0,0.0,0.0,1.0)
Get command: glGetMaterialfv

 

GL_SHININESS
Description:Specular exponent of material
Attribute group:lighting
Initial value:0.0
Get command: glGetMaterialfv

 

GL_LIGHT_MODEL_AMBIENT
Description:Ambient scene color
Attribute group:lighting
Initial value:(0.2,0.2,0.2,1.0)
Get command: glGetFloatv

 

GL_LIGHT_MODEL_LOCAL_VIEWER
Description:Viewer is local
Attribute group:lighting
Initial value:GL_FALSE
Get command: glGetBooleanv

 

GL_LIGHT_MODEL_TWO_SIDE
Description:Use two-sided lighting
Attribute group:lighting
Initial value:GL_FALSE
Get command: glGetBooleanv

 

GL_AMBIENT
Description:Ambient intensity of light i
Attribute group:lighting
Initial value:(0.0,0.0,0.0,1.0)
Get command: glGetLightfv

 

GL_DIFFUSE
Description:Diffuse intensity of light i
Attribute group:lighting
Initial value:
Get command: glGetLightfv

 

GL_SPECULAR
Description:Specular intensity of light i
Attribute group:lighting
Initial value:
Get command: glGetLightfv

 

GL_POSITION
Description:Position of light i
Attribute group:lighting
Initial value:(0.0,0.0,1.0,0.0)
Get command: glGetLightfv

 

GL_CONSTANT_ATTENUATION
Description:Constant attenuation factor
Attribute group:lighting
Initial value:1.0
Get command: glGetLightfv

 

GL_LINEAR_ATTENUATION
Description:Linear attenuation factor
Attribute group:lighting
Initial value:0.0
Get command: glGetLightfv

 

GL_QUADRATIC_ATTENUATION
Description:Quadratic attenuation factor
Attribute group:lighting
Initial value:0.0
Get command: glGetLightfv

 

GL_SPOT_DIRECTION
Description:Spotlight direction of light i
Attribute group:lighting
Initial value:(0.0,0.0,-1.0)
Get command: glGetLightfv

 

GL_SPOT_EXPONENT
Description:Spotlight exponent of light i
Attribute group:lighting
Initial value:0.0
Get command: glGetLightfv

 

GL_SPOT_CUTOFF
Description:Spotlight angle of light i
Attribute group:lighting
Initial value:180.0
Get command: glGetLightfv

 

GL_LIGHT i
Description:True if light i enabled
Attribute group:lighting/enable
Initial value:GL_FALSE
Get command: glIsEnabled

 

GL_COLOR_INDEXES
Description:C (a), C (d), and C (s) for color-index lighting
Attribute group:lighting/enable
Initial value:0,1,1
Get command: glGetFloatv

 

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Community Additions

ADD
Show:
© 2014 Microsoft