Next: Lighting:
Up: OpenGL Quick Reference Guide
Previous: (Typically) Projection Transformations:
Options:
OpenGL offers a number of capabilities that may be enabled or disabled.
- glEnable(GLenum cap), glDisable(GLenum cap):
-
Enable/disable some option. Some common options include the
following. By default, all are initially disabled.
- GL_CULL_FACE: back-face culling (for hidden surface
removal)
- GL_DEPTH_TEST: depth-buffering (for hidden surface
removal)
- GL_FOG: fog
- GL_BLEND: color blending
- GL_LIGHTING: lighting
- GL_LIGHTi: turn on/off the ith light source
(0 <= i <= 7)
- GL_NORMALIZE: automatic normalization of normals
- GL_TEXTURE_2D: texture mapping
Note that options may be enabled and disabled for individual
polygons. For example, texture mapping may be turned on before
drawing one polygon, and then turned off for others.
Please report any errors or send comments to
Dave Mount
Last updated: Sat, Feb 8, 2003.