core | glapi | vbo | math | shader | swrast | swrast_setup | tnl | tnl_dd

gl_light_attrib Struct Reference

#include <mtypes.h>


Detailed Description

Lighting attribute group (GL_LIGHT_BIT).

Data Fields

struct gl_light Light [MAX_LIGHTS]
 Array of light sources.
struct gl_lightmodel Model
 Lighting model.
GLboolean Enabled
 Lighting enabled flag.
GLenum ShadeModel
 GL_FLAT or GL_SMOOTH.
GLenum ProvokingVertex
 GL_EXT_provoking_vertex.
GLenum ColorMaterialFace
 GL_FRONT, BACK or FRONT_AND_BACK.
GLenum ColorMaterialMode
 GL_AMBIENT, GL_DIFFUSE, etc.
GLbitfield ColorMaterialBitmask
 bitmask formed from Face and Mode
GLboolean ColorMaterialEnabled
GLenum ClampVertexColor
struct gl_light EnabledList
 List sentinel.
struct gl_material Material
 Must flush FLUSH_VERTICES before referencing:.
GLboolean _NeedEyeCoords
 Derived state for optimizations:.
GLboolean _NeedVertices
 Use fast shader?
GLbitfield _Flags
 LIGHT_* flags, see above.
GLfloat _BaseColor [2][3]

Field Documentation

struct gl_light gl_light_attrib::Light[MAX_LIGHTS] [read]

Array of light sources.

struct gl_lightmodel gl_light_attrib::Model [read]

Lighting model.

struct gl_material gl_light_attrib::Material [read]

Must flush FLUSH_VERTICES before referencing:.

Includes front & back values

GLboolean gl_light_attrib::Enabled

Lighting enabled flag.

GLenum gl_light_attrib::ShadeModel

GL_FLAT or GL_SMOOTH.

GLenum gl_light_attrib::ProvokingVertex

GL_EXT_provoking_vertex.

GLenum gl_light_attrib::ColorMaterialFace

GL_FRONT, BACK or FRONT_AND_BACK.

GLenum gl_light_attrib::ColorMaterialMode

GL_AMBIENT, GL_DIFFUSE, etc.

GLbitfield gl_light_attrib::ColorMaterialBitmask

bitmask formed from Face and Mode

GLboolean gl_light_attrib::ColorMaterialEnabled

GLenum gl_light_attrib::ClampVertexColor

struct gl_light gl_light_attrib::EnabledList [read]

List sentinel.

GLboolean gl_light_attrib::_NeedEyeCoords

Derived state for optimizations:.

GLboolean gl_light_attrib::_NeedVertices

Use fast shader?

GLbitfield gl_light_attrib::_Flags

LIGHT_* flags, see above.

GLfloat gl_light_attrib::_BaseColor[2][3]


The documentation for this struct was generated from the following file:
Generated on Sun Sep 27 06:47:47 2009 for Mesa Main by  doxygen 1.5.4