[Previous Section] [Back to Table of Contents] [Next Section]

OpenGL Reference Manual (Addison-Wesley Publishing Company)


Chapter 4
Defined Constants and Associated Commands

This chapter lists all the defined constants in OpenGL and their corresponding commands; these constants might indicate a parameter name, a value for a parameter, a mode, a query target, or a return value. The list is intended to be used as another index into the reference pages: if you remember the name of a constant, you can use this table to find out which functions use it, and then you can refer to the reference pages for those functions for more information. Note that all the constants listed can be used directly by the corresponding commands; the reference pages list additional, related commands that might be of interest.
Constant Associated Commands

GL_2D, GL_3D, GL_3D_COLOR, GL_COLOR_TEXTURE, GL_4D_COLOR_TEXTURE

glFeedbackBuffer()

GL_2_BYTES, GL_3_BYTES, GL_4_BYTES

glCallLists()

GL_ACCUM

glAccum()

GL_ACCUM_ALPHA_BITS, GL_ACCUM_BLUE_BITS

glGet*()

GL_ACCUM_BUFFER_BIT

glClear(), glPushAttrib()

GL_ACCUM_CLEAR_VALUE, GL_ACCUM_GREEN_BITS, GL_ACCUM_RED_BITS

glGet*()

GL_ADD

glAccum()

GL_ALL_ATTRIB_BITS

glPushAttrib()

GL_ALPHA

glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_ALPHA_BIAS

glPixelTransfer*(), glGet*()

GL_ALPHA_BITS

glGet*()

GL_ALPHA_SCALE

glPixelTransfer*(), glGet*()

GL_ALPHA_TEST

glEnable(), glIsEnabled(), glGet*()

GL_ALPHA_TEST_FUNC, GL_ALPHA_TEST_REF

glGet*()

GL_ALWAYS

glAlphaFunc(), glDepthFunc(), glStencilFunc()

GL_AMBIENT

glLight*(), glGetLight*(), glMaterial*(), glGetMaterial*(), glColorMaterial()

GL_AMBIENT_AND_DIFFUSE

glMaterial*(), glGetMaterial*(), glColorMaterial()

GL_AND, GL_AND_INVERTED, GL_AND_REVERSE

glLogicOp()

GL_ATTRIB_STACK_DEPTH

glGet*()

GL_AUTO_NORMAL

glEnable(), glIsEnabled(), glGet*()

GL_AUX0 through GL_AUX3

glDrawBuffer(), glReadBuffer()

GL_AUX_BUFFERS

glGet*()

GL_BACK

glColorMaterial(), glCullFace(), glDrawBuffer(), glReadBuffer(), glMaterial*(), glGetMaterial*(), glPolygonMode()

GL_BACK_LEFT, GL_BACK_RIGHT

glDrawBuffer(), glReadBuffer()

GL_BITMAP

glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_BITMAP_TOKEN

glPassThrough()

GL_BLEND

glTexEnv*(), glGetTexEnv*(), glEnable(), glIsEnabled(), glGet*()

GL_BLEND_DST, GL_BLEND_SRC

glGet*()

GL_BLUE

glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_BLUE_BIAS

glPixelTransfer*(), glGet*()

GL_BLUE_BITS

glGet*()

GL_BLUE_SCALE

glPixelTransfer*(), glGet*()

GL_BYTE

glCallLists(), glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_CCW

glFrontFace()

GL_CLAMP

glTexParameter*()

GL_CLEAR

glLogicOp()

GL_CLIP_PLANE

glEnable(), glIsEnabled()

GL_CLIP_PLANE0 through GL_CLIP_PLANE5

glClipPlane(), glGetClipPlane(), glEnable(), glIsEnabled()

GL_COEFF

glGetMap*()

GL_COLOR

glCopyPixels()

GL_COLOR_BUFFER_BIT

glClear(), glPushAttrib()

GL_COLOR_CLEAR_VALUE

glGet*()

GL_COLOR_INDEX

glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_COLOR_INDEXES

glMaterial*(), glGetMaterial*()

GL_COLOR_MATERIAL

glEnable(), glIsEnabled(), glGet*()

GL_COLOR_MATERIAL_FACE, GL_COLOR_MATERIAL_PARAMETER

glGet*()

GL_COLOR_WRITEMASK

glGet*()

GL_COMPILE, GL_COMPILE_AND_EXECUTE

glNewList()

GL_CONSTANT_ATTENUATION

glLight*(), glGetLight*()

GL_COPY, GL_COPY_INVERTED

glLogicOp()

GL_COPY_PIXEL_TOKEN

glPassThrough()

GL_CULL_FACE

glEnable(), glIsEnabled(), glGet*()

GL_CULL_FACE_MODE

glGet*()

GL_CURRENT_BIT

glPushAttrib()

GL_CURRENT_COLOR, GL_CURRENT_INDEX, GL_CURRENT_NORMAL, GL_CURRENT_RASTER_COLOR, GL_CURRENT_RASTER_INDEX, GL_CURRENT_RASTER_POSITION, GL_CURRENT_RASTER_POSITION_VALID, GL_CURRENT_RASTER_TEXTURE_COORDS, GL_CURRENT_TEXTURE_COORDS

glGet*()

GL_CW

glFrontFace()

GL_DECAL

glTexEnv*(), glGetTexEnv*()

GL_DECR

glStencilOp()

GL_DEPTH

glCopyPixels()

GL_DEPTH_BIAS

glPixelTransfer*(), glGet*()

GL_DEPTH_BITS

glGet*()

GL_DEPTH_BUFFER_BIT

glClear(), glPushAttrib()

GL_DEPTH_CLEAR_VALUE

glGet*()

GL_DEPTH_COMPONENT

glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_DEPTH_FUNC

glGet*()

GL_DEPTH_RANGE

glGet*()

GL_DEPTH_SCALE

glPixelTransfer*(), glGet*()

GL_DEPTH_TEST

glEnable(), glIsEnabled(), glGet*()

GL_DEPTH_WRITEMASK

glGet*()

GL_DIFFUSE

glLight*(), glGetLight*(), glMaterial*(), glGetMaterial*(), glColorMaterial()

GL_DITHER

glEnable(), glIsEnabled(), glGet*()

GL_DOMAIN

glGetMap*()

GL_DONT_CARE

glHint()

GL_DOUBLEBUFFER

glGet*()

GL_DRAW_BUFFER

glGet*()

GL_DRAW_PIXEL_TOKEN

glPassThrough()

GL_DST_ALPHA, GL_DST_COLOR

glBlendFunc()

GL_EDGE_FLAG

glGet*()

GL_EMISSION

glMaterial*(), glGetMaterial*(), glColorMaterial()

GL_ENABLE_BIT

glPushAttrib()

GL_EQUAL

glAlphaFunc(), glDepthFunc(), glStencilFunc()

GL_EQUIV

glLogicOp()

GL_EVAL_BIT

glPushAttrib()

GL_EXP, GL_EXP2

glFog*()

GL_EXTENSIONS

glGetString()

GL_EYE_LINEAR

glTexGen*(), glGetTexGen*()

GL_EYE_PLANE

glTexGen*()

GL_FALSE

glColorMask(), glGet*(), glIsEnabled(), glIsList()

GL_FASTEST

glHint()

GL_FEEDBACK

glRenderMode()

GL_FILL

glPolygonMode(), glEvalMesh2()

GL_FLAT

glShadeModel()

GL_FLOAT

glCallLists(), glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_FOG

glEnable(), glIsEnabled(), glGet*()

GL_FOG_BIT

glPushAttrib()

GL_FOG_COLOR, GL_FOG_DENSITY, GL_FOG_END

glFog*(), glGet*()

GL_FOG_HINT

glHint()

GL_FOG_INDEX, GL_FOG_MODE, GL_FOG_START

glFog*(), glGet*()

GL_FRONT

glColorMaterial(), glCullFace(), glDrawBuffer(), glReadBuffer(), glMaterial*(), glGetMaterial*(), glPolygonMode()

GL_FRONT_AND_BACK

glColorMaterial(), glDrawBuffer(), glMaterial*(), glPolygonMode()

GL_FRONT_FACE

glGet*()

GL_FRONT_LEFT, GL_FRONT_RIGHT

glDrawBuffer(), glReadBuffer()

GL_GEQUAL, GL_GREATER

glDepthFunc(), glAlphaFunc(), glStencilFunc()

GL_GREEN

glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_GREEN_BIAS

glPixelTransfer*(), glGet*()

GL_GREEN_BITS

glGet*()

GL_GREEN_SCALE

glPixelTransfer*(), glGet*()

GL_HINT_BIT

glPushAttrib()

GL_INCR

glStencilOp()

GL_INDEX_BITS, GL_INDEX_CLEAR_VALUE, GL_INDEX_MODE

glGet*()

GL_INDEX_OFFSET, GL_INDEX_SHIFT

glPixelTransfer*(), glGet*()

GL_INDEX_WRITEMASK

glGet*()

GL_INT

glCallLists(), glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_INVALID_ENUM, GL_INVALID_OPERATION, GL_INVALID_VALUE

glGetError()

GL_INVERT

glLogicOp(), glStencilOp()

GL_KEEP

glStencilOp()

GL_LEFT

glDrawBuffer(), glReadBuffer()

GL_LEQUAL, GL_LESS

glDepthFunc(), glAlphaFunc(), glStencilFunc()

GL_LIGHT0 through GL_LIGHT7

glLight*(), glGetLight*(), glEnable(), glIsEnabled()

GL_LIGHTING

glEnable(), glIsEnabled(), glGet*()

GL_LIGHTING_BIT

glPushAttrib()

GL_LIGHT_MODEL_AMBIENT, GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_TWO_SIDE

glLightModel*(), glGet*()

GL_LINE

glPolygonMode(), glEvalMesh*()

GL_LINEAR

glFog*(), glTexParameter*()

GL_LINEAR_ATTENUATION

glLight*(), glGetLight*()

GL_LINEAR_MIPMAP_LINEAR, GL_LINEAR_MIPMAP_NEAREST

glTexParameter*()

GL_LINES

glBegin()

GL_LINE_BIT

glPushAttrib()

GL_LINE_LOOP

glBegin()

GL_LINE_RESET_TOKEN

glPassThrough()

GL_LINE_SMOOTH

glEnable(), glIsEnabled(), glGet*()

GL_LINE_SMOOTH_HINT

glHint(), glGet*()

GL_LINE_STIPPLE

glEnable(), glIsEnabled(), glGet*()

GL_LINE_STIPPLE_PATTERN, GL_LINE_STIPPLE_REPEAT

glGet*()

GL_LINE_STRIP

glBegin()

GL_LINE_TOKEN

glPassThrough()

GL_LINE_WIDTH, GL_LINE_WIDTH_GRANULARITY, GL_LINE_WIDTH_RANGE

glGet*()

GL_LIST_BASE

glGet*()

GL_LIST_BIT

glPushAttrib()

GL_LIST_INDEX, GL_LIST_MODE

glGet*()

GL_LOAD

glAccum()

GL_LOGIC_OP

glEnable(), glIsEnabled(), glGet*()

GL_LOGIC_OP_MODE

glGet*()

GL_LUMINANCE, GL_LUMINANCE_ALPHA

glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_MAP1_COLOR_4

glMap1*(), glEnable(), glIsEnabled(), glGetMap*()

GL_MAP1_GRID_DOMAIN, GL_MAP1_GRID_SEGMENTS

glGet*()

GL_MAP1_INDEX, GL_MAP1_NORMAL, GL_MAP1_TEXTURE_COORD_1 through GL_MAP1_TEXTURE_COORD_4, GL_MAP1_VERTEX_3, GL_MAP1_VERTEX_4

glMap1*(), glEnable(), glIsEnabled(), glGetMap*()

GL_MAP2_COLOR_4

glMap2*(), glEnable(), glIsEnabled(), glGet*()

GL_MAP2_GRID_DOMAIN

glGet*()

GL_MAP2_GRID_SEGMENTS

glGet*()

GL_MAP2_INDEX, GL_MAP2_NORMAL, GL_MAP2_TEXTURE_COORD_1 through GL_MAP2_TEXTURE_COORD_4, GL_MAP2_VERTEX_3, GL_MAP2_VERTEX_4

glMap2*(), glEnable(), glIsEnabled(), glGet*()

GL_MAP_COLOR, GL_MAP_STENCIL

glPixelTransfer*(), glGet*()

GL_MATRIX_MODE

glGet*()

GL_MAX_ATTRIB_STACK_DEPTH, GL_MAX_CLIP_PLANES, GL_MAX_EVAL_ORDER, GL_MAX_LIGHTS, GL_MAX_LIST_NESTING, GL_MAX_MODELVIEW_STACK_DEPTH, GL_MAX_NAME_STACK_DEPTH, GL_MAX_PIXEL_MAP_TABLE, GL_MAX_PROJECTION_STACK_DEPTH, GL_MAX_TEXTURE_SIZE, GL_MAX_TEXTURE_STACK_DEPTH, GL_MAX_VIEWPORT_DIMS

glGet*()

GL_MODELVIEW

glMatrixMode()

GL_MODELVIEW_MATRIX, GL_MODELVIEW_STACK_DEPTH

glGet*()

GL_MODULATE

glTexEnv*(), glGetTexEnv*()

GL_MULT

glAccum()

GL_NAME_STACK_DEPTH

glGet*()

GL_NAND

glLogicOp()

GL_NEAREST, GL_NEAREST_MIPMAP_LINEAR, GL_NEAREST_MIPMAP_NEAREST

glTexParameter*()

GL_NEVER

glDepthFunc(), glAlphaFunc(), glStencilFunc()

GL_NICEST

glHint()

GL_NONE

glDrawBuffer()

GL_NOOP, GL_NOR

glLogicOp()

GL_NORMALIZE

glEnable(), glIsEnabled(), glGet*()

GL_NOTEQUAL

glDepthFunc(), glAlphaFunc(), glStencilFunc()

GL_NO_ERROR

glGetError()

GL_OBJECT_LINEAR

glTexGen*(), glGetTexGen*()

GL_OBJECT_PLANE

glTexGen*()

GL_ONE, GL_ONE_MINUS_DST_ALPHA, GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_ALPHA, GL_ONE_MINUS_SRC_COLOR

glBlendFunc()

GL_OR, GL_OR_INVERTED, GL_OR_REVERSE

glLogicOp()

GL_ORDER

glGetMap*()

GL_OUT_OF_MEMORY

glGetError()

GL_PACK_ALIGNMENT, GL_PACK_LSB_FIRST, GL_PACK_ROW_LENGTH, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS, GL_PACK_SWAP_BYTES

glPixelStore*(), glGet*()

GL_PASS_THROUGH_TOKEN

glPassThrough()

GL_PERSPECTIVE_CORRECTION_HINT

glHint(), glGet*()

GL_PIXEL_MAP_*_TO_*

glPixelMap*(), glGetPixelMap*()

GL_PIXEL_MAP_*_TO_*_SIZE

glGet*()

GL_PIXEL_MODE_BIT

glPushAttrib()

GL_POINT

glPolygonMode(), glEvalMesh*()

GL_POINTS

glBegin()

GL_POINT_BIT

glPushAttrib()

GL_POINT_SIZE, GL_POINT_SIZE_GRANULARITY, GL_POINT_SIZE_RANGE

glGet*()

GL_POINT_SMOOTH

glEnable(), glIsEnabled(), glGet*()

GL_POINT_SMOOTH_HINT

glHint(), glGet*()

GL_POINT_TOKEN

glPassThrough()

GL_POLYGON

glBegin()

GL_POLYGON_BIT

glPushAttrib()

GL_POLYGON_MODE

glGet*()

GL_POLYGON_SMOOTH

glEnable(), glIsEnabled(), glGet*()

GL_POLYGON_SMOOTH_HINT

glHint(), glGet*()

GL_POLYGON_STIPPLE

glEnable(), glIsEnabled(), glGet*()

GL_POLYGON_STIPPLE_BIT

glPushAttrib()

GL_POLYGON_TOKEN

glPassThrough()

GL_POSITION

glLight*(), glGetLight*()

GL_PROJECTION

glMatrixMode()

GL_PROJECTION_MATRIX, GL_PROJECTION_STACK_DEPTH

glGet*()

GL_Q

glTexGen*(), glGetTexGen*()

GL_QUADRATIC_ATTENUATION

glLight*(), glGetLight*()

GL_QUADS, GL_QUAD_STRIP

glBegin()

GL_R

glTexGen*(), glGetTexGen*()

GL_READ_BUFFER

glGet*()

GL_RED

glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_RED_BIAS

glPixelTransfer*(), glGet*()

GL_RED_BITS

glGet*()

GL_RED_SCALE

glPixelTransfer*(), glGet*()

GL_RENDER

glRenderMode()

GL_RENDERER

glGetString()

GL_RENDER_MODE

glGet*()

GL_REPEAT

glTexParameter*()

GL_REPLACE

glStencilOp()

GL_RETURN

glAccum()

GL_RGB

glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_RGBA

glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_RGBA_MODE

glGet*()

GL_RIGHT

glDrawBuffer(), glReadBuffer()

GL_S

glTexGen*(), glGetTexGen*()

GL_SCISSOR_BIT

glPushAttrib()

GL_SCISSOR_BOX

glGet*()

GL_SCISSOR_TEST

glEnable(), glIsEnabled(), glGet*()

GL_SELECT

glRenderMode()

GL_SET

glLogicOp()

GL_SHININESS

glMaterial*(), glGetMaterial*()

GL_SHADE_MODEL

glGet*()

GL_SHORT

glCallLists(), glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_SMOOTH

glShadeModel()

GL_SPECULAR

glLight*(), glGetLight*(), glMaterial*(), glGetMaterial*(), glColorMaterial()

GL_SPHERE_MAP

glTexGen*(), glGetTexGen*()

GL_SPOT_CUTOFF, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT

glLight*(), glGetLight*()

GL_SRC_ALPHA, GL_SRC_ALPHA_SATURATE, GL_SRC_COLOR

glBlendFunc()

GL_STACK_OVERFLOW, GL_STACK_UNDERFLOW

glGetError()

GL_STENCIL

glCopyPixels()

GL_STENCIL_BITS

glGet*()

GL_STENCIL_BUFFER_BIT

glClear(), glPushAttrib()

GL_STENCIL_INDEX

glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_STENCIL_CLEAR_VALUE, GL_STENCIL_FAIL, GL_STENCIL_FUNC, GL_STENCIL_PASS_DEPTH_FAIL, GL_STENCIL_PASS_DEPTH_PASS, GL_STENCIL_REF

glGet*()

GL_STENCIL_TEST

glEnable(), glIsEnabled(), glGet*()

GL_STENCIL_VALUE_MASK, GL_STENCIL_WRITEMASK

glGet*()

GL_STEREO

glGet*()

GL_SUBPIXEL_BITS

glGet*()

GL_T

glTexGen*(), glGetTexGen*()

GL_TEXTURE

glMatrixMode()

GL_TEXTURE_1D

glTexImage1D(), glGetTexImage(), glTexParameter*(), glGetTexParameter*(), glGetTexLevelParameter*(), glEnable(), glIsEnabled(), glGet*()

GL_TEXTURE_2D

glTexImage2D(), glGetTexImage(), glTexParameter*(), glGetTexParameter*(), glGetTexLevelParameter*(), glEnable(), glIsEnabled(), glGet*()

GL_TEXTURE_BIT

glPushAttrib()

GL_TEXTURE_BORDER

glGetTexParameter*(), glGetTexLevelParameter*()

GL_TEXTURE_BORDER_COLOR

glTexParameter*(), glGetTexParameter*(), glGetTexLevelParameter*()

GL_TEXTURE_COMPONENTS

glGetTexParameter*(), glGetTexLevelParameter*()

GL_TEXTURE_ENV, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_ENV_MODE

glTexEnv*(), glGetTexEnv*()

GL_TEXTURE_GEN_MODE

glTexGen*()

GL_TEXTURE_GEN_Q, GL_TEXTURE_GEN_R, GL_TEXTURE_GEN_S, GL_TEXTURE_GEN_T

glEnable(), glIsEnabled(), glGet*()

GL_TEXTURE_HEIGHT

glGetTexParameter*(), glGetTexLevelParameter*()

GL_TEXTURE_MAG_FILTER

glTexParameter*(), glGetTexParameter*(), glGetTexLevelParameter*()

GL_TEXTURE_MATRIX

glGet*()

GL_TEXTURE_MIN_FILTER

glTexParameter*(), glGetTexParameter*(), glGetTexLevelParameter*()

GL_TEXTURE_STACK_DEPTH

glGet*()

GL_TEXTURE_WIDTH

glGetTexParameter*(), glGetTexLevelParameter*()

GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T

glTexParameter*(), glGetTexParameter*(), glGetTexLevelParameter*()

GL_TRANSFORM_BIT

glPushAttrib()

GL_TRIANGLES, GL_TRIANGLE_FAN, GL_TRIANGLE_STRIP

glBegin()

GL_TRUE

glColorMask(), glGet*(), glIsEnabled(), glIsList()

GL_UNPACK_ALIGNMENT, GL_UNPACK_LSB_FIRST, GL_UNPACK_ROW_LENGTH, GL_UNPACK_SKIP_PIXELS, GL_UNPACK_SKIP_ROWS, GL_UNPACK_SWAP_BYTES

glPixelStore*(), glGet*()

GL_UNSIGNED_BYTE, GL_UNSIGNED_INT, GL_UNSIGNED_SHORT

glCallLists(), glDrawPixels(), glReadPixels(), glTexImage1D(), glTexImage2D(), glGetTexImage()

GL_VENDOR, GL_VERSION

glGetString()

GL_VIEWPORT

glGet*()

GL_VIEWPORT_BIT

glPushAttrib()

GL_XOR

glLogicOp()

GL_ZERO

glBlendFunc(), glStencilOp()

GL_ZOOM_X, GL_ZOOM_Y

glGet*()


[Previous Section] [Back to Table of Contents] [Next Section]

OpenGL Reference Manual (Addison-Wesley Publishing Company)