State management functions
Functions to modify and check CL state (enable/disable CL options).
More...
Detailed Description
The main purpose of CL is to organise data and pass it to OpenGL. How CL passes data to OpenGL can be controlled by setting various CL options. The functions provided to control and check CL state are clEnable(), clDisable(), and clIsEnabled(). These accept a number of different CLenums:
- CL_NONE: disable all options (pass nothing to OpenGL)
- CL_LIGHT_DISPLAY_LIST: generate and use OpenGL display lists for lights
- CL_MATERIAL_DISPLAY_LIST: generate and use OpenGL display lists for materials
- CL_TEXTURE_OBJECT: generate and use OpenGL texture objects for textures
- CL_COLOUR: pass colours to OpenGL when rendering meshes
- CL_MATERIAL: pass materials to OpenGL when rendering meshes
- CL_TEXTURE: pass textures to OpenGL when redering meshes
- CL_TEXTURE_ENV_MODE: set the OpenGL texture environment mode when rendering meshes
- CL_VERTICES: pass vertices to OpenGL when rendering meshes
- CL_NORMALS: pass per-vertex colours to OpenGL when rendering meshes
- CL_COLOURS: pass per-vertex colours to OpenGL when rendering meshes
- CL_TEXCOORDS: pass per-vertex colours to OpenGL when rendering meshes
- CL_EDGEFLAGS: pass per-vertex colours to OpenGL when rendering meshes
- CL_MESH_DISPLAY_LIST: generate and use OpenGL display lists for meshes
- CL_ALL: enable all options
By default, all options are enabled.
Generated on Thu Dec 27 13:53:42 2007 for CL by
1.4.6