From c7b3127165b9995561d5c7d7d6ca1184f089c797 Mon Sep 17 00:00:00 2001 From: Daniel Hartwig Date: Thu, 18 Jul 2013 18:11:16 +0800 Subject: [PATCH] update upstream sources --- doc/low-level-gl-enums.texi | 2531 ++++--- doc/low-level-gl.texi | 6454 ++++++++-------- doc/low-level-glu.texi | 956 +-- doc/low-level-glx-enums.texi | 84 +- doc/low-level-glx.texi | 660 +- figl/gl/enums.scm | 371 +- figl/gl/low-level.scm | 6460 +++++++++-------- figl/glu/low-level.scm | 1166 +-- figl/glx/low-level.scm | 722 +- upstream-doc/man3/glBindBuffer.xml | 2 +- .../man3/glBindFragDataLocationIndexed.xml | 4 +- upstream-doc/man3/glBindSampler.xml | 2 +- upstream-doc/man3/glBlendFunc.xml | 10 +- .../man3/glCheckFramebufferStatus.xml | 2 +- upstream-doc/man3/glClearBuffer.xml | 2 +- upstream-doc/man3/glCompressedTexImage2D.xml | 2 +- upstream-doc/man3/glCopyTexImage1D.xml | 52 +- upstream-doc/man3/glCopyTexImage2D.xml | 82 +- upstream-doc/man3/glCopyTexSubImage1D.xml | 29 +- upstream-doc/man3/glCopyTexSubImage2D.xml | 49 +- upstream-doc/man3/glCopyTexSubImage3D.xml | 56 +- upstream-doc/man3/glDrawBuffers.xml | 2 +- .../man3/glFlushMappedBufferRange.xml | 4 +- upstream-doc/man3/glFramebufferTexture.xml | 4 +- .../man3/glFramebufferTextureLayer.xml | 2 +- upstream-doc/man3/glGet.xml | 65 +- upstream-doc/man3/glGetActiveAttrib.xml | 2 +- upstream-doc/man3/glGetActiveUniform.xml | 9 +- upstream-doc/man3/glGetActiveUniformBlock.xml | 4 +- upstream-doc/man3/glGetActiveUniformsiv.xml | 6 +- upstream-doc/man3/glGetBufferParameter.xml | 14 +- upstream-doc/man3/glGetBufferParameteriv.xml | 149 - .../glGetFramebufferAttachmentParameter.xml | 6 +- upstream-doc/man3/glGetTexLevelParameter.xml | 20 +- .../man3/glGetTransformFeedbackVarying.xml | 6 +- upstream-doc/man3/glIsEnabled.xml | 2 +- upstream-doc/man3/glLinkProgram.xml | 2 +- upstream-doc/man3/glPointSize.xml | 6 - upstream-doc/man3/glReadPixels.xml | 13 +- upstream-doc/man3/glTexBuffer.xml | 4 +- upstream-doc/man3/glTexImage1D.xml | 19 +- upstream-doc/man3/glTexImage2D.xml | 19 +- upstream-doc/man3/glTexImage3D.xml | 24 +- upstream-doc/man3/glTexSubImage1D.xml | 21 +- upstream-doc/man3/glTexSubImage2D.xml | 37 +- upstream-doc/man3/glTexSubImage3D.xml | 51 +- upstream-doc/man3/glVertexAttrib.xml | 15 +- upstream-doc/man3/glVertexAttribDivisor.xml | 4 +- upstream-doc/man3/xhtml/glBindBuffer.xml | 112 +- .../xhtml/glBindFragDataLocationIndexed.xml | 6 +- upstream-doc/man3/xhtml/glBindSampler.xml | 4 +- upstream-doc/man3/xhtml/glBlendFunc.xml | 10 +- .../man3/xhtml/glCheckFramebufferStatus.xml | 4 +- upstream-doc/man3/xhtml/glClearBuffer.xml | 2 +- .../man3/xhtml/glCompressedTexImage2D.xml | 4 +- upstream-doc/man3/xhtml/glCopyTexImage1D.xml | 53 +- upstream-doc/man3/xhtml/glCopyTexImage2D.xml | 83 +- .../man3/xhtml/glCopyTexSubImage1D.xml | 30 +- .../man3/xhtml/glCopyTexSubImage2D.xml | 51 +- .../man3/xhtml/glCopyTexSubImage3D.xml | 56 +- upstream-doc/man3/xhtml/glDrawBuffers.xml | 4 +- .../man3/xhtml/glFlushMappedBufferRange.xml | 4 +- .../man3/xhtml/glFramebufferTexture.xml | 4 +- .../man3/xhtml/glFramebufferTextureLayer.xml | 4 +- upstream-doc/man3/xhtml/glGet.xml | 37 +- upstream-doc/man3/xhtml/glGetActiveAttrib.xml | 4 +- .../man3/xhtml/glGetActiveUniform.xml | 39 +- .../man3/xhtml/glGetActiveUniformBlock.xml | 28 +- .../man3/xhtml/glGetActiveUniformsiv.xml | 6 +- .../man3/xhtml/glGetBufferParameter.xml | 5 +- .../glGetFramebufferAttachmentParameter.xml | 38 +- .../man3/xhtml/glGetTexLevelParameter.xml | 16 +- .../xhtml/glGetTransformFeedbackVarying.xml | 6 +- upstream-doc/man3/xhtml/glIsEnabled.xml | 2 +- upstream-doc/man3/xhtml/glLinkProgram.xml | 4 +- upstream-doc/man3/xhtml/glPointSize.xml | 6 +- upstream-doc/man3/xhtml/glReadPixels.xml | 42 +- upstream-doc/man3/xhtml/glTexBuffer.xml | 4 +- upstream-doc/man3/xhtml/glTexImage1D.xml | 21 +- upstream-doc/man3/xhtml/glTexImage2D.xml | 19 +- upstream-doc/man3/xhtml/glTexImage3D.xml | 26 +- upstream-doc/man3/xhtml/glTexSubImage1D.xml | 23 +- upstream-doc/man3/xhtml/glTexSubImage2D.xml | 37 +- upstream-doc/man3/xhtml/glTexSubImage3D.xml | 51 +- upstream-doc/man3/xhtml/glVertexAttrib.xml | 11 +- .../man3/xhtml/glVertexAttribDivisor.xml | 24 +- upstream-doc/man4/glBindBuffer.xml | 2 +- .../man4/glBindFragDataLocationIndexed.xml | 2 +- upstream-doc/man4/glBindSampler.xml | 2 +- upstream-doc/man4/glBlendFunc.xml | 10 +- .../man4/glCheckFramebufferStatus.xml | 2 +- upstream-doc/man4/glClearBuffer.xml | 2 +- upstream-doc/man4/glCompressedTexImage2D.xml | 2 +- upstream-doc/man4/glCopyTexImage1D.xml | 65 +- upstream-doc/man4/glCopyTexImage2D.xml | 98 +- upstream-doc/man4/glCopyTexSubImage1D.xml | 31 +- upstream-doc/man4/glCopyTexSubImage2D.xml | 46 +- upstream-doc/man4/glCopyTexSubImage3D.xml | 52 +- upstream-doc/man4/glDebugMessageControl.xml | 15 +- upstream-doc/man4/glDebugMessageInsert.xml | 10 +- upstream-doc/man4/glDrawBuffers.xml | 2 +- .../man4/glFlushMappedBufferRange.xml | 4 +- upstream-doc/man4/glFramebufferTexture.xml | 4 +- .../man4/glFramebufferTextureLayer.xml | 2 +- upstream-doc/man4/glGet.xml | 61 +- upstream-doc/man4/glGetActiveAttrib.xml | 2 +- upstream-doc/man4/glGetActiveUniform.xml | 5 +- upstream-doc/man4/glGetActiveUniformBlock.xml | 4 +- upstream-doc/man4/glGetBufferParameter.xml | 1 + .../glGetFramebufferAttachmentParameter.xml | 4 +- upstream-doc/man4/glGetTexLevelParameter.xml | 20 +- .../man4/glGetTransformFeedbackVarying.xml | 6 +- upstream-doc/man4/glIsEnabled.xml | 2 +- upstream-doc/man4/glLinkProgram.xml | 2 +- upstream-doc/man4/glPointSize.xml | 6 - upstream-doc/man4/glReadPixels.xml | 12 +- upstream-doc/man4/glTexBuffer.xml | 4 +- upstream-doc/man4/glTexImage1D.xml | 44 +- upstream-doc/man4/glTexImage2D.xml | 43 +- upstream-doc/man4/glTexImage2DMultisample.xml | 4 +- upstream-doc/man4/glTexImage3D.xml | 45 +- upstream-doc/man4/glVertexAttrib.xml | 6 +- upstream-doc/man4/glVertexAttribDivisor.xml | 4 +- upstream-doc/man4/xhtml/glBindBuffer.xml | 2 +- .../xhtml/glBindFragDataLocationIndexed.xml | 2 +- upstream-doc/man4/xhtml/glBindSampler.xml | 2 +- upstream-doc/man4/xhtml/glBlendFunc.xml | 8 +- .../man4/xhtml/glCheckFramebufferStatus.xml | 2 +- upstream-doc/man4/xhtml/glClearBuffer.xml | 2 +- .../man4/xhtml/glCompressedTexImage2D.xml | 2 +- upstream-doc/man4/xhtml/glCopyTexImage1D.xml | 60 +- upstream-doc/man4/xhtml/glCopyTexImage2D.xml | 93 +- .../man4/xhtml/glCopyTexSubImage1D.xml | 27 +- .../man4/xhtml/glCopyTexSubImage2D.xml | 42 +- .../man4/xhtml/glCopyTexSubImage3D.xml | 48 +- .../man4/xhtml/glDebugMessageControl.xml | 14 +- .../man4/xhtml/glDebugMessageInsert.xml | 7 +- .../man4/xhtml/glDisableVertexAttribArray.xml | 2 +- upstream-doc/man4/xhtml/glDrawBuffers.xml | 2 +- .../man4/xhtml/glEndConditionalRender.xml | 2 +- upstream-doc/man4/xhtml/glEndQuery.xml | 2 +- .../man4/xhtml/glEndTransformFeedback.xml | 2 +- .../man4/xhtml/glFlushMappedBufferRange.xml | 4 +- .../man4/xhtml/glFramebufferTexture.xml | 4 +- .../man4/xhtml/glFramebufferTextureLayer.xml | 2 +- upstream-doc/man4/xhtml/glGet.xml | 33 +- upstream-doc/man4/xhtml/glGetActiveAttrib.xml | 2 +- .../man4/xhtml/glGetActiveUniform.xml | 5 +- .../man4/xhtml/glGetActiveUniformBlock.xml | 4 +- .../man4/xhtml/glGetBufferParameter.xml | 1 + .../glGetFramebufferAttachmentParameter.xml | 4 +- .../man4/xhtml/glGetTexLevelParameter.xml | 16 +- .../xhtml/glGetTransformFeedbackVarying.xml | 6 +- upstream-doc/man4/xhtml/glIsEnabled.xml | 2 +- upstream-doc/man4/xhtml/glLinkProgram.xml | 2 +- upstream-doc/man4/xhtml/glPointSize.xml | 4 - upstream-doc/man4/xhtml/glReadPixels.xml | 11 +- upstream-doc/man4/xhtml/glTexBuffer.xml | 4 +- upstream-doc/man4/xhtml/glTexImage1D.xml | 49 +- upstream-doc/man4/xhtml/glTexImage2D.xml | 48 +- .../man4/xhtml/glTexImage2DMultisample.xml | 2 +- upstream-doc/man4/xhtml/glTexImage3D.xml | 46 +- upstream-doc/man4/xhtml/glUnmapBuffer.xml | 2 +- upstream-doc/man4/xhtml/glVertexAttrib.xml | 6 +- .../man4/xhtml/glVertexAttribDivisor.xml | 4 +- upstream-doc/manglsl/all.xml | 6 +- upstream-doc/manglsl/any.xml | 6 +- upstream-doc/manglsl/fma.xml | 4 +- upstream-doc/manglsl/gl_PointSize.xml | 11 +- upstream-doc/manglsl/gl_PrimitiveID.xml | 68 +- upstream-doc/manglsl/sign.xml | 12 +- upstream-doc/manglsl/xhtml/all.xml | 4 +- upstream-doc/manglsl/xhtml/any.xml | 4 +- upstream-doc/manglsl/xhtml/fma.xml | 4 +- upstream-doc/manglsl/xhtml/gl_PointSize.xml | 8 +- upstream-doc/manglsl/xhtml/gl_PrimitiveID.xml | 38 +- upstream-doc/manglsl/xhtml/sign.xml | 12 +- upstream-doc/spec/enum.spec | 548 +- upstream-doc/spec/enumext.spec | 122 +- upstream-doc/spec/gl.spec | 133 +- upstream-doc/spec/gl.tm | 58 +- upstream-doc/spec/glx.spec | 9 +- upstream-doc/spec/glxenum.spec | 21 +- upstream-doc/spec/glxenumext.spec | 15 +- upstream-doc/spec/wgl.spec | 11 +- upstream-doc/spec/wglenum.spec | 33 +- upstream-doc/spec/wglenumext.spec | 21 +- 187 files changed, 11295 insertions(+), 12147 deletions(-) delete mode 100644 upstream-doc/man3/glGetBufferParameteriv.xml diff --git a/doc/low-level-gl-enums.texi b/doc/low-level-gl-enums.texi index 703043d..6f82d41 100644 --- a/doc/low-level-gl-enums.texi +++ b/doc/low-level-gl-enums.texi @@ -11,10 +11,10 @@ The functions from this section may be had by loading the module: @end example @defmac attrib-mask bit... -Bitfield constructor. The symbolic @var{bit} arguments are replaced with -their corresponding numeric values and combined with @code{logior} at -compile-time. The symbolic arguments known to this bitfield constructor -are: +Bitfield constructor. The symbolic @var{bit} arguments are replaced +with their corresponding numeric values and combined with @code{logior} +at compile-time. The symbolic arguments known to this bitfield +constructor are: @code{current}, @code{point}, @code{line}, @code{polygon}, @code{polygon-stipple}, @code{pixel-mode}, @code{lighting}, @code{fog}, @@ -26,8 +26,8 @@ are: @end defmac @defmac version-1-3 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{multisample-bit}, @code{multisample}, @@ -69,8 +69,8 @@ known to this enumerated value form are: @end defmac @defmac arb-multisample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{multisample-bit-arb}, @code{multisample-arb}, @@ -82,8 +82,8 @@ known to this enumerated value form are: @end defmac @defmac ext-multisample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{multisample-bit-ext}, @code{multisample-ext}, @@ -98,8 +98,8 @@ known to this enumerated value form are: @end defmac @defmac 3dfx-multisample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{multisample-bit-3dfx}, @code{multisample-3dfx}, @@ -109,10 +109,10 @@ known to this enumerated value form are: @end defmac @defmac clear-buffer-mask bit... -Bitfield constructor. The symbolic @var{bit} arguments are replaced with -their corresponding numeric values and combined with @code{logior} at -compile-time. The symbolic arguments known to this bitfield constructor -are: +Bitfield constructor. The symbolic @var{bit} arguments are replaced +with their corresponding numeric values and combined with @code{logior} +at compile-time. The symbolic arguments known to this bitfield +constructor are: @code{depth-buffer}, @code{accum-buffer}, @code{stencil-buffer}, @code{color-buffer}, @code{coverage-buffer-bit-nv}. @@ -120,10 +120,10 @@ are: @end defmac @defmac client-attrib-mask bit... -Bitfield constructor. The symbolic @var{bit} arguments are replaced with -their corresponding numeric values and combined with @code{logior} at -compile-time. The symbolic arguments known to this bitfield constructor -are: +Bitfield constructor. The symbolic @var{bit} arguments are replaced +with their corresponding numeric values and combined with @code{logior} +at compile-time. The symbolic arguments known to this bitfield +constructor are: @code{client-pixel-store}, @code{client-vertex-array}, @code{client-all-attrib}. @@ -131,8 +131,8 @@ are: @end defmac @defmac version-3-0 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{map-read-bit}, @code{map-write-bit}, @@ -326,10 +326,10 @@ known to this enumerated value form are: @end defmac @defmac arb-map-buffer-range bit... -Bitfield constructor. The symbolic @var{bit} arguments are replaced with -their corresponding numeric values and combined with @code{logior} at -compile-time. The symbolic arguments known to this bitfield constructor -are: +Bitfield constructor. The symbolic @var{bit} arguments are replaced +with their corresponding numeric values and combined with @code{logior} +at compile-time. The symbolic arguments known to this bitfield +constructor are: @code{map-read}, @code{map-write}, @code{map-invalidate-range}, @code{map-invalidate-buffer}, @code{map-flush-explicit}, @@ -338,8 +338,8 @@ are: @end defmac @defmac ext-map-buffer-range enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{map-read-bit-ext}, @code{map-write-bit-ext}, @@ -350,8 +350,8 @@ known to this enumerated value form are: @end defmac @defmac version-4-3 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{context-flag-debug-bit}, @code{num-shading-language-versions}, @@ -360,8 +360,8 @@ known to this enumerated value form are: @end defmac @defmac khr-debug enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{context-flag-debug-bit}, @code{debug-output-synchronous}, @@ -386,8 +386,8 @@ known to this enumerated value form are: @end defmac @defmac arb-robustness enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{context-flag-robust-access-bit-arb}, @@ -399,8 +399,8 @@ known to this enumerated value form are: @end defmac @defmac arb-separate-shader-objects enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-shader-bit}, @code{fragment-shader-bit}, @@ -412,8 +412,8 @@ known to this enumerated value form are: @end defmac @defmac arb-compute-shader enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compute-shader-bit}, @code{max-compute-shared-memory-size}, @@ -434,20 +434,19 @@ known to this enumerated value form are: @end defmac @defmac ext-separate-shader-objects enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-shader-bit-ext}, @code{fragment-shader-bit-ext}, @code{all-shader-bits-ext}, @code{program-separable-ext}, -@code{active-program-ext}, @code{program-pipeline-binding-ext}, -@code{active-program-ext}. +@code{program-pipeline-binding-ext}, @code{active-program-ext}. @end defmac @defmac ext-shader-image-load-store enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-attrib-array-barrier-bit-ext}, @@ -490,8 +489,8 @@ known to this enumerated value form are: @end defmac @defmac arb-shader-image-load-store enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-attrib-array-barrier-bit}, @@ -536,8 +535,8 @@ known to this enumerated value form are: @end defmac @defmac arb-shader-storage-buffer-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{shader-storage-barrier-bit}, @code{shader-storage-buffer}, @@ -559,8 +558,8 @@ known to this enumerated value form are: @end defmac @defmac intel-map-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{layout-default-intel}, @code{layout-linear-intel}, @@ -570,17 +569,17 @@ known to this enumerated value form are: @end defmac @defmac boolean enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{false}, @code{true}. @end defmac -@defmac begin-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +@defmac primitive-type enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{points}, @code{lines}, @code{line-loop}, @code{line-strip}, @@ -590,8 +589,8 @@ known to this enumerated value form are: @end defmac @defmac version-3-2 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{lines-adjacency}, @code{line-strip-adjacency}, @@ -636,8 +635,8 @@ known to this enumerated value form are: @end defmac @defmac arb-geometry-shader-4 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{lines-adjacency-arb}, @code{line-strip-adjacency-arb}, @@ -714,8 +713,8 @@ known to this enumerated value form are: @end defmac @defmac nv-geometry-program-4 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{lines-adjacency-ext}, @code{line-strip-adjacency-ext}, @@ -734,8 +733,8 @@ known to this enumerated value form are: @end defmac @defmac arb-tessellation-shader enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{patches}, @code{uniform-block-referenced-by-tess-control-shader}, @@ -765,8 +764,8 @@ known to this enumerated value form are: @end defmac @defmac nv-gpu-shader-5 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{patches}, @code{int64-nv}, @code{unsigned-int64-nv}, @@ -785,8 +784,8 @@ known to this enumerated value form are: @end defmac @defmac accum-op enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{accum}, @code{load}, @code{return}, @code{mult}, @code{add}. @@ -794,8 +793,8 @@ known to this enumerated value form are: @end defmac @defmac alpha-function enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{never}, @code{less}, @code{equal}, @code{lequal}, @code{greater}, @@ -804,8 +803,8 @@ known to this enumerated value form are: @end defmac @defmac blending-factor-dest enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{zero}, @code{one}, @code{src-color}, @code{one-minus-src-color}, @@ -817,8 +816,8 @@ known to this enumerated value form are: @end defmac @defmac blending-factor-src enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{zero}, @code{one}, @code{dst-color}, @code{one-minus-dst-color}, @@ -830,8 +829,8 @@ known to this enumerated value form are: @end defmac @defmac blend-equation-mode-ext enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{logic-op}, @code{func-add-ext}, @code{min-ext}, @code{max-ext}, @@ -841,8 +840,8 @@ known to this enumerated value form are: @end defmac @defmac color-material-face enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{front}, @code{back}, @code{front-and-back}. @@ -850,8 +849,8 @@ known to this enumerated value form are: @end defmac @defmac color-material-parameter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{ambient}, @code{diffuse}, @code{specular}, @code{emission}, @@ -860,8 +859,8 @@ known to this enumerated value form are: @end defmac @defmac color-pointer-type enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{byte}, @code{unsigned-byte}, @code{short}, @code{unsigned-short}, @@ -870,8 +869,8 @@ known to this enumerated value form are: @end defmac @defmac color-table-parameter-p-name-sgi enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{color-table-scale-sgi}, @code{color-table-bias-sgi}. @@ -879,8 +878,8 @@ known to this enumerated value form are: @end defmac @defmac color-table-target-sgi enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{color-table-sgi}, @code{post-convolution-color-table-sgi}, @@ -892,8 +891,8 @@ known to this enumerated value form are: @end defmac @defmac convolution-border-mode-ext enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{reduce-ext}. @@ -901,8 +900,8 @@ known to this enumerated value form are: @end defmac @defmac convolution-parameter-ext enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{convolution-border-mode-ext}, @code{convolution-filter-scale-ext}, @@ -911,8 +910,8 @@ known to this enumerated value form are: @end defmac @defmac convolution-target-ext enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{convolution-1d-ext}, @code{convolution-2d-ext}. @@ -920,8 +919,8 @@ known to this enumerated value form are: @end defmac @defmac cull-face-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{front}, @code{back}, @code{front-and-back}. @@ -929,8 +928,8 @@ known to this enumerated value form are: @end defmac @defmac depth-function enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{never}, @code{less}, @code{equal}, @code{lequal}, @code{greater}, @@ -939,8 +938,8 @@ known to this enumerated value form are: @end defmac @defmac draw-buffer-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{none}, @code{front-left}, @code{front-right}, @code{back-left}, @@ -951,8 +950,8 @@ known to this enumerated value form are: @end defmac @defmac oes-framebuffer-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fog}, @code{lighting}, @code{texture-1d}, @code{texture-2d}, @@ -1029,8 +1028,8 @@ known to this enumerated value form are: @end defmac @defmac enable-cap enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fog}, @code{lighting}, @code{texture-1d}, @code{texture-2d}, @@ -1081,8 +1080,8 @@ known to this enumerated value form are: @end defmac @defmac error-code enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{no-error}, @code{invalid-enum}, @code{invalid-value}, @@ -1093,8 +1092,8 @@ known to this enumerated value form are: @end defmac @defmac arb-framebuffer-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{invalid-framebuffer-operation}, @@ -1178,8 +1177,8 @@ known to this enumerated value form are: @end defmac @defmac ext-framebuffer-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{invalid-framebuffer-operation-ext}, @@ -1245,8 +1244,8 @@ known to this enumerated value form are: @end defmac @defmac feedback-type enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{2d}, @code{3d}, @code{3d-color}, @code{3d-color-texture}, @@ -1255,8 +1254,8 @@ known to this enumerated value form are: @end defmac @defmac feed-back-token enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pass-through-token}, @code{point-token}, @code{line-token}, @@ -1266,10 +1265,10 @@ known to this enumerated value form are: @end defmac @defmac ffd-mask-sgix bit... -Bitfield constructor. The symbolic @var{bit} arguments are replaced with -their corresponding numeric values and combined with @code{logior} at -compile-time. The symbolic arguments known to this bitfield constructor -are: +Bitfield constructor. The symbolic @var{bit} arguments are replaced +with their corresponding numeric values and combined with @code{logior} +at compile-time. The symbolic arguments known to this bitfield +constructor are: @code{texture-deformation-bit-sgix}, @code{geometry-deformation-bit-sgix}. @@ -1277,8 +1276,8 @@ are: @end defmac @defmac ffd-target-sgix enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{geometry-deformation-sgix}, @code{texture-deformation-sgix}. @@ -1286,8 +1285,8 @@ known to this enumerated value form are: @end defmac @defmac fog-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{linear}, @code{exp}, @code{exp2}, @code{fog-func-sgis}. @@ -1295,8 +1294,8 @@ known to this enumerated value form are: @end defmac @defmac fog-parameter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fog-color}, @code{fog-density}, @code{fog-end}, @code{fog-index}, @@ -1305,8 +1304,8 @@ known to this enumerated value form are: @end defmac @defmac fragment-light-model-parameter-sgix enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fragment-light-model-local-viewer-sgix}, @@ -1317,8 +1316,8 @@ known to this enumerated value form are: @end defmac @defmac front-face-direction enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{cw}, @code{ccw}. @@ -1326,8 +1325,8 @@ known to this enumerated value form are: @end defmac @defmac get-color-table-parameter-p-name-sgi enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{color-table-scale-sgi}, @code{color-table-bias-sgi}, @@ -1340,8 +1339,8 @@ known to this enumerated value form are: @end defmac @defmac get-convolution-parameter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{convolution-border-mode-ext}, @code{convolution-filter-scale-ext}, @@ -1352,8 +1351,8 @@ known to this enumerated value form are: @end defmac @defmac get-histogram-parameter-p-name-ext enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{histogram-width-ext}, @code{histogram-format-ext}, @@ -1364,8 +1363,8 @@ known to this enumerated value form are: @end defmac @defmac get-map-query enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{coeff}, @code{order}, @code{domain}. @@ -1373,8 +1372,8 @@ known to this enumerated value form are: @end defmac @defmac get-minmax-parameter-p-name-ext enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{minmax-format-ext}, @code{minmax-sink-ext}. @@ -1382,8 +1381,8 @@ known to this enumerated value form are: @end defmac @defmac get-pixel-map enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pixel-map-i-to-i}, @code{pixel-map-s-to-s}, @@ -1395,8 +1394,8 @@ known to this enumerated value form are: @end defmac @defmac get-pointerv-p-name enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-array-pointer}, @code{normal-array-pointer}, @@ -1408,8 +1407,8 @@ known to this enumerated value form are: @end defmac @defmac get-p-name enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{current-color}, @code{current-index}, @code{current-normal}, @@ -1591,9 +1590,25 @@ known to this enumerated value form are: @end defmac +@defmac ext-vertex-weighting enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{modelview0-stack-depth-ext}, @code{modelview0-matrix-ext}, +@code{modelview0-ext}, @code{modelview1-stack-depth-ext}, +@code{modelview1-matrix-ext}, @code{vertex-weighting-ext}, +@code{modelview1-ext}, @code{current-vertex-weight-ext}, +@code{vertex-weight-array-ext}, @code{vertex-weight-array-size-ext}, +@code{vertex-weight-array-type-ext}, +@code{vertex-weight-array-stride-ext}, +@code{vertex-weight-array-pointer-ext}. + +@end defmac + @defmac qcom-alpha-test enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{alpha-test-qcom}, @code{alpha-test-func-qcom}, @@ -1602,8 +1617,8 @@ known to this enumerated value form are: @end defmac @defmac ext-unpack-subimage enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{unpack-row-length}, @code{unpack-skip-rows}, @@ -1612,8 +1627,8 @@ known to this enumerated value form are: @end defmac @defmac ext-multiview-draw-buffers enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{draw-buffer-ext}, @code{read-buffer-ext}, @code{draw-buffer-ext}, @@ -1623,8 +1638,8 @@ known to this enumerated value form are: @end defmac @defmac nv-read-buffer enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{read-buffer-nv}. @@ -1632,8 +1647,8 @@ known to this enumerated value form are: @end defmac @defmac get-texture-parameter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-mag-filter}, @code{texture-min-filter}, @@ -1668,8 +1683,8 @@ known to this enumerated value form are: @end defmac @defmac nv-texture-border-clamp enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-border-color-nv}, @code{clamp-to-border-nv}. @@ -1677,8 +1692,8 @@ known to this enumerated value form are: @end defmac @defmac hint-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{dont-care}, @code{fastest}, @code{nicest}. @@ -1686,8 +1701,8 @@ known to this enumerated value form are: @end defmac @defmac hint-target enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{perspective-correction-hint}, @code{point-smooth-hint}, @@ -1699,8 +1714,8 @@ known to this enumerated value form are: @end defmac @defmac histogram-target-ext enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{histogram-ext}, @code{proxy-histogram-ext}. @@ -1708,8 +1723,8 @@ known to this enumerated value form are: @end defmac @defmac index-pointer-type enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{short}, @code{int}, @code{float}, @code{double}. @@ -1717,8 +1732,8 @@ known to this enumerated value form are: @end defmac @defmac light-env-mode-sgix enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{replace}, @code{modulate}, @code{add}. @@ -1726,8 +1741,8 @@ known to this enumerated value form are: @end defmac @defmac light-env-parameter-sgix enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{light-env-mode-sgix}. @@ -1735,8 +1750,8 @@ known to this enumerated value form are: @end defmac @defmac light-model-color-control enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{single-color}, @code{separate-specular-color}. @@ -1744,8 +1759,8 @@ known to this enumerated value form are: @end defmac @defmac light-model-parameter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{light-model-ambient}, @code{light-model-local-viewer}, @@ -1754,8 +1769,8 @@ known to this enumerated value form are: @end defmac @defmac light-parameter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{ambient}, @code{diffuse}, @code{specular}, @code{position}, @@ -1766,8 +1781,8 @@ known to this enumerated value form are: @end defmac @defmac list-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compile}, @code{compile-and-execute}. @@ -1775,8 +1790,8 @@ known to this enumerated value form are: @end defmac @defmac data-type enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{byte}, @code{unsigned-byte}, @code{short}, @code{unsigned-short}, @@ -1786,18 +1801,18 @@ known to this enumerated value form are: @end defmac @defmac oes-element-index-uint bit... -Bitfield constructor. The symbolic @var{bit} arguments are replaced with -their corresponding numeric values and combined with @code{logior} at -compile-time. The symbolic arguments known to this bitfield constructor -are: +Bitfield constructor. The symbolic @var{bit} arguments are replaced +with their corresponding numeric values and combined with @code{logior} +at compile-time. The symbolic arguments known to this bitfield +constructor are: . @end defmac @defmac oes-texture-float enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{half-float-oes}. @@ -1805,8 +1820,8 @@ known to this enumerated value form are: @end defmac @defmac ext-vertex-attrib-64-bit enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{double-mat2-ext}, @code{double-mat3-ext}, @code{double-mat4-ext}, @@ -1818,8 +1833,8 @@ known to this enumerated value form are: @end defmac @defmac arb-half-float-vertex enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{half-float}. @@ -1827,8 +1842,8 @@ known to this enumerated value form are: @end defmac @defmac arb-half-float-pixel enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{half-float-arb}. @@ -1836,8 +1851,8 @@ known to this enumerated value form are: @end defmac @defmac nv-half-float enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{half-float-nv}. @@ -1845,8 +1860,8 @@ known to this enumerated value form are: @end defmac @defmac apple-float-pixels enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{half-apple}, @code{rgba-float32-apple}, @code{rgb-float32-apple}, @@ -1860,8 +1875,8 @@ known to this enumerated value form are: @end defmac @defmac arb-es2-compatibility enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fixed}, @code{implementation-color-read-type}, @@ -1875,8 +1890,8 @@ known to this enumerated value form are: @end defmac @defmac oes-fixed-point enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fixed-oes}. @@ -1884,8 +1899,8 @@ known to this enumerated value form are: @end defmac @defmac nv-vertex-attrib-integer-64-bit enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{int64-nv}, @code{unsigned-int64-nv}. @@ -1893,8 +1908,8 @@ known to this enumerated value form are: @end defmac @defmac list-name-type enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{byte}, @code{unsigned-byte}, @code{short}, @code{unsigned-short}, @@ -1904,8 +1919,8 @@ known to this enumerated value form are: @end defmac @defmac list-parameter-name enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{list-priority-sgix}. @@ -1913,8 +1928,8 @@ known to this enumerated value form are: @end defmac @defmac logic-op enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{clear}, @code{and}, @code{and-reverse}, @code{copy}, @@ -1925,8 +1940,8 @@ known to this enumerated value form are: @end defmac @defmac map-target enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{map1-color-4}, @code{map1-index}, @code{map1-normal}, @@ -1941,8 +1956,8 @@ known to this enumerated value form are: @end defmac @defmac material-face enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{front}, @code{back}, @code{front-and-back}. @@ -1950,8 +1965,8 @@ known to this enumerated value form are: @end defmac @defmac material-parameter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{emission}, @code{shininess}, @code{ambient-and-diffuse}, @@ -1960,8 +1975,8 @@ known to this enumerated value form are: @end defmac @defmac matrix-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{modelview}, @code{projection}, @code{texture}. @@ -1969,8 +1984,8 @@ known to this enumerated value form are: @end defmac @defmac mesh-mode-1 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{point}, @code{line}. @@ -1978,8 +1993,8 @@ known to this enumerated value form are: @end defmac @defmac mesh-mode-2 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{point}, @code{line}, @code{fill}. @@ -1987,8 +2002,8 @@ known to this enumerated value form are: @end defmac @defmac minmax-target-ext enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{minmax-ext}. @@ -1996,8 +2011,8 @@ known to this enumerated value form are: @end defmac @defmac normal-pointer-type enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{byte}, @code{short}, @code{int}, @code{float}, @code{double}. @@ -2005,8 +2020,8 @@ known to this enumerated value form are: @end defmac @defmac pixel-copy-type enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{color}, @code{depth}, @code{stencil}. @@ -2014,8 +2029,8 @@ known to this enumerated value form are: @end defmac @defmac ext-discard-framebuffer enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{color-ext}, @code{depth-ext}, @code{stencil-ext}. @@ -2023,21 +2038,17 @@ known to this enumerated value form are: @end defmac @defmac pixel-format enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: -@code{color-index}, @code{stencil-index}, @code{depth-component}, -@code{red}, @code{green}, @code{blue}, @code{alpha}, @code{rgb}, -@code{rgba}, @code{luminance}, @code{luminance-alpha}, @code{abgr-ext}, -@code{cmyk-ext}, @code{cmyka-ext}, @code{ycrcb-422-sgix}, -@code{ycrcb-444-sgix}. +@code{red-ext}. @end defmac @defmac oes-depth-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{red-ext}. @@ -2045,8 +2056,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-rg enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{red-ext}, @code{rg-ext}, @code{r8-ext}, @code{rg8-ext}. @@ -2054,8 +2065,8 @@ known to this enumerated value form are: @end defmac @defmac pixel-map enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pixel-map-i-to-i}, @code{pixel-map-s-to-s}, @@ -2067,8 +2078,8 @@ known to this enumerated value form are: @end defmac @defmac pixel-store-parameter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{unpack-swap-bytes}, @code{unpack-lsb-first}, @@ -2089,8 +2100,8 @@ known to this enumerated value form are: @end defmac @defmac pixel-store-resample-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{resample-replicate-sgix}, @code{resample-zero-fill-sgix}, @@ -2099,8 +2110,8 @@ known to this enumerated value form are: @end defmac @defmac pixel-store-subsample-rate enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pixel-subsample-4444-sgix}, @code{pixel-subsample-2424-sgix}, @@ -2109,20 +2120,19 @@ known to this enumerated value form are: @end defmac @defmac pixel-tex-gen-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: -@code{none}, @code{rgb}, @code{rgba}, @code{luminance}, -@code{luminance-alpha}, @code{pixel-tex-gen-alpha-replace-sgix}, +@code{none}, @code{pixel-tex-gen-alpha-replace-sgix}, @code{pixel-tex-gen-alpha-no-replace-sgix}, @code{pixel-tex-gen-alpha-ms-sgix}, @code{pixel-tex-gen-alpha-ls-sgix}. @end defmac @defmac pixel-tex-gen-parameter-name-sgis enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pixel-fragment-rgb-source-sgis}, @@ -2131,8 +2141,8 @@ known to this enumerated value form are: @end defmac @defmac pixel-transfer-parameter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{map-color}, @code{map-stencil}, @code{index-shift}, @@ -2160,8 +2170,8 @@ known to this enumerated value form are: @end defmac @defmac pixel-type enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{bitmap}, @code{byte}, @code{unsigned-byte}, @code{short}, @@ -2173,8 +2183,8 @@ known to this enumerated value form are: @end defmac @defmac point-parameter-name-sgis enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{point-size-min-sgis}, @code{point-size-max-sgis}, @@ -2183,8 +2193,8 @@ known to this enumerated value form are: @end defmac @defmac polygon-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{point}, @code{line}, @code{fill}. @@ -2192,8 +2202,8 @@ known to this enumerated value form are: @end defmac @defmac read-buffer-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{front-left}, @code{front-right}, @code{back-left}, @@ -2203,8 +2213,8 @@ known to this enumerated value form are: @end defmac @defmac rendering-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{render}, @code{feedback}, @code{select}. @@ -2212,8 +2222,8 @@ known to this enumerated value form are: @end defmac @defmac sample-pattern-sgis enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{1pass-sgis}, @code{2pass-0-sgis}, @code{2pass-1-sgis}, @@ -2223,8 +2233,8 @@ known to this enumerated value form are: @end defmac @defmac separable-target-ext enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{separable-2d-ext}. @@ -2232,8 +2242,8 @@ known to this enumerated value form are: @end defmac @defmac shading-model enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{flat}, @code{smooth}. @@ -2241,8 +2251,8 @@ known to this enumerated value form are: @end defmac @defmac stencil-function enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{never}, @code{less}, @code{equal}, @code{lequal}, @code{greater}, @@ -2251,8 +2261,8 @@ known to this enumerated value form are: @end defmac @defmac stencil-op enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{zero}, @code{keep}, @code{replace}, @code{incr}, @code{decr}, @@ -2261,8 +2271,8 @@ known to this enumerated value form are: @end defmac @defmac string-name enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vendor}, @code{renderer}, @code{version}, @code{extensions}. @@ -2270,8 +2280,8 @@ known to this enumerated value form are: @end defmac @defmac tex-coord-pointer-type enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{short}, @code{int}, @code{float}, @code{double}. @@ -2279,8 +2289,8 @@ known to this enumerated value form are: @end defmac @defmac texture-coord-name enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{s}, @code{t}, @code{r}, @code{q}. @@ -2288,8 +2298,8 @@ known to this enumerated value form are: @end defmac @defmac texture-env-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{modulate}, @code{decal}, @code{blend}, @code{replace-ext}, @@ -2298,8 +2308,8 @@ known to this enumerated value form are: @end defmac @defmac texture-env-parameter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-env-mode}, @code{texture-env-color}. @@ -2307,8 +2317,8 @@ known to this enumerated value form are: @end defmac @defmac texture-env-target enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-env}. @@ -2316,8 +2326,8 @@ known to this enumerated value form are: @end defmac @defmac texture-filter-func-sgis enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{filter4-sgis}. @@ -2325,8 +2335,8 @@ known to this enumerated value form are: @end defmac @defmac texture-gen-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{eye-linear}, @code{object-linear}, @code{sphere-map}, @@ -2336,8 +2346,8 @@ known to this enumerated value form are: @end defmac @defmac texture-gen-parameter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-gen-mode}, @code{object-plane}, @code{eye-plane}, @@ -2347,8 +2357,8 @@ known to this enumerated value form are: @end defmac @defmac oes-texture-cube-map enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-gen-mode}, @code{normal-map-oes}, @@ -2365,8 +2375,8 @@ known to this enumerated value form are: @end defmac @defmac texture-mag-filter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{nearest}, @code{linear}, @code{linear-detail-sgis}, @@ -2379,8 +2389,8 @@ known to this enumerated value form are: @end defmac @defmac texture-min-filter enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{nearest}, @code{linear}, @code{nearest-mipmap-nearest}, @@ -2394,8 +2404,8 @@ known to this enumerated value form are: @end defmac @defmac texture-parameter-name enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-mag-filter}, @code{texture-min-filter}, @@ -2419,8 +2429,8 @@ known to this enumerated value form are: @end defmac @defmac texture-target enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-1d}, @code{texture-2d}, @code{proxy-texture-1d}, @@ -2433,8 +2443,8 @@ known to this enumerated value form are: @end defmac @defmac texture-wrap-mode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{clamp}, @code{repeat}, @code{clamp-to-border-sgis}, @@ -2443,8 +2453,8 @@ known to this enumerated value form are: @end defmac @defmac pixel-internal-format enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{r3-g3-b2}, @code{alpha4}, @code{alpha8}, @code{alpha12}, @@ -2473,8 +2483,8 @@ known to this enumerated value form are: @end defmac @defmac oes-rgb-8-rgba-8 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rgb8}, @code{rgba8}. @@ -2482,8 +2492,8 @@ known to this enumerated value form are: @end defmac @defmac interleaved-array-format enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{v2f}, @code{v3f}, @code{c4ub-v2f}, @code{c4ub-v3f}, @@ -2494,8 +2504,8 @@ known to this enumerated value form are: @end defmac @defmac vertex-pointer-type enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{short}, @code{int}, @code{float}, @code{double}. @@ -2503,8 +2513,8 @@ known to this enumerated value form are: @end defmac @defmac clip-plane-name enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{clip-plane0}, @code{clip-plane1}, @code{clip-plane2}, @@ -2513,8 +2523,8 @@ known to this enumerated value form are: @end defmac @defmac light-name enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{light0}, @code{light1}, @code{light2}, @code{light3}, @@ -2527,8 +2537,8 @@ known to this enumerated value form are: @end defmac @defmac ext-abgr enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{abgr-ext}. @@ -2536,8 +2546,8 @@ known to this enumerated value form are: @end defmac @defmac version-1-2 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{constant-color}, @code{one-minus-constant-color}, @@ -2601,8 +2611,8 @@ known to this enumerated value form are: @end defmac @defmac ext-blend-color enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{constant-color-ext}, @code{one-minus-constant-color-ext}, @@ -2612,8 +2622,8 @@ known to this enumerated value form are: @end defmac @defmac ext-blend-minmax enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{func-add}, @code{func-add-ext}, @code{min}, @code{min-ext}, @@ -2623,8 +2633,8 @@ known to this enumerated value form are: @end defmac @defmac version-2-0 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{blend-equation-rgb}, @code{vertex-attrib-array-enabled}, @@ -2692,8 +2702,8 @@ known to this enumerated value form are: @end defmac @defmac ext-blend-equation-separate enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{blend-equation-rgb-ext}, @code{blend-equation-alpha-ext}. @@ -2701,8 +2711,8 @@ known to this enumerated value form are: @end defmac @defmac oes-blend-equation-separate enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{blend-equation-rgb-oes}, @code{blend-equation-alpha-oes}. @@ -2710,8 +2720,8 @@ known to this enumerated value form are: @end defmac @defmac ext-blend-subtract enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{func-subtract}, @code{func-subtract-ext}, @@ -2720,8 +2730,8 @@ known to this enumerated value form are: @end defmac @defmac oes-blend-subtract enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{func-add-oes}, @code{blend-equation-oes}, @@ -2730,8 +2740,8 @@ known to this enumerated value form are: @end defmac @defmac ext-cmyka enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{cmyk-ext}, @code{cmyka-ext}, @code{pack-cmyk-hint-ext}, @@ -2740,8 +2750,8 @@ known to this enumerated value form are: @end defmac @defmac ext-convolution enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{convolution-1d-ext}, @code{convolution-2d-ext}, @@ -2762,8 +2772,8 @@ known to this enumerated value form are: @end defmac @defmac ext-histogram enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{histogram-ext}, @code{proxy-histogram-ext}, @@ -2777,8 +2787,8 @@ known to this enumerated value form are: @end defmac @defmac ext-packed-pixels enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{unsigned-byte-3-3-2-ext}, @code{unsigned-short-4-4-4-4-ext}, @@ -2793,8 +2803,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-type-2-10-10-10-rev enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{polygon-offset-ext}, @code{polygon-offset-factor-ext}, @@ -2803,8 +2813,8 @@ known to this enumerated value form are: @end defmac @defmac ext-polygon-offset enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{polygon-offset-ext}, @code{polygon-offset-factor-ext}, @@ -2813,8 +2823,8 @@ known to this enumerated value form are: @end defmac @defmac ext-rescale-normal enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rescale-normal-ext}. @@ -2822,8 +2832,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{alpha4-ext}, @code{alpha8-ext}, @code{alpha12-ext}, @@ -2846,9 +2856,18 @@ known to this enumerated value form are: @end defmac +@defmac arm-rgba-8 enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{rgba8-oes}. + +@end defmac + @defmac ext-texture-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-priority-ext}, @code{texture-resident-ext}, @@ -2858,8 +2877,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-3d enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pack-skip-images-ext}, @code{pack-image-height-ext}, @@ -2871,8 +2890,8 @@ known to this enumerated value form are: @end defmac @defmac oes-texture-3d enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-3d-binding-oes}, @code{texture-3d-oes}, @@ -2883,8 +2902,8 @@ known to this enumerated value form are: @end defmac @defmac ext-vertex-array enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-array-ext}, @code{normal-array-ext}, @@ -2909,8 +2928,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-interlace enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{interlace-sgix}. @@ -2918,8 +2937,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-detail-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{detail-texture-2d-sgis}, @code{detail-texture-2d-binding-sgis}, @@ -2930,8 +2949,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-multisample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{multisample-sgis}, @code{sample-alpha-to-mask-sgis}, @@ -2944,18 +2963,9 @@ known to this enumerated value form are: @end defmac -@defmac nv-multisample-coverage enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments -known to this enumerated value form are: - -@code{coverage-samples-nv}, @code{color-samples-nv}. - -@end defmac - @defmac sgis-sharpen-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{linear-sharpen-sgis}, @code{linear-sharpen-alpha-sgis}, @@ -2965,8 +2975,8 @@ known to this enumerated value form are: @end defmac @defmac sgi-color-matrix enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{color-matrix-sgi}, @code{color-matrix-stack-depth-sgi}, @@ -2983,8 +2993,8 @@ known to this enumerated value form are: @end defmac @defmac sgi-texture-color-table enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-color-table-sgi}, @code{proxy-texture-color-table-sgi}. @@ -2992,17 +3002,26 @@ known to this enumerated value form are: @end defmac @defmac sgix-texture-add-env enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-env-bias-sgix}. @end defmac +@defmac arb-shadow-ambient enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{texture-compare-fail-value-arb}. + +@end defmac + @defmac sgix-shadow-ambient enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{shadow-ambient-sgix}. @@ -3010,8 +3029,8 @@ known to this enumerated value form are: @end defmac @defmac version-1-4 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{blend-dst-rgb}, @code{blend-src-rgb}, @code{blend-dst-alpha}, @@ -3037,8 +3056,8 @@ known to this enumerated value form are: @end defmac @defmac ext-blend-func-separate enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{blend-dst-rgb-ext}, @code{blend-src-rgb-ext}, @@ -3047,8 +3066,8 @@ known to this enumerated value form are: @end defmac @defmac oes-blend-func-separate enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{blend-dst-rgb-oes}, @code{blend-src-rgb-oes}, @@ -3057,8 +3076,8 @@ known to this enumerated value form are: @end defmac @defmac ext-422-pixels enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{422-ext}, @code{422-rev-ext}, @code{422-average-ext}, @@ -3067,8 +3086,8 @@ known to this enumerated value form are: @end defmac @defmac sgi-color-table enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{color-table-sgi}, @code{post-convolution-color-table-sgi}, @@ -3085,8 +3104,8 @@ known to this enumerated value form are: @end defmac @defmac arb-vertex-array-bgra enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{bgr-ext}, @code{bgra-ext}. @@ -3094,17 +3113,65 @@ known to this enumerated value form are: @end defmac @defmac ext-bgra enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{bgr-ext}, @code{bgra-ext}. @end defmac +@defmac ext-paletted-texture enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{color-index1-ext}, @code{color-index2-ext}, +@code{color-index4-ext}, @code{color-index8-ext}, +@code{color-index12-ext}, @code{color-index16-ext}, +@code{texture-index-size-ext}. + +@end defmac + +@defmac ext-draw-range-elements enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{max-elements-vertices-ext}, @code{max-elements-indices-ext}. + +@end defmac + +@defmac win-phong-shading enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{phong-win}, @code{phong-hint-win}. + +@end defmac + +@defmac win-specular-fog enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{fog-specular-texture-win}. + +@end defmac + +@defmac ext-clip-volume-hint enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{clip-volume-clipping-hint-ext}. + +@end defmac + @defmac sgis-texture-select enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{dual-alpha4-sgis}, @code{dual-alpha8-sgis}, @@ -3122,8 +3189,8 @@ known to this enumerated value form are: @end defmac @defmac arb-point-parameters enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{point-size-min-arb}, @code{point-size-max-arb}, @@ -3133,8 +3200,8 @@ known to this enumerated value form are: @end defmac @defmac ext-point-parameters enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{point-size-min-ext}, @code{point-size-max-ext}, @@ -3143,8 +3210,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-point-parameters enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{point-size-min-sgis}, @code{point-size-max-sgis}, @@ -3153,8 +3220,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-fog-function enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fog-func-sgis}, @code{fog-func-points-sgis}, @@ -3163,8 +3230,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-border-clamp enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{clamp-to-border-arb}. @@ -3172,8 +3239,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-texture-border-clamp enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{clamp-to-border-sgis}. @@ -3181,8 +3248,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-texture-multi-buffer enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-multi-buffer-hint-sgix}. @@ -3190,8 +3257,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-texture-edge-clamp enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{clamp-to-edge-sgis}. @@ -3199,8 +3266,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-texture-4d enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pack-skip-volumes-sgis}, @code{pack-image-depth-sgis}, @@ -3212,8 +3279,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-pixel-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pixel-tex-gen-sgix}, @code{pixel-tex-gen-mode-sgix}. @@ -3221,8 +3288,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-texture-lod enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-min-lod-sgis}, @code{texture-max-lod-sgis}, @@ -3231,8 +3298,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-pixel-tiles enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pixel-tile-best-alignment-sgix}, @@ -3244,8 +3311,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-texture-filter-4 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{filter4-sgis}, @code{texture-filter4-size-sgis}. @@ -3253,8 +3320,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-sprite enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sprite-sgix}, @code{sprite-mode-sgix}, @code{sprite-axis-sgix}, @@ -3264,8 +3331,8 @@ known to this enumerated value form are: @end defmac @defmac hp-convolution-border-modes enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{ignore-border-hp}, @code{constant-border-hp}, @@ -3273,9 +3340,44 @@ known to this enumerated value form are: @end defmac +@defmac hp-image-transform enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{image-scale-x-hp}, @code{image-scale-y-hp}, +@code{image-translate-x-hp}, @code{image-translate-y-hp}, +@code{image-rotate-angle-hp}, @code{image-rotate-origin-x-hp}, +@code{image-rotate-origin-y-hp}, @code{image-mag-filter-hp}, +@code{image-min-filter-hp}, @code{image-cubic-weight-hp}, +@code{cubic-hp}, @code{average-hp}, @code{image-transform-2d-hp}, +@code{post-image-transform-color-table-hp}, +@code{proxy-post-image-transform-color-table-hp}. + +@end defmac + +@defmac hp-occlusion-test enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{occlusion-test-hp}, @code{occlusion-test-result-hp}. + +@end defmac + +@defmac hp-texture-lighting enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{texture-lighting-mode-hp}, @code{texture-post-specular-hp}, +@code{texture-pre-specular-hp}. + +@end defmac + @defmac sgix-clipmap enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{linear-clipmap-linear-sgix}, @code{texture-clipmap-center-sgix}, @@ -3290,8 +3392,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-texture-scale-bias enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{post-texture-filter-bias-sgix}, @@ -3302,8 +3404,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-reference-plane enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{reference-plane-sgix}, @code{reference-plane-equation-sgix}. @@ -3311,8 +3413,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-ir-instrument-1 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{ir-instrument1-sgix}. @@ -3320,8 +3422,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-instruments enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{instrument-buffer-pointer-sgix}, @@ -3330,8 +3432,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-list-priority enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{list-priority-sgix}. @@ -3339,8 +3441,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-calligraphic-fragment enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{calligraphic-fragment-sgix}. @@ -3348,8 +3450,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-impact-pixel-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pixel-tex-gen-q-ceiling-sgix}, @code{pixel-tex-gen-q-round-sgix}, @@ -3361,8 +3463,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-framezoom enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{framezoom-sgix}, @code{framezoom-factor-sgix}, @@ -3371,8 +3473,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-texture-lod-bias enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-lod-bias-s-sgix}, @code{texture-lod-bias-t-sgix}, @@ -3381,8 +3483,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-generate-mipmap enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{generate-mipmap-sgis}, @code{generate-mipmap-hint-sgis}. @@ -3390,8 +3492,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-polynomial-ffd enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{geometry-deformation-sgix}, @code{texture-deformation-sgix}, @@ -3400,8 +3502,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-fog-offset enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fog-offset-sgix}, @code{fog-offset-value-sgix}. @@ -3409,8 +3511,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-shadow enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-compare-sgix}, @code{texture-compare-operator-sgix}, @@ -3419,8 +3521,8 @@ known to this enumerated value form are: @end defmac @defmac arb-depth-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-component16-arb}, @code{depth-component24-arb}, @@ -3430,8 +3532,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-depth-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-component16-sgix}, @code{depth-component24-sgix}, @@ -3440,8 +3542,8 @@ known to this enumerated value form are: @end defmac @defmac oes-depth-24 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-component24-oes}. @@ -3449,8 +3551,8 @@ known to this enumerated value form are: @end defmac @defmac oes-depth-32 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-component32-oes}. @@ -3458,8 +3560,8 @@ known to this enumerated value form are: @end defmac @defmac ext-compiled-vertex-array enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{array-element-lock-first-ext}, @@ -3468,8 +3570,8 @@ known to this enumerated value form are: @end defmac @defmac ext-cull-vertex enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{cull-vertex-ext}, @code{cull-vertex-eye-position-ext}, @@ -3478,8 +3580,8 @@ known to this enumerated value form are: @end defmac @defmac ext-index-array-formats enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{iui-v2f-ext}, @code{iui-v3f-ext}, @code{iui-n3f-v2f-ext}, @@ -3489,8 +3591,8 @@ known to this enumerated value form are: @end defmac @defmac ext-index-func enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{index-test-ext}, @code{index-test-func-ext}, @@ -3499,8 +3601,8 @@ known to this enumerated value form are: @end defmac @defmac ext-index-material enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{index-material-ext}, @code{index-material-parameter-ext}, @@ -3509,8 +3611,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-ycrcb enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{ycrcb-422-sgix}, @code{ycrcb-444-sgix}. @@ -3518,8 +3620,8 @@ known to this enumerated value form are: @end defmac @defmac sunx-general-triangle-list enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{restart-sun}, @code{replace-middle-sun}, @@ -3537,8 +3639,8 @@ known to this enumerated value form are: @end defmac @defmac sunx-constant-data enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{unpack-constant-data-sunx}, @code{texture-constant-data-sunx}. @@ -3546,8 +3648,8 @@ known to this enumerated value form are: @end defmac @defmac sun-global-alpha enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{global-alpha-sun}, @code{global-alpha-factor-sun}. @@ -3555,8 +3657,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-texture-color-mask enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-color-writemask-sgis}. @@ -3564,8 +3666,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-point-line-texgen enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{eye-distance-to-point-sgis}, @code{object-distance-to-point-sgis}, @@ -3576,8 +3678,8 @@ known to this enumerated value form are: @end defmac @defmac ext-separate-specular-color enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{light-model-color-control-ext}, @code{single-color-ext}, @@ -3586,8 +3688,8 @@ known to this enumerated value form are: @end defmac @defmac ext-shared-texture-palette enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{shared-texture-palette-ext}. @@ -3595,8 +3697,8 @@ known to this enumerated value form are: @end defmac @defmac ati-text-fragment-shader enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{text-fragment-shader-ati}. @@ -3604,8 +3706,8 @@ known to this enumerated value form are: @end defmac @defmac ext-color-buffer-half-float enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{framebuffer-attachment-component-type-ext}, @code{r16f-ext}, @@ -3615,8 +3717,8 @@ known to this enumerated value form are: @end defmac @defmac oes-surfaceless-context enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{framebuffer-undefined-oes}. @@ -3624,8 +3726,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-rg enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rg}, @code{rg-integer}, @code{r8}, @code{r16}, @code{rg8}, @@ -3637,8 +3739,8 @@ known to this enumerated value form are: @end defmac @defmac arb-cl-event enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sync-cl-event-arb}, @code{sync-cl-event-complete-arb}. @@ -3646,8 +3748,8 @@ known to this enumerated value form are: @end defmac @defmac arb-debug-output enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{debug-output-synchronous-arb}, @@ -3669,8 +3771,8 @@ known to this enumerated value form are: @end defmac @defmac arb-get-program-binary enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{program-binary-retrievable-hint}, @code{program-binary-length}, @@ -3679,8 +3781,8 @@ known to this enumerated value form are: @end defmac @defmac arb-viewport-array enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-viewports}, @code{viewport-subpixel-bits}, @@ -3692,8 +3794,8 @@ known to this enumerated value form are: @end defmac @defmac arb-explicit-uniform-location enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-uniform-locations}. @@ -3701,8 +3803,8 @@ known to this enumerated value form are: @end defmac @defmac arb-internalformat-query-2 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{internalformat-supported}, @code{internalformat-preferred}, @@ -3758,8 +3860,8 @@ known to this enumerated value form are: @end defmac @defmac arb-vertex-attrib-binding enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-attrib-binding}, @code{vertex-attrib-relative-offset}, @@ -3770,8 +3872,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-view enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-view-min-level}, @code{texture-view-num-levels}, @@ -3781,8 +3883,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-depth-pass-instrument enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-pass-instrument-sgix}, @@ -3792,8 +3894,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-fragments-instrument enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fragments-instrument-sgix}, @@ -3803,8 +3905,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-convolution-accuracy enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{convolution-hint-sgix}. @@ -3812,8 +3914,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-ycrcba enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{ycrcb-sgix}, @code{ycrcba-sgix}. @@ -3821,8 +3923,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-slim enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{unpack-compressed-size-sgix}, @@ -3832,8 +3934,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-blend-alpha-minmax enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{alpha-min-sgix}, @code{alpha-max-sgix}. @@ -3841,8 +3943,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-scalebias-hint enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{scalebias-hint-sgix}. @@ -3850,8 +3952,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-async enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{async-marker-sgix}. @@ -3859,8 +3961,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-async-histogram enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{async-histogram-sgix}, @code{max-async-histogram-sgix}. @@ -3868,8 +3970,8 @@ known to this enumerated value form are: @end defmac @defmac ext-pixel-transform enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pixel-transform-2d-ext}, @code{pixel-mag-filter-ext}, @@ -3882,8 +3984,8 @@ known to this enumerated value form are: @end defmac @defmac ext-light-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fragment-material-ext}, @code{fragment-normal-ext}, @@ -3895,8 +3997,8 @@ known to this enumerated value form are: @end defmac @defmac sgis-pixel-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pixel-texture-sgis}, @code{pixel-fragment-rgb-source-sgis}, @@ -3905,8 +4007,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-line-quality-hint enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{line-quality-hint-sgix}. @@ -3914,8 +4016,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-async-pixel enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{async-tex-image-sgix}, @code{async-draw-pixels-sgix}, @@ -3925,18 +4027,18 @@ known to this enumerated value form are: @end defmac @defmac sgix-texture-coordinate-clamp enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-max-clamp-s-sgix}, @code{texture-max-clamp-t-sgix}, -@code{texture-max-clamp-r-sgix}, @code{fog-factor-to-alpha-sgix}. +@code{texture-max-clamp-r-sgix}. @end defmac @defmac arb-texture-mirrored-repeat enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{mirrored-repeat-arb}. @@ -3944,8 +4046,8 @@ known to this enumerated value form are: @end defmac @defmac ibm-texture-mirrored-repeat enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{mirrored-repeat-ibm}. @@ -3953,8 +4055,8 @@ known to this enumerated value form are: @end defmac @defmac oes-texture-mirrored-repeat enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{mirrored-repeat-oes}. @@ -3962,8 +4064,8 @@ known to this enumerated value form are: @end defmac @defmac s3-s-3-tc enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rgb-s3tc}, @code{rgb4-s3tc}, @code{rgba-s3tc}, @code{rgba4-s3tc}, @@ -3972,8 +4074,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-vertex-preclip enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-preclip-sgix}, @code{vertex-preclip-hint-sgix}. @@ -3981,8 +4083,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-compression-s-3-tc enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compressed-rgb-s3tc-dxt1-ext}, @@ -3993,8 +4095,8 @@ known to this enumerated value form are: @end defmac @defmac angle-texture-compression-dxt-3 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compressed-rgba-s3tc-dxt3-angle}. @@ -4002,8 +4104,8 @@ known to this enumerated value form are: @end defmac @defmac angle-texture-compression-dxt-5 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compressed-rgba-s3tc-dxt5-angle}. @@ -4011,8 +4113,8 @@ known to this enumerated value form are: @end defmac @defmac intel-parallel-arrays enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{parallel-arrays-intel}, @@ -4024,8 +4126,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-fragment-lighting enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fragment-lighting-sgix}, @code{fragment-color-material-sgix}, @@ -4045,8 +4147,8 @@ known to this enumerated value form are: @end defmac @defmac sgix-resample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pack-resample-sgix}, @code{unpack-resample-sgix}, @@ -4055,9 +4157,24 @@ known to this enumerated value form are: @end defmac +@defmac ext-coordinate-frame enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{tangent-array-ext}, @code{binormal-array-ext}, +@code{current-tangent-ext}, @code{current-binormal-ext}, +@code{tangent-array-type-ext}, @code{tangent-array-stride-ext}, +@code{binormal-array-type-ext}, @code{binormal-array-stride-ext}, +@code{tangent-array-pointer-ext}, @code{binormal-array-pointer-ext}, +@code{map1-tangent-ext}, @code{map2-tangent-ext}, +@code{map1-binormal-ext}, @code{map2-binormal-ext}. + +@end defmac + @defmac version-1-5 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fog-coord-src}, @code{fog-coord}, @code{current-fog-coord}, @@ -4087,8 +4204,8 @@ known to this enumerated value form are: @end defmac @defmac ext-fog-coord enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fog-coordinate-source-ext}, @code{fog-coordinate-ext}, @@ -4101,8 +4218,8 @@ known to this enumerated value form are: @end defmac @defmac ext-secondary-color enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{color-sum-ext}, @code{current-secondary-color-ext}, @@ -4115,8 +4232,8 @@ known to this enumerated value form are: @end defmac @defmac arb-vertex-program enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{color-sum-arb}, @code{vertex-program-arb}, @@ -4170,8 +4287,8 @@ known to this enumerated value form are: @end defmac @defmac version-2-1 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{current-raster-secondary-color}, @code{pixel-pack-buffer}, @@ -4184,20 +4301,9 @@ known to this enumerated value form are: @end defmac -@defmac sgix-icc-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments -known to this enumerated value form are: - -@code{smooth-point-size-range}, @code{smooth-point-size-granularity}, -@code{smooth-line-width-range}, @code{smooth-line-width-granularity}, -@code{aliased-point-size-range}, @code{aliased-line-width-range}. - -@end defmac - @defmac rend-screen-coordinates enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{screen-coordinates-rend}, @code{inverted-screen-w-rend}. @@ -4205,8 +4311,8 @@ known to this enumerated value form are: @end defmac @defmac arb-multitexture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture0-arb}, @code{texture1-arb}, @code{texture2-arb}, @@ -4225,8 +4331,8 @@ known to this enumerated value form are: @end defmac @defmac oes-texture-env-crossbar enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture0}, @code{texture1}, @code{texture2}, @code{texture3}, @@ -4241,8 +4347,8 @@ known to this enumerated value form are: @end defmac @defmac arb-transpose-matrix enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{transpose-modelview-matrix-arb}, @@ -4252,17 +4358,26 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-env-combine enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments -known to this enumerated value form are: - +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{subtract-arb}, @code{combine-arb}, @code{combine-rgb-arb}, +@code{combine-alpha-arb}, @code{rgb-scale-arb}, @code{add-signed-arb}, +@code{interpolate-arb}, @code{constant-arb}, @code{primary-color-arb}, +@code{previous-arb}, @code{source0-rgb-arb}, @code{source1-rgb-arb}, +@code{source2-rgb-arb}, @code{source0-alpha-arb}, +@code{source1-alpha-arb}, @code{source2-alpha-arb}, +@code{operand0-rgb-arb}, @code{operand1-rgb-arb}, +@code{operand2-rgb-arb}, @code{operand0-alpha-arb}, +@code{operand1-alpha-arb}, @code{operand2-alpha-arb}, @code{subtract-arb}. @end defmac @defmac arb-texture-compression enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compressed-alpha-arb}, @code{compressed-luminance-arb}, @@ -4276,8 +4391,8 @@ known to this enumerated value form are: @end defmac @defmac nv-fence enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{all-completed-nv}, @code{fence-status-nv}, @@ -4286,8 +4401,8 @@ known to this enumerated value form are: @end defmac @defmac version-3-1 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-rectangle}, @code{texture-binding-rectangle}, @@ -4328,8 +4443,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-rectangle enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-rectangle-arb}, @code{texture-binding-rectangle-arb}, @@ -4339,8 +4454,8 @@ known to this enumerated value form are: @end defmac @defmac nv-texture-rectangle enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-rectangle-nv}, @code{texture-binding-rectangle-nv}, @@ -4349,8 +4464,8 @@ known to this enumerated value form are: @end defmac @defmac ext-packed-depth-stencil enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-stencil-ext}, @code{unsigned-int-24-8-ext}, @@ -4359,8 +4474,8 @@ known to this enumerated value form are: @end defmac @defmac nv-packed-depth-stencil enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-stencil-nv}, @code{unsigned-int-24-8-nv}. @@ -4368,8 +4483,8 @@ known to this enumerated value form are: @end defmac @defmac oes-packed-depth-stencil enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-stencil-oes}, @code{unsigned-int-24-8-oes}, @@ -4378,8 +4493,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-lod-bias enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-texture-lod-bias-ext}, @code{texture-filter-control-ext}, @@ -4388,8 +4503,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-filter-anisotropic enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-max-anisotropy-ext}, @@ -4397,24 +4512,19 @@ known to this enumerated value form are: @end defmac -@defmac ext-vertex-weighting enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +@defmac nv-texture-env-combine-4 enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: -@code{modelview1-stack-depth-ext}, @code{modelview-matrix1-ext}, -@code{vertex-weighting-ext}, @code{modelview1-ext}, -@code{current-vertex-weight-ext}, @code{vertex-weight-array-ext}, -@code{vertex-weight-array-size-ext}, -@code{vertex-weight-array-type-ext}, -@code{vertex-weight-array-stride-ext}, -@code{vertex-weight-array-pointer-ext}. +@code{combine4-nv}, @code{source3-rgb-nv}, @code{source3-alpha-nv}, +@code{operand3-rgb-nv}, @code{operand3-alpha-nv}. @end defmac @defmac nv-light-max-exponent enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-shininess-nv}, @code{max-spot-exponent-nv}. @@ -4422,8 +4532,8 @@ known to this enumerated value form are: @end defmac @defmac ext-stencil-wrap enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{incr-wrap-ext}, @code{decr-wrap-ext}. @@ -4431,8 +4541,8 @@ known to this enumerated value form are: @end defmac @defmac oes-stencil-wrap enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{incr-wrap-oes}, @code{decr-wrap-oes}. @@ -4440,8 +4550,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-cube-map enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{normal-map-ext}, @code{reflection-map-ext}, @@ -4457,17 +4567,17 @@ known to this enumerated value form are: @end defmac @defmac nv-texgen-reflection enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: -@code{normal-map}, @code{reflection-map}. +@code{normal-map-nv}, @code{reflection-map-nv}. @end defmac @defmac arb-texture-cube-map enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{normal-map-arb}, @code{reflection-map-arb}, @@ -4483,8 +4593,8 @@ known to this enumerated value form are: @end defmac @defmac nv-vertex-array-range enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-array-range-nv}, @code{vertex-array-range-length-nv}, @@ -4495,8 +4605,8 @@ known to this enumerated value form are: @end defmac @defmac apple-vertex-array-range enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-array-range-apple}, @code{vertex-array-range-length-apple}, @@ -4507,8 +4617,8 @@ known to this enumerated value form are: @end defmac @defmac nv-register-combiners enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{register-combiners-nv}, @code{variable-a-nv}, @@ -4523,7 +4633,7 @@ known to this enumerated value form are: @code{unsigned-invert-nv}, @code{expand-normal-nv}, @code{expand-negate-nv}, @code{half-bias-normal-nv}, @code{half-bias-negate-nv}, @code{signed-identity-nv}, -@code{unsigned-negate-nv}, @code{scale-by-two-nv}, +@code{signed-negate-nv}, @code{scale-by-two-nv}, @code{scale-by-four-nv}, @code{scale-by-one-half-nv}, @code{bias-by-negative-one-half-nv}, @code{combiner-input-nv}, @code{combiner-mapping-nv}, @code{combiner-component-usage-nv}, @@ -4539,8 +4649,8 @@ known to this enumerated value form are: @end defmac @defmac nv-register-combiners-2 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{per-stage-constants-nv}. @@ -4548,8 +4658,8 @@ known to this enumerated value form are: @end defmac @defmac nv-primitive-restart enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{primitive-restart-nv}, @code{primitive-restart-index-nv}. @@ -4557,18 +4667,18 @@ known to this enumerated value form are: @end defmac @defmac nv-fog-distance enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: -@code{fog-gen-mode-nv}, @code{eye-radial-nv}, +@code{fog-distance-mode-nv}, @code{eye-radial-nv}, @code{eye-plane-absolute-nv}. @end defmac @defmac nv-texgen-emboss enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{emboss-light-nv}, @code{emboss-constant-nv}, @code{emboss-map-nv}. @@ -4576,8 +4686,8 @@ known to this enumerated value form are: @end defmac @defmac ingr-color-clamp enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{red-min-clamp-ingr}, @code{green-min-clamp-ingr}, @@ -4588,8 +4698,8 @@ known to this enumerated value form are: @end defmac @defmac ingr-interlace-read enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{interlace-read-ingr}. @@ -4597,8 +4707,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-env-combine enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{combine-ext}, @code{combine-rgb-ext}, @code{combine-alpha-ext}, @@ -4613,19 +4723,9 @@ known to this enumerated value form are: @end defmac -@defmac nv-texture-env-combine-4 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments -known to this enumerated value form are: - -@code{combine4-nv}, @code{source3-rgb-nv}, @code{source3-alpha-nv}, -@code{operand3-rgb-nv}, @code{operand3-alpha-nv}. - -@end defmac - @defmac sgix-subsample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pack-subsample-rate-sgix}, @code{unpack-subsample-rate-sgix}, @@ -4635,8 +4735,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-perturb-normal enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{perturb-ext}, @code{texture-normal-ext}. @@ -4644,8 +4744,8 @@ known to this enumerated value form are: @end defmac @defmac apple-specular-vector enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{light-model-specular-vector-apple}. @@ -4653,8 +4753,8 @@ known to this enumerated value form are: @end defmac @defmac apple-transform-hint enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{transform-hint-apple}. @@ -4662,8 +4762,8 @@ known to this enumerated value form are: @end defmac @defmac apple-client-storage enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{unpack-client-storage-apple}. @@ -4671,8 +4771,8 @@ known to this enumerated value form are: @end defmac @defmac apple-object-purgeable enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{buffer-object-apple}, @code{released-apple}, @@ -4682,8 +4782,8 @@ known to this enumerated value form are: @end defmac @defmac arb-vertex-array-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-array-binding}. @@ -4691,8 +4791,8 @@ known to this enumerated value form are: @end defmac @defmac apple-vertex-array-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-array-binding-apple}. @@ -4700,8 +4800,8 @@ known to this enumerated value form are: @end defmac @defmac apple-texture-range enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-range-length-apple}, @code{texture-range-pointer-apple}, @@ -4711,8 +4811,8 @@ known to this enumerated value form are: @end defmac @defmac apple-ycbcr-422 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{ycbcr-422-apple}, @code{unsigned-short-8-8-apple}, @@ -4721,8 +4821,8 @@ known to this enumerated value form are: @end defmac @defmac mesa-ycbcr-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{unsigned-short-8-8-mesa}, @code{unsigned-short-8-8-rev-mesa}, @@ -4731,8 +4831,8 @@ known to this enumerated value form are: @end defmac @defmac sun-slice-accum enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{slice-accum-sun}. @@ -4740,8 +4840,8 @@ known to this enumerated value form are: @end defmac @defmac sun-mesh-array enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{quad-mesh-sun}, @code{triangle-mesh-sun}. @@ -4749,8 +4849,8 @@ known to this enumerated value form are: @end defmac @defmac nv-vertex-program enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-program-nv}, @code{vertex-state-program-nv}, @@ -4797,8 +4897,8 @@ known to this enumerated value form are: @end defmac @defmac arb-depth-clamp enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-clamp}. @@ -4806,8 +4906,8 @@ known to this enumerated value form are: @end defmac @defmac nv-depth-clamp enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-clamp-nv}. @@ -4815,8 +4915,8 @@ known to this enumerated value form are: @end defmac @defmac arb-fragment-program enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-program-arb}, @code{vertex-attrib-array-enabled-arb}, @@ -4879,8 +4979,8 @@ known to this enumerated value form are: @end defmac @defmac arb-vertex-blend enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-vertex-units-arb}, @code{active-vertex-units-arb}, @@ -4903,8 +5003,8 @@ known to this enumerated value form are: @end defmac @defmac oes-matrix-palette enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-vertex-units-oes}, @code{weight-array-oes}, @@ -4921,8 +5021,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-env-dot-3 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{dot3-rgb-arb}, @code{dot3-rgba-arb}. @@ -4930,8 +5030,8 @@ known to this enumerated value form are: @end defmac @defmac img-texture-env-enhanced-fixed-function enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{dot3-rgba-img}, @code{modulate-color-img}, @@ -4942,8 +5042,8 @@ known to this enumerated value form are: @end defmac @defmac 3dfx-texture-compression-fxt1 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compressed-rgb-fxt1-3dfx}, @code{compressed-rgba-fxt1-3dfx}. @@ -4951,28 +5051,28 @@ known to this enumerated value form are: @end defmac @defmac nv-evaluators enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{eval-2d-nv}, @code{eval-triangular-2d-nv}, @code{map-tessellation-nv}, @code{map-attrib-u-order-nv}, @code{map-attrib-v-order-nv}, @code{eval-fractional-tessellation-nv}, -@code{eval-vertex-atrrib0-nv}, @code{eval-vertex-atrrib1-nv}, -@code{eval-vertex-atrrib2-nv}, @code{eval-vertex-atrrib3-nv}, -@code{eval-vertex-atrrib4-nv}, @code{eval-vertex-atrrib5-nv}, -@code{eval-vertex-atrrib6-nv}, @code{eval-vertex-atrrib7-nv}, -@code{eval-vertex-atrrib8-nv}, @code{eval-vertex-atrrib9-nv}, -@code{eval-vertex-atrrib10-nv}, @code{eval-vertex-atrrib11-nv}, -@code{eval-vertex-atrrib12-nv}, @code{eval-vertex-atrrib13-nv}, -@code{eval-vertex-atrrib14-nv}, @code{eval-vertex-atrrib15-nv}, +@code{eval-vertex-attrib0-nv}, @code{eval-vertex-attrib1-nv}, +@code{eval-vertex-attrib2-nv}, @code{eval-vertex-attrib3-nv}, +@code{eval-vertex-attrib4-nv}, @code{eval-vertex-attrib5-nv}, +@code{eval-vertex-attrib6-nv}, @code{eval-vertex-attrib7-nv}, +@code{eval-vertex-attrib8-nv}, @code{eval-vertex-attrib9-nv}, +@code{eval-vertex-attrib10-nv}, @code{eval-vertex-attrib11-nv}, +@code{eval-vertex-attrib12-nv}, @code{eval-vertex-attrib13-nv}, +@code{eval-vertex-attrib14-nv}, @code{eval-vertex-attrib15-nv}, @code{max-map-tessellation-nv}, @code{max-rational-eval-order-nv}. @end defmac @defmac nv-tessellation-program-5 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-program-patch-attribs-nv}, @code{tess-control-program-nv}, @@ -4983,8 +5083,8 @@ known to this enumerated value form are: @end defmac @defmac nv-texture-shader enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{offset-texture-rectangle-nv}, @@ -4995,8 +5095,8 @@ known to this enumerated value form are: @code{dsdt-mag-intensity-nv}, @code{shader-consistent-nv}, @code{texture-shader-nv}, @code{shader-operation-nv}, @code{cull-modes-nv}, @code{offset-texture-matrix-nv}, -@code{offset-texture-scale-nv}, @code{offset-texture-bias-nv}, -@code{offset-texture-2d-matrix-nv}, @code{offset-texture-2d-scale-nv}, +@code{offset-texture-2d-matrix-nv}, @code{offset-texture-scale-nv}, +@code{offset-texture-2d-scale-nv}, @code{offset-texture-bias-nv}, @code{offset-texture-2d-bias-nv}, @code{previous-texture-input-nv}, @code{const-eye-nv}, @code{pass-through-nv}, @code{cull-fragment-nv}, @code{offset-texture-2d-nv}, @code{dependent-ar-texture-2d-nv}, @@ -5027,8 +5127,8 @@ known to this enumerated value form are: @end defmac @defmac nv-vdpau-interop enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{surface-state-nv}, @code{surface-registered-nv}, @@ -5037,8 +5137,8 @@ known to this enumerated value form are: @end defmac @defmac nv-texture-shader-2 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{dot-product-texture-3d-nv}. @@ -5046,8 +5146,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-env-dot-3 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{dot3-rgb-ext}, @code{dot3-rgba-ext}. @@ -5055,8 +5155,8 @@ known to this enumerated value form are: @end defmac @defmac amd-program-binary-z400 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{z400-binary-amd}. @@ -5064,8 +5164,8 @@ known to this enumerated value form are: @end defmac @defmac oes-get-program-binary enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{program-binary-length-oes}, @code{num-program-binary-formats-oes}, @@ -5074,8 +5174,8 @@ known to this enumerated value form are: @end defmac @defmac ati-texture-mirror-once enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{mirror-clamp-ati}, @code{mirror-clamp-to-edge-ati}. @@ -5083,8 +5183,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-mirror-clamp enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{mirror-clamp-ext}, @code{mirror-clamp-to-edge-ext}, @@ -5093,8 +5193,8 @@ known to this enumerated value form are: @end defmac @defmac ati-texture-env-combine-3 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{modulate-add-ati}, @code{modulate-signed-add-ati}, @@ -5103,8 +5203,8 @@ known to this enumerated value form are: @end defmac @defmac amd-stencil-operation-extended enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{set-amd}, @code{replace-value-amd}, @code{stencil-op-value-amd}, @@ -5113,8 +5213,8 @@ known to this enumerated value form are: @end defmac @defmac mesa-packed-depth-stencil enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-stencil-mesa}, @code{unsigned-int-24-8-mesa}, @@ -5124,8 +5224,8 @@ known to this enumerated value form are: @end defmac @defmac mesa-trace enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{trace-all-bits-mesa}, @code{trace-operations-bit-mesa}, @@ -5137,8 +5237,8 @@ known to this enumerated value form are: @end defmac @defmac mesa-pack-invert enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pack-invert-mesa}. @@ -5146,8 +5246,8 @@ known to this enumerated value form are: @end defmac @defmac mesax-texture-stack enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-1d-stack-mesax}, @code{texture-2d-stack-mesax}, @@ -5159,8 +5259,8 @@ known to this enumerated value form are: @end defmac @defmac mesa-shader-debug enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{debug-object-mesa}, @code{debug-print-mesa}, @@ -5169,8 +5269,8 @@ known to this enumerated value form are: @end defmac @defmac ati-vertex-array-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{static-ati}, @code{dynamic-ati}, @code{preserve-ati}, @@ -5181,8 +5281,8 @@ known to this enumerated value form are: @end defmac @defmac arb-vertex-buffer-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{buffer-size-arb}, @code{buffer-usage-arb}, @@ -5209,8 +5309,8 @@ known to this enumerated value form are: @end defmac @defmac ati-element-array enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{element-array-ati}, @code{element-array-type-ati}, @@ -5219,8 +5319,8 @@ known to this enumerated value form are: @end defmac @defmac ati-vertex-streams enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-vertex-streams-ati}, @code{vertex-stream0-ati}, @@ -5232,8 +5332,8 @@ known to this enumerated value form are: @end defmac @defmac ati-envmap-bumpmap enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{bump-rot-matrix-ati}, @code{bump-rot-matrix-size-ati}, @@ -5244,8 +5344,8 @@ known to this enumerated value form are: @end defmac @defmac ext-vertex-shader enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-shader-ext}, @code{vertex-shader-binding-ext}, @@ -5305,8 +5405,8 @@ known to this enumerated value form are: @end defmac @defmac amd-compressed-atc-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{atc-rgba-interpolated-alpha-amd}, @code{atc-rgb-amd}, @@ -5315,8 +5415,8 @@ known to this enumerated value form are: @end defmac @defmac ati-pn-triangles enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pn-triangles-ati}, @code{max-pn-triangles-tesselation-level-ati}, @@ -5330,8 +5430,8 @@ known to this enumerated value form are: @end defmac @defmac amd-compressed-3dc-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{3dc-x-amd}, @code{3dc-xy-amd}. @@ -5339,8 +5439,8 @@ known to this enumerated value form are: @end defmac @defmac ati-meminfo enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vbo-free-memory-ati}, @code{texture-free-memory-ati}, @@ -5349,8 +5449,8 @@ known to this enumerated value form are: @end defmac @defmac ati-separate-stencil enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{stencil-back-func-ati}, @code{stencil-back-pass-depth-fail-ati}, @@ -5359,8 +5459,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-float enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rgba32f-arb}, @code{rgb32f-arb}, @code{alpha32f-arb}, @@ -5376,8 +5476,8 @@ known to this enumerated value form are: @end defmac @defmac ati-texture-float enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rgba-float32-ati}, @code{rgb-float32-ati}, @@ -5390,8 +5490,8 @@ known to this enumerated value form are: @end defmac @defmac arb-color-buffer-float enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rgba-float-mode-arb}, @code{clamp-vertex-color-arb}, @@ -5401,17 +5501,17 @@ known to this enumerated value form are: @end defmac @defmac ati-pixel-format-float enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: -@code{type-rgba-float-ati}, @code{color-clear-unclamped-value-ati}. +@code{rgba-float-mode-ati}, @code{color-clear-unclamped-value-ati}. @end defmac @defmac qcom-writeonly-rendering enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{writeonly-rendering-qcom}. @@ -5419,8 +5519,8 @@ known to this enumerated value form are: @end defmac @defmac arb-draw-buffers enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-draw-buffers-arb}, @code{draw-buffer0-arb}, @@ -5436,8 +5536,8 @@ known to this enumerated value form are: @end defmac @defmac ati-draw-buffers enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-draw-buffers-ati}, @code{draw-buffer0-ati}, @@ -5453,8 +5553,8 @@ known to this enumerated value form are: @end defmac @defmac nv-draw-buffers enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-draw-buffers-nv}, @code{draw-buffer0-nv}, @@ -5476,8 +5576,8 @@ known to this enumerated value form are: @end defmac @defmac amd-sample-positions enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{subsample-distance-amd}. @@ -5485,8 +5585,8 @@ known to this enumerated value form are: @end defmac @defmac arb-matrix-palette enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{matrix-palette-arb}, @code{max-matrix-palette-stack-depth-arb}, @@ -5499,8 +5599,8 @@ known to this enumerated value form are: @end defmac @defmac arb-shadow enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-compare-mode-arb}, @code{texture-compare-func-arb}, @@ -5509,8 +5609,8 @@ known to this enumerated value form are: @end defmac @defmac ext-shadow-samplers enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-compare-mode-ext}, @code{texture-compare-func-ext}, @@ -5519,8 +5619,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-array enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compare-ref-depth-to-texture-ext}, @@ -5532,8 +5632,8 @@ known to this enumerated value form are: @end defmac @defmac arb-seamless-cube-map enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-cube-map-seamless}. @@ -5541,8 +5641,8 @@ known to this enumerated value form are: @end defmac @defmac nv-texture-shader-3 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{offset-projective-texture-2d-nv}, @@ -5562,8 +5662,8 @@ known to this enumerated value form are: @end defmac @defmac arb-point-sprite enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{point-sprite-arb}, @code{coord-replace-arb}. @@ -5571,8 +5671,8 @@ known to this enumerated value form are: @end defmac @defmac nv-point-sprite enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{point-sprite-nv}, @code{coord-replace-nv}, @@ -5581,8 +5681,8 @@ known to this enumerated value form are: @end defmac @defmac oes-point-sprite enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{point-sprite-arb}, @code{coord-replace-arb}. @@ -5590,8 +5690,8 @@ known to this enumerated value form are: @end defmac @defmac arb-occlusion-query enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{query-counter-bits-arb}, @code{current-query-arb}, @@ -5601,8 +5701,8 @@ known to this enumerated value form are: @end defmac @defmac nv-occlusion-query enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pixel-counter-bits-nv}, @code{current-occlusion-query-id-nv}, @@ -5611,8 +5711,8 @@ known to this enumerated value form are: @end defmac @defmac ext-occlusion-query-boolean enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{current-query-ext}, @code{query-result-ext}, @@ -5622,8 +5722,8 @@ known to this enumerated value form are: @end defmac @defmac nv-fragment-program enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-fragment-program-local-parameters-nv}, @@ -5634,8 +5734,8 @@ known to this enumerated value form are: @end defmac @defmac nv-copy-depth-to-color enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-stencil-to-rgba-nv}, @code{depth-stencil-to-bgra-nv}. @@ -5643,8 +5743,8 @@ known to this enumerated value form are: @end defmac @defmac nv-pixel-data-range enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{write-pixel-data-range-nv}, @code{read-pixel-data-range-nv}, @@ -5656,8 +5756,8 @@ known to this enumerated value form are: @end defmac @defmac arb-gpu-shader-5 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{geometry-shader-invocations}, @@ -5669,8 +5769,8 @@ known to this enumerated value form are: @end defmac @defmac nv-float-buffer enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{float-r-nv}, @code{float-rg-nv}, @code{float-rgb-nv}, @@ -5683,8 +5783,8 @@ known to this enumerated value form are: @end defmac @defmac nv-texture-expand-normal enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-unsigned-remap-mode-nv}. @@ -5692,8 +5792,8 @@ known to this enumerated value form are: @end defmac @defmac ext-depth-bounds-test enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-bounds-test-ext}, @code{depth-bounds-ext}. @@ -5701,8 +5801,8 @@ known to this enumerated value form are: @end defmac @defmac oes-mapbuffer enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{write-only-oes}, @code{buffer-access-oes}, @@ -5711,8 +5811,8 @@ known to this enumerated value form are: @end defmac @defmac nv-shader-buffer-store enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{read-write}, @code{write-only}, @@ -5721,8 +5821,8 @@ known to this enumerated value form are: @end defmac @defmac arb-timer-query enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{time-elapsed}, @code{timestamp}. @@ -5730,8 +5830,8 @@ known to this enumerated value form are: @end defmac @defmac ext-timer-query enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{time-elapsed-ext}. @@ -5739,8 +5839,8 @@ known to this enumerated value form are: @end defmac @defmac arb-pixel-buffer-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pixel-pack-buffer-arb}, @code{pixel-unpack-buffer-arb}, @@ -5750,8 +5850,8 @@ known to this enumerated value form are: @end defmac @defmac ext-pixel-buffer-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pixel-pack-buffer-ext}, @code{pixel-unpack-buffer-ext}, @@ -5761,8 +5861,8 @@ known to this enumerated value form are: @end defmac @defmac nv-s-rgb-formats enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{etc1-srgb8-nv}, @code{srgb8-nv}, @code{sluminance-alpha-nv}, @@ -5775,8 +5875,8 @@ known to this enumerated value form are: @end defmac @defmac ext-stencil-clear-tag enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{stencil-tag-bits-ext}, @code{stencil-clear-tag-value-ext}. @@ -5784,8 +5884,8 @@ known to this enumerated value form are: @end defmac @defmac nv-vertex-program-2-option enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-program-exec-instructions-nv}, @@ -5794,8 +5894,8 @@ known to this enumerated value form are: @end defmac @defmac nv-fragment-program-2 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-program-exec-instructions-nv}, @@ -5805,8 +5905,8 @@ known to this enumerated value form are: @end defmac @defmac arb-blend-func-extended enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{src1-color}, @code{one-minus-src1-color}, @@ -5815,8 +5915,8 @@ known to this enumerated value form are: @end defmac @defmac nv-vertex-program-4 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-attrib-array-integer-nv}. @@ -5824,8 +5924,8 @@ known to this enumerated value form are: @end defmac @defmac version-3-3 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-attrib-array-divisor}. @@ -5833,8 +5933,8 @@ known to this enumerated value form are: @end defmac @defmac arb-instanced-arrays enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-attrib-array-divisor-arb}. @@ -5842,8 +5942,8 @@ known to this enumerated value form are: @end defmac @defmac angle-instanced-arrays enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-attrib-array-divisor-angle}. @@ -5851,8 +5951,8 @@ known to this enumerated value form are: @end defmac @defmac nv-instanced-arrays enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-attrib-array-divisor-nv}. @@ -5860,8 +5960,8 @@ known to this enumerated value form are: @end defmac @defmac nv-gpu-program-4 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{min-program-texel-offset-nv}, @code{max-program-texel-offset-nv}, @@ -5875,8 +5975,8 @@ known to this enumerated value form are: @end defmac @defmac ext-stencil-two-side enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{stencil-test-two-side-ext}, @code{active-stencil-face-ext}. @@ -5884,8 +5984,8 @@ known to this enumerated value form are: @end defmac @defmac arb-sampler-objects enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sampler-binding}. @@ -5893,8 +5993,8 @@ known to this enumerated value form are: @end defmac @defmac ati-fragment-shader enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fragment-shader-ati}, @code{reg-0-ati}, @code{reg-1-ati}, @@ -5937,8 +6037,8 @@ known to this enumerated value form are: @end defmac @defmac oml-interlace enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{interlace-oml}, @code{interlace-read-oml}. @@ -5946,8 +6046,8 @@ known to this enumerated value form are: @end defmac @defmac oml-subsample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{format-subsample-24-24-oml}, @code{format-subsample-244-244-oml}. @@ -5955,8 +6055,8 @@ known to this enumerated value form are: @end defmac @defmac oml-resample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pack-resample-oml}, @code{unpack-resample-oml}, @@ -5966,8 +6066,8 @@ known to this enumerated value form are: @end defmac @defmac oes-point-size-array enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{point-size-array-type-oes}, @code{point-size-array-stride-oes}, @@ -5977,8 +6077,8 @@ known to this enumerated value form are: @end defmac @defmac oes-matrix-get enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{modelview-matrix-float-as-int-bits-oes}, @@ -5988,8 +6088,8 @@ known to this enumerated value form are: @end defmac @defmac apple-vertex-program-evaluators enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-attrib-map1-apple}, @code{vertex-attrib-map2-apple}, @@ -6005,8 +6105,8 @@ known to this enumerated value form are: @end defmac @defmac apple-fence enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{draw-pixels-apple}, @code{fence-apple}. @@ -6014,8 +6114,8 @@ known to this enumerated value form are: @end defmac @defmac apple-element-array enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{element-array-apple}, @code{element-array-type-apple}, @@ -6024,8 +6124,8 @@ known to this enumerated value form are: @end defmac @defmac arb-uniform-buffer-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{uniform-buffer}, @code{uniform-buffer-binding}, @@ -6053,8 +6153,8 @@ known to this enumerated value form are: @end defmac @defmac apple-flush-buffer-range enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{buffer-serialized-modify-apple}, @@ -6063,8 +6163,8 @@ known to this enumerated value form are: @end defmac @defmac apple-aux-depth-stencil enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{aux-depth-stencil-apple}. @@ -6072,8 +6172,8 @@ known to this enumerated value form are: @end defmac @defmac apple-row-bytes enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pack-row-bytes-apple}, @code{unpack-row-bytes-apple}. @@ -6081,8 +6181,8 @@ known to this enumerated value form are: @end defmac @defmac apple-rgb-422 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rgb-422-apple}, @code{unsigned-short-8-8-apple}, @@ -6091,8 +6191,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-s-rgb-decode enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-srgb-decode-ext}, @code{decode-ext}, @@ -6101,8 +6201,8 @@ known to this enumerated value form are: @end defmac @defmac ext-debug-label enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{program-pipeline-object-ext}, @code{program-object-ext}, @@ -6112,8 +6212,8 @@ known to this enumerated value form are: @end defmac @defmac ext-shader-framebuffer-fetch enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fragment-shader-discards-samples-ext}. @@ -6121,8 +6221,8 @@ known to this enumerated value form are: @end defmac @defmac apple-sync enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sync-object-apple}, @code{max-server-wait-timeout-apple}, @@ -6137,8 +6237,8 @@ known to this enumerated value form are: @end defmac @defmac arb-shader-objects enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fragment-shader}, @code{fragment-shader-arb}, @@ -6188,8 +6288,8 @@ known to this enumerated value form are: @end defmac @defmac arb-vertex-shader enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fragment-shader}, @code{fragment-shader-arb}, @@ -6239,8 +6339,8 @@ known to this enumerated value form are: @end defmac @defmac arb-fragment-shader enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fragment-shader}, @code{fragment-shader-arb}, @@ -6290,8 +6390,8 @@ known to this enumerated value form are: @end defmac @defmac nv-vertex-program-3 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fragment-shader}, @code{fragment-shader-arb}, @@ -6341,8 +6441,8 @@ known to this enumerated value form are: @end defmac @defmac oes-standard-derivatives enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fragment-shader-derivative-hint-oes}. @@ -6350,8 +6450,8 @@ known to this enumerated value form are: @end defmac @defmac ext-geometry-shader-4 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-varying-components-ext}, @code{geometry-shader-ext}, @@ -6364,8 +6464,8 @@ known to this enumerated value form are: @end defmac @defmac oes-compressed-paletted-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{palette4-rgb8-oes}, @code{palette4-rgba8-oes}, @@ -6377,8 +6477,8 @@ known to this enumerated value form are: @end defmac @defmac oes-read-format enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{implementation-color-read-type-oes}, @@ -6387,8 +6487,8 @@ known to this enumerated value form are: @end defmac @defmac oes-draw-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-crop-rect-oes}. @@ -6396,8 +6496,8 @@ known to this enumerated value form are: @end defmac @defmac mesa-program-debug enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{fragment-program-position-mesa}, @@ -6412,8 +6512,8 @@ known to this enumerated value form are: @end defmac @defmac amd-performance-monitor enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{counter-type-amd}, @code{counter-range-amd}, @@ -6424,8 +6524,8 @@ known to this enumerated value form are: @end defmac @defmac qcom-extended-get enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-width-qcom}, @code{texture-height-qcom}, @@ -6438,8 +6538,8 @@ known to this enumerated value form are: @end defmac @defmac img-texture-compression-pvrtc enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compressed-rgb-pvrtc-4bppv1-img}, @@ -6450,8 +6550,8 @@ known to this enumerated value form are: @end defmac @defmac img-shader-binary enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sgx-binary-img}. @@ -6459,8 +6559,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-buffer-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-buffer-arb}, @code{max-texture-buffer-size-arb}, @@ -6471,8 +6571,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-buffer-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-buffer-ext}, @code{max-texture-buffer-size-ext}, @@ -6483,8 +6583,8 @@ known to this enumerated value form are: @end defmac @defmac arb-occlusion-query-2 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{any-samples-passed}. @@ -6492,8 +6592,8 @@ known to this enumerated value form are: @end defmac @defmac arb-sample-shading enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sample-shading-arb}, @code{min-sample-shading-value-arb}. @@ -6501,8 +6601,8 @@ known to this enumerated value form are: @end defmac @defmac ext-packed-float enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{r11f-g11f-b10f-ext}, @code{unsigned-int-10f-11f-11f-rev-ext}, @@ -6511,8 +6611,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-shared-exponent enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rgb9-e5-ext}, @code{unsigned-int-5-9-9-9-rev-ext}, @@ -6521,8 +6621,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-s-rgb enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{srgb-ext}, @code{srgb8-ext}, @code{srgb-alpha-ext}, @@ -6539,8 +6639,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-compression-latc enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compressed-luminance-latc1-ext}, @@ -6551,8 +6651,8 @@ known to this enumerated value form are: @end defmac @defmac ext-transform-feedback enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{transform-feedback-varying-max-length}, @@ -6602,8 +6702,8 @@ known to this enumerated value form are: @end defmac @defmac nv-transform-feedback enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{transform-feedback-varying-max-length}, @@ -6656,8 +6756,8 @@ known to this enumerated value form are: @end defmac @defmac ext-framebuffer-blit enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{draw-framebuffer-binding-ext}, @code{read-framebuffer-ext}, @@ -6667,8 +6767,8 @@ known to this enumerated value form are: @end defmac @defmac angle-framebuffer-blit enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{framebuffer-binding-angle}, @code{renderbuffer-binding-angle}, @@ -6677,8 +6777,8 @@ known to this enumerated value form are: @end defmac @defmac nv-framebuffer-blit enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{read-framebuffer-nv}, @code{draw-framebuffer-nv}, @@ -6687,8 +6787,8 @@ known to this enumerated value form are: @end defmac @defmac angle-framebuffer-multisample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{renderbuffer-samples-angle}, @@ -6698,8 +6798,8 @@ known to this enumerated value form are: @end defmac @defmac ext-framebuffer-multisample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{renderbuffer-samples-ext}, @@ -6708,8 +6808,8 @@ known to this enumerated value form are: @end defmac @defmac nv-framebuffer-multisample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{renderbuffer-samples-nv}, @@ -6718,8 +6818,8 @@ known to this enumerated value form are: @end defmac @defmac nv-framebuffer-multisample-coverage enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{renderbuffer-coverage-samples-nv}, @@ -6730,8 +6830,8 @@ known to this enumerated value form are: @end defmac @defmac arb-depth-buffer-float enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-component32f}, @code{depth32f-stencil8}, @@ -6740,8 +6840,8 @@ known to this enumerated value form are: @end defmac @defmac nv-fbo-color-attachments enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-color-attachments-nv}. @@ -6749,8 +6849,8 @@ known to this enumerated value form are: @end defmac @defmac oes-stencil-1 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{stencil-index1-oes}. @@ -6758,8 +6858,8 @@ known to this enumerated value form are: @end defmac @defmac oes-stencil-4 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{stencil-index4-oes}. @@ -6767,8 +6867,8 @@ known to this enumerated value form are: @end defmac @defmac oes-stencil-8 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{stencil-index8-oes}. @@ -6776,8 +6876,8 @@ known to this enumerated value form are: @end defmac @defmac oes-vertex-half-float enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{half-float-oes}. @@ -6785,8 +6885,8 @@ known to this enumerated value form are: @end defmac @defmac version-4-1 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rgb565}. @@ -6794,8 +6894,8 @@ known to this enumerated value form are: @end defmac @defmac oes-compressed-etc1-rgb8-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{etc1-rgb8-oes}. @@ -6803,8 +6903,8 @@ known to this enumerated value form are: @end defmac @defmac oes-egl-image-external enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-external-oes}, @code{sampler-external-oes}, @@ -6814,8 +6914,8 @@ known to this enumerated value form are: @end defmac @defmac arb-es3-compatibility enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{primitive-restart-fixed-index}, @@ -6831,8 +6931,8 @@ known to this enumerated value form are: @end defmac @defmac ext-multisampled-render-to-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{framebuffer-attachment-texture-samples-ext}. @@ -6840,8 +6940,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-integer enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rgba32ui}, @code{rgba32ui-ext}, @code{rgb32ui}, @@ -6873,8 +6973,8 @@ known to this enumerated value form are: @end defmac @defmac arb-vertex-type-2-10-10-10-rev enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{int-2-10-10-10-rev}. @@ -6882,8 +6982,8 @@ known to this enumerated value form are: @end defmac @defmac nv-parameter-buffer-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-program-parameter-buffer-bindings-nv}, @@ -6895,8 +6995,8 @@ known to this enumerated value form are: @end defmac @defmac nv-depth-buffer-float enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-component32f-nv}, @code{depth32f-stencil8-nv}, @@ -6906,8 +7006,8 @@ known to this enumerated value form are: @end defmac @defmac arb-shading-language-include enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{shader-include-arb}, @code{named-string-length-arb}, @@ -6916,8 +7016,8 @@ known to this enumerated value form are: @end defmac @defmac arb-framebuffer-s-rgb enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{framebuffer-srgb}. @@ -6925,8 +7025,8 @@ known to this enumerated value form are: @end defmac @defmac ext-framebuffer-s-rgb enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{framebuffer-srgb-ext}, @code{framebuffer-srgb-capable-ext}. @@ -6934,8 +7034,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-compression-rgtc enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compressed-red-rgtc1}, @code{compressed-signed-red-rgtc1}, @@ -6944,8 +7044,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-compression-rgtc enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compressed-red-rgtc1-ext}, @code{compressed-signed-red-rgtc1-ext}, @@ -6955,8 +7055,8 @@ known to this enumerated value form are: @end defmac @defmac ext-gpu-shader-4 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sampler-1d-array-ext}, @code{sampler-2d-array-ext}, @@ -6978,8 +7078,8 @@ known to this enumerated value form are: @end defmac @defmac nv-shadow-samplers-array enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sampler-2d-array-shadow-nv}. @@ -6987,8 +7087,8 @@ known to this enumerated value form are: @end defmac @defmac nv-shadow-samplers-cube enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sampler-cube-shadow-nv}. @@ -6996,8 +7096,8 @@ known to this enumerated value form are: @end defmac @defmac ext-bindable-uniform enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-vertex-bindable-uniforms-ext}, @@ -7009,8 +7109,8 @@ known to this enumerated value form are: @end defmac @defmac arb-shader-subroutine enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{active-subroutines}, @code{active-subroutine-uniforms}, @@ -7023,8 +7123,8 @@ known to this enumerated value form are: @end defmac @defmac oes-vertex-type-10-10-10-2 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{unsigned-int-10-10-10-2-oes}, @code{int-10-10-10-2-oes}. @@ -7032,8 +7132,8 @@ known to this enumerated value form are: @end defmac @defmac nv-conditional-render enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{query-wait-nv}, @code{query-no-wait-nv}, @@ -7041,9 +7141,18 @@ known to this enumerated value form are: @end defmac +@defmac nv-multisample-coverage enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{color-samples-nv}. + +@end defmac + @defmac arb-transform-feedback-2 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{transform-feedback}, @code{transform-feedback-paused}, @@ -7055,8 +7164,8 @@ known to this enumerated value form are: @end defmac @defmac nv-transform-feedback-2 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{transform-feedback-nv}, @@ -7067,8 +7176,8 @@ known to this enumerated value form are: @end defmac @defmac nv-present-video enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{frame-nv}, @code{fields-nv}, @code{current-time-nv}, @@ -7078,8 +7187,8 @@ known to this enumerated value form are: @end defmac @defmac nv-depth-nonlinear enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-component16-nonlinear-nv}. @@ -7087,8 +7196,8 @@ known to this enumerated value form are: @end defmac @defmac ext-direct-state-access enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{program-matrix-ext}, @code{transpose-program-matrix-ext}, @@ -7097,8 +7206,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-swizzle enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-swizzle-r}, @code{texture-swizzle-g}, @@ -7108,8 +7217,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-swizzle enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-swizzle-r-ext}, @code{texture-swizzle-g-ext}, @@ -7119,8 +7228,8 @@ known to this enumerated value form are: @end defmac @defmac arb-provoking-vertex enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{quads-follow-provoking-vertex-convention}, @@ -7130,8 +7239,8 @@ known to this enumerated value form are: @end defmac @defmac ext-provoking-vertex enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{quads-follow-provoking-vertex-convention-ext}, @@ -7141,8 +7250,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-multisample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sample-position}, @code{sample-mask}, @code{sample-mask-value}, @@ -7164,8 +7273,8 @@ known to this enumerated value form are: @end defmac @defmac nv-explicit-multisample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sample-position-nv}, @code{sample-mask-nv}, @@ -7179,8 +7288,8 @@ known to this enumerated value form are: @end defmac @defmac nv-gpu-program-5 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-geometry-program-invocations-nv}, @@ -7194,21 +7303,34 @@ known to this enumerated value form are: @end defmac -@defmac arb-texture-gather enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +@defmac version-4-0 enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{min-program-texture-gather-offset}, -@code{max-program-texture-gather-offset}, -@code{max-program-texture-gather-components-arb}, -@code{max-program-texture-gather-components}. +@code{max-program-texture-gather-offset}, @code{texture-cube-map-array}, +@code{texture-binding-cube-map-array}, +@code{proxy-texture-cube-map-array}, @code{sampler-cube-map-array}, +@code{sampler-cube-map-array-shadow}, @code{int-sampler-cube-map-array}, +@code{unsigned-int-sampler-cube-map-array}. + +@end defmac + +@defmac arb-texture-gather enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{min-program-texture-gather-offset-arb}, +@code{max-program-texture-gather-offset-arb}, +@code{max-program-texture-gather-components-arb}. @end defmac @defmac arb-transform-feedback-3 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-transform-feedback-buffers}, @code{max-vertex-streams}. @@ -7216,8 +7338,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-compression-bptc enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compressed-rgba-bptc-unorm-arb}, @@ -7228,8 +7350,8 @@ known to this enumerated value form are: @end defmac @defmac nv-coverage-sample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{coverage-component-nv}, @code{coverage-component4-nv}, @@ -7241,8 +7363,8 @@ known to this enumerated value form are: @end defmac @defmac nv-shader-buffer-load enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{buffer-gpu-address-nv}, @code{gpu-address-nv}, @@ -7251,8 +7373,8 @@ known to this enumerated value form are: @end defmac @defmac nv-vertex-buffer-unified-memory enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vertex-attrib-array-unified-nv}, @code{element-array-unified-nv}, @@ -7274,8 +7396,8 @@ known to this enumerated value form are: @end defmac @defmac arb-copy-buffer enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{copy-read-buffer-binding}, @code{copy-read-buffer}, @@ -7284,8 +7406,8 @@ known to this enumerated value form are: @end defmac @defmac arb-draw-indirect enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{draw-indirect-buffer}, @code{draw-indirect-buffer-binding}. @@ -7293,8 +7415,8 @@ known to this enumerated value form are: @end defmac @defmac arb-gpu-shader-fp-64 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{double-mat2}, @code{double-mat3}, @code{double-mat4}, @@ -7305,17 +7427,26 @@ known to this enumerated value form are: @end defmac @defmac arm-mali-shader-binary enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{mali-shader-binary-arm}. @end defmac +@defmac arm-mali-program-binary enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{mali-program-binary-arm}. + +@end defmac + @defmac qcom-driver-control enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{perfmon-global-mode-qcom}. @@ -7323,8 +7454,8 @@ known to this enumerated value form are: @end defmac @defmac qcom-binning-control enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{binning-control-hint-qcom}, @code{cpu-optimized-qcom}, @@ -7333,17 +7464,17 @@ known to this enumerated value form are: @end defmac @defmac viv-shader-binary enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{shader-binary-viv}. @end defmac -@defmac amd-vertex-shader-tesselator enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +@defmac amd-vertex-shader-tessellator enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sampler-buffer-amd}, @code{int-sampler-buffer-amd}, @@ -7354,8 +7485,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-cube-map-array enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-cube-map-array}, @code{texture-binding-cube-map-array}, @@ -7366,8 +7497,8 @@ known to this enumerated value form are: @end defmac @defmac ext-texture-snorm enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{alpha-snorm}, @code{luminance-snorm}, @@ -7380,8 +7511,8 @@ known to this enumerated value form are: @end defmac @defmac amd-blend-minmax-factor enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{factor-min-amd}, @code{factor-max-amd}. @@ -7389,8 +7520,8 @@ known to this enumerated value form are: @end defmac @defmac amd-depth-clamp-separate enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-clamp-near-amd}, @code{depth-clamp-far-amd}. @@ -7398,8 +7529,8 @@ known to this enumerated value form are: @end defmac @defmac nv-video-capture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{video-buffer-nv}, @code{video-buffer-binding-nv}, @@ -7427,8 +7558,8 @@ known to this enumerated value form are: @end defmac @defmac nv-texture-multisample enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-coverage-samples-nv}, @code{texture-color-samples-nv}. @@ -7436,8 +7567,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-rgb-10-a-2-ui enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rgb10-a2ui}. @@ -7445,8 +7576,8 @@ known to this enumerated value form are: @end defmac @defmac nv-path-rendering enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{path-format-svg-nv}, @code{path-format-ps-nv}, @@ -7519,8 +7650,8 @@ known to this enumerated value form are: @end defmac @defmac ext-framebuffer-multisample-blit-scaled enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{scaled-resolve-fastest-ext}, @code{scaled-resolve-nicest-ext}. @@ -7528,8 +7659,8 @@ known to this enumerated value form are: @end defmac @defmac arb-map-buffer-alignment enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{min-map-buffer-alignment}. @@ -7537,8 +7668,8 @@ known to this enumerated value form are: @end defmac @defmac nv-deep-texture-3d enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-deep-3d-texture-width-height-nv}, @@ -7547,8 +7678,8 @@ known to this enumerated value form are: @end defmac @defmac ext-x-11-sync-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sync-x11-fence-ext}. @@ -7556,8 +7687,8 @@ known to this enumerated value form are: @end defmac @defmac arb-stencil-texturing enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{depth-stencil-texture-mode}. @@ -7565,8 +7696,8 @@ known to this enumerated value form are: @end defmac @defmac nv-compute-program-5 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compute-program-nv}, @code{compute-program-parameter-buffer-nv}. @@ -7574,8 +7705,8 @@ known to this enumerated value form are: @end defmac @defmac arb-sync enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-server-wait-timeout}, @code{object-type}, @@ -7588,8 +7719,8 @@ known to this enumerated value form are: @end defmac @defmac arb-compressed-texture-pixel-storage enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{unpack-compressed-block-width}, @@ -7602,8 +7733,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-storage enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-immutable-format}. @@ -7611,8 +7742,8 @@ known to this enumerated value form are: @end defmac @defmac img-program-binary enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sgx-program-binary-img}. @@ -7620,8 +7751,8 @@ known to this enumerated value form are: @end defmac @defmac img-multisampled-render-to-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{renderbuffer-samples-img}, @@ -7631,8 +7762,8 @@ known to this enumerated value form are: @end defmac @defmac img-texture-compression-pvrtc-2 enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compressed-rgba-pvrtc-2bppv2-img}, @@ -7641,8 +7772,8 @@ known to this enumerated value form are: @end defmac @defmac amd-debug-output enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{max-debug-message-length-amd}, @@ -7659,8 +7790,8 @@ known to this enumerated value form are: @end defmac @defmac amd-name-gen-delete enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{data-buffer-amd}, @code{performance-monitor-amd}, @@ -7670,8 +7801,8 @@ known to this enumerated value form are: @end defmac @defmac amd-pinned-memory enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{external-virtual-memory-buffer-amd}. @@ -7679,8 +7810,8 @@ known to this enumerated value form are: @end defmac @defmac amd-query-buffer-object enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{query-buffer-amd}, @code{query-buffer-binding-amd}, @@ -7689,8 +7820,8 @@ known to this enumerated value form are: @end defmac @defmac amd-sparse-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{virtual-page-size-x-amd}, @code{virtual-page-size-y-amd}, @@ -7702,8 +7833,8 @@ known to this enumerated value form are: @end defmac @defmac arb-texture-buffer-range enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-buffer-offset}, @code{texture-buffer-size}, @@ -7712,8 +7843,8 @@ known to this enumerated value form are: @end defmac @defmac dmp-shader-binary enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{shader-binary-dmp}. @@ -7721,8 +7852,8 @@ known to this enumerated value form are: @end defmac @defmac fj-shader-binary-gccso enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{gccso-shader-binary-fj}. @@ -7730,8 +7861,8 @@ known to this enumerated value form are: @end defmac @defmac arb-shader-atomic-counters enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{atomic-counter-buffer}, @code{atomic-counter-buffer-binding}, @@ -7757,16 +7888,16 @@ known to this enumerated value form are: @code{max-fragment-atomic-counters}, @code{max-combined-atomic-counters}, @code{max-atomic-counter-buffer-size}, -@code{max-atomic-counter-buffer-bindings}, @code{active-atomic-counter-buffers}, @code{uniform-atomic-counter-buffer-index}, -@code{unsigned-int-atomic-counter}. +@code{unsigned-int-atomic-counter}, +@code{max-atomic-counter-buffer-bindings}. @end defmac @defmac arb-program-interface-query enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{uniform}, @code{uniform-block}, @code{program-input}, @@ -7798,8 +7929,8 @@ known to this enumerated value form are: @end defmac @defmac arb-framebuffer-no-attachments enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{framebuffer-default-width}, @code{framebuffer-default-height}, @@ -7811,8 +7942,8 @@ known to this enumerated value form are: @end defmac @defmac arb-internalformat-query enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{num-sample-counts}. @@ -7820,8 +7951,8 @@ known to this enumerated value form are: @end defmac @defmac angle-translated-shader-source enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{translated-shader-source-length-angle}. @@ -7829,8 +7960,8 @@ known to this enumerated value form are: @end defmac @defmac angle-texture-usage enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-usage-angle}, @code{framebuffer-attachment-angle}, @@ -7839,8 +7970,8 @@ known to this enumerated value form are: @end defmac @defmac angle-pack-reverse-row-order enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pack-reverse-row-order-angle}. @@ -7848,8 +7979,8 @@ known to this enumerated value form are: @end defmac @defmac angle-depth-texture enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{program-binary-angle}. @@ -7857,8 +7988,8 @@ known to this enumerated value form are: @end defmac @defmac gl-khr-texture-compression-astc-ldr enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{compressed-rgba-astc-4x4-khr}, @@ -7892,5 +8023,81 @@ known to this enumerated value form are: @end defmac +@defmac ibm-rasterpos-clip enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{raster-position-unclipped-ibm}. + +@end defmac + +@defmac ibm-cull-vertex enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{cull-vertex-ibm}. + +@end defmac + +@defmac ibm-static-data enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{all-static-data-ibm}, @code{static-vertex-array-ibm}, +@code{vertex-array-list-ibm}, @code{normal-array-list-ibm}, +@code{color-array-list-ibm}, @code{index-array-list-ibm}, +@code{texture-coord-array-list-ibm}, @code{edge-flag-array-list-ibm}, +@code{fog-coordinate-array-list-ibm}, +@code{secondary-color-array-list-ibm}, +@code{vertex-array-list-stride-ibm}, +@code{normal-array-list-stride-ibm}, @code{color-array-list-stride-ibm}, +@code{index-array-list-stride-ibm}, +@code{texture-coord-array-list-stride-ibm}, +@code{edge-flag-array-list-stride-ibm}, +@code{fog-coordinate-array-list-stride-ibm}, +@code{secondary-color-array-list-stride-ibm}. + +@end defmac + +@defmac pgi-misc-hints enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{prefer-doublebuffer-hint-pgi}, @code{conserve-memory-hint-pgi}, +@code{reclaim-memory-hint-pgi}, @code{native-graphics-handle-pgi}, +@code{native-graphics-begin-hint-pgi}, +@code{native-graphics-end-hint-pgi}, @code{always-fast-hint-pgi}, +@code{always-soft-hint-pgi}, @code{allow-draw-obj-hint-pgi}, +@code{allow-draw-win-hint-pgi}, @code{allow-draw-frg-hint-pgi}, +@code{allow-draw-mem-hint-pgi}, @code{strict-depthfunc-hint-pgi}, +@code{strict-lighting-hint-pgi}, @code{strict-scissor-hint-pgi}, +@code{full-stipple-hint-pgi}, @code{clip-near-hint-pgi}, +@code{clip-far-hint-pgi}, @code{wide-line-hint-pgi}, +@code{back-normals-hint-pgi}. + +@end defmac + +@defmac pgi-vertex-hints enum +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments +known to this enumerated value form are: + +@code{vertex-data-hint-pgi}, @code{vertex-consistent-hint-pgi}, +@code{material-side-hint-pgi}, @code{max-vertex-hint-pgi}, +@code{vertex23-bit-pgi}, @code{vertex4-bit-pgi}, @code{color3-bit-pgi}, +@code{color4-bit-pgi}, @code{edgeflag-bit-pgi}, @code{index-bit-pgi}, +@code{mat-ambient-bit-pgi}, @code{mat-ambient-and-diffuse-bit-pgi}, +@code{mat-diffuse-bit-pgi}, @code{mat-emission-bit-pgi}, +@code{mat-color-indexes-bit-pgi}, @code{mat-shininess-bit-pgi}, +@code{mat-specular-bit-pgi}, @code{normal-bit-pgi}, +@code{texcoord1-bit-pgi}, @code{texcoord2-bit-pgi}, +@code{texcoord3-bit-pgi}, @code{texcoord4-bit-pgi}. + +@end defmac + @c %end of fragment diff --git a/doc/low-level-gl.texi b/doc/low-level-gl.texi index 1212551..90b0364 100644 --- a/doc/low-level-gl.texi +++ b/doc/low-level-gl.texi @@ -9,25 +9,25 @@ The functions from this section may be had by loading the module: @copying This section of the manual was derived from the upstream OpenGL -documentation. Each function's documentation has its own copyright -statement; for full details, see the upstream documentation. The +documentation. Each function's documentation has its own copyright +statement; for full details, see the upstream documentation. The copyright notices and licenses present in this section are as follows. -Copyright @copyright{} 1991-2006 Silicon Graphics, Inc. This document is -licensed under the SGI Free Software B License. For details, see +Copyright @copyright{} 1991-2006 Silicon Graphics, Inc. This document +is licensed under the SGI Free Software B License. For details, see @uref{http://oss.sgi.com/projects/FreeB/,http://oss.sgi.com/projects/FreeB/}. -Copyright @copyright{} 2003-2005 3Dlabs Inc. Ltd. This material may be +Copyright @copyright{} 2003-2005 3Dlabs Inc. Ltd. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. @uref{http://opencontent.org/openpub/,http://opencontent.org/openpub/}. -Copyright @copyright{} 2005 Addison-Wesley. This material may be +Copyright @copyright{} 2005 Addison-Wesley. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. @uref{http://opencontent.org/openpub/,http://opencontent.org/openpub/}. -Copyright @copyright{} 2006 Khronos Group. This material may be +Copyright @copyright{} 2006 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. @uref{http://opencontent.org/openpub/,http://opencontent.org/openpub/}. @@ -39,44 +39,44 @@ Operate on the accumulation buffer. @table @asis @item @var{op} -Specifies the accumulation buffer operation. Symbolic constants +Specifies the accumulation buffer operation. Symbolic constants @code{GL_ACCUM}, @code{GL_LOAD}, @code{GL_ADD}, @code{GL_MULT}, and @code{GL_RETURN} are accepted. @item @var{value} Specifies a floating-point value used in the accumulation buffer -operation. @var{op} determines how @var{value} is used. +operation. @var{op} determines how @var{value} is used. @end table -The accumulation buffer is an extended-range color buffer. Images are -not rendered into it. Rather, images rendered into one of the color +The accumulation buffer is an extended-range color buffer. Images are +not rendered into it. Rather, images rendered into one of the color buffers are added to the contents of the accumulation buffer after -rendering. Effects such as antialiasing (of points, lines, and +rendering. Effects such as antialiasing (of points, lines, and polygons), motion blur, and depth of field can be created by accumulating images generated with different transformation matrices. Each pixel in the accumulation buffer consists of red, green, blue, and -alpha values. The number of bits per component in the accumulation -buffer depends on the implementation. You can examine this number by +alpha values. The number of bits per component in the accumulation +buffer depends on the implementation. You can examine this number by calling @code{glGetIntegerv} four times, with arguments @code{GL_ACCUM_RED_BITS}, @code{GL_ACCUM_GREEN_BITS}, -@code{GL_ACCUM_BLUE_BITS}, and @code{GL_ACCUM_ALPHA_BITS}. Regardless of -the number of bits per component, the range of values stored by each -component is @r{[-1,1]}. The accumulation buffer pixels are mapped +@code{GL_ACCUM_BLUE_BITS}, and @code{GL_ACCUM_ALPHA_BITS}. Regardless +of the number of bits per component, the range of values stored by each +component is @r{[-1,1]}. The accumulation buffer pixels are mapped one-to-one with frame buffer pixels. -@code{glAccum} operates on the accumulation buffer. The first argument, +@code{glAccum} operates on the accumulation buffer. The first argument, @var{op}, is a symbolic constant that selects an accumulation buffer -operation. The second argument, @var{value}, is a floating-point value -to be used in that operation. Five operations are specified: +operation. The second argument, @var{value}, is a floating-point value +to be used in that operation. Five operations are specified: @code{GL_ACCUM}, @code{GL_LOAD}, @code{GL_ADD}, @code{GL_MULT}, and @code{GL_RETURN}. All accumulation buffer operations are limited to the area of the current scissor box and applied identically to the red, green, blue, and -alpha components of each pixel. If a @code{glAccum} operation results in -a value outside the range @r{[-1,1]}, the contents of an accumulation +alpha components of each pixel. If a @code{glAccum} operation results +in a value outside the range @r{[-1,1]}, the contents of an accumulation buffer pixel component are undefined. The operations are as follows: @@ -84,9 +84,9 @@ The operations are as follows: @table @asis @item @code{GL_ACCUM} Obtains R, G, B, and A values from the buffer currently selected for -reading (see @code{glReadBuffer}). Each component value is divided by +reading (see @code{glReadBuffer}). Each component value is divided by @r{2^@var{n}-1}, where @r{@var{n}} is the number of bits allocated to -each color component in the currently selected buffer. The result is a +each color component in the currently selected buffer. The result is a floating-point value in the range @r{[0,1]}, which is multiplied by @var{value} and added to the corresponding pixel component in the accumulation buffer, thereby updating the accumulation buffer. @@ -109,10 +109,10 @@ buffer location. @item @code{GL_RETURN} Transfers accumulation buffer values to the color buffer or buffers -currently selected for writing. Each R, G, B, and A component is +currently selected for writing. Each R, G, B, and A component is multiplied by @var{value}, then multiplied by @r{2^@var{n}-1}, clamped to the range @r{[0,2^@var{n}-1]}, and stored in the corresponding -display buffer cell. The only fragment operations that are applied to +display buffer cell. The only fragment operations that are applied to this transfer are pixel ownership, scissor, dithering, and color writemasks. @@ -139,17 +139,17 @@ Select active texture unit. @table @asis @item @var{texture} -Specifies which texture unit to make active. The number of texture units -is implementation dependent, but must be at least two. @var{texture} -must be one of @code{GL_TEXTURE}@r{@var{i}}, where i ranges from 0 to -the larger of (@code{GL_MAX_TEXTURE_COORDS} - 1) and -(@code{GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS} - 1). The initial value is +Specifies which texture unit to make active. The number of texture +units is implementation dependent, but must be at least two. +@var{texture} must be one of @code{GL_TEXTURE}@r{@var{i}}, where i +ranges from 0 to the larger of (@code{GL_MAX_TEXTURE_COORDS} - 1) and +(@code{GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS} - 1). The initial value is @code{GL_TEXTURE0}. @end table @code{glActiveTexture} selects which texture unit subsequent texture -state calls will affect. The number of texture units an implementation +state calls will affect. The number of texture units an implementation supports is implementation dependent, but must be at least 2. Vertex arrays are client-side GL resources, which are selected by the @@ -167,33 +167,33 @@ Specify the alpha test function. @table @asis @item @var{func} -Specifies the alpha comparison function. Symbolic constants +Specifies the alpha comparison function. Symbolic constants @code{GL_NEVER}, @code{GL_LESS}, @code{GL_EQUAL}, @code{GL_LEQUAL}, @code{GL_GREATER}, @code{GL_NOTEQUAL}, @code{GL_GEQUAL}, and -@code{GL_ALWAYS} are accepted. The initial value is @code{GL_ALWAYS}. +@code{GL_ALWAYS} are accepted. The initial value is @code{GL_ALWAYS}. @item @var{ref} Specifies the reference value that incoming alpha values are compared -to. This value is clamped to the range @r{[0,1]}, where 0 represents the -lowest possible alpha value and 1 the highest possible value. The +to. This value is clamped to the range @r{[0,1]}, where 0 represents +the lowest possible alpha value and 1 the highest possible value. The initial reference value is 0. @end table The alpha test discards fragments depending on the outcome of a comparison between an incoming fragment's alpha value and a constant -reference value. @code{glAlphaFunc} specifies the reference value and -the comparison function. The comparison is performed only if alpha -testing is enabled. By default, it is not enabled. (See @code{glEnable} -and @code{glDisable} of @code{GL_ALPHA_TEST}.) +reference value. @code{glAlphaFunc} specifies the reference value and +the comparison function. The comparison is performed only if alpha +testing is enabled. By default, it is not enabled. (See +@code{glEnable} and @code{glDisable} of @code{GL_ALPHA_TEST}.) @var{func} and @var{ref} specify the conditions under which the pixel is -drawn. The incoming alpha value is compared to @var{ref} using the -function specified by @var{func}. If the value passes the comparison, +drawn. The incoming alpha value is compared to @var{ref} using the +function specified by @var{func}. If the value passes the comparison, the incoming fragment is drawn if it also passes subsequent stencil and -depth buffer tests. If the value fails the comparison, no change is made -to the frame buffer at that pixel location. The comparison functions are -as follows: +depth buffer tests. If the value fails the comparison, no change is +made to the frame buffer at that pixel location. The comparison +functions are as follows: @table @asis @item @code{GL_NEVER} @@ -226,7 +226,7 @@ Always passes (initial value). @code{glAlphaFunc} operates on all pixel write operations, including those resulting from the scan conversion of points, lines, polygons, and -bitmaps, and from pixel draw and copy operations. @code{glAlphaFunc} +bitmaps, and from pixel draw and copy operations. @code{glAlphaFunc} does not affect screen clear operations. @code{GL_INVALID_ENUM} is generated if @var{func} is not an accepted @@ -256,29 +256,29 @@ is returned in the corresponding element of @var{residences}. @end table GL establishes a ``working set'' of textures that are resident in -texture memory. These textures can be bound to a texture target much +texture memory. These textures can be bound to a texture target much more efficiently than textures that are not resident. @code{glAreTexturesResident} queries the texture residence status of the -@var{n} textures named by the elements of @var{textures}. If all the +@var{n} textures named by the elements of @var{textures}. If all the named textures are resident, @code{glAreTexturesResident} returns -@code{GL_TRUE}, and the contents of @var{residences} are undisturbed. If +@code{GL_TRUE}, and the contents of @var{residences} are undisturbed. If not all the named textures are resident, @code{glAreTexturesResident} returns @code{GL_FALSE}, and detailed status is returned in the @var{n} -elements of @var{residences}. If an element of @var{residences} is +elements of @var{residences}. If an element of @var{residences} is @code{GL_TRUE}, then the texture named by the corresponding element of @var{textures} is resident. The residence status of a single bound texture may also be queried by calling @code{glGetTexParameter} with the @var{target} argument set to the target to which the texture is bound, and the @var{pname} argument -set to @code{GL_TEXTURE_RESIDENT}. This is the only way that the +set to @code{GL_TEXTURE_RESIDENT}. This is the only way that the residence status of a default texture can be queried. @code{GL_INVALID_VALUE} is generated if @var{n} is negative. @code{GL_INVALID_VALUE} is generated if any element in @var{textures} is -0 or does not name a texture. In that case, the function returns +0 or does not name a texture. In that case, the function returns @code{GL_FALSE} and the contents of @var{residences} is indeterminate. @code{GL_INVALID_OPERATION} is generated if @code{glAreTexturesResident} @@ -298,23 +298,23 @@ Specifies an index into the enabled vertex data arrays. @code{glArrayElement} commands are used within @code{glBegin}/@code{glEnd} pairs to specify vertex and attribute data -for point, line, and polygon primitives. If @code{GL_VERTEX_ARRAY} is +for point, line, and polygon primitives. If @code{GL_VERTEX_ARRAY} is enabled when @code{glArrayElement} is called, a single vertex is drawn, using vertex and attribute data taken from location @var{i} of the -enabled arrays. If @code{GL_VERTEX_ARRAY} is not enabled, no drawing +enabled arrays. If @code{GL_VERTEX_ARRAY} is not enabled, no drawing occurs but the attributes corresponding to the enabled arrays are modified. Use @code{glArrayElement} to construct primitives by indexing vertex data, rather than by streaming through arrays of data in first-to-last -order. Because each call specifies only a single vertex, it is possible +order. Because each call specifies only a single vertex, it is possible to explicitly specify per-primitive attributes such as a single normal for each triangle. Changes made to array data between the execution of @code{glBegin} and the corresponding execution of @code{glEnd} may affect calls to @code{glArrayElement} that are made within the same -@code{glBegin}/@code{glEnd} period in nonsequential ways. That is, a +@code{glBegin}/@code{glEnd} period in nonsequential ways. That is, a call to @code{glArrayElement} that precedes a change to array data may access the changed data, and a call that follows a change to array data may access original data. @@ -340,22 +340,22 @@ Specifies the shader object that is to be attached. @end table In order to create an executable, there must be a way to specify the -list of things that will be linked together. Program objects provide -this mechanism. Shaders that are to be linked together in a program +list of things that will be linked together. Program objects provide +this mechanism. Shaders that are to be linked together in a program object must first be attached to that program object. @code{glAttachShader} attaches the shader object specified by -@var{shader} to the program object specified by @var{program}. This +@var{shader} to the program object specified by @var{program}. This indicates that @var{shader} will be included in link operations that will be performed on @var{program}. All operations that can be performed on a shader object are valid -whether or not the shader object is attached to a program object. It is +whether or not the shader object is attached to a program object. It is permissible to attach a shader object to a program object before source code has been loaded into the shader object or before the shader object -has been compiled. It is permissible to attach multiple shader objects +has been compiled. It is permissible to attach multiple shader objects of the same type because each may contain a portion of the complete -shader. It is also permissible to attach a shader object to more than -one program object. If a shader object is deleted while it is attached +shader. It is also permissible to attach a shader object to more than +one program object. If a shader object is deleted while it is attached to a program object, it will be flagged for deletion, and deletion will not occur until @code{glDetachShader} is called to detach it from all program objects to which it is attached. @@ -385,7 +385,7 @@ Delimit the boundaries of a query object. @table @asis @item @var{target} Specifies the target type of query object established between -@code{glBeginQuery} and the subsequent @code{glEndQuery}. The symbolic +@code{glBeginQuery} and the subsequent @code{glEndQuery}. The symbolic constant must be @code{GL_SAMPLES_PASSED}. @item @var{id} @@ -394,19 +394,19 @@ Specifies the name of a query object. @end table @code{glBeginQuery} and @code{glEndQuery} delimit the boundaries of a -query object. If a query object with name @var{id} does not yet exist it -is created. +query object. If a query object with name @var{id} does not yet exist +it is created. When @code{glBeginQuery} is executed, the query object's samples-passed -counter is reset to 0. Subsequent rendering will increment the counter -once for every sample that passes the depth test. When @code{glEndQuery} -is executed, the samples-passed counter is assigned to the query -object's result value. This value can be queried by calling +counter is reset to 0. Subsequent rendering will increment the counter +once for every sample that passes the depth test. When +@code{glEndQuery} is executed, the samples-passed counter is assigned to +the query object's result value. This value can be queried by calling @code{glGetQueryObject} with @var{pname}@code{GL_QUERY_RESULT}. Querying the @code{GL_QUERY_RESULT} implicitly flushes the GL pipeline until the rendering delimited by the query object has completed and the -result is available. @code{GL_QUERY_RESULT_AVAILABLE} can be queried to +result is available. @code{GL_QUERY_RESULT_AVAILABLE} can be queried to determine if the result is immediately available or if the rendering is not yet complete. @@ -438,7 +438,7 @@ Delimit the vertices of a primitive or a group of like primitives. @table @asis @item @var{mode} Specifies the primitive or primitives that will be created from vertices -presented between @code{glBegin} and the subsequent @code{glEnd}. Ten +presented between @code{glBegin} and the subsequent @code{glEnd}. Ten symbolic constants are accepted: @code{GL_POINTS}, @code{GL_LINES}, @code{GL_LINE_STRIP}, @code{GL_LINE_LOOP}, @code{GL_TRIANGLES}, @code{GL_TRIANGLE_STRIP}, @code{GL_TRIANGLE_FAN}, @code{GL_QUADS}, @@ -447,95 +447,95 @@ symbolic constants are accepted: @code{GL_POINTS}, @code{GL_LINES}, @end table @code{glBegin} and @code{glEnd} delimit the vertices that define a -primitive or a group of like primitives. @code{glBegin} accepts a single -argument that specifies in which of ten ways the vertices are -interpreted. Taking @r{@var{n}} as an integer count starting at one, and -@r{@var{N}} as the total number of vertices specified, the +primitive or a group of like primitives. @code{glBegin} accepts a +single argument that specifies in which of ten ways the vertices are +interpreted. Taking @r{@var{n}} as an integer count starting at one, +and @r{@var{N}} as the total number of vertices specified, the interpretations are as follows: @table @asis @item @code{GL_POINTS} -Treats each vertex as a single point. Vertex @r{@var{n}} defines point -@r{@var{n}}. @r{@var{N}} points are drawn. +Treats each vertex as a single point. Vertex @r{@var{n}} defines point +@r{@var{n}}. @r{@var{N}} points are drawn. @item @code{GL_LINES} -Treats each pair of vertices as an independent line segment. Vertices -@r{2⁢@var{n}-1} and @r{2⁢@var{n}} define line @r{@var{n}}. @r{@var{N}/2} +Treats each pair of vertices as an independent line segment. Vertices +@r{2⁢@var{n}-1} and @r{2⁢@var{n}} define line @r{@var{n}}. @r{@var{N}/2} lines are drawn. @item @code{GL_LINE_STRIP} Draws a connected group of line segments from the first vertex to the -last. Vertices @r{@var{n}} and @r{@var{n}+1} define line @r{@var{n}}. +last. Vertices @r{@var{n}} and @r{@var{n}+1} define line @r{@var{n}}. @r{@var{N}-1} lines are drawn. @item @code{GL_LINE_LOOP} Draws a connected group of line segments from the first vertex to the -last, then back to the first. Vertices @r{@var{n}} and @r{@var{n}+1} -define line @r{@var{n}}. The last line, however, is defined by vertices -@r{@var{N}} and @r{1}. @r{@var{N}} lines are drawn. +last, then back to the first. Vertices @r{@var{n}} and @r{@var{n}+1} +define line @r{@var{n}}. The last line, however, is defined by vertices +@r{@var{N}} and @r{1}. @r{@var{N}} lines are drawn. @item @code{GL_TRIANGLES} -Treats each triplet of vertices as an independent triangle. Vertices +Treats each triplet of vertices as an independent triangle. Vertices @r{3⁢@var{n}-2}, @r{3⁢@var{n}-1}, and @r{3⁢@var{n}} define triangle -@r{@var{n}}. @r{@var{N}/3} triangles are drawn. +@r{@var{n}}. @r{@var{N}/3} triangles are drawn. @item @code{GL_TRIANGLE_STRIP} -Draws a connected group of triangles. One triangle is defined for each -vertex presented after the first two vertices. For odd @r{@var{n}}, +Draws a connected group of triangles. One triangle is defined for each +vertex presented after the first two vertices. For odd @r{@var{n}}, vertices @r{@var{n}}, @r{@var{n}+1}, and @r{@var{n}+2} define triangle -@r{@var{n}}. For even @r{@var{n}}, vertices @r{@var{n}+1}, @r{@var{n}}, -and @r{@var{n}+2} define triangle @r{@var{n}}. @r{@var{N}-2} triangles +@r{@var{n}}. For even @r{@var{n}}, vertices @r{@var{n}+1}, @r{@var{n}}, +and @r{@var{n}+2} define triangle @r{@var{n}}. @r{@var{N}-2} triangles are drawn. @item @code{GL_TRIANGLE_FAN} -Draws a connected group of triangles. One triangle is defined for each -vertex presented after the first two vertices. Vertices @r{1}, +Draws a connected group of triangles. One triangle is defined for each +vertex presented after the first two vertices. Vertices @r{1}, @r{@var{n}+1}, and @r{@var{n}+2} define triangle @r{@var{n}}. @r{@var{N}-2} triangles are drawn. @item @code{GL_QUADS} Treats each group of four vertices as an independent quadrilateral. Vertices @r{4⁢@var{n}-3}, @r{4⁢@var{n}-2}, @r{4⁢@var{n}-1}, and -@r{4⁢@var{n}} define quadrilateral @r{@var{n}}. @r{@var{N}/4} +@r{4⁢@var{n}} define quadrilateral @r{@var{n}}. @r{@var{N}/4} quadrilaterals are drawn. @item @code{GL_QUAD_STRIP} -Draws a connected group of quadrilaterals. One quadrilateral is defined -for each pair of vertices presented after the first pair. Vertices +Draws a connected group of quadrilaterals. One quadrilateral is defined +for each pair of vertices presented after the first pair. Vertices @r{2⁢@var{n}-1}, @r{2⁢@var{n}}, @r{2⁢@var{n}+2}, and @r{2⁢@var{n}+1} -define quadrilateral @r{@var{n}}. @r{@var{N}/2-1} quadrilaterals are -drawn. Note that the order in which vertices are used to construct a +define quadrilateral @r{@var{n}}. @r{@var{N}/2-1} quadrilaterals are +drawn. Note that the order in which vertices are used to construct a quadrilateral from strip data is different from that used with independent data. @item @code{GL_POLYGON} -Draws a single, convex polygon. Vertices @r{1} through @r{@var{N}} +Draws a single, convex polygon. Vertices @r{1} through @r{@var{N}} define this polygon. @end table Only a subset of GL commands can be used between @code{glBegin} and -@code{glEnd}. The commands are @code{glVertex}, @code{glColor}, +@code{glEnd}. The commands are @code{glVertex}, @code{glColor}, @code{glSecondaryColor}, @code{glIndex}, @code{glNormal}, @code{glFogCoord}, @code{glTexCoord}, @code{glMultiTexCoord}, @code{glVertexAttrib}, @code{glEvalCoord}, @code{glEvalPoint}, -@code{glArrayElement}, @code{glMaterial}, and @code{glEdgeFlag}. Also, +@code{glArrayElement}, @code{glMaterial}, and @code{glEdgeFlag}. Also, it is acceptable to use @code{glCallList} or @code{glCallLists} to -execute display lists that include only the preceding commands. If any +execute display lists that include only the preceding commands. If any other GL command is executed between @code{glBegin} and @code{glEnd}, the error flag is set and the command is ignored. Regardless of the value chosen for @var{mode}, there is no limit to the number of vertices that can be defined between @code{glBegin} and -@code{glEnd}. Lines, triangles, quadrilaterals, and polygons that are -incompletely specified are not drawn. Incomplete specification results +@code{glEnd}. Lines, triangles, quadrilaterals, and polygons that are +incompletely specified are not drawn. Incomplete specification results when either too few vertices are provided to specify even a single -primitive or when an incorrect multiple of vertices is specified. The +primitive or when an incorrect multiple of vertices is specified. The incomplete primitive is ignored; the rest are drawn. The minimum specification of vertices for each primitive is as follows: 1 for a point, 2 for a line, 3 for a triangle, 4 for a quadrilateral, -and 3 for a polygon. Modes that require a certain multiple of vertices +and 3 for a polygon. Modes that require a certain multiple of vertices are @code{GL_LINES} (2), @code{GL_TRIANGLES} (3), @code{GL_QUADS} (4), and @code{GL_QUAD_STRIP} (2). @@ -590,15 +590,16 @@ shader attribute variable to which @var{index} is to be bound. @code{glBindAttribLocation} is used to associate a user-defined attribute variable in the program object specified by @var{program} with -a generic vertex attribute index. The name of the user-defined attribute -variable is passed as a null terminated string in @var{name}. The -generic vertex attribute index to be bound to this variable is specified -by @var{index}. When @var{program} is made part of current state, values -provided via the generic vertex attribute @var{index} will modify the -value of the user-defined attribute variable specified by @var{name}. +a generic vertex attribute index. The name of the user-defined +attribute variable is passed as a null terminated string in @var{name}. +The generic vertex attribute index to be bound to this variable is +specified by @var{index}. When @var{program} is made part of current +state, values provided via the generic vertex attribute @var{index} will +modify the value of the user-defined attribute variable specified by +@var{name}. If @var{name} refers to a matrix attribute variable, @var{index} refers -to the first column of the matrix. Other matrix columns are then +to the first column of the matrix. Other matrix columns are then automatically bound to locations @var{index+1} for a matrix of type mat2; @var{index+1} and @var{index+2} for a matrix of type mat3; and @var{index+1}, @var{index+2}, and @var{index+3} for a matrix of type @@ -606,7 +607,7 @@ mat4. This command makes it possible for vertex shaders to use descriptive names for attribute variables rather than generic variables that are -numbered from 0 to @code{GL_MAX_VERTEX_ATTRIBS} -1. The values sent to +numbered from 0 to @code{GL_MAX_VERTEX_ATTRIBS} -1. The values sent to each generic attribute index are part of current state, just like standard vertex attributes such as color, normal, and vertex position. If a different program object is made current by calling @@ -616,15 +617,15 @@ program object that are also bound to @var{index}. Attribute variable name-to-generic attribute index bindings for a program object can be explicitly assigned at any time by calling -@code{glBindAttribLocation}. Attribute bindings do not go into effect -until @code{glLinkProgram} is called. After a program object has been +@code{glBindAttribLocation}. Attribute bindings do not go into effect +until @code{glLinkProgram} is called. After a program object has been linked successfully, the index values for generic attributes remain fixed (and their values can be queried) until the next link command occurs. Applications are not allowed to bind any of the standard OpenGL vertex attributes using this command, as they are bound automatically when -needed. Any attribute binding that occurs after the program object has +needed. Any attribute binding that occurs after the program object has been linked will not take effect until the next time the program object is linked. @@ -651,7 +652,7 @@ Bind a named buffer object. @table @asis @item @var{target} -Specifies the target to which the buffer object is bound. The symbolic +Specifies the target to which the buffer object is bound. The symbolic constant must be @code{GL_ARRAY_BUFFER}, @code{GL_ELEMENT_ARRAY_BUFFER}, @code{GL_PIXEL_PACK_BUFFER}, or @code{GL_PIXEL_UNPACK_BUFFER}. @@ -665,14 +666,14 @@ Calling @code{glBindBuffer} with @var{target} set to @code{GL_ARRAY_BUFFER}, @code{GL_ELEMENT_ARRAY_BUFFER}, @code{GL_PIXEL_PACK_BUFFER} or @code{GL_PIXEL_UNPACK_BUFFER} and @var{buffer} set to the name of the new buffer object binds the buffer -object name to the target. When a buffer object is bound to a target, +object name to the target. When a buffer object is bound to a target, the previous binding for that target is automatically broken. -Buffer object names are unsigned integers. The value zero is reserved, +Buffer object names are unsigned integers. The value zero is reserved, but there is no default buffer object for each buffer object target. Instead, @var{buffer} set to zero effectively unbinds any buffer object previously bound, and restores client memory usage for that buffer -object target. Buffer object names and the corresponding buffer object +object target. Buffer object names and the corresponding buffer object contents are local to the shared display-list space (see @code{glXCreateContext}) of the current GL rendering context; two rendering contexts share buffer object names only if they also share @@ -688,16 +689,16 @@ unmapped zero-sized memory buffer with @code{GL_READ_WRITE} access and While a non-zero buffer object name is bound, GL operations on the target to which it is bound affect the bound buffer object, and queries of the target to which it is bound return state from the bound buffer -object. While buffer object name zero is bound, as in the initial state, -attempts to modify or query state on the target to which it is bound -generates an @code{GL_INVALID_OPERATION} error. +object. While buffer object name zero is bound, as in the initial +state, attempts to modify or query state on the target to which it is +bound generates an @code{GL_INVALID_OPERATION} error. When vertex array pointer state is changed, for example by a call to @code{glNormalPointer}, the current buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) is copied into the corresponding client state for the vertex array type being changed, for example -@code{GL_NORMAL_ARRAY_BUFFER_BINDING}. While a non-zero buffer object is -bound to the @code{GL_ARRAY_BUFFER} target, the vertex array pointer +@code{GL_NORMAL_ARRAY_BUFFER_BINDING}. While a non-zero buffer object +is bound to the @code{GL_ARRAY_BUFFER} target, the vertex array pointer parameter that is traditionally interpreted as a pointer to client-side memory is instead interpreted as an offset within the buffer object measured in basic machine units. @@ -714,7 +715,7 @@ While a non-zero buffer object is bound to the @code{glGetCompressedTexImage}, @code{glGetConvolutionFilter}, @code{glGetHistogram}, @code{glGetMinmax}, @code{glGetPixelMap}, @code{glGetPolygonStipple}, @code{glGetSeparableFilter}, -@code{glGetTexImage}, and @code{glReadPixels}. The pointer parameter +@code{glGetTexImage}, and @code{glReadPixels}. The pointer parameter that is traditionally interpreted as a pointer to client-side memory where the pixels are to be packed is instead interpreted as an offset within the buffer object measured in basic machine units. @@ -729,7 +730,7 @@ affected: @code{glBitmap}, @code{glColorSubTable}, @code{glColorTable}, @code{glDrawPixels}, @code{glPixelMap}, @code{glPolygonStipple}, @code{glSeparableFilter2D}, @code{glTexImage1D}, @code{glTexImage2D}, @code{glTexImage3D}, @code{glTexSubImage1D}, @code{glTexSubImage2D}, and -@code{glTexSubImage3D}. The pointer parameter that is traditionally +@code{glTexSubImage3D}. The pointer parameter that is traditionally interpreted as a pointer to client-side memory from which the pixels are to be unpacked is instead interpreted as an offset within the buffer object measured in basic machine units. @@ -739,7 +740,7 @@ until a different buffer object name is bound to the same target, or until the bound buffer object is deleted with @code{glDeleteBuffers}. Once created, a named buffer object may be re-bound to any target as -often as needed. However, the GL implementation may make choices about +often as needed. However, the GL implementation may make choices about how to optimize the storage of a buffer object based on its initial binding target. @@ -757,7 +758,7 @@ Bind a named texture to a texturing target. @table @asis @item @var{target} -Specifies the target to which the texture is bound. Must be either +Specifies the target to which the texture is bound. Must be either @code{GL_TEXTURE_1D}, @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_3D}, or @code{GL_TEXTURE_CUBE_MAP}. @@ -766,19 +767,19 @@ Specifies the name of a texture. @end table -@code{glBindTexture} lets you create or use a named texture. Calling +@code{glBindTexture} lets you create or use a named texture. Calling @code{glBindTexture} with @var{target} set to @code{GL_TEXTURE_1D}, @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_3D} or @code{GL_TEXTURE_CUBE_MAP} and @var{texture} set to the name of the new texture binds the texture -name to the target. When a texture is bound to a target, the previous +name to the target. When a texture is bound to a target, the previous binding for that target is automatically broken. -Texture names are unsigned integers. The value zero is reserved to -represent the default texture for each texture target. Texture names and -the corresponding texture contents are local to the shared display-list -space (see @code{glXCreateContext}) of the current GL rendering context; -two rendering contexts share texture names only if they also share -display lists. +Texture names are unsigned integers. The value zero is reserved to +represent the default texture for each texture target. Texture names +and the corresponding texture contents are local to the shared +display-list space (see @code{glXCreateContext}) of the current GL +rendering context; two rendering contexts share texture names only if +they also share display lists. You may use @code{glGenTextures} to generate a set of new texture names. @@ -787,16 +788,16 @@ texture first bound to @code{GL_TEXTURE_1D} becomes one-dimensional texture, a texture first bound to @code{GL_TEXTURE_2D} becomes two-dimensional texture, a texture first bound to @code{GL_TEXTURE_3D} becomes three-dimensional texture, and a texture first bound to -@code{GL_TEXTURE_CUBE_MAP} becomes a cube-mapped texture. The state of a -one-dimensional texture immediately after it is first bound is +@code{GL_TEXTURE_CUBE_MAP} becomes a cube-mapped texture. The state of +a one-dimensional texture immediately after it is first bound is equivalent to the state of the default @code{GL_TEXTURE_1D} at GL initialization, and similarly for two- and three-dimensional textures and cube-mapped textures. While a texture is bound, GL operations on the target to which it is bound affect the bound texture, and queries of the target to which it is -bound return state from the bound texture. If texture mapping is active -on the target to which a texture is bound, the bound texture is used. In +bound return state from the bound texture. If texture mapping is active +on the target to which a texture is bound, the bound texture is used. In effect, the texture targets become aliases for the textures currently bound to them, and the texture name zero refers to the default textures that were bound to them at initialization. @@ -806,10 +807,10 @@ a different texture is bound to the same target, or until the bound texture is deleted with @code{glDeleteTextures}. Once created, a named texture may be re-bound to its same original -target as often as needed. It is usually much faster to use +target as often as needed. It is usually much faster to use @code{glBindTexture} to bind an existing named texture to one of the texture targets than it is to reload the texture image using -@code{glTexImage1D}, @code{glTexImage2D}, or @code{glTexImage3D}. For +@code{glTexImage1D}, @code{glTexImage2D}, or @code{glTexImage3D}. For additional control over performance, use @code{glPrioritizeTextures}. @code{glBindTexture} is included in display lists. @@ -836,7 +837,7 @@ Specify the pixel width and height of the bitmap image. @item @var{xorig} @itemx @var{yorig} -Specify the location of the origin in the bitmap image. The origin is +Specify the location of the origin in the bitmap image. The origin is measured from the lower left corner of the bitmap, with right and up being the positive axes. @@ -850,18 +851,18 @@ Specifies the address of the bitmap image. @end table -A bitmap is a binary image. When drawn, the bitmap is positioned +A bitmap is a binary image. When drawn, the bitmap is positioned relative to the current raster position, and frame buffer pixels corresponding to 1's in the bitmap are written using the current raster -color or index. Frame buffer pixels corresponding to 0's in the bitmap +color or index. Frame buffer pixels corresponding to 0's in the bitmap are not modified. -@code{glBitmap} takes seven arguments. The first pair specifies the -width and height of the bitmap image. The second pair specifies the +@code{glBitmap} takes seven arguments. The first pair specifies the +width and height of the bitmap image. The second pair specifies the location of the bitmap origin relative to the lower left corner of the -bitmap image. The third pair of arguments specifies @var{x} and @var{y} +bitmap image. The third pair of arguments specifies @var{x} and @var{y} offsets to be added to the current raster position after the bitmap has -been drawn. The final argument is a pointer to the bitmap image itself. +been drawn. The final argument is a pointer to the bitmap image itself. If a non-zero named buffer object is bound to the @code{GL_PIXEL_UNPACK_BUFFER} target (see @code{glBindBuffer}) while a @@ -872,7 +873,7 @@ The bitmap image is interpreted like image data for the @code{glDrawPixels} command, with @var{width} and @var{height} corresponding to the width and height arguments of that command, and with @var{type} set to @code{GL_BITMAP} and @var{format} set to -@code{GL_COLOR_INDEX}. Modes specified using @code{glPixelStore} affect +@code{GL_COLOR_INDEX}. Modes specified using @code{glPixelStore} affect the interpretation of bitmap image data; modes specified using @code{glPixelTransfer} do not. @@ -885,13 +886,13 @@ the window coordinates @r{@var{y}_@var{w}=⌊@var{y}_@var{r}-@var{y}_@var{o},⌋} where @r{(@var{x}_@var{r},@var{y}_@var{r})} is the raster position and -@r{(@var{x}_@var{o},@var{y}_@var{o})} is the bitmap origin. Fragments +@r{(@var{x}_@var{o},@var{y}_@var{o})} is the bitmap origin. Fragments are then generated for each pixel corresponding to a 1 (one) in the -bitmap image. These fragments are generated using the current raster +bitmap image. These fragments are generated using the current raster @var{z} coordinate, color or color index, and current raster texture -coordinates. They are then treated just as if they had been generated by -a point, line, or polygon, including texture mapping, fogging, and all -per-fragment operations such as alpha and depth testing. +coordinates. They are then treated just as if they had been generated +by a point, line, or polygon, including texture mapping, fogging, and +all per-fragment operations such as alpha and depth testing. After the bitmap has been drawn, the @var{x} and @var{y} coordinates of the current raster position are offset by @var{xmove} and @var{ymove}. @@ -929,9 +930,9 @@ specify the components of @code{GL_BLEND_COLOR} @end table The @code{GL_BLEND_COLOR} may be used to calculate the source and -destination blending factors. The color components are clamped to the -range @r{[0,1]} before being stored. See @code{glBlendFunc} for a -complete description of the blending operations. Initially the +destination blending factors. The color components are clamped to the +range @r{[0,1]} before being stored. See @code{glBlendFunc} for a +complete description of the blending operations. Initially the @code{GL_BLEND_COLOR} is set to (0, 0, 0, 0). @code{GL_INVALID_OPERATION} is generated if @code{glBlendColor} is @@ -948,13 +949,13 @@ Set the RGB blend equation and the alpha blend equation separately. @table @asis @item @var{modeRGB} specifies the RGB blend equation, how the red, green, and blue -components of the source and destination colors are combined. It must be -@code{GL_FUNC_ADD}, @code{GL_FUNC_SUBTRACT}, +components of the source and destination colors are combined. It must +be @code{GL_FUNC_ADD}, @code{GL_FUNC_SUBTRACT}, @code{GL_FUNC_REVERSE_SUBTRACT}, @code{GL_MIN}, @code{GL_MAX}. @item @var{modeAlpha} specifies the alpha blend equation, how the alpha component of the -source and destination colors are combined. It must be +source and destination colors are combined. It must be @code{GL_FUNC_ADD}, @code{GL_FUNC_SUBTRACT}, @code{GL_FUNC_REVERSE_SUBTRACT}, @code{GL_MIN}, @code{GL_MAX}. @@ -962,7 +963,7 @@ source and destination colors are combined. It must be The blend equations determines how a new pixel (the ''source'' color) is combined with a pixel already in the framebuffer (the ''destination'' -color). This function specifies one blend equation for the RGB-color +color). This function specifies one blend equation for the RGB-color components and one blend equation for the alpha component. The blend equations use the source and destination blend factors @@ -974,13 +975,13 @@ In the equations that follow, source and destination color components are referred to as @r{(@var{R}_@var{s},@var{G}_@var{s}@var{B}_@var{s}@var{A}_@var{s})} and @r{(@var{R}_@var{d},@var{G}_@var{d}@var{B}_@var{d}@var{A}_@var{d})}, -respectively. The result color is referred to as -@r{(@var{R}_@var{r},@var{G}_@var{r}@var{B}_@var{r}@var{A}_@var{r})}. The +respectively. The result color is referred to as +@r{(@var{R}_@var{r},@var{G}_@var{r}@var{B}_@var{r}@var{A}_@var{r})}. The source and destination blend factors are denoted @r{(@var{s}_@var{R},@var{s}_@var{G}@var{s}_@var{B}@var{s}_@var{A})} and @r{(@var{d}_@var{R},@var{d}_@var{G}@var{d}_@var{B}@var{d}_@var{A})}, -respectively. For these equations all color components are understood to -have values in the range @r{[0,1]}. +respectively. For these equations all color components are understood +to have values in the range @r{[0,1]}. @table @asis @item @strong{Mode} @@ -1012,7 +1013,7 @@ The results of these equations are clamped to the range @r{[0,1]}. The @code{GL_MIN} and @code{GL_MAX} equations are useful for applications that analyze image data (image thresholding against a -constant color, for example). The @code{GL_FUNC_ADD} equation is useful +constant color, for example). The @code{GL_FUNC_ADD} equation is useful for antialiasing and transparency, among other things. Initially, both the RGB blend equation and the alpha blend equation are @@ -1037,7 +1038,7 @@ blend equation. @table @asis @item @var{mode} -specifies how source and destination colors are combined. It must be +specifies how source and destination colors are combined. It must be @code{GL_FUNC_ADD}, @code{GL_FUNC_SUBTRACT}, @code{GL_FUNC_REVERSE_SUBTRACT}, @code{GL_MIN}, @code{GL_MAX}. @@ -1045,11 +1046,11 @@ specifies how source and destination colors are combined. It must be The blend equations determine how a new pixel (the ''source'' color) is combined with a pixel already in the framebuffer (the ''destination'' -color). This function sets both the RGB blend equation and the alpha +color). This function sets both the RGB blend equation and the alpha blend equation to a single equation. These equations use the source and destination blend factors specified -by either @code{glBlendFunc} or @code{glBlendFuncSeparate}. See +by either @code{glBlendFunc} or @code{glBlendFuncSeparate}. See @code{glBlendFunc} or @code{glBlendFuncSeparate} for a description of the various blend factors. @@ -1057,13 +1058,13 @@ In the equations that follow, source and destination color components are referred to as @r{(@var{R}_@var{s},@var{G}_@var{s}@var{B}_@var{s}@var{A}_@var{s})} and @r{(@var{R}_@var{d},@var{G}_@var{d}@var{B}_@var{d}@var{A}_@var{d})}, -respectively. The result color is referred to as -@r{(@var{R}_@var{r},@var{G}_@var{r}@var{B}_@var{r}@var{A}_@var{r})}. The +respectively. The result color is referred to as +@r{(@var{R}_@var{r},@var{G}_@var{r}@var{B}_@var{r}@var{A}_@var{r})}. The source and destination blend factors are denoted @r{(@var{s}_@var{R},@var{s}_@var{G}@var{s}_@var{B}@var{s}_@var{A})} and @r{(@var{d}_@var{R},@var{d}_@var{G}@var{d}_@var{B}@var{d}_@var{A})}, -respectively. For these equations all color components are understood to -have values in the range @r{[0,1]}. +respectively. For these equations all color components are understood +to have values in the range @r{[0,1]}. @table @asis @item @strong{Mode} @@ -1095,7 +1096,7 @@ The results of these equations are clamped to the range @r{[0,1]}. The @code{GL_MIN} and @code{GL_MAX} equations are useful for applications that analyze image data (image thresholding against a -constant color, for example). The @code{GL_FUNC_ADD} equation is useful +constant color, for example). The @code{GL_FUNC_ADD} equation is useful for antialiasing and transparency, among other things. Initially, both the RGB blend equation and the alpha blend equation are @@ -1130,46 +1131,48 @@ The initial value is @code{GL_ONE}. @item @var{dstRGB} Specifies how the red, green, and blue destination blending factors are -computed. The following symbolic constants are accepted: @code{GL_ZERO}, -@code{GL_ONE}, @code{GL_SRC_COLOR}, @code{GL_ONE_MINUS_SRC_COLOR}, -@code{GL_DST_COLOR}, @code{GL_ONE_MINUS_DST_COLOR}, @code{GL_SRC_ALPHA}, +computed. The following symbolic constants are accepted: +@code{GL_ZERO}, @code{GL_ONE}, @code{GL_SRC_COLOR}, +@code{GL_ONE_MINUS_SRC_COLOR}, @code{GL_DST_COLOR}, +@code{GL_ONE_MINUS_DST_COLOR}, @code{GL_SRC_ALPHA}, @code{GL_ONE_MINUS_SRC_ALPHA}, @code{GL_DST_ALPHA}, -@code{GL_ONE_MINUS_DST_ALPHA}. @code{GL_CONSTANT_COLOR}, +@code{GL_ONE_MINUS_DST_ALPHA}. @code{GL_CONSTANT_COLOR}, @code{GL_ONE_MINUS_CONSTANT_COLOR}, @code{GL_CONSTANT_ALPHA}, and -@code{GL_ONE_MINUS_CONSTANT_ALPHA}. The initial value is @code{GL_ZERO}. +@code{GL_ONE_MINUS_CONSTANT_ALPHA}. The initial value is +@code{GL_ZERO}. @item @var{srcAlpha} -Specified how the alpha source blending factor is computed. The same -symbolic constants are accepted as for @var{srcRGB}. The initial value +Specified how the alpha source blending factor is computed. The same +symbolic constants are accepted as for @var{srcRGB}. The initial value is @code{GL_ONE}. @item @var{dstAlpha} -Specified how the alpha destination blending factor is computed. The -same symbolic constants are accepted as for @var{dstRGB}. The initial +Specified how the alpha destination blending factor is computed. The +same symbolic constants are accepted as for @var{dstRGB}. The initial value is @code{GL_ZERO}. @end table In RGBA mode, pixels can be drawn using a function that blends the incoming (source) RGBA values with the RGBA values that are already in -the frame buffer (the destination values). Blending is initially -disabled. Use @code{glEnable} and @code{glDisable} with argument +the frame buffer (the destination values). Blending is initially +disabled. Use @code{glEnable} and @code{glDisable} with argument @code{GL_BLEND} to enable and disable blending. @code{glBlendFuncSeparate} defines the operation of blending when it is -enabled. @var{srcRGB} specifies which method is used to scale the source -RGB-color components. @var{dstRGB} specifies which method is used to -scale the destination RGB-color components. Likewise, @var{srcAlpha} -specifies which method is used to scale the source alpha color -component, and @var{dstAlpha} specifies which method is used to scale -the destination alpha component. The possible methods are described in -the following table. Each method defines four scale factors, one each -for red, green, blue, and alpha. +enabled. @var{srcRGB} specifies which method is used to scale the +source RGB-color components. @var{dstRGB} specifies which method is +used to scale the destination RGB-color components. Likewise, +@var{srcAlpha} specifies which method is used to scale the source alpha +color component, and @var{dstAlpha} specifies which method is used to +scale the destination alpha component. The possible methods are +described in the following table. Each method defines four scale +factors, one each for red, green, blue, and alpha. In the table and in subsequent equations, source and destination color components are referred to as @r{(@var{R}_@var{s},@var{G}_@var{s}@var{B}_@var{s}@var{A}_@var{s})} and -@r{(@var{R}_@var{d},@var{G}_@var{d}@var{B}_@var{d}@var{A}_@var{d})}. The +@r{(@var{R}_@var{d},@var{G}_@var{d}@var{B}_@var{d}@var{A}_@var{d})}. The color specified by @code{glBlendColor} is referred to as @r{(@var{R}_@var{c},@var{G}_@var{c}@var{B}_@var{c}@var{A}_@var{c})}. They are understood to have integer values between 0 and @@ -1183,7 +1186,7 @@ is the number of red, green, blue, and alpha bitplanes. Source and destination scale factors are referred to as @r{(@var{s}_@var{R},@var{s}_@var{G}@var{s}_@var{B}@var{s}_@var{A})} and -@r{(@var{d}_@var{R},@var{d}_@var{G}@var{d}_@var{B}@var{d}_@var{A})}. All +@r{(@var{d}_@var{R},@var{d}_@var{G}@var{d}_@var{B}@var{d}_@var{A})}. All scale factors have range @r{[0,1]}. @@ -1262,9 +1265,9 @@ mode, the system uses the following equations: Despite the apparent precision of the above equations, blending arithmetic is not exactly specified, because blending operates with -imprecise integer color values. However, a blend factor that should be +imprecise integer color values. However, a blend factor that should be equal to 1 is guaranteed not to modify its multiplicand, and a blend -factor equal to 0 reduces its multiplicand to 0. For example, when +factor equal to 0 reduces its multiplicand to 0. For example, when @var{srcRGB} is @code{GL_SRC_ALPHA}, @var{dstRGB} is @code{GL_ONE_MINUS_SRC_ALPHA}, and @r{@var{A}_@var{s}} is equal to @r{@var{k}_@var{A}}, the equations reduce to simple replacement: @@ -1288,7 +1291,7 @@ Specify pixel arithmetic. @table @asis @item @var{sfactor} Specifies how the red, green, blue, and alpha source blending factors -are computed. The following symbolic constants are accepted: +are computed. The following symbolic constants are accepted: @code{GL_ZERO}, @code{GL_ONE}, @code{GL_SRC_COLOR}, @code{GL_ONE_MINUS_SRC_COLOR}, @code{GL_DST_COLOR}, @code{GL_ONE_MINUS_DST_COLOR}, @code{GL_SRC_ALPHA}, @@ -1300,32 +1303,33 @@ The initial value is @code{GL_ONE}. @item @var{dfactor} Specifies how the red, green, blue, and alpha destination blending -factors are computed. The following symbolic constants are accepted: +factors are computed. The following symbolic constants are accepted: @code{GL_ZERO}, @code{GL_ONE}, @code{GL_SRC_COLOR}, @code{GL_ONE_MINUS_SRC_COLOR}, @code{GL_DST_COLOR}, @code{GL_ONE_MINUS_DST_COLOR}, @code{GL_SRC_ALPHA}, @code{GL_ONE_MINUS_SRC_ALPHA}, @code{GL_DST_ALPHA}, -@code{GL_ONE_MINUS_DST_ALPHA}. @code{GL_CONSTANT_COLOR}, +@code{GL_ONE_MINUS_DST_ALPHA}. @code{GL_CONSTANT_COLOR}, @code{GL_ONE_MINUS_CONSTANT_COLOR}, @code{GL_CONSTANT_ALPHA}, and -@code{GL_ONE_MINUS_CONSTANT_ALPHA}. The initial value is @code{GL_ZERO}. +@code{GL_ONE_MINUS_CONSTANT_ALPHA}. The initial value is +@code{GL_ZERO}. @end table In RGBA mode, pixels can be drawn using a function that blends the incoming (source) RGBA values with the RGBA values that are already in -the frame buffer (the destination values). Blending is initially -disabled. Use @code{glEnable} and @code{glDisable} with argument +the frame buffer (the destination values). Blending is initially +disabled. Use @code{glEnable} and @code{glDisable} with argument @code{GL_BLEND} to enable and disable blending. @code{glBlendFunc} defines the operation of blending when it is enabled. @var{sfactor} specifies which method is used to scale the source color -components. @var{dfactor} specifies which method is used to scale the -destination color components. The possible methods are described in the -following table. Each method defines four scale factors, one each for -red, green, blue, and alpha. In the table and in subsequent equations, +components. @var{dfactor} specifies which method is used to scale the +destination color components. The possible methods are described in the +following table. Each method defines four scale factors, one each for +red, green, blue, and alpha. In the table and in subsequent equations, source and destination color components are referred to as @r{(@var{R}_@var{s},@var{G}_@var{s}@var{B}_@var{s}@var{A}_@var{s})} and -@r{(@var{R}_@var{d},@var{G}_@var{d}@var{B}_@var{d}@var{A}_@var{d})}. The +@r{(@var{R}_@var{d},@var{G}_@var{d}@var{B}_@var{d}@var{A}_@var{d})}. The color specified by @code{glBlendColor} is referred to as @r{(@var{R}_@var{c},@var{G}_@var{c}@var{B}_@var{c}@var{A}_@var{c})}. They are understood to have integer values between 0 and @@ -1339,10 +1343,10 @@ is the number of red, green, blue, and alpha bitplanes. Source and destination scale factors are referred to as @r{(@var{s}_@var{R},@var{s}_@var{G}@var{s}_@var{B}@var{s}_@var{A})} and -@r{(@var{d}_@var{R},@var{d}_@var{G}@var{d}_@var{B}@var{d}_@var{A})}. The +@r{(@var{d}_@var{R},@var{d}_@var{G}@var{d}_@var{B}@var{d}_@var{A})}. The scale factors described in the table, denoted @r{(@var{f}_@var{R},@var{f}_@var{G}@var{f}_@var{B}@var{f}_@var{A})}, -represent either source or destination factors. All scale factors have +represent either source or destination factors. All scale factors have range @r{[0,1]}. @@ -1409,9 +1413,9 @@ mode, the system uses the following equations: Despite the apparent precision of the above equations, blending arithmetic is not exactly specified, because blending operates with -imprecise integer color values. However, a blend factor that should be +imprecise integer color values. However, a blend factor that should be equal to 1 is guaranteed not to modify its multiplicand, and a blend -factor equal to 0 reduces its multiplicand to 0. For example, when +factor equal to 0 reduces its multiplicand to 0. For example, when @var{sfactor} is @code{GL_SRC_ALPHA}, @var{dfactor} is @code{GL_ONE_MINUS_SRC_ALPHA}, and @r{@var{A}_@var{s}} is equal to @r{@var{k}_@var{A}}, the equations reduce to simple replacement: @@ -1434,7 +1438,7 @@ Creates and initializes a buffer object's data store. @table @asis @item @var{target} -Specifies the target buffer object. The symbolic constant must be +Specifies the target buffer object. The symbolic constant must be @code{GL_ARRAY_BUFFER}, @code{GL_ELEMENT_ARRAY_BUFFER}, @code{GL_PIXEL_PACK_BUFFER}, or @code{GL_PIXEL_UNPACK_BUFFER}. @@ -1446,7 +1450,7 @@ Specifies a pointer to data that will be copied into the data store for initialization, or @code{NULL} if no data is to be copied. @item @var{usage} -Specifies the expected usage pattern of the data store. The symbolic +Specifies the expected usage pattern of the data store. The symbolic constant must be @code{GL_STREAM_DRAW}, @code{GL_STREAM_READ}, @code{GL_STREAM_COPY}, @code{GL_STATIC_DRAW}, @code{GL_STATIC_READ}, @code{GL_STATIC_COPY}, @code{GL_DYNAMIC_DRAW}, @code{GL_DYNAMIC_READ}, @@ -1455,20 +1459,21 @@ or @code{GL_DYNAMIC_COPY}. @end table @code{glBufferData} creates a new data store for the buffer object -currently bound to @var{target}. Any pre-existing data store is deleted. -The new data store is created with the specified @var{size} in bytes and -@var{usage}. If @var{data} is not @code{NULL}, the data store is -initialized with data from this pointer. In its initial state, the new -data store is not mapped, it has a @code{NULL} mapped pointer, and its -mapped access is @code{GL_READ_WRITE}. +currently bound to @var{target}. Any pre-existing data store is +deleted. The new data store is created with the specified @var{size} in +bytes and @var{usage}. If @var{data} is not @code{NULL}, the data store +is initialized with data from this pointer. In its initial state, the +new data store is not mapped, it has a @code{NULL} mapped pointer, and +its mapped access is @code{GL_READ_WRITE}. @var{usage} is a hint to the GL implementation as to how a buffer -object's data store will be accessed. This enables the GL implementation -to make more intelligent decisions that may significantly impact buffer -object performance. It does not, however, constrain the actual usage of -the data store. @var{usage} can be broken down into two parts: first, -the frequency of access (modification and usage), and second, the nature -of that access. The frequency of access may be one of these: +object's data store will be accessed. This enables the GL +implementation to make more intelligent decisions that may significantly +impact buffer object performance. It does not, however, constrain the +actual usage of the data store. @var{usage} can be broken down into two +parts: first, the frequency of access (modification and usage), and +second, the nature of that access. The frequency of access may be one +of these: @table @asis @item STREAM @@ -1529,7 +1534,7 @@ Updates a subset of a buffer object's data store. @table @asis @item @var{target} -Specifies the target buffer object. The symbolic constant must be +Specifies the target buffer object. The symbolic constant must be @code{GL_ARRAY_BUFFER}, @code{GL_ELEMENT_ARRAY_BUFFER}, @code{GL_PIXEL_PACK_BUFFER}, or @code{GL_PIXEL_UNPACK_BUFFER}. @@ -1547,9 +1552,9 @@ store. @end table @code{glBufferSubData} redefines some or all of the data store for the -buffer object currently bound to @var{target}. Data starting at byte +buffer object currently bound to @var{target}. Data starting at byte offset @var{offset} and extending for @var{size} bytes is copied to the -data store from the memory pointed to by @var{data}. An error is thrown +data store from the memory pointed to by @var{data}. An error is thrown if @var{offset} and @var{size} together define a range beyond the bounds of the buffer object's data store. @@ -1581,7 +1586,7 @@ Execute a list of display lists. Specifies the number of display lists to be executed. @item @var{type} -Specifies the type of values in @var{lists}. Symbolic constants +Specifies the type of values in @var{lists}. Symbolic constants @code{GL_BYTE}, @code{GL_UNSIGNED_BYTE}, @code{GL_SHORT}, @code{GL_UNSIGNED_SHORT}, @code{GL_INT}, @code{GL_UNSIGNED_INT}, @code{GL_FLOAT}, @code{GL_2_BYTES}, @code{GL_3_BYTES}, and @@ -1595,14 +1600,14 @@ or floats, depending on the value of @var{type}. @end table @code{glCallLists} causes each display list in the list of names passed -as @var{lists} to be executed. As a result, the commands saved in each +as @var{lists} to be executed. As a result, the commands saved in each display list are executed in order, just as if they were called without -using a display list. Names of display lists that have not been defined +using a display list. Names of display lists that have not been defined are ignored. @code{glCallLists} provides an efficient means for executing more than -one display list. @var{type} allows lists with various name formats to -be accepted. The formats are as follows: +one display list. @var{type} allows lists with various name formats to +be accepted. The formats are as follows: @table @asis @item @code{GL_BYTE} @@ -1631,29 +1636,29 @@ in the range 0 through 65535. @var{lists} is treated as an array of four-byte floating-point values. @item @code{GL_2_BYTES} -@var{lists} is treated as an array of unsigned bytes. Each pair of bytes -specifies a single display-list name. The value of the pair is computed -as 256 times the unsigned value of the first byte plus the unsigned -value of the second byte. +@var{lists} is treated as an array of unsigned bytes. Each pair of +bytes specifies a single display-list name. The value of the pair is +computed as 256 times the unsigned value of the first byte plus the +unsigned value of the second byte. @item @code{GL_3_BYTES} -@var{lists} is treated as an array of unsigned bytes. Each triplet of -bytes specifies a single display-list name. The value of the triplet is +@var{lists} is treated as an array of unsigned bytes. Each triplet of +bytes specifies a single display-list name. The value of the triplet is computed as 65536 times the unsigned value of the first byte, plus 256 times the unsigned value of the second byte, plus the unsigned value of the third byte. @item @code{GL_4_BYTES} -@var{lists} is treated as an array of unsigned bytes. Each quadruplet of -bytes specifies a single display-list name. The value of the quadruplet -is computed as 16777216 times the unsigned value of the first byte, plus -65536 times the unsigned value of the second byte, plus 256 times the -unsigned value of the third byte, plus the unsigned value of the fourth -byte. +@var{lists} is treated as an array of unsigned bytes. Each quadruplet +of bytes specifies a single display-list name. The value of the +quadruplet is computed as 16777216 times the unsigned value of the first +byte, plus 65536 times the unsigned value of the second byte, plus 256 +times the unsigned value of the third byte, plus the unsigned value of +the fourth byte. @end table -The list of display-list names is not null-terminated. Rather, @var{n} +The list of display-list names is not null-terminated. Rather, @var{n} specifies how many names are to be taken from @var{lists}. An additional level of indirection is made available with the @@ -1661,15 +1666,15 @@ An additional level of indirection is made available with the added to each display-list name specified in @var{lists} before that display list is executed. -@code{glCallLists} can appear inside a display list. To avoid the +@code{glCallLists} can appear inside a display list. To avoid the possibility of infinite recursion resulting from display lists calling one another, a limit is placed on the nesting level of display lists -during display-list execution. This limit must be at least 64, and it +during display-list execution. This limit must be at least 64, and it depends on the implementation. GL state is not saved and restored across a call to @code{glCallLists}. Thus, changes made to GL state during the execution of the display lists -remain after execution is completed. Use @code{glPushAttrib}, +remain after execution is completed. Use @code{glPushAttrib}, @code{glPopAttrib}, @code{glPushMatrix}, and @code{glPopMatrix} to preserve GL state across @code{glCallLists} calls. @@ -1692,20 +1697,20 @@ Specifies the integer name of the display list to be executed. @end table -@code{glCallList} causes the named display list to be executed. The +@code{glCallList} causes the named display list to be executed. The commands saved in the display list are executed in order, just as if -they were called without using a display list. If @var{list} has not +they were called without using a display list. If @var{list} has not been defined as a display list, @code{glCallList} is ignored. -@code{glCallList} can appear inside a display list. To avoid the +@code{glCallList} can appear inside a display list. To avoid the possibility of infinite recursion resulting from display lists calling one another, a limit is placed on the nesting level of display lists -during display-list execution. This limit is at least 64, and it depends -on the implementation. +during display-list execution. This limit is at least 64, and it +depends on the implementation. GL state is not saved and restored across a call to @code{glCallList}. Thus, changes made to GL state during the execution of a display list -remain after execution of the display list is completed. Use +remain after execution of the display list is completed. Use @code{glPushAttrib}, @code{glPopAttrib}, @code{glPushMatrix}, and @code{glPopMatrix} to preserve GL state across @code{glCallList} calls. @@ -1720,7 +1725,7 @@ Specify clear values for the accumulation buffer. @itemx @var{blue} @itemx @var{alpha} Specify the red, green, blue, and alpha values used when the -accumulation buffer is cleared. The initial values are all 0. +accumulation buffer is cleared. The initial values are all 0. @end table @@ -1745,12 +1750,12 @@ Specify clear values for the color buffers. @itemx @var{blue} @itemx @var{alpha} Specify the red, green, blue, and alpha values used when the color -buffers are cleared. The initial values are all 0. +buffers are cleared. The initial values are all 0. @end table @code{glClearColor} specifies the red, green, blue, and alpha values -used by @code{glClear} to clear the color buffers. Values specified by +used by @code{glClear} to clear the color buffers. Values specified by @code{glClearColor} are clamped to the range @r{[0,1]}. @code{GL_INVALID_OPERATION} is generated if @code{glClearColor} is @@ -1764,13 +1769,13 @@ Specify the clear value for the depth buffer. @table @asis @item @var{depth} -Specifies the depth value used when the depth buffer is cleared. The +Specifies the depth value used when the depth buffer is cleared. The initial value is 1. @end table @code{glClearDepth} specifies the depth value used by @code{glClear} to -clear the depth buffer. Values specified by @code{glClearDepth} are +clear the depth buffer. Values specified by @code{glClearDepth} are clamped to the range @r{[0,1]}. @code{GL_INVALID_OPERATION} is generated if @code{glClearDepth} is @@ -1784,15 +1789,15 @@ Specify the clear value for the color index buffers. @table @asis @item @var{c} -Specifies the index used when the color index buffers are cleared. The +Specifies the index used when the color index buffers are cleared. The initial value is 0. @end table @code{glClearIndex} specifies the index used by @code{glClear} to clear -the color index buffers. @var{c} is not clamped. Rather, @var{c} is +the color index buffers. @var{c} is not clamped. Rather, @var{c} is converted to a fixed-point value with unspecified precision to the right -of the binary point. The integer part of this value is then masked with +of the binary point. The integer part of this value is then masked with @r{2^@var{m}-1}, where @r{@var{m}} is the number of bits in a color index stored in the frame buffer. @@ -1807,13 +1812,13 @@ Specify the clear value for the stencil buffer. @table @asis @item @var{s} -Specifies the index used when the stencil buffer is cleared. The initial -value is 0. +Specifies the index used when the stencil buffer is cleared. The +initial value is 0. @end table @code{glClearStencil} specifies the index used by @code{glClear} to -clear the stencil buffer. @var{s} is masked with @r{2^@var{m}-1}, where +clear the stencil buffer. @var{s} is masked with @r{2^@var{m}-1}, where @r{@var{m}} is the number of bits in the stencil buffer. @code{GL_INVALID_OPERATION} is generated if @code{glClearStencil} is @@ -1827,7 +1832,7 @@ Clear buffers to preset values. @table @asis @item @var{mask} -Bitwise OR of masks that indicate the buffers to be cleared. The four +Bitwise OR of masks that indicate the buffers to be cleared. The four masks are @code{GL_COLOR_BUFFER_BIT}, @code{GL_DEPTH_BUFFER_BIT}, @code{GL_ACCUM_BUFFER_BIT}, and @code{GL_STENCIL_BUFFER_BIT}. @@ -1840,8 +1845,8 @@ Multiple color buffers can be cleared simultaneously by selecting more than one buffer at a time using @code{glDrawBuffer}. The pixel ownership test, the scissor test, dithering, and the buffer -writemasks affect the operation of @code{glClear}. The scissor box -bounds the cleared region. Alpha function, blend function, logical +writemasks affect the operation of @code{glClear}. The scissor box +bounds the cleared region. Alpha function, blend function, logical operation, stenciling, texture mapping, and depth-buffering are ignored by @code{glClear}. @@ -1882,11 +1887,12 @@ Select active texture unit. @table @asis @item @var{texture} -Specifies which texture unit to make active. The number of texture units -is implementation dependent, but must be at least two. @var{texture} -must be one of @code{GL_TEXTURE}@r{@var{i}}, where i ranges from 0 to -the value of @code{GL_MAX_TEXTURE_COORDS} - 1, which is an -implementation-dependent value. The initial value is @code{GL_TEXTURE0}. +Specifies which texture unit to make active. The number of texture +units is implementation dependent, but must be at least two. +@var{texture} must be one of @code{GL_TEXTURE}@r{@var{i}}, where i +ranges from 0 to the value of @code{GL_MAX_TEXTURE_COORDS} - 1, which is +an implementation-dependent value. The initial value is +@code{GL_TEXTURE0}. @end table @@ -1907,34 +1913,35 @@ Specify a plane against which all geometry is clipped. @table @asis @item @var{plane} -Specifies which clipping plane is being positioned. Symbolic names of +Specifies which clipping plane is being positioned. Symbolic names of the form @code{GL_CLIP_PLANE}@var{i}, where @var{i} is an integer between 0 and @code{GL_MAX_CLIP_PLANES}@r{-1}, are accepted. @item @var{equation} Specifies the address of an array of four double-precision -floating-point values. These values are interpreted as a plane equation. +floating-point values. These values are interpreted as a plane +equation. @end table Geometry is always clipped against the boundaries of a six-plane frustum -in @var{x}, @var{y}, and @var{z}. @code{glClipPlane} allows the +in @var{x}, @var{y}, and @var{z}. @code{glClipPlane} allows the specification of additional planes, not necessarily perpendicular to the @var{x}, @var{y}, or @var{z} axis, against which all geometry is -clipped. To determine the maximum number of additional clipping planes, -call @code{glGetIntegerv} with argument @code{GL_MAX_CLIP_PLANES}. All -implementations support at least six such clipping planes. Because the +clipped. To determine the maximum number of additional clipping planes, +call @code{glGetIntegerv} with argument @code{GL_MAX_CLIP_PLANES}. All +implementations support at least six such clipping planes. Because the resulting clipping region is the intersection of the defined half-spaces, it is always convex. @code{glClipPlane} specifies a half-space using a four-component plane -equation. When @code{glClipPlane} is called, @var{equation} is +equation. When @code{glClipPlane} is called, @var{equation} is transformed by the inverse of the modelview matrix and stored in the -resulting eye coordinates. Subsequent changes to the modelview matrix -have no effect on the stored plane-equation components. If the dot +resulting eye coordinates. Subsequent changes to the modelview matrix +have no effect on the stored plane-equation components. If the dot product of the eye coordinates of a vertex with the stored plane equation components is positive or zero, the vertex is @var{in} with -respect to that clipping plane. Otherwise, it is @var{out}. +respect to that clipping plane. Otherwise, it is @var{out}. To enable and disable clipping planes, call @code{glEnable} and @code{glDisable} with the argument @code{GL_CLIP_PLANE}@var{i}, where @@ -1961,18 +1968,18 @@ Enable and disable writing of frame buffer color components. @itemx @var{blue} @itemx @var{alpha} Specify whether red, green, blue, and alpha can or cannot be written -into the frame buffer. The initial values are all @code{GL_TRUE}, +into the frame buffer. The initial values are all @code{GL_TRUE}, indicating that the color components can be written. @end table @code{glColorMask} specifies whether the individual color components in -the frame buffer can or cannot be written. If @var{red} is +the frame buffer can or cannot be written. If @var{red} is @code{GL_FALSE}, for example, no change is made to the red component of any pixel in any of the color buffers, regardless of the drawing operation attempted. -Changes to individual bits of components cannot be controlled. Rather, +Changes to individual bits of components cannot be controlled. Rather, changes are either enabled or disabled for entire color components. @code{GL_INVALID_OPERATION} is generated if @code{glColorMask} is @@ -1987,21 +1994,21 @@ Cause a material color to track the current color. @table @asis @item @var{face} Specifies whether front, back, or both front and back material -parameters should track the current color. Accepted values are -@code{GL_FRONT}, @code{GL_BACK}, and @code{GL_FRONT_AND_BACK}. The +parameters should track the current color. Accepted values are +@code{GL_FRONT}, @code{GL_BACK}, and @code{GL_FRONT_AND_BACK}. The initial value is @code{GL_FRONT_AND_BACK}. @item @var{mode} Specifies which of several material parameters track the current color. Accepted values are @code{GL_EMISSION}, @code{GL_AMBIENT}, @code{GL_DIFFUSE}, @code{GL_SPECULAR}, and -@code{GL_AMBIENT_AND_DIFFUSE}. The initial value is +@code{GL_AMBIENT_AND_DIFFUSE}. The initial value is @code{GL_AMBIENT_AND_DIFFUSE}. @end table @code{glColorMaterial} specifies which material parameters track the -current color. When @code{GL_COLOR_MATERIAL} is enabled, the material +current color. When @code{GL_COLOR_MATERIAL} is enabled, the material parameter or parameters specified by @var{mode}, of the material or materials specified by @var{face}, track the current color at all times. @@ -2023,40 +2030,40 @@ Define an array of colors. @table @asis @item @var{size} -Specifies the number of components per color. Must be 3 or 4. The +Specifies the number of components per color. Must be 3 or 4. The initial value is 4. @item @var{type} -Specifies the data type of each color component in the array. Symbolic +Specifies the data type of each color component in the array. Symbolic constants @code{GL_BYTE}, @code{GL_UNSIGNED_BYTE}, @code{GL_SHORT}, @code{GL_UNSIGNED_SHORT}, @code{GL_INT}, @code{GL_UNSIGNED_INT}, -@code{GL_FLOAT}, and @code{GL_DOUBLE} are accepted. The initial value is -@code{GL_FLOAT}. +@code{GL_FLOAT}, and @code{GL_DOUBLE} are accepted. The initial value +is @code{GL_FLOAT}. @item @var{stride} -Specifies the byte offset between consecutive colors. If @var{stride} is -0, the colors are understood to be tightly packed in the array. The +Specifies the byte offset between consecutive colors. If @var{stride} +is 0, the colors are understood to be tightly packed in the array. The initial value is 0. @item @var{pointer} Specifies a pointer to the first component of the first color element in -the array. The initial value is 0. +the array. The initial value is 0. @end table @code{glColorPointer} specifies the location and data format of an array -of color components to use when rendering. @var{size} specifies the -number of components per color, and must be 3 or 4. @var{type} specifies -the data type of each color component, and @var{stride} specifies the -byte stride from one color to the next, allowing vertices and attributes -to be packed into a single array or stored in separate arrays. -(Single-array storage may be more efficient on some implementations; see -@code{glInterleavedArrays}.) +of color components to use when rendering. @var{size} specifies the +number of components per color, and must be 3 or 4. @var{type} +specifies the data type of each color component, and @var{stride} +specifies the byte stride from one color to the next, allowing vertices +and attributes to be packed into a single array or stored in separate +arrays. (Single-array storage may be more efficient on some +implementations; see @code{glInterleavedArrays}.) If a non-zero named buffer object is bound to the @code{GL_ARRAY_BUFFER} target (see @code{glBindBuffer}) while a color array is specified, @var{pointer} is treated as a byte offset into the buffer object's data -store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) +store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) is saved as color vertex array client-side state (@code{GL_COLOR_ARRAY_BUFFER_BINDING}). @@ -2096,13 +2103,13 @@ The starting index of the portion of the color table to be replaced. The number of table entries to replace. @item @var{format} -The format of the pixel data in @var{data}. The allowable values are +The format of the pixel data in @var{data}. The allowable values are @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, and @code{GL_BGRA}. @item @var{type} -The type of the pixel data in @var{data}. The allowable values are +The type of the pixel data in @var{data}. The allowable values are @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @code{GL_UNSIGNED_BYTE_2_3_3_REV}, @@ -2120,11 +2127,11 @@ replace the specified region of the color table. @end table @code{glColorSubTable} is used to respecify a contiguous portion of a -color table previously defined using @code{glColorTable}. The pixels +color table previously defined using @code{glColorTable}. The pixels referenced by @var{data} replace the portion of the existing table from -indices @var{start} to @r{@var{start}+@var{count}-1}, inclusive. This +indices @var{start} to @r{@var{start}+@var{count}-1}, inclusive. This region may not include any entries outside the range of the color table -as it was originally specified. It is not an error to specify a +as it was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect. If a non-zero named buffer object is bound to the @@ -2170,13 +2177,13 @@ Set color lookup table parameters. @table @asis @item @var{target} -The target color table. Must be @code{GL_COLOR_TABLE}, +The target color table. Must be @code{GL_COLOR_TABLE}, @code{GL_POST_CONVOLUTION_COLOR_TABLE}, or @code{GL_POST_COLOR_MATRIX_COLOR_TABLE}. @item @var{pname} -The symbolic name of a texture color lookup table parameter. Must be one -of @code{GL_COLOR_TABLE_SCALE} or @code{GL_COLOR_TABLE_BIAS}. +The symbolic name of a texture color lookup table parameter. Must be +one of @code{GL_COLOR_TABLE_SCALE} or @code{GL_COLOR_TABLE_BIAS}. @item @var{params} A pointer to an array where the values of the parameters are stored. @@ -2185,17 +2192,17 @@ A pointer to an array where the values of the parameters are stored. @code{glColorTableParameter} is used to specify the scale factors and bias terms applied to color components when they are loaded into a color -table. @var{target} indicates which color table the scale and bias terms -apply to; it must be set to @code{GL_COLOR_TABLE}, +table. @var{target} indicates which color table the scale and bias +terms apply to; it must be set to @code{GL_COLOR_TABLE}, @code{GL_POST_CONVOLUTION_COLOR_TABLE}, or @code{GL_POST_COLOR_MATRIX_COLOR_TABLE}. @var{pname} must be @code{GL_COLOR_TABLE_SCALE} to set the scale -factors. In this case, @var{params} points to an array of four values, +factors. In this case, @var{params} points to an array of four values, which are the scale factors for red, green, blue, and alpha, in that order. -@var{pname} must be @code{GL_COLOR_TABLE_BIAS} to set the bias terms. In +@var{pname} must be @code{GL_COLOR_TABLE_BIAS} to set the bias terms. In this case, @var{params} points to an array of four values, which are the bias terms for red, green, blue, and alpha, in that order. @@ -2223,7 +2230,7 @@ Must be one of @code{GL_COLOR_TABLE}, @code{GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE}. @item @var{internalformat} -The internal format of the color table. The allowable values are +The internal format of the color table. The allowable values are @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE4}, @code{GL_LUMINANCE8}, @code{GL_LUMINANCE12}, @code{GL_LUMINANCE16}, @@ -2242,13 +2249,13 @@ The internal format of the color table. The allowable values are The number of entries in the color lookup table specified by @var{data}. @item @var{format} -The format of the pixel data in @var{data}. The allowable values are +The format of the pixel data in @var{data}. The allowable values are @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, and @code{GL_BGRA}. @item @var{type} -The type of the pixel data in @var{data}. The allowable values are +The type of the pixel data in @var{data}. The allowable values are @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @code{GL_UNSIGNED_BYTE_2_3_3_REV}, @@ -2267,7 +2274,7 @@ build the color table. @code{glColorTable} may be used in two ways: to test the actual size and color resolution of a lookup table given a particular set of parameters, -or to load the contents of a color lookup table. Use the targets +or to load the contents of a color lookup table. Use the targets @code{GL_PROXY_*} for the first case and the other targets for the second case. @@ -2279,21 +2286,21 @@ the buffer object's data store. If @var{target} is @code{GL_COLOR_TABLE}, @code{GL_POST_CONVOLUTION_COLOR_TABLE}, or @code{GL_POST_COLOR_MATRIX_COLOR_TABLE}, @code{glColorTable} builds a -color lookup table from an array of pixels. The pixel array specified by -@var{width}, @var{format}, @var{type}, and @var{data} is extracted from -memory and processed just as if @code{glDrawPixels} were called, but -processing stops after the final expansion to RGBA is completed. +color lookup table from an array of pixels. The pixel array specified +by @var{width}, @var{format}, @var{type}, and @var{data} is extracted +from memory and processed just as if @code{glDrawPixels} were called, +but processing stops after the final expansion to RGBA is completed. The four scale parameters and the four bias parameters that are defined for the table are then used to scale and bias the R, G, B, and A -components of each pixel. (Use @code{glColorTableParameter} to set these -scale and bias parameters.) +components of each pixel. (Use @code{glColorTableParameter} to set +these scale and bias parameters.) -Next, the R, G, B, and A values are clamped to the range @r{[0,1]}. Each +Next, the R, G, B, and A values are clamped to the range @r{[0,1]}. Each pixel is then converted to the internal format specified by -@var{internalformat}. This conversion simply maps the component values +@var{internalformat}. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal -format (red, green, blue, alpha, luminance, and intensity). The mapping +format (red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @@ -2324,7 +2331,7 @@ R , G , B , A , , @end table Finally, the red, green, blue, alpha, luminance, and/or intensity -components of the resulting pixels are stored in the color table. They +components of the resulting pixels are stored in the color table. They form a one-dimensional table with indices in the range @r{[0,@var{width}-1]}. @@ -2334,15 +2341,15 @@ stores the values of the proxy color table's state variables @code{GL_COLOR_TABLE_RED_SIZE}, @code{GL_COLOR_TABLE_GREEN_SIZE}, @code{GL_COLOR_TABLE_BLUE_SIZE}, @code{GL_COLOR_TABLE_ALPHA_SIZE}, @code{GL_COLOR_TABLE_LUMINANCE_SIZE}, and -@code{GL_COLOR_TABLE_INTENSITY_SIZE}. There is no effect on the image or -state of any actual color table. If the specified color table is too +@code{GL_COLOR_TABLE_INTENSITY_SIZE}. There is no effect on the image +or state of any actual color table. If the specified color table is too large to be supported, then all the proxy state variables listed above -are set to zero. Otherwise, the color table could be supported by +are set to zero. Otherwise, the color table could be supported by @code{glColorTable} using the corresponding non-proxy target, and the proxy state variables are set as if that target were being defined. The proxy state variables can be retrieved by calling -@code{glGetColorTableParameter} with a target of @code{GL_PROXY_*}. This +@code{glGetColorTableParameter} with a target of @code{GL_PROXY_*}. This allows the application to decide if a particular @code{glColorTable} command would succeed, and to determine what the resulting color table attributes would be. @@ -2352,10 +2359,10 @@ contents are used to replace a subset of the components of each RGBA pixel group, based on the internal format of the table. Each pixel group has color components (R, G, B, A) that are in the range -@r{[0.0,1.0]}. The color components are rescaled to the size of the -color lookup table to form an index. Then a subset of the components +@r{[0.0,1.0]}. The color components are rescaled to the size of the +color lookup table to form an index. Then a subset of the components based on the internal format of the table are replaced by the table -entry selected by that index. If the color components and contents of +entry selected by that index. If the color components and contents of the table are represented as follows: @@ -2429,11 +2436,11 @@ then the result of color table lookup is as follows: When @code{GL_COLOR_TABLE} is enabled, the colors resulting from the pixel map operation (if it is enabled) are mapped by the color lookup -table before being passed to the convolution operation. The colors +table before being passed to the convolution operation. The colors resulting from the convolution operation are modified by the post convolution color lookup table when -@code{GL_POST_CONVOLUTION_COLOR_TABLE} is enabled. These modified colors -are then sent to the color matrix operation. Finally, if +@code{GL_POST_CONVOLUTION_COLOR_TABLE} is enabled. These modified +colors are then sent to the color matrix operation. Finally, if @code{GL_POST_COLOR_MATRIX_COLOR_TABLE} is enabled, the colors resulting from the color matrix operation are mapped by the post color matrix color lookup table before being used by the histogram operation. @@ -2519,36 +2526,37 @@ Set the current color. Specify new red, green, and blue values for the current color. @item @var{alpha} -Specifies a new alpha value for the current color. Included only in the +Specifies a new alpha value for the current color. Included only in the four-argument @code{glColor4} commands. @end table The GL stores both a current single-valued color index and a current -four-valued RGBA color. @code{glColor} sets a new four-valued RGBA -color. @code{glColor} has two major variants: @code{glColor3} and -@code{glColor4}. @code{glColor3} variants specify new red, green, and +four-valued RGBA color. @code{glColor} sets a new four-valued RGBA +color. @code{glColor} has two major variants: @code{glColor3} and +@code{glColor4}. @code{glColor3} variants specify new red, green, and blue values explicitly and set the current alpha value to 1.0 (full -intensity) implicitly. @code{glColor4} variants specify all four color +intensity) implicitly. @code{glColor4} variants specify all four color components explicitly. @code{glColor3b}, @code{glColor4b}, @code{glColor3s}, @code{glColor4s}, @code{glColor3i}, and @code{glColor4i} take three or four signed byte, -short, or long integers as arguments. When @strong{v} is appended to the -name, the color commands can take a pointer to an array of such values. +short, or long integers as arguments. When @strong{v} is appended to +the name, the color commands can take a pointer to an array of such +values. Current color values are stored in floating-point format, with -unspecified mantissa and exponent sizes. Unsigned integer color +unspecified mantissa and exponent sizes. Unsigned integer color components, when specified, are linearly mapped to floating-point values such that the largest representable value maps to 1.0 (full intensity), -and 0 maps to 0.0 (zero intensity). Signed integer color components, +and 0 maps to 0.0 (zero intensity). Signed integer color components, when specified, are linearly mapped to floating-point values such that the most positive representable value maps to 1.0, and the most negative -representable value maps to @r{-1.0}. (Note that this mapping does not +representable value maps to @r{-1.0}. (Note that this mapping does not convert 0 precisely to 0.0.) Floating-point values are mapped directly. Neither floating-point nor signed integer values are clamped to the -range @r{[0,1]} before the current color is updated. However, color +range @r{[0,1]} before the current color is updated. However, color components are clamped to this range before they are interpolated or written into a color buffer. @@ -2567,13 +2575,13 @@ Specifies the shader object to be compiled. stored in the shader object specified by @var{shader}. The compilation status will be stored as part of the shader object's -state. This value will be set to @code{GL_TRUE} if the shader was +state. This value will be set to @code{GL_TRUE} if the shader was compiled without errors and is ready for use, and @code{GL_FALSE} -otherwise. It can be queried by calling @code{glGetShader} with +otherwise. It can be queried by calling @code{glGetShader} with arguments @var{shader} and @code{GL_COMPILE_STATUS}. Compilation of a shader can fail for a number of reasons as specified by -the OpenGL Shading Language Specification. Whether or not the +the OpenGL Shading Language Specification. Whether or not the compilation was successful, information about the compilation can be obtained from the shader object's information log by calling @code{glGetShaderInfoLog}. @@ -2595,11 +2603,11 @@ Specify a one-dimensional texture image in a compressed format. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_1D} or +Specifies the target texture. Must be @code{GL_TEXTURE_1D} or @code{GL_PROXY_TEXTURE_1D}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{internalformat} @@ -2607,14 +2615,14 @@ Specifies the format of the compressed image data stored at address @var{data}. @item @var{width} -Specifies the width of the texture image including the border if any. If +Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must -be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All +be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All implementations support texture images that are at least 64 texels wide. The height of the 1D texture image is 1. @item @var{border} -Specifies the width of the border. Must be either 0 or 1. +Specifies the width of the border. Must be either 0 or 1. @item @var{imageSize} Specifies the number of unsigned bytes of image data starting at the @@ -2626,7 +2634,7 @@ Specifies a pointer to the compressed image data in memory. @end table Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable one-dimensional texturing, call @code{glEnable} and @code{glDisable} with argument @code{GL_TEXTURE_1D}. @@ -2639,13 +2647,13 @@ If @var{target} is @code{GL_PROXY_TEXTURE_1D}, no data is read from for consistency, and checked against the implementation's capabilities. If the implementation cannot handle a texture of the requested texture size, it sets all of the image state to 0, but does not generate an -error (see @code{glGetError}). To query for an entire mipmap array, use +error (see @code{glGetError}). To query for an entire mipmap array, use an image array level greater than or equal to 1. @var{internalformat} must be extension-specified compressed-texture -format. When a texture is loaded with @code{glTexImage1D} using a +format. When a texture is loaded with @code{glTexImage1D} using a generic compressed texture format (e.g., @code{GL_COMPRESSED_RGB}) the -GL selects from one of its extensions supporting compressed textures. In +GL selects from one of its extensions supporting compressed textures. In order to load the compressed texture image using @code{glCompressedTexImage1D}, query the compressed texture image's size and format using @code{glGetTexLevelParameter}. @@ -2693,7 +2701,7 @@ Specify a two-dimensional texture image in a compressed format. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_2D}, +Specifies the target texture. Must be @code{GL_TEXTURE_2D}, @code{GL_PROXY_TEXTURE_2D}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_X}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_X}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_Y}, @@ -2703,7 +2711,7 @@ Specifies the target texture. Must be @code{GL_TEXTURE_2D}, @code{GL_PROXY_TEXTURE_CUBE_MAP}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{internalformat} @@ -2711,9 +2719,9 @@ Specifies the format of the compressed image data stored at address @var{data}. @item @var{width} -Specifies the width of the texture image including the border if any. If +Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must -be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All +be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. @@ -2721,12 +2729,12 @@ wide and cube-mapped texture images that are at least 16 texels wide. Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be @r{2^@var{n}+2⁡(@var{border},)} for some integer -@r{@var{n}}. All implementations support 2D texture images that are at +@r{@var{n}}. All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. @item @var{border} -Specifies the width of the border. Must be either 0 or 1. +Specifies the width of the border. Must be either 0 or 1. @item @var{imageSize} Specifies the number of unsigned bytes of image data starting at the @@ -2738,9 +2746,9 @@ Specifies a pointer to the compressed image data in memory. @end table Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable two-dimensional texturing, call @code{glEnable} and -@code{glDisable} with argument @code{GL_TEXTURE_2D}. To enable and +@code{glDisable} with argument @code{GL_TEXTURE_2D}. To enable and disable texturing using cube-mapped textures, call @code{glEnable} and @code{glDisable} with argument @code{GL_TEXTURE_CUBE_MAP}. @@ -2753,13 +2761,13 @@ If @var{target} is @code{GL_PROXY_TEXTURE_2D}, no data is read from for consistency, and checked against the implementation's capabilities. If the implementation cannot handle a texture of the requested texture size, it sets all of the image state to 0, but does not generate an -error (see @code{glGetError}). To query for an entire mipmap array, use +error (see @code{glGetError}). To query for an entire mipmap array, use an image array level greater than or equal to 1. @var{internalformat} must be an extension-specified compressed-texture -format. When a texture is loaded with @code{glTexImage2D} using a +format. When a texture is loaded with @code{glTexImage2D} using a generic compressed texture format (e.g., @code{GL_COMPRESSED_RGB}), the -GL selects from one of its extensions supporting compressed textures. In +GL selects from one of its extensions supporting compressed textures. In order to load the compressed texture image using @code{glCompressedTexImage2D}, query the compressed texture image's size and format using @code{glGetTexLevelParameter}. @@ -2807,11 +2815,11 @@ Specify a three-dimensional texture image in a compressed format. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_3D} or +Specifies the target texture. Must be @code{GL_TEXTURE_3D} or @code{GL_PROXY_TEXTURE_3D}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{internalformat} @@ -2819,9 +2827,9 @@ Specifies the format of the compressed image data stored at address @var{data}. @item @var{width} -Specifies the width of the texture image including the border if any. If +Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must -be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All +be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All implementations support 3D texture images that are at least 16 texels wide. @@ -2833,14 +2841,14 @@ All implementations support 3D texture images that are at least 16 texels high. @item @var{depth} -Specifies the depth of the texture image including the border if any. If +Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must -be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All +be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All implementations support 3D texture images that are at least 16 texels deep. @item @var{border} -Specifies the width of the border. Must be either 0 or 1. +Specifies the width of the border. Must be either 0 or 1. @item @var{imageSize} Specifies the number of unsigned bytes of image data starting at the @@ -2852,7 +2860,7 @@ Specifies a pointer to the compressed image data in memory. @end table Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable three-dimensional texturing, call @code{glEnable} and @code{glDisable} with argument @code{GL_TEXTURE_3D}. @@ -2865,13 +2873,13 @@ If @var{target} is @code{GL_PROXY_TEXTURE_3D}, no data is read from for consistency, and checked against the implementation's capabilities. If the implementation cannot handle a texture of the requested texture size, it sets all of the image state to 0, but does not generate an -error (see @code{glGetError}). To query for an entire mipmap array, use +error (see @code{glGetError}). To query for an entire mipmap array, use an image array level greater than or equal to 1. @var{internalformat} must be an extension-specified compressed-texture -format. When a texture is loaded with @code{glTexImage2D} using a +format. When a texture is loaded with @code{glTexImage2D} using a generic compressed texture format (e.g., @code{GL_COMPRESSED_RGB}), the -GL selects from one of its extensions supporting compressed textures. In +GL selects from one of its extensions supporting compressed textures. In order to load the compressed texture image using @code{glCompressedTexImage3D}, query the compressed texture image's size and format using @code{glGetTexLevelParameter}. @@ -2919,10 +2927,10 @@ Specify a one-dimensional texture subimage in a compressed format. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_1D}. +Specifies the target texture. Must be @code{GL_TEXTURE_1D}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{xoffset} @@ -2945,16 +2953,16 @@ Specifies a pointer to the compressed image data in memory. @end table Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable one-dimensional texturing, call @code{glEnable} and @code{glDisable} with argument @code{GL_TEXTURE_1D}. @code{glCompressedTexSubImage1D} redefines a contiguous subregion of an -existing one-dimensional texture image. The texels referenced by +existing one-dimensional texture image. The texels referenced by @var{data} replace the portion of the existing texture array with x indices @var{xoffset} and @r{@var{xoffset}+@var{width}-1}, inclusive. This region may not include any texels outside the range of the texture -array as it was originally specified. It is not an error to specify a +array as it was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect. @var{format} must be an extension-specified compressed-texture format. @@ -3008,7 +3016,7 @@ Specify a two-dimensional texture subimage in a compressed format. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_2D}, +Specifies the target texture. Must be @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_X}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_X}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_Y}, @@ -3017,7 +3025,7 @@ Specifies the target texture. Must be @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_Z}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{xoffset} @@ -3046,19 +3054,19 @@ Specifies a pointer to the compressed image data in memory. @end table Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable two-dimensional texturing, call @code{glEnable} and -@code{glDisable} with argument @code{GL_TEXTURE_2D}. To enable and +@code{glDisable} with argument @code{GL_TEXTURE_2D}. To enable and disable texturing using cube-mapped texture, call @code{glEnable} and @code{glDisable} with argument @code{GL_TEXTURE_CUBE_MAP}. @code{glCompressedTexSubImage2D} redefines a contiguous subregion of an -existing two-dimensional texture image. The texels referenced by +existing two-dimensional texture image. The texels referenced by @var{data} replace the portion of the existing texture array with x indices @var{xoffset} and @r{@var{xoffset}+@var{width}-1}, and the y indices @var{yoffset} and @r{@var{yoffset}+@var{height}-1}, inclusive. This region may not include any texels outside the range of the texture -array as it was originally specified. It is not an error to specify a +array as it was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect. @var{format} must be an extension-specified compressed-texture format. @@ -3112,10 +3120,10 @@ Specify a three-dimensional texture subimage in a compressed format. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_3D}. +Specifies the target texture. Must be @code{GL_TEXTURE_3D}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{xoffset} @@ -3147,18 +3155,18 @@ Specifies a pointer to the compressed image data in memory. @end table Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable three-dimensional texturing, call @code{glEnable} and @code{glDisable} with argument @code{GL_TEXTURE_3D}. @code{glCompressedTexSubImage3D} redefines a contiguous subregion of an -existing three-dimensional texture image. The texels referenced by +existing three-dimensional texture image. The texels referenced by @var{data} replace the portion of the existing texture array with x indices @var{xoffset} and @r{@var{xoffset}+@var{width}-1}, and the y indices @var{yoffset} and @r{@var{yoffset}+@var{height}-1}, and the z indices @var{zoffset} and @r{@var{zoffset}+@var{depth}-1}, inclusive. This region may not include any texels outside the range of the texture -array as it was originally specified. It is not an error to specify a +array as it was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect. @var{format} must be an extension-specified compressed-texture format. @@ -3215,7 +3223,7 @@ Define a one-dimensional convolution filter. Must be @code{GL_CONVOLUTION_1D}. @item @var{internalformat} -The internal format of the convolution filter kernel. The allowable +The internal format of the convolution filter kernel. The allowable values are @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE4}, @code{GL_LUMINANCE8}, @code{GL_LUMINANCE12}, @@ -3234,12 +3242,12 @@ values are @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, The width of the pixel array referenced by @var{data}. @item @var{format} -The format of the pixel data in @var{data}. The allowable values are +The format of the pixel data in @var{data}. The allowable values are @code{GL_ALPHA}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE_ALPHA}, @code{GL_INTENSITY}, @code{GL_RGB}, and @code{GL_RGBA}. @item @var{type} -The type of the pixel data in @var{data}. Symbolic constants +The type of the pixel data in @var{data}. Symbolic constants @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @@ -3271,19 +3279,19 @@ into the buffer object's data store. The R, G, B, and A components of each pixel are next scaled by the four 1D @code{GL_CONVOLUTION_FILTER_SCALE} parameters and biased by the four -1D @code{GL_CONVOLUTION_FILTER_BIAS} parameters. (The scale and bias +1D @code{GL_CONVOLUTION_FILTER_BIAS} parameters. (The scale and bias parameters are set by @code{glConvolutionParameter} using the @code{GL_CONVOLUTION_1D} target and the names @code{GL_CONVOLUTION_FILTER_SCALE} and -@code{GL_CONVOLUTION_FILTER_BIAS}. The parameters themselves are vectors -of four values that are applied to red, green, blue, and alpha, in that -order.) The R, G, B, and A values are not clamped to [0,1] at any time -during this process. +@code{GL_CONVOLUTION_FILTER_BIAS}. The parameters themselves are +vectors of four values that are applied to red, green, blue, and alpha, +in that order.) The R, G, B, and A values are not clamped to [0,1] at +any time during this process. Each pixel is then converted to the internal format specified by -@var{internalformat}. This conversion simply maps the component values +@var{internalformat}. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal -format (red, green, blue, alpha, luminance, and intensity). The mapping +format (red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @@ -3315,9 +3323,9 @@ R , G , B , A , , The red, green, blue, alpha, luminance, and/or intensity components of the resulting pixels are stored in floating-point rather than integer -format. They form a one-dimensional filter kernel image indexed with +format. They form a one-dimensional filter kernel image indexed with coordinate @var{i} such that @var{i} starts at 0 and increases from left -to right. Kernel location @var{i} is derived from the @var{i}th pixel, +to right. Kernel location @var{i} is derived from the @var{i}th pixel, counting from 0. Note that after a convolution is performed, the resulting color @@ -3325,7 +3333,8 @@ components are also scaled by their corresponding @code{GL_POST_CONVOLUTION_c_SCALE} parameters and biased by their corresponding @code{GL_POST_CONVOLUTION_c_BIAS} parameters (where @var{c} takes on the values @strong{RED}, @strong{GREEN}, @strong{BLUE}, -and @strong{ALPHA}). These parameters are set by @code{glPixelTransfer}. +and @strong{ALPHA}). These parameters are set by +@code{glPixelTransfer}. @code{GL_INVALID_ENUM} is generated if @var{target} is not @code{GL_CONVOLUTION_1D}. @@ -3340,9 +3349,9 @@ allowable values. allowable values. @code{GL_INVALID_VALUE} is generated if @var{width} is less than zero or -greater than the maximum supported value. This value may be queried with -@code{glGetConvolutionParameter} using target @code{GL_CONVOLUTION_1D} -and name @code{GL_MAX_CONVOLUTION_WIDTH}. +greater than the maximum supported value. This value may be queried +with @code{glGetConvolutionParameter} using target +@code{GL_CONVOLUTION_1D} and name @code{GL_MAX_CONVOLUTION_WIDTH}. @code{GL_INVALID_OPERATION} is generated if @var{format} is one of @code{GL_UNSIGNED_BYTE_3_3_2}, @code{GL_UNSIGNED_BYTE_2_3_3_REV}, @@ -3385,7 +3394,7 @@ Define a two-dimensional convolution filter. Must be @code{GL_CONVOLUTION_2D}. @item @var{internalformat} -The internal format of the convolution filter kernel. The allowable +The internal format of the convolution filter kernel. The allowable values are @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE4}, @code{GL_LUMINANCE8}, @code{GL_LUMINANCE12}, @@ -3407,13 +3416,13 @@ The width of the pixel array referenced by @var{data}. The height of the pixel array referenced by @var{data}. @item @var{format} -The format of the pixel data in @var{data}. The allowable values are +The format of the pixel data in @var{data}. The allowable values are @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, and @code{GL_LUMINANCE_ALPHA}. @item @var{type} -The type of the pixel data in @var{data}. Symbolic constants +The type of the pixel data in @var{data}. Symbolic constants @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @@ -3445,19 +3454,19 @@ into the buffer object's data store. The R, G, B, and A components of each pixel are next scaled by the four 2D @code{GL_CONVOLUTION_FILTER_SCALE} parameters and biased by the four -2D @code{GL_CONVOLUTION_FILTER_BIAS} parameters. (The scale and bias +2D @code{GL_CONVOLUTION_FILTER_BIAS} parameters. (The scale and bias parameters are set by @code{glConvolutionParameter} using the @code{GL_CONVOLUTION_2D} target and the names @code{GL_CONVOLUTION_FILTER_SCALE} and -@code{GL_CONVOLUTION_FILTER_BIAS}. The parameters themselves are vectors -of four values that are applied to red, green, blue, and alpha, in that -order.) The R, G, B, and A values are not clamped to [0,1] at any time -during this process. +@code{GL_CONVOLUTION_FILTER_BIAS}. The parameters themselves are +vectors of four values that are applied to red, green, blue, and alpha, +in that order.) The R, G, B, and A values are not clamped to [0,1] at +any time during this process. Each pixel is then converted to the internal format specified by -@var{internalformat}. This conversion simply maps the component values +@var{internalformat}. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal -format (red, green, blue, alpha, luminance, and intensity). The mapping +format (red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @@ -3489,10 +3498,10 @@ R , G , B , A , , The red, green, blue, alpha, luminance, and/or intensity components of the resulting pixels are stored in floating-point rather than integer -format. They form a two-dimensional filter kernel image indexed with +format. They form a two-dimensional filter kernel image indexed with coordinates @var{i} and @var{j} such that @var{i} starts at zero and increases from left to right, and @var{j} starts at zero and increases -from bottom to top. Kernel location @var{i,j} is derived from the +from bottom to top. Kernel location @var{i,j} is derived from the @var{N}th pixel, where @var{N} is @var{i}+@var{j}*@var{width}. Note that after a convolution is performed, the resulting color @@ -3500,7 +3509,8 @@ components are also scaled by their corresponding @code{GL_POST_CONVOLUTION_c_SCALE} parameters and biased by their corresponding @code{GL_POST_CONVOLUTION_c_BIAS} parameters (where @var{c} takes on the values @strong{RED}, @strong{GREEN}, @strong{BLUE}, -and @strong{ALPHA}). These parameters are set by @code{glPixelTransfer}. +and @strong{ALPHA}). These parameters are set by +@code{glPixelTransfer}. @code{GL_INVALID_ENUM} is generated if @var{target} is not @code{GL_CONVOLUTION_2D}. @@ -3515,12 +3525,12 @@ allowable values. allowable values. @code{GL_INVALID_VALUE} is generated if @var{width} is less than zero or -greater than the maximum supported value. This value may be queried with -@code{glGetConvolutionParameter} using target @code{GL_CONVOLUTION_2D} -and name @code{GL_MAX_CONVOLUTION_WIDTH}. +greater than the maximum supported value. This value may be queried +with @code{glGetConvolutionParameter} using target +@code{GL_CONVOLUTION_2D} and name @code{GL_MAX_CONVOLUTION_WIDTH}. @code{GL_INVALID_VALUE} is generated if @var{height} is less than zero -or greater than the maximum supported value. This value may be queried +or greater than the maximum supported value. This value may be queried with @code{glGetConvolutionParameter} using target @code{GL_CONVOLUTION_2D} and name @code{GL_MAX_CONVOLUTION_HEIGHT}. @@ -3565,15 +3575,15 @@ Set convolution parameters. @table @asis @item @var{target} -The target for the convolution parameter. Must be one of +The target for the convolution parameter. Must be one of @code{GL_CONVOLUTION_1D}, @code{GL_CONVOLUTION_2D}, or @code{GL_SEPARABLE_2D}. @item @var{pname} -The parameter to be set. Must be @code{GL_CONVOLUTION_BORDER_MODE}. +The parameter to be set. Must be @code{GL_CONVOLUTION_BORDER_MODE}. @item @var{params} -The parameter value. Must be one of @code{GL_REDUCE}, +The parameter value. Must be one of @code{GL_REDUCE}, @code{GL_CONSTANT_BORDER}, @code{GL_REPLICATE_BORDER}. @@ -3591,14 +3601,14 @@ respectively. @code{GL_CONVOLUTION_FILTER_SCALE} and @code{GL_CONVOLUTION_FILTER_BIAS} affect the definition of the convolution filter kernel; see @code{glConvolutionFilter1D}, @code{glConvolutionFilter2D}, and -@code{glSeparableFilter2D} for details. In these cases, @var{params}v is -an array of four values to be applied to red, green, blue, and alpha -values, respectively. The initial value for +@code{glSeparableFilter2D} for details. In these cases, @var{params}v +is an array of four values to be applied to red, green, blue, and alpha +values, respectively. The initial value for @code{GL_CONVOLUTION_FILTER_SCALE} is (1, 1, 1, 1), and the initial value for @code{GL_CONVOLUTION_FILTER_BIAS} is (0, 0, 0, 0). A @var{pname} value of @code{GL_CONVOLUTION_BORDER_MODE} controls the -convolution border mode. The accepted modes are: +convolution border mode. The accepted modes are: @table @asis @item @code{GL_REDUCE} @@ -3606,9 +3616,9 @@ The image resulting from convolution is smaller than the source image. If the filter width is @r{@var{Wf}} and height is @r{@var{Hf}}, and the source image width is @r{@var{Ws}} and height is @r{@var{Hs}}, then the convolved image width will be @r{@var{Ws}-@var{Wf}+1} and height will be -@r{@var{Hs}-@var{Hf}+1}. (If this reduction would generate an image with -zero or negative width and/or height, the output is simply null, with no -error generated.) The coordinates of the image resulting from +@r{@var{Hs}-@var{Hf}+1}. (If this reduction would generate an image +with zero or negative width and/or height, the output is simply null, +with no error generated.) The coordinates of the image resulting from convolution are zero through @r{@var{Ws}-@var{Wf}} in width and zero through @r{@var{Hs}-@var{Hf}} in height. @@ -3664,11 +3674,11 @@ The number of table entries to replace. @end table @code{glCopyColorSubTable} is used to respecify a contiguous portion of -a color table previously defined using @code{glColorTable}. The pixels +a color table previously defined using @code{glColorTable}. The pixels copied from the framebuffer replace the portion of the existing table -from indices @var{start} to @r{@var{start}+@var{x}-1}, inclusive. This +from indices @var{start} to @r{@var{start}+@var{x}-1}, inclusive. This region may not include any entries outside the range of the color table, -as was originally specified. It is not an error to specify a subtexture +as was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect. @code{GL_INVALID_VALUE} is generated if @var{target} is not a previously @@ -3691,12 +3701,12 @@ Copy pixels into a color table. @table @asis @item @var{target} -The color table target. Must be @code{GL_COLOR_TABLE}, +The color table target. Must be @code{GL_COLOR_TABLE}, @code{GL_POST_CONVOLUTION_COLOR_TABLE}, or @code{GL_POST_COLOR_MATRIX_COLOR_TABLE}. @item @var{internalformat} -The internal storage format of the texture image. Must be one of the +The internal storage format of the texture image. Must be one of the following symbolic constants: @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE4}, @code{GL_LUMINANCE8}, @@ -3730,7 +3740,7 @@ The width of the pixel rectangle. The screen-aligned pixel rectangle with lower-left corner at (@var{x},\ @var{y}) having width @var{width} and height 1 is loaded into the color -table. If any pixels within this region are outside the window that is +table. If any pixels within this region are outside the window that is associated with the GL context, the values obtained for those pixels are undefined. @@ -3740,14 +3750,14 @@ after the final conversion to RGBA. The four scale parameters and the four bias parameters that are defined for the table are then used to scale and bias the R, G, B, and A -components of each pixel. The scale and bias parameters are set by +components of each pixel. The scale and bias parameters are set by calling @code{glColorTableParameter}. -Next, the R, G, B, and A values are clamped to the range @r{[0,1]}. Each +Next, the R, G, B, and A values are clamped to the range @r{[0,1]}. Each pixel is then converted to the internal format specified by -@var{internalformat}. This conversion simply maps the component values +@var{internalformat}. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal -format (red, green, blue, alpha, luminance, and intensity). The mapping +format (red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @@ -3778,7 +3788,7 @@ R , G , B , A , , @end table Finally, the red, green, blue, alpha, luminance, and/or intensity -components of the resulting pixels are stored in the color table. They +components of the resulting pixels are stored in the color table. They form a one-dimensional table with indices in the range @r{[0,@var{width}-1]}. @@ -3809,7 +3819,7 @@ Copy pixels into a one-dimensional convolution filter. Must be @code{GL_CONVOLUTION_1D}. @item @var{internalformat} -The internal format of the convolution filter kernel. The allowable +The internal format of the convolution filter kernel. The allowable values are @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE4}, @code{GL_LUMINANCE8}, @code{GL_LUMINANCE12}, @@ -3840,28 +3850,28 @@ than from main memory, as is the case for @code{glConvolutionFilter1D}). The screen-aligned pixel rectangle with lower-left corner at (@var{x},\ @var{y}), width @var{width} and height 1 is used to define the -convolution filter. If any pixels within this region are outside the +convolution filter. If any pixels within this region are outside the window that is associated with the GL context, the values obtained for those pixels are undefined. The pixels in the rectangle are processed exactly as if @code{glReadPixels} had been called with @var{format} set to RGBA, but -the process stops just before final conversion. The R, G, B, and A +the process stops just before final conversion. The R, G, B, and A components of each pixel are next scaled by the four 1D @code{GL_CONVOLUTION_FILTER_SCALE} parameters and biased by the four 1D -@code{GL_CONVOLUTION_FILTER_BIAS} parameters. (The scale and bias +@code{GL_CONVOLUTION_FILTER_BIAS} parameters. (The scale and bias parameters are set by @code{glConvolutionParameter} using the @code{GL_CONVOLUTION_1D} target and the names @code{GL_CONVOLUTION_FILTER_SCALE} and -@code{GL_CONVOLUTION_FILTER_BIAS}. The parameters themselves are vectors -of four values that are applied to red, green, blue, and alpha, in that -order.) The R, G, B, and A values are not clamped to [0,1] at any time -during this process. +@code{GL_CONVOLUTION_FILTER_BIAS}. The parameters themselves are +vectors of four values that are applied to red, green, blue, and alpha, +in that order.) The R, G, B, and A values are not clamped to [0,1] at +any time during this process. Each pixel is then converted to the internal format specified by -@var{internalformat}. This conversion simply maps the component values +@var{internalformat}. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal -format (red, green, blue, alpha, luminance, and intensity). The mapping +format (red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @@ -3903,7 +3913,8 @@ components are also scaled by their corresponding @code{GL_POST_CONVOLUTION_c_SCALE} parameters and biased by their corresponding @code{GL_POST_CONVOLUTION_c_BIAS} parameters (where @var{c} takes on the values @strong{RED}, @strong{GREEN}, @strong{BLUE}, -and @strong{ALPHA}). These parameters are set by @code{glPixelTransfer}. +and @strong{ALPHA}). These parameters are set by +@code{glPixelTransfer}. @code{GL_INVALID_ENUM} is generated if @var{target} is not @code{GL_CONVOLUTION_1D}. @@ -3912,9 +3923,9 @@ and @strong{ALPHA}). These parameters are set by @code{glPixelTransfer}. of the allowable values. @code{GL_INVALID_VALUE} is generated if @var{width} is less than zero or -greater than the maximum supported value. This value may be queried with -@code{glGetConvolutionParameter} using target @code{GL_CONVOLUTION_1D} -and name @code{GL_MAX_CONVOLUTION_WIDTH}. +greater than the maximum supported value. This value may be queried +with @code{glGetConvolutionParameter} using target +@code{GL_CONVOLUTION_1D} and name @code{GL_MAX_CONVOLUTION_WIDTH}. @code{GL_INVALID_OPERATION} is generated if @code{glCopyConvolutionFilter1D} is executed between the execution of @@ -3930,7 +3941,7 @@ Copy pixels into a two-dimensional convolution filter. Must be @code{GL_CONVOLUTION_2D}. @item @var{internalformat} -The internal format of the convolution filter kernel. The allowable +The internal format of the convolution filter kernel. The allowable values are @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE4}, @code{GL_LUMINANCE8}, @code{GL_LUMINANCE12}, @@ -3964,28 +3975,28 @@ than from main memory, as is the case for @code{glConvolutionFilter2D}). The screen-aligned pixel rectangle with lower-left corner at (@var{x},\ @var{y}), width @var{width} and height @var{height} is used to define -the convolution filter. If any pixels within this region are outside the -window that is associated with the GL context, the values obtained for -those pixels are undefined. +the convolution filter. If any pixels within this region are outside +the window that is associated with the GL context, the values obtained +for those pixels are undefined. The pixels in the rectangle are processed exactly as if @code{glReadPixels} had been called with @var{format} set to RGBA, but -the process stops just before final conversion. The R, G, B, and A +the process stops just before final conversion. The R, G, B, and A components of each pixel are next scaled by the four 2D @code{GL_CONVOLUTION_FILTER_SCALE} parameters and biased by the four 2D -@code{GL_CONVOLUTION_FILTER_BIAS} parameters. (The scale and bias +@code{GL_CONVOLUTION_FILTER_BIAS} parameters. (The scale and bias parameters are set by @code{glConvolutionParameter} using the @code{GL_CONVOLUTION_2D} target and the names @code{GL_CONVOLUTION_FILTER_SCALE} and -@code{GL_CONVOLUTION_FILTER_BIAS}. The parameters themselves are vectors -of four values that are applied to red, green, blue, and alpha, in that -order.) The R, G, B, and A values are not clamped to [0,1] at any time -during this process. +@code{GL_CONVOLUTION_FILTER_BIAS}. The parameters themselves are +vectors of four values that are applied to red, green, blue, and alpha, +in that order.) The R, G, B, and A values are not clamped to [0,1] at +any time during this process. Each pixel is then converted to the internal format specified by -@var{internalformat}. This conversion simply maps the component values +@var{internalformat}. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal -format (red, green, blue, alpha, luminance, and intensity). The mapping +format (red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @@ -4028,7 +4039,8 @@ components are also scaled by their corresponding @code{GL_POST_CONVOLUTION_c_SCALE} parameters and biased by their corresponding @code{GL_POST_CONVOLUTION_c_BIAS} parameters (where @var{c} takes on the values @strong{RED}, @strong{GREEN}, @strong{BLUE}, -and @strong{ALPHA}). These parameters are set by @code{glPixelTransfer}. +and @strong{ALPHA}). These parameters are set by +@code{glPixelTransfer}. @code{GL_INVALID_ENUM} is generated if @var{target} is not @code{GL_CONVOLUTION_2D}. @@ -4037,12 +4049,12 @@ and @strong{ALPHA}). These parameters are set by @code{glPixelTransfer}. of the allowable values. @code{GL_INVALID_VALUE} is generated if @var{width} is less than zero or -greater than the maximum supported value. This value may be queried with -@code{glGetConvolutionParameter} using target @code{GL_CONVOLUTION_2D} -and name @code{GL_MAX_CONVOLUTION_WIDTH}. +greater than the maximum supported value. This value may be queried +with @code{glGetConvolutionParameter} using target +@code{GL_CONVOLUTION_2D} and name @code{GL_MAX_CONVOLUTION_WIDTH}. @code{GL_INVALID_VALUE} is generated if @var{height} is less than zero -or greater than the maximum supported value. This value may be queried +or greater than the maximum supported value. This value may be queried with @code{glGetConvolutionParameter} using target @code{GL_CONVOLUTION_2D} and name @code{GL_MAX_CONVOLUTION_HEIGHT}. @@ -4068,66 +4080,66 @@ Both must be nonnegative. @item @var{type} Specifies whether color values, depth values, or stencil values are to -be copied. Symbolic constants @code{GL_COLOR}, @code{GL_DEPTH}, and +be copied. Symbolic constants @code{GL_COLOR}, @code{GL_DEPTH}, and @code{GL_STENCIL} are accepted. @end table @code{glCopyPixels} copies a screen-aligned rectangle of pixels from the specified frame buffer location to a region relative to the current -raster position. Its operation is well defined only if the entire pixel -source region is within the exposed portion of the window. Results of +raster position. Its operation is well defined only if the entire pixel +source region is within the exposed portion of the window. Results of copies from outside the window, or from regions of the window that are not exposed, are hardware dependent and undefined. @var{x} and @var{y} specify the window coordinates of the lower left -corner of the rectangular region to be copied. @var{width} and +corner of the rectangular region to be copied. @var{width} and @var{height} specify the dimensions of the rectangular region to be -copied. Both @var{width} and @var{height} must not be negative. +copied. Both @var{width} and @var{height} must not be negative. Several parameters control the processing of the pixel data while it is -being copied. These parameters are set with three commands: -@code{glPixelTransfer}, @code{glPixelMap}, and @code{glPixelZoom}. This +being copied. These parameters are set with three commands: +@code{glPixelTransfer}, @code{glPixelMap}, and @code{glPixelZoom}. This reference page describes the effects on @code{glCopyPixels} of most, but not all, of the parameters specified by these three commands. @code{glCopyPixels} copies values from each pixel with the lower left-hand corner at @r{(@var{x}+@var{i},@var{y}+@var{j})} for -@r{0<=@var{i}<@var{width}} and @r{0<=@var{j}<@var{height}}. This pixel -is said to be the @r{@var{i}}th pixel in the @r{@var{j}}th row. Pixels +@r{0<=@var{i}<@var{width}} and @r{0<=@var{j}<@var{height}}. This pixel +is said to be the @r{@var{i}}th pixel in the @r{@var{j}}th row. Pixels are copied in row order from the lowest to the highest row, left to right in each row. @var{type} specifies whether color, depth, or stencil data is to be -copied. The details of the transfer for each data type are as follows: +copied. The details of the transfer for each data type are as follows: @table @asis @item @code{GL_COLOR} Indices or RGBA colors are read from the buffer currently specified as -the read source buffer (see @code{glReadBuffer}). If the GL is in color +the read source buffer (see @code{glReadBuffer}). If the GL is in color index mode, each index that is read from this buffer is converted to a fixed-point format with an unspecified number of bits to the right of -the binary point. Each index is then shifted left by -@code{GL_INDEX_SHIFT} bits, and added to @code{GL_INDEX_OFFSET}. If -@code{GL_INDEX_SHIFT} is negative, the shift is to the right. In either +the binary point. Each index is then shifted left by +@code{GL_INDEX_SHIFT} bits, and added to @code{GL_INDEX_OFFSET}. If +@code{GL_INDEX_SHIFT} is negative, the shift is to the right. In either case, zero bits fill otherwise unspecified bit locations in the result. If @code{GL_MAP_COLOR} is true, the index is replaced with the value -that it references in lookup table @code{GL_PIXEL_MAP_I_TO_I}. Whether +that it references in lookup table @code{GL_PIXEL_MAP_I_TO_I}. Whether the lookup replacement of the index is done or not, the integer part of the index is then ANDed with @r{2^@var{b}-1}, where @r{@var{b}} is the number of bits in a color index buffer. If the GL is in RGBA mode, the red, green, blue, and alpha components of each pixel that is read are converted to an internal floating-point -format with unspecified precision. The conversion maps the largest -representable component value to 1.0, and component value 0 to 0.0. The +format with unspecified precision. The conversion maps the largest +representable component value to 1.0, and component value 0 to 0.0. The resulting floating-point color values are then multiplied by @code{GL_c_SCALE} and added to @code{GL_c_BIAS}, where @var{c} is RED, -GREEN, BLUE, and ALPHA for the respective color components. The results -are clamped to the range [0,1]. If @code{GL_MAP_COLOR} is true, each +GREEN, BLUE, and ALPHA for the respective color components. The results +are clamped to the range [0,1]. If @code{GL_MAP_COLOR} is true, each color component is scaled by the size of lookup table @code{GL_PIXEL_MAP_c_TO_c}, then replaced by the value that it -references in that table. @var{c} is R, G, B, or A. +references in that table. @var{c} is R, G, B, or A. If the @code{ARB_imaging} extension is supported, the color values may be additionally processed by color-table lookups, color-matrix @@ -4140,16 +4152,16 @@ coordinates to each pixel, then assigning window coordinates @r{(@var{x}_@var{r},@var{y}_@var{r})} is the current raster position, and the pixel was the @r{@var{i}}th pixel in the @r{@var{j}}th row. These pixel fragments are then treated just like the fragments generated -by rasterizing points, lines, or polygons. Texture mapping, fog, and all -the fragment operations are applied before the fragments are written to -the frame buffer. +by rasterizing points, lines, or polygons. Texture mapping, fog, and +all the fragment operations are applied before the fragments are written +to the frame buffer. @item @code{GL_DEPTH} Depth values are read from the depth buffer and converted directly to an -internal floating-point format with unspecified precision. The resulting -floating-point depth value is then multiplied by @code{GL_DEPTH_SCALE} -and added to @code{GL_DEPTH_BIAS}. The result is clamped to the range -[0,1]. +internal floating-point format with unspecified precision. The +resulting floating-point depth value is then multiplied by +@code{GL_DEPTH_SCALE} and added to @code{GL_DEPTH_BIAS}. The result is +clamped to the range [0,1]. The GL then converts the resulting depth components to fragments by attaching the current raster position color or color index and texture @@ -4158,22 +4170,22 @@ coordinates to each pixel, then assigning window coordinates @r{(@var{x}_@var{r},@var{y}_@var{r})} is the current raster position, and the pixel was the @r{@var{i}}th pixel in the @r{@var{j}}th row. These pixel fragments are then treated just like the fragments generated -by rasterizing points, lines, or polygons. Texture mapping, fog, and all -the fragment operations are applied before the fragments are written to -the frame buffer. +by rasterizing points, lines, or polygons. Texture mapping, fog, and +all the fragment operations are applied before the fragments are written +to the frame buffer. @item @code{GL_STENCIL} Stencil indices are read from the stencil buffer and converted to an internal fixed-point format with an unspecified number of bits to the -right of the binary point. Each fixed-point index is then shifted left -by @code{GL_INDEX_SHIFT} bits, and added to @code{GL_INDEX_OFFSET}. If -@code{GL_INDEX_SHIFT} is negative, the shift is to the right. In either +right of the binary point. Each fixed-point index is then shifted left +by @code{GL_INDEX_SHIFT} bits, and added to @code{GL_INDEX_OFFSET}. If +@code{GL_INDEX_SHIFT} is negative, the shift is to the right. In either case, zero bits fill otherwise unspecified bit locations in the result. If @code{GL_MAP_STENCIL} is true, the index is replaced with the value -that it references in lookup table @code{GL_PIXEL_MAP_S_TO_S}. Whether +that it references in lookup table @code{GL_PIXEL_MAP_S_TO_S}. Whether the lookup replacement of the index is done or not, the integer part of the index is then ANDed with @r{2^@var{b}-1}, where @r{@var{b}} is the -number of bits in the stencil buffer. The resulting stencil indices are +number of bits in the stencil buffer. The resulting stencil indices are then written to the stencil buffer such that the index read from the @r{@var{i}}th location of the @r{@var{j}}th row is written to location @r{(@var{x}_@var{r}+@var{i},@var{y}_@var{r}+@var{j})}, where @@ -4185,7 +4197,7 @@ writemask affect these write operations. The rasterization described thus far assumes pixel zoom factors of 1.0. If @code{glPixelZoom} is used to change the @r{@var{x}} and @r{@var{y}} -pixel zoom factors, pixels are converted to fragments as follows. If +pixel zoom factors, pixels are converted to fragments as follows. If @r{(@var{x}_@var{r},@var{y}_@var{r})} is the current raster position, and a given pixel is in the @r{@var{i}}th location in the @r{@var{j}}th row of the source pixel rectangle, then fragments are generated for @@ -4223,14 +4235,14 @@ Copy pixels into a 1D texture image. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_1D}. +Specifies the target texture. Must be @code{GL_TEXTURE_1D}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{internalformat} -Specifies the internal format of the texture. Must be one of the +Specifies the internal format of the texture. Must be one of the following symbolic constants: @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_COMPRESSED_ALPHA}, @code{GL_COMPRESSED_LUMINANCE}, @@ -4259,12 +4271,12 @@ Specify the window coordinates of the left corner of the row of pixels to be copied. @item @var{width} -Specifies the width of the texture image. Must be 0 or -@r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. The height -of the texture image is 1. +Specifies the width of the texture image. Must be 0 or +@r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. The +height of the texture image is 1. @item @var{border} -Specifies the width of the border. Must be either 0 or 1. +Specifies the width of the border. Must be either 0 or 1. @end table @@ -4277,7 +4289,7 @@ texture array at the mipmap level specified by @var{level}. @var{internalformat} specifies the internal format of the texture array. The pixels in the row are processed exactly as if @code{glCopyPixels} -had been called, but the process stops just before final conversion. At +had been called, but the process stops just before final conversion. At this point all pixel component values are clamped to the range @r{[0,1]} and then converted to the texture's internal format for storage in the texel array. @@ -4294,8 +4306,8 @@ undefined. pixels from the current @code{GL_READ_BUFFER}. When @var{internalformat} is one of the sRGB types, the GL does not -automatically convert the source pixels to the sRGB color space. In this -case, the @code{glPixelMap} function can be used to accomplish the +automatically convert the source pixels to the sRGB color space. In +this case, the @code{glPixelMap} function can be used to accomplish the conversion. @code{GL_INVALID_ENUM} is generated if @var{target} is not one of the @@ -4335,7 +4347,7 @@ Copy pixels into a 2D texture image. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_2D}, +Specifies the target texture. Must be @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_X}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_X}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_Y}, @@ -4344,11 +4356,11 @@ Specifies the target texture. Must be @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_Z}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{internalformat} -Specifies the internal format of the texture. Must be one of the +Specifies the internal format of the texture. Must be one of the following symbolic constants: @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_COMPRESSED_ALPHA}, @code{GL_COMPRESSED_LUMINANCE}, @@ -4377,15 +4389,15 @@ Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. @item @var{width} -Specifies the width of the texture image. Must be 0 or +Specifies the width of the texture image. Must be 0 or @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. @item @var{height} -Specifies the height of the texture image. Must be 0 or +Specifies the height of the texture image. Must be 0 or @r{2^@var{m}+2⁡(@var{border},)} for some integer @r{@var{m}}. @item @var{border} -Specifies the width of the border. Must be either 0 or 1. +Specifies the width of the border. Must be either 0 or 1. @end table @@ -4396,12 +4408,12 @@ cube-map texture image with pixels from the current The screen-aligned pixel rectangle with lower left corner at (@var{x}, @var{y}) and with a width of @r{@var{width}+2⁡(@var{border},)} and a height of @r{@var{height}+2⁡(@var{border},)} defines the texture array -at the mipmap level specified by @var{level}. @var{internalformat} +at the mipmap level specified by @var{level}. @var{internalformat} specifies the internal format of the texture array. The pixels in the rectangle are processed exactly as if @code{glCopyPixels} had been called, but the process stops just before -final conversion. At this point all pixel component values are clamped +final conversion. At this point all pixel component values are clamped to the range @r{[0,1]} and then converted to the texture's internal format for storage in the texel array. @@ -4415,8 +4427,8 @@ rendering context, then the values obtained for those pixels are undefined. When @var{internalformat} is one of the sRGB types, the GL does not -automatically convert the source pixels to the sRGB color space. In this -case, the @code{glPixelMap} function can be used to accomplish the +automatically convert the source pixels to the sRGB color space. In +this case, the @code{glPixelMap} function can be used to accomplish the conversion. @code{GL_INVALID_ENUM} is generated if @var{target} is not @@ -4461,10 +4473,10 @@ Copy a one-dimensional texture subimage. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_1D}. +Specifies the target texture. Must be @code{GL_TEXTURE_1D}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{xoffset} @@ -4487,17 +4499,17 @@ than from main memory, as is the case for @code{glTexSubImage1D}). The screen-aligned pixel row with left corner at (@var{x},\ @var{y}), and with length @var{width} replaces the portion of the texture array with x indices @var{xoffset} through @r{@var{xoffset}+@var{width}-1}, -inclusive. The destination in the texture array may not include any +inclusive. The destination in the texture array may not include any texels outside the texture array as it was originally specified. The pixels in the row are processed exactly as if @code{glCopyPixels} -had been called, but the process stops just before final conversion. At +had been called, but the process stops just before final conversion. At this point, all pixel component values are clamped to the range @r{[0,1]} and then converted to the texture's internal format for storage in the texel array. It is not an error to specify a subtexture with zero width, but such a -specification has no effect. If any of the pixels within the specified +specification has no effect. If any of the pixels within the specified row of the current @code{GL_READ_BUFFER} are outside the read window associated with the current rendering context, then the values obtained for those pixels are undefined. @@ -4522,7 +4534,7 @@ returned value of @code{GL_MAX_TEXTURE_SIZE}. @code{GL_INVALID_VALUE} is generated if @r{@var{xoffset}<-@var{b}}, or @r{(@var{xoffset}+@var{width},)>(@var{w}-@var{b},)}, where @r{@var{w}} is the @code{GL_TEXTURE_WIDTH} and @r{@var{b}} is the -@code{GL_TEXTURE_BORDER} of the texture image being modified. Note that +@code{GL_TEXTURE_BORDER} of the texture image being modified. Note that @r{@var{w}} includes twice the border width. @@ -4534,7 +4546,7 @@ Copy a two-dimensional texture subimage. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_2D}, +Specifies the target texture. Must be @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_X}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_X}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_Y}, @@ -4543,7 +4555,7 @@ Specifies the target texture. Must be @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_Z}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{xoffset} @@ -4579,12 +4591,12 @@ the mipmap level specified by @var{level}. The pixels in the rectangle are processed exactly as if @code{glCopyPixels} had been called, but the process stops just before -final conversion. At this point, all pixel component values are clamped +final conversion. At this point, all pixel component values are clamped to the range @r{[0,1]} and then converted to the texture's internal format for storage in the texel array. The destination rectangle in the texture array may not include any -texels outside the texture array as it was originally specified. It is +texels outside the texture array as it was originally specified. It is not an error to specify a subtexture with zero width or height, but such a specification has no effect. @@ -4621,7 +4633,7 @@ returned value of @code{GL_MAX_TEXTURE_SIZE}. @r{(@var{yoffset}+@var{height},)>(@var{h}-@var{b},)}, where @r{@var{w}} is the @code{GL_TEXTURE_WIDTH}, @r{@var{h}} is the @code{GL_TEXTURE_HEIGHT}, and @r{@var{b}} is the -@code{GL_TEXTURE_BORDER} of the texture image being modified. Note that +@code{GL_TEXTURE_BORDER} of the texture image being modified. Note that @r{@var{w}} and @r{@var{h}} include twice the border width. @code{GL_INVALID_OPERATION} is generated if @code{glCopyTexSubImage2D} @@ -4635,10 +4647,10 @@ Copy a three-dimensional texture subimage. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_3D} +Specifies the target texture. Must be @code{GL_TEXTURE_3D} @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{xoffset} @@ -4677,12 +4689,12 @@ through @r{@var{yoffset}+@var{height}-1}, inclusive, at z index The pixels in the rectangle are processed exactly as if @code{glCopyPixels} had been called, but the process stops just before -final conversion. At this point, all pixel component values are clamped +final conversion. At this point, all pixel component values are clamped to the range @r{[0,1]} and then converted to the texture's internal format for storage in the texel array. The destination rectangle in the texture array may not include any -texels outside the texture array as it was originally specified. It is +texels outside the texture array as it was originally specified. It is not an error to specify a subtexture with zero width or height, but such a specification has no effect. @@ -4715,7 +4727,7 @@ returned value of @code{GL_MAX_3D_TEXTURE_SIZE}. @r{(@var{zoffset}+1,)>(@var{d}-@var{b},)}, where @r{@var{w}} is the @code{GL_TEXTURE_WIDTH}, @r{@var{h}} is the @code{GL_TEXTURE_HEIGHT}, @r{@var{d}} is the @code{GL_TEXTURE_DEPTH}, and @r{@var{b}} is the -@code{GL_TEXTURE_BORDER} of the texture image being modified. Note that +@code{GL_TEXTURE_BORDER} of the texture image being modified. Note that @r{@var{w}}, @r{@var{h}}, and @r{@var{d}} include twice the border width. @@ -4729,22 +4741,22 @@ corresponding execution of @code{glEnd}. Creates a program object. @code{glCreateProgram} creates an empty program object and returns a -non-zero value by which it can be referenced. A program object is an -object to which shader objects can be attached. This provides a +non-zero value by which it can be referenced. A program object is an +object to which shader objects can be attached. This provides a mechanism to specify the shader objects that will be linked to create a -program. It also provides a means for checking the compatibility of the +program. It also provides a means for checking the compatibility of the shaders that will be used to create a program (for instance, checking -the compatibility between a vertex shader and a fragment shader). When +the compatibility between a vertex shader and a fragment shader). When no longer needed as part of a program object, shader objects can be detached. One or more executables are created in a program object by successfully attaching shader objects to it with @code{glAttachShader}, successfully compiling the shader objects with @code{glCompileShader}, and -successfully linking the program object with @code{glLinkProgram}. These +successfully linking the program object with @code{glLinkProgram}. These executables are made part of current state when @code{glUseProgram} is -called. Program objects can be deleted by calling -@code{glDeleteProgram}. The memory associated with the program object +called. Program objects can be deleted by calling +@code{glDeleteProgram}. The memory associated with the program object will be deleted when it is no longer part of current rendering state for any context. @@ -4761,20 +4773,20 @@ Creates a shader object. @table @asis @item @var{shaderType} -Specifies the type of shader to be created. Must be either +Specifies the type of shader to be created. Must be either @code{GL_VERTEX_SHADER} or @code{GL_FRAGMENT_SHADER}. @end table @code{glCreateShader} creates an empty shader object and returns a -non-zero value by which it can be referenced. A shader object is used to -maintain the source code strings that define a shader. @var{shaderType} -indicates the type of shader to be created. Two types of shaders are -supported. A shader of type @code{GL_VERTEX_SHADER} is a shader that is -intended to run on the programmable vertex processor and replace the -fixed functionality vertex processing in OpenGL. A shader of type -@code{GL_FRAGMENT_SHADER} is a shader that is intended to run on the -programmable fragment processor and replace the fixed functionality +non-zero value by which it can be referenced. A shader object is used +to maintain the source code strings that define a shader. +@var{shaderType} indicates the type of shader to be created. Two types +of shaders are supported. A shader of type @code{GL_VERTEX_SHADER} is a +shader that is intended to run on the programmable vertex processor and +replace the fixed functionality vertex processing in OpenGL. A shader +of type @code{GL_FRAGMENT_SHADER} is a shader that is intended to run on +the programmable fragment processor and replace the fixed functionality fragment processing in OpenGL. When created, a shader object's @code{GL_SHADER_TYPE} parameter is set @@ -4798,21 +4810,21 @@ Specify whether front- or back-facing facets can be culled. @table @asis @item @var{mode} Specifies whether front- or back-facing facets are candidates for -culling. Symbolic constants @code{GL_FRONT}, @code{GL_BACK}, and -@code{GL_FRONT_AND_BACK} are accepted. The initial value is +culling. Symbolic constants @code{GL_FRONT}, @code{GL_BACK}, and +@code{GL_FRONT_AND_BACK} are accepted. The initial value is @code{GL_BACK}. @end table @code{glCullFace} specifies whether front- or back-facing facets are -culled (as specified by @var{mode}) when facet culling is enabled. Facet -culling is initially disabled. To enable and disable facet culling, call -the @code{glEnable} and @code{glDisable} commands with the argument -@code{GL_CULL_FACE}. Facets include triangles, quadrilaterals, polygons, -and rectangles. +culled (as specified by @var{mode}) when facet culling is enabled. Facet +culling is initially disabled. To enable and disable facet culling, +call the @code{glEnable} and @code{glDisable} commands with the argument +@code{GL_CULL_FACE}. Facets include triangles, quadrilaterals, +polygons, and rectangles. @code{glFrontFace} specifies which of the clockwise and counterclockwise -facets are front-facing and back-facing. See @code{glFrontFace}. +facets are front-facing and back-facing. See @code{glFrontFace}. @code{GL_INVALID_ENUM} is generated if @var{mode} is not an accepted value. @@ -4836,9 +4848,9 @@ Specifies an array of buffer objects to be deleted. @end table @code{glDeleteBuffers} deletes @var{n} buffer objects named by the -elements of the array @var{buffers}. After a buffer object is deleted, +elements of the array @var{buffers}. After a buffer object is deleted, it has no contents, and its name is free for reuse (for example by -@code{glGenBuffers}). If a buffer object that is currently bound is +@code{glGenBuffers}). If a buffer object that is currently bound is deleted, the binding reverts to 0 (the absence of any buffer object, which reverts to client memory usage). @@ -4866,15 +4878,15 @@ Specifies the number of display lists to delete. @end table @code{glDeleteLists} causes a contiguous group of display lists to be -deleted. @var{list} is the name of the first display list to be deleted, -and @var{range} is the number of display lists to delete. All display -lists @r{@var{d}} with @r{@var{list}<=@var{d}<=@var{list}+@var{range}-1} -are deleted. +deleted. @var{list} is the name of the first display list to be +deleted, and @var{range} is the number of display lists to delete. All +display lists @r{@var{d}} with +@r{@var{list}<=@var{d}<=@var{list}+@var{range}-1} are deleted. All storage locations allocated to the specified display lists are -freed, and the names are available for reuse at a later time. Names +freed, and the names are available for reuse at a later time. Names within the range that do not have an associated display list are -ignored. If @var{range} is 0, nothing happens. +ignored. If @var{range} is 0, nothing happens. @code{GL_INVALID_VALUE} is generated if @var{range} is negative. @@ -4900,11 +4912,11 @@ command effectively undoes the effects of a call to If a program object is in use as part of current rendering state, it will be flagged for deletion, but it will not be deleted until it is no -longer part of current state for any rendering context. If a program +longer part of current state for any rendering context. If a program object to be deleted has shader objects attached to it, those shader objects will be automatically detached but not deleted unless they have already been flagged for deletion by a previous call to -@code{glDeleteShader}. A value of 0 for @var{program} will be silently +@code{glDeleteShader}. A value of 0 for @var{program} will be silently ignored. To determine whether a program object has been flagged for deletion, @@ -4933,8 +4945,8 @@ Specifies an array of query objects to be deleted. @end table @code{glDeleteQueries} deletes @var{n} query objects named by the -elements of the array @var{ids}. After a query object is deleted, it has -no contents, and its name is free for reuse (for example by +elements of the array @var{ids}. After a query object is deleted, it +has no contents, and its name is free for reuse (for example by @code{glGenQueries}). @code{glDeleteQueries} silently ignores 0's and names that do not @@ -4958,7 +4970,7 @@ Specifies the shader object to be deleted. @end table @code{glDeleteShader} frees the memory and invalidates the name -associated with the shader object specified by @var{shader}. This +associated with the shader object specified by @var{shader}. This command effectively undoes the effects of a call to @code{glCreateShader}. @@ -4966,7 +4978,7 @@ If a shader object to be deleted is attached to a program object, it will be flagged for deletion, but it will not be deleted until it is no longer attached to any program object, for any rendering context (i.e., it must be detached from wherever it was attached before it will be -deleted). A value of 0 for @var{shader} will be silently ignored. +deleted). A value of 0 for @var{shader} will be silently ignored. To determine whether an object has been flagged for deletion, call @code{glGetShader} with arguments @var{shader} and @@ -4994,9 +5006,9 @@ Specifies an array of textures to be deleted. @end table @code{glDeleteTextures} deletes @var{n} textures named by the elements -of the array @var{textures}. After a texture is deleted, it has no +of the array @var{textures}. After a texture is deleted, it has no contents or dimensionality, and its name is free for reuse (for example -by @code{glGenTextures}). If a texture that is currently bound is +by @code{glGenTextures}). If a texture that is currently bound is deleted, the binding reverts to 0 (the default texture). @code{glDeleteTextures} silently ignores 0's and names that do not @@ -5015,16 +5027,16 @@ Specify the value used for depth buffer comparisons. @table @asis @item @var{func} -Specifies the depth comparison function. Symbolic constants +Specifies the depth comparison function. Symbolic constants @code{GL_NEVER}, @code{GL_LESS}, @code{GL_EQUAL}, @code{GL_LEQUAL}, @code{GL_GREATER}, @code{GL_NOTEQUAL}, @code{GL_GEQUAL}, and -@code{GL_ALWAYS} are accepted. The initial value is @code{GL_LESS}. +@code{GL_ALWAYS} are accepted. The initial value is @code{GL_LESS}. @end table @code{glDepthFunc} specifies the function used to compare each incoming -pixel depth value with the depth value present in the depth buffer. The -comparison is performed only if depth testing is enabled. (See +pixel depth value with the depth value present in the depth buffer. The +comparison is performed only if depth testing is enabled. (See @code{glEnable} and @code{glDisable} of @code{GL_DEPTH_TEST}.) @var{func} specifies the conditions under which the pixel will be drawn. @@ -5061,8 +5073,8 @@ Always passes. @end table -The initial value of @var{func} is @code{GL_LESS}. Initially, depth -testing is disabled. If depth testing is disabled or if no depth buffer +The initial value of @var{func} is @code{GL_LESS}. Initially, depth +testing is disabled. If depth testing is disabled or if no depth buffer exists, it is as if the depth test always passes. @code{GL_INVALID_ENUM} is generated if @var{func} is not an accepted @@ -5079,15 +5091,15 @@ Enable or disable writing into the depth buffer. @table @asis @item @var{flag} -Specifies whether the depth buffer is enabled for writing. If @var{flag} -is @code{GL_FALSE}, depth buffer writing is disabled. Otherwise, it is -enabled. Initially, depth buffer writing is enabled. +Specifies whether the depth buffer is enabled for writing. If +@var{flag} is @code{GL_FALSE}, depth buffer writing is disabled. +Otherwise, it is enabled. Initially, depth buffer writing is enabled. @end table @code{glDepthMask} specifies whether the depth buffer is enabled for -writing. If @var{flag} is @code{GL_FALSE}, depth buffer writing is -disabled. Otherwise, it is enabled. Initially, depth buffer writing is +writing. If @var{flag} is @code{GL_FALSE}, depth buffer writing is +disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled. @code{GL_INVALID_OPERATION} is generated if @code{glDepthMask} is @@ -5114,11 +5126,11 @@ The initial value is 1. After clipping and division by @var{w}, depth coordinates range from @r{-1} to 1, corresponding to the near and far clipping planes. @code{glDepthRange} specifies a linear mapping of the normalized depth -coordinates in this range to window depth coordinates. Regardless of the -actual depth buffer implementation, window coordinate depth values are -treated as though they range from 0 through 1 (like color components). -Thus, the values accepted by @code{glDepthRange} are both clamped to -this range before they are accepted. +coordinates in this range to window depth coordinates. Regardless of +the actual depth buffer implementation, window coordinate depth values +are treated as though they range from 0 through 1 (like color +components). Thus, the values accepted by @code{glDepthRange} are both +clamped to this range before they are accepted. The setting of (0,1) maps the near plane to 0 and the far plane to 1. With this mapping, the depth buffer range is fully utilized. @@ -5142,7 +5154,7 @@ Specifies the shader object to be detached. @end table @code{glDetachShader} detaches the shader object specified by -@var{shader} from the program object specified by @var{program}. This +@var{shader} from the program object specified by @var{program}. This command can be used to undo the effect of the command @code{glAttachShader}. @@ -5173,7 +5185,7 @@ Render primitives from array data. @table @asis @item @var{mode} -Specifies what kind of primitives to render. Symbolic constants +Specifies what kind of primitives to render. Symbolic constants @code{GL_POINTS}, @code{GL_LINE_STRIP}, @code{GL_LINE_LOOP}, @code{GL_LINES}, @code{GL_TRIANGLE_STRIP}, @code{GL_TRIANGLE_FAN}, @code{GL_TRIANGLES}, @code{GL_QUAD_STRIP}, @code{GL_QUADS}, and @@ -5188,7 +5200,7 @@ Specifies the number of indices to be rendered. @end table @code{glDrawArrays} specifies multiple geometric primitives with very -few subroutine calls. Instead of calling a GL procedure to pass each +few subroutine calls. Instead of calling a GL procedure to pass each individual vertex, normal, texture coordinate, edge flag, or color, you can prespecify separate arrays of vertices, normals, and colors and use them to construct a sequence of primitives with a single call to @@ -5196,15 +5208,15 @@ them to construct a sequence of primitives with a single call to When @code{glDrawArrays} is called, it uses @var{count} sequential elements from each enabled array to construct a sequence of geometric -primitives, beginning with element @var{first}. @var{mode} specifies +primitives, beginning with element @var{first}. @var{mode} specifies what kind of primitives are constructed and how the array elements -construct those primitives. If @code{GL_VERTEX_ARRAY} is not enabled, no -geometric primitives are generated. +construct those primitives. If @code{GL_VERTEX_ARRAY} is not enabled, +no geometric primitives are generated. Vertex attributes that are modified by @code{glDrawArrays} have an -unspecified value after @code{glDrawArrays} returns. For example, if +unspecified value after @code{glDrawArrays} returns. For example, if @code{GL_COLOR_ARRAY} is enabled, the value of the current color is -undefined after @code{glDrawArrays} executes. Attributes that aren't +undefined after @code{glDrawArrays} executes. Attributes that aren't modified remain well defined. @code{GL_INVALID_ENUM} is generated if @var{mode} is not an accepted @@ -5236,18 +5248,18 @@ which fragment colors or data values will be written. @end table @code{glDrawBuffers} defines an array of buffers into which fragment -color values or fragment data will be written. If no fragment shader is +color values or fragment data will be written. If no fragment shader is active, rendering operations will generate only one fragment color per fragment and it will be written into each of the buffers specified by -@var{bufs}. If a fragment shader is active and it writes a value to the +@var{bufs}. If a fragment shader is active and it writes a value to the output variable @code{gl_FragColor}, then that value will be written -into each of the buffers specified by @var{bufs}. If a fragment shader +into each of the buffers specified by @var{bufs}. If a fragment shader is active and it writes a value to one or more elements of the output array variable @code{gl_FragData[]}, then the value of @code{gl_FragData[0] } will be written into the first buffer specified by @var{bufs}, the value of @code{gl_FragData[1] } will be written into the second buffer specified by @var{bufs}, and so on up to -@code{gl_FragData[n-1]}. The draw buffer used for @code{gl_FragData[n]} +@code{gl_FragData[n-1]}. The draw buffer used for @code{gl_FragData[n]} and beyond is implicitly set to be @code{GL_NONE}. The symbolic constants contained in @var{bufs} may be any of the @@ -5279,10 +5291,10 @@ The fragment color/data value is written into auxiliary buffer @code{i}. @end table Except for @code{GL_NONE}, the preceding symbolic constants may not -appear more than once in @var{bufs}. The maximum number of draw buffers +appear more than once in @var{bufs}. The maximum number of draw buffers supported is implementation dependent and can be queried by calling -@code{glGet} with the argument @code{GL_MAX_DRAW_BUFFERS}. The number of -auxiliary buffers can be queried by calling @code{glGet} with the +@code{glGet} with the argument @code{GL_MAX_DRAW_BUFFERS}. The number +of auxiliary buffers can be queried by calling @code{glGet} with the argument @code{GL_AUX_BUFFERS}. @code{GL_INVALID_ENUM} is generated if one of the values in @var{bufs} @@ -5311,7 +5323,7 @@ Specify which color buffers are to be drawn into. @table @asis @item @var{mode} -Specifies up to four color buffers to be drawn into. Symbolic constants +Specifies up to four color buffers to be drawn into. Symbolic constants @code{GL_NONE}, @code{GL_FRONT_LEFT}, @code{GL_FRONT_RIGHT}, @code{GL_BACK_LEFT}, @code{GL_BACK_RIGHT}, @code{GL_FRONT}, @code{GL_BACK}, @code{GL_LEFT}, @code{GL_RIGHT}, @@ -5325,7 +5337,7 @@ double-buffered contexts. @end table When colors are written to the frame buffer, they are written into the -color buffers specified by @code{glDrawBuffer}. The specifications are +color buffers specified by @code{glDrawBuffer}. The specifications are as follows: @table @asis @@ -5345,30 +5357,32 @@ Only the back left color buffer is written. Only the back right color buffer is written. @item @code{GL_FRONT} -Only the front left and front right color buffers are written. If there +Only the front left and front right color buffers are written. If there is no front right color buffer, only the front left color buffer is written. @item @code{GL_BACK} -Only the back left and back right color buffers are written. If there is -no back right color buffer, only the back left color buffer is written. +Only the back left and back right color buffers are written. If there +is no back right color buffer, only the back left color buffer is +written. @item @code{GL_LEFT} -Only the front left and back left color buffers are written. If there is -no back left color buffer, only the front left color buffer is written. +Only the front left and back left color buffers are written. If there +is no back left color buffer, only the front left color buffer is +written. @item @code{GL_RIGHT} -Only the front right and back right color buffers are written. If there +Only the front right and back right color buffers are written. If there is no back right color buffer, only the front right color buffer is written. @item @code{GL_FRONT_AND_BACK} All the front and back color buffers (front left, front right, back -left, back right) are written. If there are no back color buffers, only -the front left and front right color buffers are written. If there are +left, back right) are written. If there are no back color buffers, only +the front left and front right color buffers are written. If there are no right color buffers, only the front left and back left color buffers -are written. If there are no right or back color buffers, only the front -left color buffer is written. +are written. If there are no right or back color buffers, only the +front left color buffer is written. @item @code{GL_AUX}@var{i} Only auxiliary color buffer @var{i} is written. @@ -5380,10 +5394,10 @@ logical operations are computed and applied independently for each color buffer and can produce different results in each buffer. Monoscopic contexts include only @var{left} buffers, and stereoscopic -contexts include both @var{left} and @var{right} buffers. Likewise, +contexts include both @var{left} and @var{right} buffers. Likewise, single-buffered contexts include only @var{front} buffers, and double-buffered contexts include both @var{front} and @var{back} -buffers. The context is selected at GL initialization. +buffers. The context is selected at GL initialization. @code{GL_INVALID_ENUM} is generated if @var{mode} is not an accepted value. @@ -5402,7 +5416,7 @@ Render primitives from array data. @table @asis @item @var{mode} -Specifies what kind of primitives to render. Symbolic constants +Specifies what kind of primitives to render. Symbolic constants @code{GL_POINTS}, @code{GL_LINE_STRIP}, @code{GL_LINE_LOOP}, @code{GL_LINES}, @code{GL_TRIANGLE_STRIP}, @code{GL_TRIANGLE_FAN}, @code{GL_TRIANGLES}, @code{GL_QUAD_STRIP}, @code{GL_QUADS}, and @@ -5412,7 +5426,7 @@ Specifies what kind of primitives to render. Symbolic constants Specifies the number of elements to be rendered. @item @var{type} -Specifies the type of the values in @var{indices}. Must be one of +Specifies the type of the values in @var{indices}. Must be one of @code{GL_UNSIGNED_BYTE}, @code{GL_UNSIGNED_SHORT}, or @code{GL_UNSIGNED_INT}. @@ -5422,7 +5436,7 @@ Specifies a pointer to the location where the indices are stored. @end table @code{glDrawElements} specifies multiple geometric primitives with very -few subroutine calls. Instead of calling a GL function to pass each +few subroutine calls. Instead of calling a GL function to pass each individual vertex, normal, texture coordinate, edge flag, or color, you can prespecify separate arrays of vertices, normals, and so on, and use them to construct a sequence of primitives with a single call to @@ -5430,16 +5444,16 @@ them to construct a sequence of primitives with a single call to When @code{glDrawElements} is called, it uses @var{count} sequential elements from an enabled array, starting at @var{indices} to construct a -sequence of geometric primitives. @var{mode} specifies what kind of +sequence of geometric primitives. @var{mode} specifies what kind of primitives are constructed and how the array elements construct these -primitives. If more than one array is enabled, each is used. If +primitives. If more than one array is enabled, each is used. If @code{GL_VERTEX_ARRAY} is not enabled, no geometric primitives are constructed. Vertex attributes that are modified by @code{glDrawElements} have an -unspecified value after @code{glDrawElements} returns. For example, if +unspecified value after @code{glDrawElements} returns. For example, if @code{GL_COLOR_ARRAY} is enabled, the value of the current color is -undefined after @code{glDrawElements} executes. Attributes that aren't +undefined after @code{glDrawElements} executes. Attributes that aren't modified maintain their previous values. @code{GL_INVALID_ENUM} is generated if @var{mode} is not an accepted @@ -5467,7 +5481,7 @@ Specify the dimensions of the pixel rectangle to be written into the frame buffer. @item @var{format} -Specifies the format of the pixel data. Symbolic constants +Specifies the format of the pixel data. Symbolic constants @code{GL_COLOR_INDEX}, @code{GL_STENCIL_INDEX}, @code{GL_DEPTH_COMPONENT}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @@ -5475,7 +5489,7 @@ Specifies the format of the pixel data. Symbolic constants accepted. @item @var{type} -Specifies the data type for @var{data}. Symbolic constants +Specifies the data type for @var{data}. Symbolic constants @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @@ -5493,7 +5507,7 @@ Specifies a pointer to the pixel data. @code{glDrawPixels} reads pixel data from memory and writes it into the frame buffer relative to the current raster position, provided that the -raster position is valid. Use @code{glRasterPos} or @code{glWindowPos} +raster position is valid. Use @code{glRasterPos} or @code{glWindowPos} to set the current raster position; use @code{glGet} with argument @code{GL_CURRENT_RASTER_POSITION_VALID} to determine if the specified raster position is valid, and @code{glGet} with argument @@ -5501,51 +5515,51 @@ raster position is valid, and @code{glGet} with argument Several parameters define the encoding of pixel data in memory and control the processing of the pixel data before it is placed in the -frame buffer. These parameters are set with four commands: +frame buffer. These parameters are set with four commands: @code{glPixelStore}, @code{glPixelTransfer}, @code{glPixelMap}, and -@code{glPixelZoom}. This reference page describes the effects on +@code{glPixelZoom}. This reference page describes the effects on @code{glDrawPixels} of many, but not all, of the parameters specified by these four commands. Data is read from @var{data} as a sequence of signed or unsigned bytes, signed or unsigned shorts, signed or unsigned integers, or -single-precision floating-point values, depending on @var{type}. When +single-precision floating-point values, depending on @var{type}. When @var{type} is one of @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, or @code{GL_FLOAT} each of these bytes, shorts, integers, or floating-point values is interpreted as one color or depth component, -or one index, depending on @var{format}. When @var{type} is one of +or one index, depending on @var{format}. When @var{type} is one of @code{GL_UNSIGNED_BYTE_3_3_2}, @code{GL_UNSIGNED_SHORT_5_6_5}, @code{GL_UNSIGNED_SHORT_4_4_4_4}, @code{GL_UNSIGNED_SHORT_5_5_5_1}, @code{GL_UNSIGNED_INT_8_8_8_8}, or @code{GL_UNSIGNED_INT_10_10_10_2}, each unsigned value is interpreted as containing all the components for a single pixel, with the color components arranged according to -@var{format}. When @var{type} is one of +@var{format}. When @var{type} is one of @code{GL_UNSIGNED_BYTE_2_3_3_REV}, @code{GL_UNSIGNED_SHORT_5_6_5_REV}, @code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, @code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, @code{GL_UNSIGNED_INT_8_8_8_8_REV}, or @code{GL_UNSIGNED_INT_2_10_10_10_REV}, each unsigned value is interpreted as containing all color components, specified by -@var{format}, for a single pixel in a reversed order. Indices are always -treated individually. Color components are treated as groups of one, -two, three, or four values, again based on @var{format}. Both individual -indices and groups of components are referred to as pixels. If -@var{type} is @code{GL_BITMAP}, the data must be unsigned bytes, and +@var{format}, for a single pixel in a reversed order. Indices are +always treated individually. Color components are treated as groups of +one, two, three, or four values, again based on @var{format}. Both +individual indices and groups of components are referred to as pixels. +If @var{type} is @code{GL_BITMAP}, the data must be unsigned bytes, and @var{format} must be either @code{GL_COLOR_INDEX} or -@code{GL_STENCIL_INDEX}. Each unsigned byte is treated as eight 1-bit +@code{GL_STENCIL_INDEX}. Each unsigned byte is treated as eight 1-bit pixels, with bit ordering determined by @code{GL_UNPACK_LSB_FIRST} (see @code{glPixelStore}). @r{@var{width}×@var{height}} pixels are read from memory, starting at -location @var{data}. By default, these pixels are taken from adjacent +location @var{data}. By default, these pixels are taken from adjacent memory locations, except that after all @var{width} pixels are read, the -read pointer is advanced to the next four-byte boundary. The four-byte +read pointer is advanced to the next four-byte boundary. The four-byte row alignment is specified by @code{glPixelStore} with argument @code{GL_UNPACK_ALIGNMENT}, and it can be set to one, two, four, or -eight bytes. Other pixel store parameters specify different read pointer -advancements, both before the first pixel is read and after all -@var{width} pixels are read. See the @code{glPixelStore} reference page +eight bytes. Other pixel store parameters specify different read +pointer advancements, both before the first pixel is read and after all +@var{width} pixels are read. See the @code{glPixelStore} reference page for details on these options. If a non-zero named buffer object is bound to the @@ -5558,29 +5572,29 @@ each operated on in the same way, based on the values of several parameters specified by @code{glPixelTransfer} and @code{glPixelMap}. The details of these operations, as well as the target buffer into which the pixels are drawn, are specific to the format of the pixels, as -specified by @var{format}. @var{format} can assume one of 13 symbolic +specified by @var{format}. @var{format} can assume one of 13 symbolic values: @table @asis @item @code{GL_COLOR_INDEX} -Each pixel is a single value, a color index. It is converted to +Each pixel is a single value, a color index. It is converted to fixed-point format, with an unspecified number of bits to the right of -the binary point, regardless of the memory data type. Floating-point -values convert to true fixed-point values. Signed and unsigned integer -data is converted with all fraction bits set to 0. Bitmap data convert +the binary point, regardless of the memory data type. Floating-point +values convert to true fixed-point values. Signed and unsigned integer +data is converted with all fraction bits set to 0. Bitmap data convert to either 0 or 1. Each fixed-point index is then shifted left by @code{GL_INDEX_SHIFT} -bits and added to @code{GL_INDEX_OFFSET}. If @code{GL_INDEX_SHIFT} is -negative, the shift is to the right. In either case, zero bits fill +bits and added to @code{GL_INDEX_OFFSET}. If @code{GL_INDEX_SHIFT} is +negative, the shift is to the right. In either case, zero bits fill otherwise unspecified bit locations in the result. If the GL is in RGBA mode, the resulting index is converted to an RGBA pixel with the help of the @code{GL_PIXEL_MAP_I_TO_R}, @code{GL_PIXEL_MAP_I_TO_G}, @code{GL_PIXEL_MAP_I_TO_B}, and -@code{GL_PIXEL_MAP_I_TO_A} tables. If the GL is in color index mode, and -if @code{GL_MAP_COLOR} is true, the index is replaced with the value -that it references in lookup table @code{GL_PIXEL_MAP_I_TO_I}. Whether +@code{GL_PIXEL_MAP_I_TO_A} tables. If the GL is in color index mode, +and if @code{GL_MAP_COLOR} is true, the index is replaced with the value +that it references in lookup table @code{GL_PIXEL_MAP_I_TO_I}. Whether the lookup replacement of the index is done or not, the integer part of the index is then ANDed with @r{2^@var{b}-1}, where @r{@var{b}} is the number of bits in a color index buffer. @@ -5592,47 +5606,48 @@ window coordinates to the @r{@var{n}}th fragment such that @r{@var{x}_@var{n}=@var{x}_@var{r}+@var{n}%@var{width}}@r{@var{y}_@var{n}=@var{y}_@var{r}+⌊@var{n}/@var{width},⌋} where @r{(@var{x}_@var{r},@var{y}_@var{r})} is the current raster -position. These pixel fragments are then treated just like the fragments -generated by rasterizing points, lines, or polygons. Texture mapping, -fog, and all the fragment operations are applied before the fragments -are written to the frame buffer. +position. These pixel fragments are then treated just like the +fragments generated by rasterizing points, lines, or polygons. Texture +mapping, fog, and all the fragment operations are applied before the +fragments are written to the frame buffer. @item @code{GL_STENCIL_INDEX} -Each pixel is a single value, a stencil index. It is converted to +Each pixel is a single value, a stencil index. It is converted to fixed-point format, with an unspecified number of bits to the right of -the binary point, regardless of the memory data type. Floating-point -values convert to true fixed-point values. Signed and unsigned integer -data is converted with all fraction bits set to 0. Bitmap data convert +the binary point, regardless of the memory data type. Floating-point +values convert to true fixed-point values. Signed and unsigned integer +data is converted with all fraction bits set to 0. Bitmap data convert to either 0 or 1. Each fixed-point index is then shifted left by @code{GL_INDEX_SHIFT} -bits, and added to @code{GL_INDEX_OFFSET}. If @code{GL_INDEX_SHIFT} is -negative, the shift is to the right. In either case, zero bits fill -otherwise unspecified bit locations in the result. If +bits, and added to @code{GL_INDEX_OFFSET}. If @code{GL_INDEX_SHIFT} is +negative, the shift is to the right. In either case, zero bits fill +otherwise unspecified bit locations in the result. If @code{GL_MAP_STENCIL} is true, the index is replaced with the value that -it references in lookup table @code{GL_PIXEL_MAP_S_TO_S}. Whether the +it references in lookup table @code{GL_PIXEL_MAP_S_TO_S}. Whether the lookup replacement of the index is done or not, the integer part of the index is then ANDed with @r{2^@var{b}-1}, where @r{@var{b}} is the -number of bits in the stencil buffer. The resulting stencil indices are +number of bits in the stencil buffer. The resulting stencil indices are then written to the stencil buffer such that the @r{@var{n}}th index is written to location @r{@var{x}_@var{n}=@var{x}_@var{r}+@var{n}%@var{width}}@r{@var{y}_@var{n}=@var{y}_@var{r}+⌊@var{n}/@var{width},⌋} where @r{(@var{x}_@var{r},@var{y}_@var{r})} is the current raster -position. Only the pixel ownership test, the scissor test, and the +position. Only the pixel ownership test, the scissor test, and the stencil writemask affect these write operations. @item @code{GL_DEPTH_COMPONENT} -Each pixel is a single-depth component. Floating-point data is converted -directly to an internal floating-point format with unspecified -precision. Signed integer data is mapped linearly to the internal +Each pixel is a single-depth component. Floating-point data is +converted directly to an internal floating-point format with unspecified +precision. Signed integer data is mapped linearly to the internal floating-point format such that the most positive representable integer value maps to 1.0, and the most negative representable value maps to -@r{-1.0}. Unsigned integer data is mapped similarly: the largest integer -value maps to 1.0, and 0 maps to 0.0. The resulting floating-point depth -value is then multiplied by @code{GL_DEPTH_SCALE} and added to -@code{GL_DEPTH_BIAS}. The result is clamped to the range @r{[0,1]}. +@r{-1.0}. Unsigned integer data is mapped similarly: the largest +integer value maps to 1.0, and 0 maps to 0.0. The resulting +floating-point depth value is then multiplied by @code{GL_DEPTH_SCALE} +and added to @code{GL_DEPTH_BIAS}. The result is clamped to the range +@r{[0,1]}. The GL then converts the resulting depth components to fragments by attaching the current raster position color or color index and texture @@ -5642,10 +5657,10 @@ window coordinates to the @r{@var{n}}th fragment such that @r{@var{x}_@var{n}=@var{x}_@var{r}+@var{n}%@var{width}}@r{@var{y}_@var{n}=@var{y}_@var{r}+⌊@var{n}/@var{width},⌋} where @r{(@var{x}_@var{r},@var{y}_@var{r})} is the current raster -position. These pixel fragments are then treated just like the fragments -generated by rasterizing points, lines, or polygons. Texture mapping, -fog, and all the fragment operations are applied before the fragments -are written to the frame buffer. +position. These pixel fragments are then treated just like the +fragments generated by rasterizing points, lines, or polygons. Texture +mapping, fog, and all the fragment operations are applied before the +fragments are written to the frame buffer. @item @code{GL_RGBA} @item @code{GL_BGRA} @@ -5653,20 +5668,20 @@ Each pixel is a four-component group: For @code{GL_RGBA}, the red component is first, followed by green, followed by blue, followed by alpha; for @code{GL_BGRA} the order is blue, green, red and then alpha. Floating-point values are converted directly to an internal -floating-point format with unspecified precision. Signed integer values +floating-point format with unspecified precision. Signed integer values are mapped linearly to the internal floating-point format such that the most positive representable integer value maps to 1.0, and the most -negative representable value maps to @r{-1.0}. (Note that this mapping +negative representable value maps to @r{-1.0}. (Note that this mapping does not convert 0 precisely to 0.0.) Unsigned integer data is mapped -similarly: The largest integer value maps to 1.0, and 0 maps to 0.0. The +similarly: The largest integer value maps to 1.0, and 0 maps to 0.0. The resulting floating-point color values are then multiplied by @code{GL_c_SCALE} and added to @code{GL_c_BIAS}, where @var{c} is RED, -GREEN, BLUE, and ALPHA for the respective color components. The results +GREEN, BLUE, and ALPHA for the respective color components. The results are clamped to the range @r{[0,1]}. If @code{GL_MAP_COLOR} is true, each color component is scaled by the size of lookup table @code{GL_PIXEL_MAP_c_TO_c}, then replaced by the -value that it references in that table. @var{c} is R, G, B, or A +value that it references in that table. @var{c} is R, G, B, or A respectively. The GL then converts the resulting RGBA colors to fragments by attaching @@ -5677,61 +5692,61 @@ coordinates to the @r{@var{n}}th fragment such that @r{@var{x}_@var{n}=@var{x}_@var{r}+@var{n}%@var{width}}@r{@var{y}_@var{n}=@var{y}_@var{r}+⌊@var{n}/@var{width},⌋} where @r{(@var{x}_@var{r},@var{y}_@var{r})} is the current raster -position. These pixel fragments are then treated just like the fragments -generated by rasterizing points, lines, or polygons. Texture mapping, -fog, and all the fragment operations are applied before the fragments -are written to the frame buffer. +position. These pixel fragments are then treated just like the +fragments generated by rasterizing points, lines, or polygons. Texture +mapping, fog, and all the fragment operations are applied before the +fragments are written to the frame buffer. @item @code{GL_RED} -Each pixel is a single red component. This component is converted to the -internal floating-point format in the same way the red component of an -RGBA pixel is. It is then converted to an RGBA pixel with green and blue -set to 0, and alpha set to 1. After this conversion, the pixel is +Each pixel is a single red component. This component is converted to +the internal floating-point format in the same way the red component of +an RGBA pixel is. It is then converted to an RGBA pixel with green and +blue set to 0, and alpha set to 1. After this conversion, the pixel is treated as if it had been read as an RGBA pixel. @item @code{GL_GREEN} -Each pixel is a single green component. This component is converted to +Each pixel is a single green component. This component is converted to the internal floating-point format in the same way the green component -of an RGBA pixel is. It is then converted to an RGBA pixel with red and -blue set to 0, and alpha set to 1. After this conversion, the pixel is +of an RGBA pixel is. It is then converted to an RGBA pixel with red and +blue set to 0, and alpha set to 1. After this conversion, the pixel is treated as if it had been read as an RGBA pixel. @item @code{GL_BLUE} -Each pixel is a single blue component. This component is converted to +Each pixel is a single blue component. This component is converted to the internal floating-point format in the same way the blue component of -an RGBA pixel is. It is then converted to an RGBA pixel with red and -green set to 0, and alpha set to 1. After this conversion, the pixel is +an RGBA pixel is. It is then converted to an RGBA pixel with red and +green set to 0, and alpha set to 1. After this conversion, the pixel is treated as if it had been read as an RGBA pixel. @item @code{GL_ALPHA} -Each pixel is a single alpha component. This component is converted to +Each pixel is a single alpha component. This component is converted to the internal floating-point format in the same way the alpha component -of an RGBA pixel is. It is then converted to an RGBA pixel with red, -green, and blue set to 0. After this conversion, the pixel is treated as -if it had been read as an RGBA pixel. +of an RGBA pixel is. It is then converted to an RGBA pixel with red, +green, and blue set to 0. After this conversion, the pixel is treated +as if it had been read as an RGBA pixel. @item @code{GL_RGB} @item @code{GL_BGR} Each pixel is a three-component group: red first, followed by green, followed by blue; for @code{GL_BGR}, the first component is blue, -followed by green and then red. Each component is converted to the +followed by green and then red. Each component is converted to the internal floating-point format in the same way the red, green, and blue -components of an RGBA pixel are. The color triple is converted to an -RGBA pixel with alpha set to 1. After this conversion, the pixel is +components of an RGBA pixel are. The color triple is converted to an +RGBA pixel with alpha set to 1. After this conversion, the pixel is treated as if it had been read as an RGBA pixel. @item @code{GL_LUMINANCE} -Each pixel is a single luminance component. This component is converted +Each pixel is a single luminance component. This component is converted to the internal floating-point format in the same way the red component -of an RGBA pixel is. It is then converted to an RGBA pixel with red, +of an RGBA pixel is. It is then converted to an RGBA pixel with red, green, and blue set to the converted luminance value, and alpha set to -1. After this conversion, the pixel is treated as if it had been read as -an RGBA pixel. +1. After this conversion, the pixel is treated as if it had been read +as an RGBA pixel. @item @code{GL_LUMINANCE_ALPHA} Each pixel is a two-component group: luminance first, followed by alpha. The two components are converted to the internal floating-point format -in the same way the red component of an RGBA pixel is. They are then +in the same way the red component of an RGBA pixel is. They are then converted to an RGBA pixel with red, green, and blue set to the converted luminance value, and alpha set to the converted alpha value. After this conversion, the pixel is treated as if it had been read as an @@ -5812,9 +5827,9 @@ unsigned 32-bit integer with reversed component ordering -The rasterization described so far assumes pixel zoom factors of 1. If +The rasterization described so far assumes pixel zoom factors of 1. If @code{glPixelZoom} is used to change the @r{@var{x}} and @r{@var{y}} -pixel zoom factors, pixels are converted to fragments as follows. If +pixel zoom factors, pixels are converted to fragments as follows. If @r{(@var{x}_@var{r},@var{y}_@var{r})} is the current raster position, and a given pixel is in the @r{@var{n}}th column and @r{@var{m}}th row of the pixel rectangle, then fragments are generated for pixels whose @@ -5882,7 +5897,7 @@ Render primitives from array data. @table @asis @item @var{mode} -Specifies what kind of primitives to render. Symbolic constants +Specifies what kind of primitives to render. Symbolic constants @code{GL_POINTS}, @code{GL_LINE_STRIP}, @code{GL_LINE_LOOP}, @code{GL_LINES}, @code{GL_TRIANGLE_STRIP}, @code{GL_TRIANGLE_FAN}, @code{GL_TRIANGLES}, @code{GL_QUAD_STRIP}, @code{GL_QUADS}, and @@ -5898,7 +5913,7 @@ Specifies the maximum array index contained in @var{indices}. Specifies the number of elements to be rendered. @item @var{type} -Specifies the type of the values in @var{indices}. Must be one of +Specifies the type of the values in @var{indices}. Must be one of @code{GL_UNSIGNED_BYTE}, @code{GL_UNSIGNED_SHORT}, or @code{GL_UNSIGNED_INT}. @@ -5908,39 +5923,39 @@ Specifies a pointer to the location where the indices are stored. @end table @code{glDrawRangeElements} is a restricted form of -@code{glDrawElements}. @var{mode}, @var{start}, @var{end}, and +@code{glDrawElements}. @var{mode}, @var{start}, @var{end}, and @var{count} match the corresponding arguments to @code{glDrawElements}, with the additional constraint that all values in the arrays @var{count} must lie between @var{start} and @var{end}, inclusive. Implementations denote recommended maximum amounts of vertex and index data, which may be queried by calling @code{glGet} with argument -@code{GL_MAX_ELEMENTS_VERTICES} and @code{GL_MAX_ELEMENTS_INDICES}. If +@code{GL_MAX_ELEMENTS_VERTICES} and @code{GL_MAX_ELEMENTS_INDICES}. If @r{@var{end}-@var{start}+1} is greater than the value of @code{GL_MAX_ELEMENTS_VERTICES}, or if @var{count} is greater than the value of @code{GL_MAX_ELEMENTS_INDICES}, then the call may operate at -reduced performance. There is no requirement that all vertices in the -range @r{[@var{start},@var{end}]} be referenced. However, the +reduced performance. There is no requirement that all vertices in the +range @r{[@var{start},@var{end}]} be referenced. However, the implementation may partially process unused vertices, reducing performance from what could be achieved with an optimal index set. When @code{glDrawRangeElements} is called, it uses @var{count} sequential elements from an enabled array, starting at @var{start} to -construct a sequence of geometric primitives. @var{mode} specifies what +construct a sequence of geometric primitives. @var{mode} specifies what kind of primitives are constructed, and how the array elements construct -these primitives. If more than one array is enabled, each is used. If +these primitives. If more than one array is enabled, each is used. If @code{GL_VERTEX_ARRAY} is not enabled, no geometric primitives are constructed. Vertex attributes that are modified by @code{glDrawRangeElements} have -an unspecified value after @code{glDrawRangeElements} returns. For +an unspecified value after @code{glDrawRangeElements} returns. For example, if @code{GL_COLOR_ARRAY} is enabled, the value of the current -color is undefined after @code{glDrawRangeElements} executes. Attributes +color is undefined after @code{glDrawRangeElements} executes. Attributes that aren't modified maintain their previous values. It is an error for indices to lie outside the range @r{[@var{start},@var{end}]}, but implementations may not check for this -situation. Such indices cause implementation-dependent behavior. +situation. Such indices cause implementation-dependent behavior. @code{GL_INVALID_ENUM} is generated if @var{mode} is not an accepted value. @@ -5964,18 +5979,18 @@ Define an array of edge flags. @table @asis @item @var{stride} -Specifies the byte offset between consecutive edge flags. If +Specifies the byte offset between consecutive edge flags. If @var{stride} is 0, the edge flags are understood to be tightly packed in -the array. The initial value is 0. +the array. The initial value is 0. @item @var{pointer} -Specifies a pointer to the first edge flag in the array. The initial +Specifies a pointer to the first edge flag in the array. The initial value is 0. @end table @code{glEdgeFlagPointer} specifies the location and data format of an -array of boolean edge flags to use when rendering. @var{stride} +array of boolean edge flags to use when rendering. @var{stride} specifies the byte stride from one edge flag to the next, allowing vertices and attributes to be packed into a single array or stored in separate arrays. @@ -5983,7 +5998,7 @@ separate arrays. If a non-zero named buffer object is bound to the @code{GL_ARRAY_BUFFER} target (see @code{glBindBuffer}) while an edge flag array is specified, @var{pointer} is treated as a byte offset into the buffer object's data -store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) +store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) is saved as edge flag vertex array client-side state (@code{GL_EDGE_FLAG_ARRAY_BUFFER_BINDING}). @@ -5993,7 +6008,7 @@ buffer object binding. To enable and disable the edge flag array, call @code{glEnableClientState} and @code{glDisableClientState} with the -argument @code{GL_EDGE_FLAG_ARRAY}. If enabled, the edge flag array is +argument @code{GL_EDGE_FLAG_ARRAY}. If enabled, the edge flag array is used when @code{glDrawArrays}, @code{glMultiDrawArrays}, @code{glDrawElements}, @code{glMultiDrawElements}, @code{glDrawRangeElements}, or @code{glArrayElement} is called. @@ -6009,16 +6024,16 @@ Flag edges as either boundary or nonboundary. @table @asis @item @var{flag} Specifies the current edge flag value, either @code{GL_TRUE} or -@code{GL_FALSE}. The initial value is @code{GL_TRUE}. +@code{GL_FALSE}. The initial value is @code{GL_TRUE}. @end table Each vertex of a polygon, separate triangle, or separate quadrilateral specified between a @code{glBegin}/@code{glEnd} pair is marked as the -start of either a boundary or nonboundary edge. If the current edge flag -is true when the vertex is specified, the vertex is marked as the start -of a boundary edge. Otherwise, the vertex is marked as the start of a -nonboundary edge. @code{glEdgeFlag} sets the edge flag bit to +start of either a boundary or nonboundary edge. If the current edge +flag is true when the vertex is specified, the vertex is marked as the +start of a boundary edge. Otherwise, the vertex is marked as the start +of a nonboundary edge. @code{glEdgeFlag} sets the edge flag bit to @code{GL_TRUE} if @var{flag} is @code{GL_TRUE} and to @code{GL_FALSE} otherwise. @@ -6026,7 +6041,7 @@ The vertices of connected triangles and connected quadrilaterals are always marked as boundary, regardless of the value of the edge flag. Boundary and nonboundary edge flags on vertices are significant only if -@code{GL_POLYGON_MODE} is set to @code{GL_POINT} or @code{GL_LINE}. See +@code{GL_POLYGON_MODE} is set to @code{GL_POINT} or @code{GL_LINE}. See @code{glPolygonMode}. @end deftypefun @@ -6037,7 +6052,7 @@ Enable or disable client-side capability. @table @asis @item @var{cap} -Specifies the capability to enable. Symbolic constants +Specifies the capability to enable. Symbolic constants @code{GL_COLOR_ARRAY}, @code{GL_EDGE_FLAG_ARRAY}, @code{GL_FOG_COORD_ARRAY}, @code{GL_INDEX_ARRAY}, @code{GL_NORMAL_ARRAY}, @code{GL_SECONDARY_COLOR_ARRAY}, @@ -6046,10 +6061,10 @@ Specifies the capability to enable. Symbolic constants @end table @code{glEnableClientState} and @code{glDisableClientState} enable or -disable individual client-side capabilities. By default, all client-side -capabilities are disabled. Both @code{glEnableClientState} and -@code{glDisableClientState} take a single argument, @var{cap}, which can -assume one of the following values: +disable individual client-side capabilities. By default, all +client-side capabilities are disabled. Both @code{glEnableClientState} +and @code{glDisableClientState} take a single argument, @var{cap}, which +can assume one of the following values: @table @asis @item @code{GL_COLOR_ARRAY} @@ -6057,56 +6072,56 @@ If enabled, the color array is enabled for writing and used during rendering when @code{glArrayElement}, @code{glDrawArrays}, @code{glDrawElements}, @code{glDrawRangeElements}@code{glMultiDrawArrays}, or -@code{glMultiDrawElements} is called. See @code{glColorPointer}. +@code{glMultiDrawElements} is called. See @code{glColorPointer}. @item @code{GL_EDGE_FLAG_ARRAY} If enabled, the edge flag array is enabled for writing and used during rendering when @code{glArrayElement}, @code{glDrawArrays}, @code{glDrawElements}, @code{glDrawRangeElements}@code{glMultiDrawArrays}, or -@code{glMultiDrawElements} is called. See @code{glEdgeFlagPointer}. +@code{glMultiDrawElements} is called. See @code{glEdgeFlagPointer}. @item @code{GL_FOG_COORD_ARRAY} If enabled, the fog coordinate array is enabled for writing and used during rendering when @code{glArrayElement}, @code{glDrawArrays}, @code{glDrawElements}, @code{glDrawRangeElements}@code{glMultiDrawArrays}, or -@code{glMultiDrawElements} is called. See @code{glFogCoordPointer}. +@code{glMultiDrawElements} is called. See @code{glFogCoordPointer}. @item @code{GL_INDEX_ARRAY} If enabled, the index array is enabled for writing and used during rendering when @code{glArrayElement}, @code{glDrawArrays}, @code{glDrawElements}, @code{glDrawRangeElements}@code{glMultiDrawArrays}, or -@code{glMultiDrawElements} is called. See @code{glIndexPointer}. +@code{glMultiDrawElements} is called. See @code{glIndexPointer}. @item @code{GL_NORMAL_ARRAY} If enabled, the normal array is enabled for writing and used during rendering when @code{glArrayElement}, @code{glDrawArrays}, @code{glDrawElements}, @code{glDrawRangeElements}@code{glMultiDrawArrays}, or -@code{glMultiDrawElements} is called. See @code{glNormalPointer}. +@code{glMultiDrawElements} is called. See @code{glNormalPointer}. @item @code{GL_SECONDARY_COLOR_ARRAY} If enabled, the secondary color array is enabled for writing and used during rendering when @code{glArrayElement}, @code{glDrawArrays}, @code{glDrawElements}, @code{glDrawRangeElements}@code{glMultiDrawArrays}, or -@code{glMultiDrawElements} is called. See @code{glColorPointer}. +@code{glMultiDrawElements} is called. See @code{glColorPointer}. @item @code{GL_TEXTURE_COORD_ARRAY} If enabled, the texture coordinate array is enabled for writing and used during rendering when @code{glArrayElement}, @code{glDrawArrays}, @code{glDrawElements}, @code{glDrawRangeElements}@code{glMultiDrawArrays}, or -@code{glMultiDrawElements} is called. See @code{glTexCoordPointer}. +@code{glMultiDrawElements} is called. See @code{glTexCoordPointer}. @item @code{GL_VERTEX_ARRAY} If enabled, the vertex array is enabled for writing and used during rendering when @code{glArrayElement}, @code{glDrawArrays}, @code{glDrawElements}, @code{glDrawRangeElements}@code{glMultiDrawArrays}, or -@code{glMultiDrawElements} is called. See @code{glVertexPointer}. +@code{glMultiDrawElements} is called. See @code{glVertexPointer}. @end table @@ -6115,7 +6130,7 @@ value. @code{glEnableClientState} is not allowed between the execution of @code{glBegin} and the corresponding @code{glEnd}, but an error may or -may not be generated. If no error is generated, the behavior is +may not be generated. If no error is generated, the behavior is undefined. @end deftypefun @@ -6132,10 +6147,10 @@ disabled. @end table @code{glEnableVertexAttribArray} enables the generic vertex attribute -array specified by @var{index}. @code{glDisableVertexAttribArray} -disables the generic vertex attribute array specified by @var{index}. By +array specified by @var{index}. @code{glDisableVertexAttribArray} +disables the generic vertex attribute array specified by @var{index}. By default, all client-side capabilities are disabled, including all -generic vertex attribute arrays. If enabled, the values in the generic +generic vertex attribute arrays. If enabled, the values in the generic vertex attribute array will be accessed and used for rendering when calls are made to vertex array commands such as @code{glDrawArrays}, @code{glDrawElements}, @code{glDrawRangeElements}, @@ -6163,11 +6178,11 @@ Specifies a symbolic constant indicating a GL capability. @end table @code{glEnable} and @code{glDisable} enable and disable various -capabilities. Use @code{glIsEnabled} or @code{glGet} to determine the -current setting of any capability. The initial value for each capability -with the exception of @code{GL_DITHER} and @code{GL_MULTISAMPLE} is -@code{GL_FALSE}. The initial value for @code{GL_DITHER} and -@code{GL_MULTISAMPLE} is @code{GL_TRUE}. +capabilities. Use @code{glIsEnabled} or @code{glGet} to determine the +current setting of any capability. The initial value for each +capability with the exception of @code{GL_DITHER} and +@code{GL_MULTISAMPLE} is @code{GL_FALSE}. The initial value for +@code{GL_DITHER} and @code{GL_MULTISAMPLE} is @code{GL_TRUE}. Both @code{glEnable} and @code{glDisable} take a single argument, @var{cap}, which can assume one of the following values: @@ -6176,20 +6191,20 @@ Both @code{glEnable} and @code{glDisable} take a single argument, @item @code{GL_ALPHA_TEST} -If enabled, do alpha testing. See @code{glAlphaFunc}. +If enabled, do alpha testing. See @code{glAlphaFunc}. @item @code{GL_AUTO_NORMAL} If enabled, generate normal vectors when either @code{GL_MAP2_VERTEX_3} -or @code{GL_MAP2_VERTEX_4} is used to generate vertices. See +or @code{GL_MAP2_VERTEX_4} is used to generate vertices. See @code{glMap2}. @item @code{GL_BLEND} If enabled, blend the computed fragment color values with the values in -the color buffers. See @code{glBlendFunc}. +the color buffers. See @code{glBlendFunc}. @item @code{GL_CLIP_PLANE}@var{i} @@ -6201,37 +6216,37 @@ See @code{glClipPlane}. If enabled, apply the currently selected logical operation to the -computed fragment color and color buffer values. See @code{glLogicOp}. +computed fragment color and color buffer values. See @code{glLogicOp}. @item @code{GL_COLOR_MATERIAL} If enabled, have one or more material parameters track the current -color. See @code{glColorMaterial}. +color. See @code{glColorMaterial}. @item @code{GL_COLOR_SUM} If enabled and no fragment shader is active, add the secondary color -value to the computed fragment color. See @code{glSecondaryColor}. +value to the computed fragment color. See @code{glSecondaryColor}. @item @code{GL_COLOR_TABLE} If enabled, perform a color table lookup on the incoming RGBA color -values. See @code{glColorTable}. +values. See @code{glColorTable}. @item @code{GL_CONVOLUTION_1D} If enabled, perform a 1D convolution operation on incoming RGBA color -values. See @code{glConvolutionFilter1D}. +values. See @code{glConvolutionFilter1D}. @item @code{GL_CONVOLUTION_2D} If enabled, perform a 2D convolution operation on incoming RGBA color -values. See @code{glConvolutionFilter2D}. +values. See @code{glConvolutionFilter2D}. @item @code{GL_CULL_FACE} @@ -6242,9 +6257,9 @@ See @code{glCullFace}. @item @code{GL_DEPTH_TEST} -If enabled, do depth comparisons and update the depth buffer. Note that +If enabled, do depth comparisons and update the depth buffer. Note that even if the depth buffer exists and the depth mask is non-zero, the -depth buffer is not updated if the depth test is disabled. See +depth buffer is not updated if the depth test is disabled. See @code{glDepthFunc} and @code{glDepthRange}. @item @code{GL_DITHER} @@ -6257,69 +6272,69 @@ to the color buffer. If enabled and no fragment shader is active, blend a fog color into the -post-texturing color. See @code{glFog}. +post-texturing color. See @code{glFog}. @item @code{GL_HISTOGRAM} -If enabled, histogram incoming RGBA color values. See +If enabled, histogram incoming RGBA color values. See @code{glHistogram}. @item @code{GL_INDEX_LOGIC_OP} If enabled, apply the currently selected logical operation to the -incoming index and color buffer indices. See @code{glLogicOp}. +incoming index and color buffer indices. See @code{glLogicOp}. @item @code{GL_LIGHT}@var{i} If enabled, include light @var{i} in the evaluation of the lighting -equation. See @code{glLightModel} and @code{glLight}. +equation. See @code{glLightModel} and @code{glLight}. @item @code{GL_LIGHTING} If enabled and no vertex shader is active, use the current lighting -parameters to compute the vertex color or index. Otherwise, simply -associate the current color or index with each vertex. See +parameters to compute the vertex color or index. Otherwise, simply +associate the current color or index with each vertex. See @code{glMaterial}, @code{glLightModel}, and @code{glLight}. @item @code{GL_LINE_SMOOTH} -If enabled, draw lines with correct filtering. Otherwise, draw aliased -lines. See @code{glLineWidth}. +If enabled, draw lines with correct filtering. Otherwise, draw aliased +lines. See @code{glLineWidth}. @item @code{GL_LINE_STIPPLE} -If enabled, use the current line stipple pattern when drawing lines. See +If enabled, use the current line stipple pattern when drawing lines. See @code{glLineStipple}. @item @code{GL_MAP1_COLOR_4} If enabled, calls to @code{glEvalCoord1}, @code{glEvalMesh1}, and -@code{glEvalPoint1} generate RGBA values. See @code{glMap1}. +@code{glEvalPoint1} generate RGBA values. See @code{glMap1}. @item @code{GL_MAP1_INDEX} If enabled, calls to @code{glEvalCoord1}, @code{glEvalMesh1}, and -@code{glEvalPoint1} generate color indices. See @code{glMap1}. +@code{glEvalPoint1} generate color indices. See @code{glMap1}. @item @code{GL_MAP1_NORMAL} If enabled, calls to @code{glEvalCoord1}, @code{glEvalMesh1}, and -@code{glEvalPoint1} generate normals. See @code{glMap1}. +@code{glEvalPoint1} generate normals. See @code{glMap1}. @item @code{GL_MAP1_TEXTURE_COORD_1} If enabled, calls to @code{glEvalCoord1}, @code{glEvalMesh1}, and -@code{glEvalPoint1} generate @var{s} texture coordinates. See +@code{glEvalPoint1} generate @var{s} texture coordinates. See @code{glMap1}. @item @code{GL_MAP1_TEXTURE_COORD_2} @@ -6334,52 +6349,52 @@ See @code{glMap1}. If enabled, calls to @code{glEvalCoord1}, @code{glEvalMesh1}, and @code{glEvalPoint1} generate @var{s}, @var{t}, and @var{r} texture -coordinates. See @code{glMap1}. +coordinates. See @code{glMap1}. @item @code{GL_MAP1_TEXTURE_COORD_4} If enabled, calls to @code{glEvalCoord1}, @code{glEvalMesh1}, and @code{glEvalPoint1} generate @var{s}, @var{t}, @var{r}, and @var{q} -texture coordinates. See @code{glMap1}. +texture coordinates. See @code{glMap1}. @item @code{GL_MAP1_VERTEX_3} If enabled, calls to @code{glEvalCoord1}, @code{glEvalMesh1}, and @code{glEvalPoint1} generate @var{x}, @var{y}, and @var{z} vertex -coordinates. See @code{glMap1}. +coordinates. See @code{glMap1}. @item @code{GL_MAP1_VERTEX_4} If enabled, calls to @code{glEvalCoord1}, @code{glEvalMesh1}, and @code{glEvalPoint1} generate homogeneous @var{x}, @var{y}, @var{z}, and -@var{w} vertex coordinates. See @code{glMap1}. +@var{w} vertex coordinates. See @code{glMap1}. @item @code{GL_MAP2_COLOR_4} If enabled, calls to @code{glEvalCoord2}, @code{glEvalMesh2}, and -@code{glEvalPoint2} generate RGBA values. See @code{glMap2}. +@code{glEvalPoint2} generate RGBA values. See @code{glMap2}. @item @code{GL_MAP2_INDEX} If enabled, calls to @code{glEvalCoord2}, @code{glEvalMesh2}, and -@code{glEvalPoint2} generate color indices. See @code{glMap2}. +@code{glEvalPoint2} generate color indices. See @code{glMap2}. @item @code{GL_MAP2_NORMAL} If enabled, calls to @code{glEvalCoord2}, @code{glEvalMesh2}, and -@code{glEvalPoint2} generate normals. See @code{glMap2}. +@code{glEvalPoint2} generate normals. See @code{glMap2}. @item @code{GL_MAP2_TEXTURE_COORD_1} If enabled, calls to @code{glEvalCoord2}, @code{glEvalMesh2}, and -@code{glEvalPoint2} generate @var{s} texture coordinates. See +@code{glEvalPoint2} generate @var{s} texture coordinates. See @code{glMap2}. @item @code{GL_MAP2_TEXTURE_COORD_2} @@ -6394,60 +6409,60 @@ See @code{glMap2}. If enabled, calls to @code{glEvalCoord2}, @code{glEvalMesh2}, and @code{glEvalPoint2} generate @var{s}, @var{t}, and @var{r} texture -coordinates. See @code{glMap2}. +coordinates. See @code{glMap2}. @item @code{GL_MAP2_TEXTURE_COORD_4} If enabled, calls to @code{glEvalCoord2}, @code{glEvalMesh2}, and @code{glEvalPoint2} generate @var{s}, @var{t}, @var{r}, and @var{q} -texture coordinates. See @code{glMap2}. +texture coordinates. See @code{glMap2}. @item @code{GL_MAP2_VERTEX_3} If enabled, calls to @code{glEvalCoord2}, @code{glEvalMesh2}, and @code{glEvalPoint2} generate @var{x}, @var{y}, and @var{z} vertex -coordinates. See @code{glMap2}. +coordinates. See @code{glMap2}. @item @code{GL_MAP2_VERTEX_4} If enabled, calls to @code{glEvalCoord2}, @code{glEvalMesh2}, and @code{glEvalPoint2} generate homogeneous @var{x}, @var{y}, @var{z}, and -@var{w} vertex coordinates. See @code{glMap2}. +@var{w} vertex coordinates. See @code{glMap2}. @item @code{GL_MINMAX} If enabled, compute the minimum and maximum values of incoming RGBA -color values. See @code{glMinmax}. +color values. See @code{glMinmax}. @item @code{GL_MULTISAMPLE} If enabled, use multiple fragment samples in computing the final color -of a pixel. See @code{glSampleCoverage}. +of a pixel. See @code{glSampleCoverage}. @item @code{GL_NORMALIZE} If enabled and no vertex shader is active, normal vectors are normalized -to unit length after transformation and before lighting. This method is -generally less efficient than @code{GL_RESCALE_NORMAL}. See +to unit length after transformation and before lighting. This method is +generally less efficient than @code{GL_RESCALE_NORMAL}. See @code{glNormal} and @code{glNormalPointer}. @item @code{GL_POINT_SMOOTH} -If enabled, draw points with proper filtering. Otherwise, draw aliased -points. See @code{glPointSize}. +If enabled, draw points with proper filtering. Otherwise, draw aliased +points. See @code{glPointSize}. @item @code{GL_POINT_SPRITE} If enabled, calculate texture coordinates for points based on texture -environment and point parameter settings. Otherwise texture coordinates +environment and point parameter settings. Otherwise texture coordinates are constant across points. @item @code{GL_POLYGON_OFFSET_FILL} @@ -6455,62 +6470,62 @@ are constant across points. If enabled, and if the polygon is rendered in @code{GL_FILL} mode, an offset is added to depth values of a polygon's fragments before the -depth comparison is performed. See @code{glPolygonOffset}. +depth comparison is performed. See @code{glPolygonOffset}. @item @code{GL_POLYGON_OFFSET_LINE} If enabled, and if the polygon is rendered in @code{GL_LINE} mode, an offset is added to depth values of a polygon's fragments before the -depth comparison is performed. See @code{glPolygonOffset}. +depth comparison is performed. See @code{glPolygonOffset}. @item @code{GL_POLYGON_OFFSET_POINT} If enabled, an offset is added to depth values of a polygon's fragments before the depth comparison is performed, if the polygon is rendered in -@code{GL_POINT} mode. See @code{glPolygonOffset}. +@code{GL_POINT} mode. See @code{glPolygonOffset}. @item @code{GL_POLYGON_SMOOTH} -If enabled, draw polygons with proper filtering. Otherwise, draw aliased -polygons. For correct antialiased polygons, an alpha buffer is needed -and the polygons must be sorted front to back. +If enabled, draw polygons with proper filtering. Otherwise, draw +aliased polygons. For correct antialiased polygons, an alpha buffer is +needed and the polygons must be sorted front to back. @item @code{GL_POLYGON_STIPPLE} If enabled, use the current polygon stipple pattern when rendering -polygons. See @code{glPolygonStipple}. +polygons. See @code{glPolygonStipple}. @item @code{GL_POST_COLOR_MATRIX_COLOR_TABLE} If enabled, perform a color table lookup on RGBA color values after -color matrix transformation. See @code{glColorTable}. +color matrix transformation. See @code{glColorTable}. @item @code{GL_POST_CONVOLUTION_COLOR_TABLE} If enabled, perform a color table lookup on RGBA color values after -convolution. See @code{glColorTable}. +convolution. See @code{glColorTable}. @item @code{GL_RESCALE_NORMAL} If enabled and no vertex shader is active, normal vectors are scaled after transformation and before lighting by a factor computed from the -modelview matrix. If the modelview matrix scales space uniformly, this -has the effect of restoring the transformed normal to unit length. This -method is generally more efficient than @code{GL_NORMALIZE}. See +modelview matrix. If the modelview matrix scales space uniformly, this +has the effect of restoring the transformed normal to unit length. This +method is generally more efficient than @code{GL_NORMALIZE}. See @code{glNormal} and @code{glNormalPointer}. @item @code{GL_SAMPLE_ALPHA_TO_COVERAGE} If enabled, compute a temporary coverage value where each bit is -determined by the alpha value at the corresponding sample location. The +determined by the alpha value at the corresponding sample location. The temporary coverage value is then ANDed with the fragment coverage value. @item @code{GL_SAMPLE_ALPHA_TO_ONE} @@ -6523,14 +6538,14 @@ representable alpha value. If enabled, the fragment's coverage is ANDed with the temporary coverage -value. If @code{GL_SAMPLE_COVERAGE_INVERT} is set to @code{GL_TRUE}, -invert the coverage value. See @code{glSampleCoverage}. +value. If @code{GL_SAMPLE_COVERAGE_INVERT} is set to @code{GL_TRUE}, +invert the coverage value. See @code{glSampleCoverage}. @item @code{GL_SEPARABLE_2D} If enabled, perform a two-dimensional convolution operation using a -separable convolution filter on incoming RGBA color values. See +separable convolution filter on incoming RGBA color values. See @code{glSeparableFilter2D}. @item @code{GL_SCISSOR_TEST} @@ -6542,7 +6557,7 @@ See @code{glScissor}. @item @code{GL_STENCIL_TEST} -If enabled, do stencil testing and update the stencil buffer. See +If enabled, do stencil testing and update the stencil buffer. See @code{glStencilFunc} and @code{glStencilOp}. @item @code{GL_TEXTURE_1D} @@ -6550,59 +6565,59 @@ If enabled, do stencil testing and update the stencil buffer. See If enabled and no fragment shader is active, one-dimensional texturing is performed (unless two- or three-dimensional or cube-mapped texturing -is also enabled). See @code{glTexImage1D}. +is also enabled). See @code{glTexImage1D}. @item @code{GL_TEXTURE_2D} If enabled and no fragment shader is active, two-dimensional texturing is performed (unless three-dimensional or cube-mapped texturing is also -enabled). See @code{glTexImage2D}. +enabled). See @code{glTexImage2D}. @item @code{GL_TEXTURE_3D} If enabled and no fragment shader is active, three-dimensional texturing -is performed (unless cube-mapped texturing is also enabled). See +is performed (unless cube-mapped texturing is also enabled). See @code{glTexImage3D}. @item @code{GL_TEXTURE_CUBE_MAP} If enabled and no fragment shader is active, cube-mapped texturing is -performed. See @code{glTexImage2D}. +performed. See @code{glTexImage2D}. @item @code{GL_TEXTURE_GEN_Q} If enabled and no vertex shader is active, the @var{q} texture coordinate is computed using the texture generation function defined -with @code{glTexGen}. Otherwise, the current @var{q} texture coordinate -is used. See @code{glTexGen}. +with @code{glTexGen}. Otherwise, the current @var{q} texture coordinate +is used. See @code{glTexGen}. @item @code{GL_TEXTURE_GEN_R} If enabled and no vertex shader is active, the @var{r} texture coordinate is computed using the texture generation function defined -with @code{glTexGen}. Otherwise, the current @var{r} texture coordinate -is used. See @code{glTexGen}. +with @code{glTexGen}. Otherwise, the current @var{r} texture coordinate +is used. See @code{glTexGen}. @item @code{GL_TEXTURE_GEN_S} If enabled and no vertex shader is active, the @var{s} texture coordinate is computed using the texture generation function defined -with @code{glTexGen}. Otherwise, the current @var{s} texture coordinate -is used. See @code{glTexGen}. +with @code{glTexGen}. Otherwise, the current @var{s} texture coordinate +is used. See @code{glTexGen}. @item @code{GL_TEXTURE_GEN_T} If enabled and no vertex shader is active, the @var{t} texture coordinate is computed using the texture generation function defined -with @code{glTexGen}. Otherwise, the current @var{t} texture coordinate -is used. See @code{glTexGen}. +with @code{glTexGen}. Otherwise, the current @var{t} texture coordinate +is used. See @code{glTexGen}. @item @code{GL_VERTEX_PROGRAM_POINT_SIZE} @@ -6616,7 +6631,7 @@ and clamped to the implementation-dependent point size range. If enabled and a vertex shader is active, it specifies that the GL will choose between front and back colors based on the polygon's face -direction of which the vertex being shaded is a part. It has no effect +direction of which the vertex being shaded is a part. It has no effect on points or lines. @end table @@ -6647,24 +6662,24 @@ function defined in a previous @code{glMap1} or @code{glMap2} command. @item @var{v} Specifies a value that is the domain coordinate @r{@var{v}} to the basis -function defined in a previous @code{glMap2} command. This argument is +function defined in a previous @code{glMap2} command. This argument is not present in a @code{glEvalCoord1} command. @end table @code{glEvalCoord1} evaluates enabled one-dimensional maps at argument -@var{u}. @code{glEvalCoord2} does the same for two-dimensional maps -using two domain values, @var{u} and @var{v}. To define a map, call +@var{u}. @code{glEvalCoord2} does the same for two-dimensional maps +using two domain values, @var{u} and @var{v}. To define a map, call @code{glMap1} and @code{glMap2}; to enable and disable it, call @code{glEnable} and @code{glDisable}. When one of the @code{glEvalCoord} commands is issued, all currently -enabled maps of the indicated dimension are evaluated. Then, for each +enabled maps of the indicated dimension are evaluated. Then, for each enabled map, it is as if the corresponding GL command had been issued -with the computed value. That is, if @code{GL_MAP1_INDEX} or +with the computed value. That is, if @code{GL_MAP1_INDEX} or @code{GL_MAP2_INDEX} is enabled, a @code{glIndex} command is simulated. If @code{GL_MAP1_COLOR_4} or @code{GL_MAP2_COLOR_4} is enabled, a -@code{glColor} command is simulated. If @code{GL_MAP1_NORMAL} or +@code{glColor} command is simulated. If @code{GL_MAP1_NORMAL} or @code{GL_MAP2_NORMAL} is enabled, a normal vector is produced, and if any of @code{GL_MAP1_TEXTURE_COORD_1}, @code{GL_MAP1_TEXTURE_COORD_2}, @code{GL_MAP1_TEXTURE_COORD_3}, @code{GL_MAP1_TEXTURE_COORD_4}, @@ -6675,27 +6690,27 @@ enabled, then an appropriate @code{glTexCoord} command is simulated. For color, color index, normal, and texture coordinates the GL uses evaluated values instead of current values for those evaluations that are enabled, and current values otherwise, However, the evaluated values -do not update the current values. Thus, if @code{glVertex} commands are +do not update the current values. Thus, if @code{glVertex} commands are interspersed with @code{glEvalCoord} commands, the color, normal, and texture coordinates associated with the @code{glVertex} commands are not affected by the values generated by the @code{glEvalCoord} commands, but only by the most recent @code{glColor}, @code{glIndex}, @code{glNormal}, and @code{glTexCoord} commands. -No commands are issued for maps that are not enabled. If more than one +No commands are issued for maps that are not enabled. If more than one texture evaluation is enabled for a particular dimension (for example, @code{GL_MAP2_TEXTURE_COORD_1} and @code{GL_MAP2_TEXTURE_COORD_2}), then only the evaluation of the map that produces the larger number of coordinates (in this case, @code{GL_MAP2_TEXTURE_COORD_2}) is carried -out. @code{GL_MAP1_VERTEX_4} overrides @code{GL_MAP1_VERTEX_3}, and +out. @code{GL_MAP1_VERTEX_4} overrides @code{GL_MAP1_VERTEX_3}, and @code{GL_MAP2_VERTEX_4} overrides @code{GL_MAP2_VERTEX_3}, in the same -manner. If neither a three- nor a four-component vertex map is enabled +manner. If neither a three- nor a four-component vertex map is enabled for the specified dimension, the @code{glEvalCoord} command is ignored. If you have enabled automatic normal generation, by calling @code{glEnable} with argument @code{GL_AUTO_NORMAL}, @code{glEvalCoord2} generates surface normals analytically, regardless of the contents or -enabling of the @code{GL_MAP2_NORMAL} map. Let +enabling of the @code{GL_MAP2_NORMAL} map. Let @r{@code{m}=∂@code{p},/∂@var{u},,×∂@code{p},/∂@var{v},,} @@ -6703,7 +6718,7 @@ Then the generated normal @r{@code{n}} is @r{@code{n}=@code{m}/∥@code{m},∥,} If automatic normal generation is disabled, the corresponding normal map -@code{GL_MAP2_NORMAL}, if enabled, is used to produce a normal. If +@code{GL_MAP2_NORMAL}, if enabled, is used to produce a normal. If neither automatic normal generation nor a normal map is enabled, no normal is generated for @code{glEvalCoord2} commands. @@ -6716,7 +6731,7 @@ Compute a one- or two-dimensional grid of points or lines. @table @asis @item @var{mode} In @code{glEvalMesh1}, specifies whether to compute a one-dimensional -mesh of points or lines. Symbolic constants @code{GL_POINT} and +mesh of points or lines. Symbolic constants @code{GL_POINT} and @code{GL_LINE} are accepted. @item @var{i1} @@ -6730,7 +6745,7 @@ Specify the first and last integer values for grid domain variable generate and evaluate a series of evenly-spaced map domain values. @code{glEvalMesh} steps through the integer domain of a one- or two-dimensional grid, whose range is the domain of the evaluation maps -specified by @code{glMap1} and @code{glMap2}. @var{mode} determines +specified by @code{glMap1} and @code{glMap2}. @var{mode} determines whether the resulting vertices are connected as points, lines, or filled polygons. @@ -6750,7 +6765,7 @@ glEnd(); @r{Δ@var{u}=(@var{u}_2-@var{u}_1,)/@var{n}} and @r{@var{n}}, @r{@var{u}_1}, and @r{@var{u}_2} are the arguments to -the most recent @code{glMapGrid1} command. @var{type} is +the most recent @code{glMapGrid1} command. @var{type} is @code{GL_POINTS} if @var{mode} is @code{GL_POINT}, or @code{GL_LINES} if @var{mode} is @code{GL_LINE}. @@ -6765,7 +6780,7 @@ In the two-dimensional case, @code{glEvalMesh2}, let .cp where @r{@var{n}}, @r{@var{u}_1}, @r{@var{u}_2}, @r{@var{m}}, @r{@var{v}_1}, and @r{@var{v}_2} are the arguments to the most recent -@code{glMapGrid2} command. Then, if @var{mode} is @code{GL_FILL}, the +@code{glMapGrid2} command. Then, if @var{mode} is @code{GL_FILL}, the @code{glEvalMesh2} command is equivalent to: @@ -6850,7 +6865,7 @@ Specifies the integer value for grid domain variable @r{@var{j}} @code{glMapGrid} and @code{glEvalMesh} are used in tandem to efficiently generate and evaluate a series of evenly spaced map domain values. @code{glEvalPoint} can be used to evaluate a single grid point in the -same gridspace that is traversed by @code{glEvalMesh}. Calling +same gridspace that is traversed by @code{glEvalMesh}. Calling @code{glEvalPoint1} is equivalent to calling where @r{Δ@var{u}=(@var{u}_2-@var{u}_1,)/@var{n}} @@ -6860,7 +6875,7 @@ glEvalCoord1( @r{i·Δ@var{u}+@var{u}_1} ); @end example and @r{@var{n}}, @r{@var{u}_1}, and @r{@var{u}_2} are the arguments to -the most recent @code{glMapGrid1} command. The one absolute numeric +the most recent @code{glMapGrid1} command. The one absolute numeric requirement is that if @r{@var{i}=@var{n}}, then the value computed from @r{@var{i}·Δ@var{u}+@var{u}_1} is exactly @r{@var{u}_2}. @@ -6870,7 +6885,7 @@ In the two-dimensional case, @code{glEvalPoint2}, let where @r{@var{n}}, @r{@var{u}_1}, @r{@var{u}_2}, @r{@var{m}}, @r{@var{v}_1}, and @r{@var{v}_2} are the arguments to the most recent -@code{glMapGrid2} command. Then the @code{glEvalPoint2} command is +@code{glMapGrid2} command. Then the @code{glEvalPoint2} command is equivalent to calling The only absolute numeric requirements are that if @r{@var{i}=@var{n}}, then the value computed from @r{@var{i}·Δ@var{u}+@var{u}_1} is exactly @r{@var{u}_2}, and if @@ -6894,7 +6909,7 @@ Specifies the maximum number of values that can be written into @item @var{type} Specifies a symbolic constant that describes the information that will -be returned for each vertex. @code{GL_2D}, @code{GL_3D}, +be returned for each vertex. @code{GL_2D}, @code{GL_3D}, @code{GL_3D_COLOR}, @code{GL_3D_COLOR_TEXTURE}, and @code{GL_4D_COLOR_TEXTURE} are accepted. @@ -6903,53 +6918,53 @@ Returns the feedback data. @end table -The @code{glFeedbackBuffer} function controls feedback. Feedback, like -selection, is a GL mode. The mode is selected by calling -@code{glRenderMode} with @code{GL_FEEDBACK}. When the GL is in feedback -mode, no pixels are produced by rasterization. Instead, information +The @code{glFeedbackBuffer} function controls feedback. Feedback, like +selection, is a GL mode. The mode is selected by calling +@code{glRenderMode} with @code{GL_FEEDBACK}. When the GL is in feedback +mode, no pixels are produced by rasterization. Instead, information about primitives that would have been rasterized is fed back to the application using the GL. @code{glFeedbackBuffer} has three arguments: @var{buffer} is a pointer to an array of floating-point values into which feedback information is -placed. @var{size} indicates the size of the array. @var{type} is a +placed. @var{size} indicates the size of the array. @var{type} is a symbolic constant describing the information that is fed back for each -vertex. @code{glFeedbackBuffer} must be issued before feedback mode is +vertex. @code{glFeedbackBuffer} must be issued before feedback mode is enabled (by calling @code{glRenderMode} with argument -@code{GL_FEEDBACK}). Setting @code{GL_FEEDBACK} without establishing the -feedback buffer, or calling @code{glFeedbackBuffer} while the GL is in -feedback mode, is an error. +@code{GL_FEEDBACK}). Setting @code{GL_FEEDBACK} without establishing +the feedback buffer, or calling @code{glFeedbackBuffer} while the GL is +in feedback mode, is an error. When @code{glRenderMode} is called while in feedback mode, it returns the number of entries placed in the feedback array and resets the -feedback array pointer to the base of the feedback buffer. The returned -value never exceeds @var{size}. If the feedback data required more room +feedback array pointer to the base of the feedback buffer. The returned +value never exceeds @var{size}. If the feedback data required more room than was available in @var{buffer}, @code{glRenderMode} returns a -negative value. To take the GL out of feedback mode, call +negative value. To take the GL out of feedback mode, call @code{glRenderMode} with a parameter value other than @code{GL_FEEDBACK}. While in feedback mode, each primitive, bitmap, or pixel rectangle that would be rasterized generates a block of values that are copied into the -feedback array. If doing so would cause the number of entries to exceed +feedback array. If doing so would cause the number of entries to exceed the maximum, the block is partially written so as to fill the array (if -there is any room left at all), and an overflow flag is set. Each block +there is any room left at all), and an overflow flag is set. Each block begins with a code indicating the primitive type, followed by values -that describe the primitive's vertices and associated data. Entries are -also written for bitmaps and pixel rectangles. Feedback occurs after +that describe the primitive's vertices and associated data. Entries are +also written for bitmaps and pixel rectangles. Feedback occurs after polygon culling and @code{glPolygonMode} interpretation of polygons has taken place, so polygons that are culled are not returned in the -feedback buffer. It can also occur after polygons with more than three +feedback buffer. It can also occur after polygons with more than three edges are broken up into triangles, if the GL implementation renders polygons by performing this decomposition. The @code{glPassThrough} command can be used to insert a marker into the -feedback buffer. See @code{glPassThrough}. +feedback buffer. See @code{glPassThrough}. Following is the grammar for the blocks of values written into the -feedback buffer. Each primitive is indicated with a unique identifying -value followed by some number of vertices. Polygon entries include an -integer value indicating how many vertices follow. A vertex is fed back +feedback buffer. Each primitive is indicated with a unique identifying +value followed by some number of vertices. Polygon entries include an +integer value indicating how many vertices follow. A vertex is fed back as some number of floating-point values, as determined by @var{type}. Colors are fed back as four values in RGBA mode and one value in color index mode. @@ -6977,11 +6992,11 @@ integer giving the number of vertices in the polygon. @code{GL_DRAW_PIXEL_TOKEN}, @code{GL_COPY_PIXEL_TOKEN} and @code{GL_PASS_THROUGH_TOKEN} are symbolic floating-point constants. @code{GL_LINE_RESET_TOKEN} is returned whenever the line stipple pattern -is reset. The data returned as a vertex depends on the feedback +is reset. The data returned as a vertex depends on the feedback @var{type}. The following table gives the correspondence between @var{type} and the -number of values per vertex. @var{k} is 1 in color index mode and 4 in +number of values per vertex. @var{k} is 1 in color index mode and 4 in RGBA mode. @@ -7009,9 +7024,9 @@ Number of Values} @end table Feedback vertex coordinates are in window coordinates, except @var{w}, -which is in clip coordinates. Feedback colors are lighted, if lighting -is enabled. Feedback texture coordinates are generated, if texture -coordinate generation is enabled. They are always transformed by the +which is in clip coordinates. Feedback colors are lighted, if lighting +is enabled. Feedback texture coordinates are generated, if texture +coordinate generation is enabled. They are always transformed by the texture matrix. @code{GL_INVALID_ENUM} is generated if @var{type} is not an accepted @@ -7034,7 +7049,7 @@ execution of @code{glEnd}. Block until all GL execution is complete. @code{glFinish} does not return until the effects of all previously -called GL commands are complete. Such effects include all changes to GL +called GL commands are complete. Such effects include all changes to GL state, all changes to connection state, and all changes to the frame buffer contents. @@ -7049,15 +7064,15 @@ Force execution of GL commands in finite time. Different GL implementations buffer commands in several different locations, including network buffers and the graphics accelerator -itself. @code{glFlush} empties all of these buffers, causing all issued +itself. @code{glFlush} empties all of these buffers, causing all issued commands to be executed as quickly as they are accepted by the actual -rendering engine. Though this execution may not be completed in any +rendering engine. Though this execution may not be completed in any particular time period, it does complete in finite time. Because any GL program might be executed over a network, or on an accelerator that buffers commands, all programs should call @code{glFlush} whenever they count on having all of their previously -issued commands completed. For example, call @code{glFlush} before +issued commands completed. For example, call @code{glFlush} before waiting for user input that depends on the generated image. @code{GL_INVALID_OPERATION} is generated if @code{glFlush} is executed @@ -7071,32 +7086,32 @@ Define an array of fog coordinates. @table @asis @item @var{type} -Specifies the data type of each fog coordinate. Symbolic constants -@code{GL_FLOAT}, or @code{GL_DOUBLE} are accepted. The initial value is +Specifies the data type of each fog coordinate. Symbolic constants +@code{GL_FLOAT}, or @code{GL_DOUBLE} are accepted. The initial value is @code{GL_FLOAT}. @item @var{stride} -Specifies the byte offset between consecutive fog coordinates. If +Specifies the byte offset between consecutive fog coordinates. If @var{stride} is 0, the array elements are understood to be tightly -packed. The initial value is 0. +packed. The initial value is 0. @item @var{pointer} Specifies a pointer to the first coordinate of the first fog coordinate -in the array. The initial value is 0. +in the array. The initial value is 0. @end table @code{glFogCoordPointer} specifies the location and data format of an -array of fog coordinates to use when rendering. @var{type} specifies the -data type of each fog coordinate, and @var{stride} specifies the byte -stride from one fog coordinate to the next, allowing vertices and +array of fog coordinates to use when rendering. @var{type} specifies +the data type of each fog coordinate, and @var{stride} specifies the +byte stride from one fog coordinate to the next, allowing vertices and attributes to be packed into a single array or stored in separate arrays. If a non-zero named buffer object is bound to the @code{GL_ARRAY_BUFFER} target (see @code{glBindBuffer}) while a fog coordinate array is specified, @var{pointer} is treated as a byte offset into the buffer -object's data store. Also, the buffer object binding +object's data store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) is saved as fog coordinate vertex array client-side state (@code{GL_FOG_COORD_ARRAY_BUFFER_BINDING}). @@ -7106,8 +7121,8 @@ vertex array buffer object binding. To enable and disable the fog coordinate array, call @code{glEnableClientState} and @code{glDisableClientState} with the -argument @code{GL_FOG_COORD_ARRAY}. If enabled, the fog coordinate array -is used when @code{glDrawArrays}, @code{glMultiDrawArrays}, +argument @code{GL_FOG_COORD_ARRAY}. If enabled, the fog coordinate +array is used when @code{glDrawArrays}, @code{glMultiDrawArrays}, @code{glDrawElements}, @code{glMultiDrawElements}, @code{glDrawRangeElements}, or @code{glArrayElement} is called. @@ -7131,7 +7146,7 @@ Specify the fog distance. @end table @code{glFogCoord} specifies the fog coordinate that is associated with -each vertex and the current raster position. The value specified is +each vertex and the current raster position. The value specified is interpolated and used in computing the fog color (see @code{glFog}). @end deftypefun @@ -7144,7 +7159,7 @@ Specify fog parameters. @table @asis @item @var{pname} -Specifies a single-valued fog parameter. @code{GL_FOG_MODE}, +Specifies a single-valued fog parameter. @code{GL_FOG_MODE}, @code{GL_FOG_DENSITY}, @code{GL_FOG_START}, @code{GL_FOG_END}, @code{GL_FOG_INDEX}, and @code{GL_FOG_COORD_SRC} are accepted. @@ -7153,13 +7168,13 @@ Specifies the value that @var{pname} will be set to. @end table -Fog is initially disabled. While enabled, fog affects rasterized -geometry, bitmaps, and pixel blocks, but not buffer clear operations. To +Fog is initially disabled. While enabled, fog affects rasterized +geometry, bitmaps, and pixel blocks, but not buffer clear operations. To enable and disable fog, call @code{glEnable} and @code{glDisable} with argument @code{GL_FOG}. @code{glFog} assigns the value or values in @var{params} to the fog -parameter specified by @var{pname}. The following values are accepted +parameter specified by @var{pname}. The following values are accepted for @var{pname}: @table @asis @@ -7167,54 +7182,54 @@ for @var{pname}: @var{params} is a single integer or floating-point value that specifies the equation to be used to compute the fog blend factor, @r{@var{f}}. Three symbolic constants are accepted: @code{GL_LINEAR}, @code{GL_EXP}, -and @code{GL_EXP2}. The equations corresponding to these symbolic -constants are defined below. The initial fog mode is @code{GL_EXP}. +and @code{GL_EXP2}. The equations corresponding to these symbolic +constants are defined below. The initial fog mode is @code{GL_EXP}. @item @code{GL_FOG_DENSITY} @var{params} is a single integer or floating-point value that specifies @r{@var{density}}, the fog density used in both exponential fog -equations. Only nonnegative densities are accepted. The initial fog +equations. Only nonnegative densities are accepted. The initial fog density is 1. @item @code{GL_FOG_START} @var{params} is a single integer or floating-point value that specifies -@r{@var{start}}, the near distance used in the linear fog equation. The +@r{@var{start}}, the near distance used in the linear fog equation. The initial near distance is 0. @item @code{GL_FOG_END} @var{params} is a single integer or floating-point value that specifies -@r{@var{end}}, the far distance used in the linear fog equation. The +@r{@var{end}}, the far distance used in the linear fog equation. The initial far distance is 1. @item @code{GL_FOG_INDEX} @var{params} is a single integer or floating-point value that specifies -@r{@var{i}_@var{f}}, the fog color index. The initial fog index is 0. +@r{@var{i}_@var{f}}, the fog color index. The initial fog index is 0. @item @code{GL_FOG_COLOR} @var{params} contains four integer or floating-point values that specify -@r{@var{C}_@var{f}}, the fog color. Integer values are mapped linearly +@r{@var{C}_@var{f}}, the fog color. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the -most negative representable value maps to @r{-1.0}. Floating-point -values are mapped directly. After conversion, all color components are -clamped to the range @r{[0,1]}. The initial fog color is (0, 0, 0, 0). +most negative representable value maps to @r{-1.0}. Floating-point +values are mapped directly. After conversion, all color components are +clamped to the range @r{[0,1]}. The initial fog color is (0, 0, 0, 0). @item @code{GL_FOG_COORD_SRC} @var{params} contains either of the following symbolic constants: -@code{GL_FOG_COORD} or @code{GL_FRAGMENT_DEPTH}. @code{GL_FOG_COORD} +@code{GL_FOG_COORD} or @code{GL_FRAGMENT_DEPTH}. @code{GL_FOG_COORD} specifies that the current fog coordinate should be used as distance -value in the fog color computation. @code{GL_FRAGMENT_DEPTH} specifies +value in the fog color computation. @code{GL_FRAGMENT_DEPTH} specifies that the current fragment depth should be used as distance value in the fog computation. @end table Fog blends a fog color with each rasterized pixel fragment's -post-texturing color using a blending factor @r{@var{f}}. Factor +post-texturing color using a blending factor @r{@var{f}}. Factor @r{@var{f}} is computed in one of three ways, depending on the fog mode. Let @r{@var{c}} be either the distance in eye coordinate from the origin (in the case that the @code{GL_FOG_COORD_SRC} is @code{GL_FRAGMENT_DEPTH}) or the current fog coordinate (in the case -that @code{GL_FOG_COORD_SRC} is @code{GL_FOG_COORD}). The equation for +that @code{GL_FOG_COORD_SRC} is @code{GL_FOG_COORD}). The equation for @code{GL_LINEAR} fog is @r{@var{f}=@var{end}-@var{c},/@var{end}-@var{start},} @@ -7225,7 +7240,7 @@ The equation for @code{GL_EXP2} fog is @r{@var{f}=@var{e}^-(@var{density}·@var{c},),^2} Regardless of the fog mode, @r{@var{f}} is clamped to the range -@r{[0,1]} after it is computed. Then, if the GL is in RGBA color mode, +@r{[0,1]} after it is computed. Then, if the GL is in RGBA color mode, the fragment's red, green, and blue colors, represented by @r{@var{C}_@var{r}}, are replaced by @@ -7258,29 +7273,29 @@ Define front- and back-facing polygons. @table @asis @item @var{mode} -Specifies the orientation of front-facing polygons. @code{GL_CW} and -@code{GL_CCW} are accepted. The initial value is @code{GL_CCW}. +Specifies the orientation of front-facing polygons. @code{GL_CW} and +@code{GL_CCW} are accepted. The initial value is @code{GL_CCW}. @end table In a scene composed entirely of opaque closed surfaces, back-facing -polygons are never visible. Eliminating these invisible polygons has the -obvious benefit of speeding up the rendering of the image. To enable and -disable elimination of back-facing polygons, call @code{glEnable} and -@code{glDisable} with argument @code{GL_CULL_FACE}. +polygons are never visible. Eliminating these invisible polygons has +the obvious benefit of speeding up the rendering of the image. To +enable and disable elimination of back-facing polygons, call +@code{glEnable} and @code{glDisable} with argument @code{GL_CULL_FACE}. The projection of a polygon to window coordinates is said to have clockwise winding if an imaginary object following the path from its first vertex, its second vertex, and so on, to its last vertex, and finally back to its first vertex, moves in a clockwise direction about -the interior of the polygon. The polygon's winding is said to be +the interior of the polygon. The polygon's winding is said to be counterclockwise if the imaginary object following the same path moves in a counterclockwise direction about the interior of the polygon. @code{glFrontFace} specifies whether polygons with clockwise winding in window coordinates, or counterclockwise winding in window coordinates, -are taken to be front-facing. Passing @code{GL_CCW} to @var{mode} +are taken to be front-facing. Passing @code{GL_CCW} to @var{mode} selects counterclockwise polygons as front-facing; @code{GL_CW} selects -clockwise polygons as front-facing. By default, counterclockwise +clockwise polygons as front-facing. By default, counterclockwise polygons are taken to be front-facing. @code{GL_INVALID_ENUM} is generated if @var{mode} is not an accepted @@ -7307,13 +7322,13 @@ planes. @item @var{nearVal} @itemx @var{farVal} -Specify the distances to the near and far depth clipping planes. Both +Specify the distances to the near and far depth clipping planes. Both distances must be positive. @end table @code{glFrustum} describes a perspective matrix that produces a -perspective projection. The current matrix (see @code{glMatrixMode}) is +perspective projection. The current matrix (see @code{glMatrixMode}) is multiplied by this matrix and the result replaces the current matrix, as if @code{glMultMatrix} were called with the following matrix as its argument: @@ -7339,7 +7354,7 @@ Typically, the matrix mode is @code{GL_PROJECTION}, and @r{(@var{right},@var{top}-@var{nearVal})} specify the points on the near clipping plane that are mapped to the lower left and upper right corners of the window, assuming that the eye is located at (0, 0, 0). -@r{-@var{farVal}} specifies the location of the far clipping plane. Both +@r{-@var{farVal}} specifies the location of the far clipping plane. Both @var{nearVal} and @var{farVal} must be positive. Use @code{glPushMatrix} and @code{glPopMatrix} to save and restore the @@ -7369,7 +7384,7 @@ stored. @end table @code{glGenBuffers} returns @var{n} buffer object names in -@var{buffers}. There is no guarantee that the names form a contiguous +@var{buffers}. There is no guarantee that the names form a contiguous set of integers; however, it is guaranteed that none of the returned names was in use immediately before the call to @code{glGenBuffers}. @@ -7397,10 +7412,10 @@ Specifies the number of contiguous empty display lists to be generated. @end table -@code{glGenLists} has one argument, @var{range}. It returns an integer +@code{glGenLists} has one argument, @var{range}. It returns an integer @var{n} such that @var{range} contiguous empty display lists, named @r{@var{n}}, @r{@var{n}+1}, @r{@var{...}}, @r{@var{n}+@var{range}-1}, -are created. If @var{range} is 0, if there is no group of @var{range} +are created. If @var{range} is 0, if there is no group of @var{range} contiguous names available, or if any error is generated, no display lists are generated, and 0 is returned. @@ -7510,49 +7525,49 @@ variable. @end table @code{glGetActiveAttrib} returns information about an active attribute -variable in the program object specified by @var{program}. The number of -active attributes can be obtained by calling @code{glGetProgram} with -the value @code{GL_ACTIVE_ATTRIBUTES}. A value of 0 for @var{index} -selects the first active attribute variable. Permissible values for +variable in the program object specified by @var{program}. The number +of active attributes can be obtained by calling @code{glGetProgram} with +the value @code{GL_ACTIVE_ATTRIBUTES}. A value of 0 for @var{index} +selects the first active attribute variable. Permissible values for @var{index} range from 0 to the number of active attribute variables minus 1. A vertex shader may use either built-in attribute variables, -user-defined attribute variables, or both. Built-in attribute variables +user-defined attribute variables, or both. Built-in attribute variables have a prefix of "gl_" and reference conventional OpenGL vertex attribtes (e.g., @var{gl_Vertex}, @var{gl_Normal}, etc., see the OpenGL Shading Language specification for a complete list.) User-defined attribute variables have arbitrary names and obtain their values through -numbered generic vertex attributes. An attribute variable (either +numbered generic vertex attributes. An attribute variable (either built-in or user-defined) is considered active if it is determined during the link operation that it may be accessed during program -execution. Therefore, @var{program} should have previously been the +execution. Therefore, @var{program} should have previously been the target of a call to @code{glLinkProgram}, but it is not necessary for it to have been linked successfully. The size of the character buffer required to store the longest attribute variable name in @var{program} can be obtained by calling @code{glGetProgram} with the value -@code{GL_ACTIVE_ATTRIBUTE_MAX_LENGTH}. This value should be used to +@code{GL_ACTIVE_ATTRIBUTE_MAX_LENGTH}. This value should be used to allocate a buffer of sufficient size to store the returned attribute -name. The size of this character buffer is passed in @var{bufSize}, and +name. The size of this character buffer is passed in @var{bufSize}, and a pointer to this character buffer is passed in @var{name}. @code{glGetActiveAttrib} returns the name of the attribute variable indicated by @var{index}, storing it in the character buffer specified -by @var{name}. The string returned will be null terminated. The actual +by @var{name}. The string returned will be null terminated. The actual number of characters written into this buffer is returned in @var{length}, and this count does not include the null termination -character. If the length of the returned string is not required, a value -of @code{NULL} can be passed in the @var{length} argument. +character. If the length of the returned string is not required, a +value of @code{NULL} can be passed in the @var{length} argument. The @var{type} argument will return a pointer to the attribute -variable's data type. The symbolic constants @code{GL_FLOAT}, +variable's data type. The symbolic constants @code{GL_FLOAT}, @code{GL_FLOAT_VEC2}, @code{GL_FLOAT_VEC3}, @code{GL_FLOAT_VEC4}, @code{GL_FLOAT_MAT2}, @code{GL_FLOAT_MAT3}, @code{GL_FLOAT_MAT4}, @code{GL_FLOAT_MAT2x3}, @code{GL_FLOAT_MAT2x4}, @code{GL_FLOAT_MAT3x2}, @code{GL_FLOAT_MAT3x4}, @code{GL_FLOAT_MAT4x2}, or -@code{GL_FLOAT_MAT4x3} may be returned. The @var{size} argument will +@code{GL_FLOAT_MAT4x3} may be returned. The @var{size} argument will return the size of the attribute, in units of the type returned in @var{type}. @@ -7561,10 +7576,10 @@ attribute variables (which begin with the prefix "gl_") as well as user-defined attribute variable names. This function will return as much information as it can about the -specified active attribute variable. If no information is available, -@var{length} will be 0, and @var{name} will be an empty string. This +specified active attribute variable. If no information is available, +@var{length} will be 0, and @var{name} will be an empty string. This situation could occur if this function is called after a link operation -that failed. If an error occurs, the return values @var{length}, +that failed. If an error occurs, the return values @var{length}, @var{size}, @var{type}, and @var{name} will be unmodified. @code{GL_INVALID_VALUE} is generated if @var{program} is not a value @@ -7617,23 +7632,23 @@ variable. @end table @code{glGetActiveUniform} returns information about an active uniform -variable in the program object specified by @var{program}. The number of -active uniform variables can be obtained by calling @code{glGetProgram} -with the value @code{GL_ACTIVE_UNIFORMS}. A value of 0 for @var{index} -selects the first active uniform variable. Permissible values for -@var{index} range from 0 to the number of active uniform variables minus -1. +variable in the program object specified by @var{program}. The number +of active uniform variables can be obtained by calling +@code{glGetProgram} with the value @code{GL_ACTIVE_UNIFORMS}. A value +of 0 for @var{index} selects the first active uniform variable. +Permissible values for @var{index} range from 0 to the number of active +uniform variables minus 1. Shaders may use either built-in uniform variables, user-defined uniform -variables, or both. Built-in uniform variables have a prefix of "gl_" +variables, or both. Built-in uniform variables have a prefix of "gl_" and reference existing OpenGL state or values derived from such state (e.g., @var{gl_Fog}, @var{gl_ModelViewMatrix}, etc., see the OpenGL Shading Language specification for a complete list.) User-defined uniform variables have arbitrary names and obtain their values from the -application through calls to @code{glUniform}. A uniform variable +application through calls to @code{glUniform}. A uniform variable (either built-in or user-defined) is considered active if it is determined during the link operation that it may be accessed during -program execution. Therefore, @var{program} should have previously been +program execution. Therefore, @var{program} should have previously been the target of a call to @code{glLinkProgram}, but it is not necessary for it to have been linked successfully. @@ -7641,62 +7656,62 @@ The size of the character buffer required to store the longest uniform variable name in @var{program} can be obtained by calling @code{glGetProgram} with the value @code{GL_ACTIVE_UNIFORM_MAX_LENGTH}. This value should be used to allocate a buffer of sufficient size to -store the returned uniform variable name. The size of this character +store the returned uniform variable name. The size of this character buffer is passed in @var{bufSize}, and a pointer to this character buffer is passed in @var{name.} @code{glGetActiveUniform} returns the name of the uniform variable indicated by @var{index}, storing it in the character buffer specified -by @var{name}. The string returned will be null terminated. The actual +by @var{name}. The string returned will be null terminated. The actual number of characters written into this buffer is returned in @var{length}, and this count does not include the null termination -character. If the length of the returned string is not required, a value -of @code{NULL} can be passed in the @var{length} argument. +character. If the length of the returned string is not required, a +value of @code{NULL} can be passed in the @var{length} argument. The @var{type} argument will return a pointer to the uniform variable's -data type. The symbolic constants @code{GL_FLOAT}, @code{GL_FLOAT_VEC2}, -@code{GL_FLOAT_VEC3}, @code{GL_FLOAT_VEC4}, @code{GL_INT}, -@code{GL_INT_VEC2}, @code{GL_INT_VEC3}, @code{GL_INT_VEC4}, -@code{GL_BOOL}, @code{GL_BOOL_VEC2}, @code{GL_BOOL_VEC3}, -@code{GL_BOOL_VEC4}, @code{GL_FLOAT_MAT2}, @code{GL_FLOAT_MAT3}, -@code{GL_FLOAT_MAT4}, @code{GL_FLOAT_MAT2x3}, @code{GL_FLOAT_MAT2x4}, -@code{GL_FLOAT_MAT3x2}, @code{GL_FLOAT_MAT3x4}, @code{GL_FLOAT_MAT4x2}, -@code{GL_FLOAT_MAT4x3}, @code{GL_SAMPLER_1D}, @code{GL_SAMPLER_2D}, -@code{GL_SAMPLER_3D}, @code{GL_SAMPLER_CUBE}, +data type. The symbolic constants @code{GL_FLOAT}, +@code{GL_FLOAT_VEC2}, @code{GL_FLOAT_VEC3}, @code{GL_FLOAT_VEC4}, +@code{GL_INT}, @code{GL_INT_VEC2}, @code{GL_INT_VEC3}, +@code{GL_INT_VEC4}, @code{GL_BOOL}, @code{GL_BOOL_VEC2}, +@code{GL_BOOL_VEC3}, @code{GL_BOOL_VEC4}, @code{GL_FLOAT_MAT2}, +@code{GL_FLOAT_MAT3}, @code{GL_FLOAT_MAT4}, @code{GL_FLOAT_MAT2x3}, +@code{GL_FLOAT_MAT2x4}, @code{GL_FLOAT_MAT3x2}, @code{GL_FLOAT_MAT3x4}, +@code{GL_FLOAT_MAT4x2}, @code{GL_FLOAT_MAT4x3}, @code{GL_SAMPLER_1D}, +@code{GL_SAMPLER_2D}, @code{GL_SAMPLER_3D}, @code{GL_SAMPLER_CUBE}, @code{GL_SAMPLER_1D_SHADOW}, or @code{GL_SAMPLER_2D_SHADOW} may be returned. If one or more elements of an array are active, the name of the array is returned in @var{name}, the type is returned in @var{type}, and the @var{size} parameter returns the highest array element index used, plus -one, as determined by the compiler and/or linker. Only one active +one, as determined by the compiler and/or linker. Only one active uniform variable will be reported for a uniform array. Uniform variables that are declared as structures or arrays of -structures will not be returned directly by this function. Instead, each -of these uniform variables will be reduced to its fundamental components -containing the "." and "[]" operators such that each of the names is -valid as an argument to @code{glGetUniformLocation}. Each of these -reduced uniform variables is counted as one active uniform variable and -is assigned an index. A valid name cannot be a structure, an array of -structures, or a subcomponent of a vector or matrix. - -The size of the uniform variable will be returned in @var{size}. Uniform -variables other than arrays will have a size of 1. Structures and arrays -of structures will be reduced as described earlier, such that each of -the names returned will be a data type in the earlier list. If this -reduction results in an array, the size returned will be as described -for uniform arrays; otherwise, the size returned will be 1. +structures will not be returned directly by this function. Instead, +each of these uniform variables will be reduced to its fundamental +components containing the "." and "[]" operators such that each of the +names is valid as an argument to @code{glGetUniformLocation}. Each of +these reduced uniform variables is counted as one active uniform +variable and is assigned an index. A valid name cannot be a structure, +an array of structures, or a subcomponent of a vector or matrix. + +The size of the uniform variable will be returned in @var{size}. Uniform +variables other than arrays will have a size of 1. Structures and +arrays of structures will be reduced as described earlier, such that +each of the names returned will be a data type in the earlier list. If +this reduction results in an array, the size returned will be as +described for uniform arrays; otherwise, the size returned will be 1. The list of active uniform variables may include both built-in uniform variables (which begin with the prefix "gl_") as well as user-defined uniform variable names. This function will return as much information as it can about the -specified active uniform variable. If no information is available, -@var{length} will be 0, and @var{name} will be an empty string. This +specified active uniform variable. If no information is available, +@var{length} will be 0, and @var{name} will be an empty string. This situation could occur if this function is called after a link operation -that failed. If an error occurs, the return values @var{length}, +that failed. If an error occurs, the return values @var{length}, @var{size}, @var{type}, and @var{name} will be unmodified. @code{GL_INVALID_VALUE} is generated if @var{program} is not a value @@ -7736,17 +7751,17 @@ objects. @end table @code{glGetAttachedShaders} returns the names of the shader objects -attached to @var{program}. The names of shader objects that are attached -to @var{program} will be returned in @var{shaders.} The actual number of -shader names written into @var{shaders} is returned in @var{count.} If -no shader objects are attached to @var{program}, @var{count} is set to -0. The maximum number of shader names that may be returned in -@var{shaders} is specified by @var{maxCount}. +attached to @var{program}. The names of shader objects that are +attached to @var{program} will be returned in @var{shaders.} The actual +number of shader names written into @var{shaders} is returned in +@var{count.} If no shader objects are attached to @var{program}, +@var{count} is set to 0. The maximum number of shader names that may be +returned in @var{shaders} is specified by @var{maxCount}. If the number of names actually returned is not required (for instance, if it has just been obtained by calling @code{glGetProgram}), a value of -@code{NULL} may be passed for count. If no shader objects are attached -to @var{program}, a value of 0 will be returned in @var{count}. The +@code{NULL} may be passed for count. If no shader objects are attached +to @var{program}, a value of 0 will be returned in @var{count}. The actual number of attached shaders can be obtained by calling @code{glGetProgram} with the value @code{GL_ATTACHED_SHADERS}. @@ -7780,22 +7795,22 @@ variable whose location is to be queried. @code{glGetAttribLocation} queries the previously linked program object specified by @var{program} for the attribute variable specified by @var{name} and returns the index of the generic vertex attribute that is -bound to that attribute variable. If @var{name} is a matrix attribute -variable, the index of the first column of the matrix is returned. If +bound to that attribute variable. If @var{name} is a matrix attribute +variable, the index of the first column of the matrix is returned. If the named attribute variable is not an active attribute in the specified program object or if @var{name} starts with the reserved prefix "gl_", a value of -1 is returned. The association between an attribute variable name and a generic attribute index can be specified at any time by calling -@code{glBindAttribLocation}. Attribute bindings do not go into effect -until @code{glLinkProgram} is called. After a program object has been +@code{glBindAttribLocation}. Attribute bindings do not go into effect +until @code{glLinkProgram} is called. After a program object has been linked successfully, the index values for attribute variables remain -fixed until the next link command occurs. The attribute values can only +fixed until the next link command occurs. The attribute values can only be queried after a link if the link was successful. @code{glGetAttribLocation} returns the binding that actually went into effect the last time @code{glLinkProgram} was called for the specified -program object. Attribute bindings that have been specified since the +program object. Attribute bindings that have been specified since the last link operation are not returned by @code{glGetAttribLocation}. @code{GL_INVALID_OPERATION} is generated if @var{program} is not a value @@ -7818,12 +7833,12 @@ Return parameters of a buffer object. @table @asis @item @var{target} -Specifies the target buffer object. The symbolic constant must be +Specifies the target buffer object. The symbolic constant must be @code{GL_ARRAY_BUFFER}, @code{GL_ELEMENT_ARRAY_BUFFER}, @code{GL_PIXEL_PACK_BUFFER}, or @code{GL_PIXEL_UNPACK_BUFFER}. @item @var{value} -Specifies the symbolic name of a buffer object parameter. Accepted +Specifies the symbolic name of a buffer object parameter. Accepted values are @code{GL_BUFFER_ACCESS}, @code{GL_BUFFER_MAPPED}, @code{GL_BUFFER_SIZE}, or @code{GL_BUFFER_USAGE}. @@ -7840,18 +7855,18 @@ of the buffer object specified by @var{target}. @table @asis @item @code{GL_BUFFER_ACCESS} @var{params} returns the access policy set while mapping the buffer -object. The initial value is @code{GL_READ_WRITE}. +object. The initial value is @code{GL_READ_WRITE}. @item @code{GL_BUFFER_MAPPED} @var{params} returns a flag indicating whether the buffer object is -currently mapped. The initial value is @code{GL_FALSE}. +currently mapped. The initial value is @code{GL_FALSE}. @item @code{GL_BUFFER_SIZE} @var{params} returns the size of the buffer object, measured in bytes. The initial value is 0. @item @code{GL_BUFFER_USAGE} -@var{params} returns the buffer object's usage pattern. The initial +@var{params} returns the buffer object's usage pattern. The initial value is @code{GL_STATIC_DRAW}. @end table @@ -7873,12 +7888,12 @@ Return the pointer to a mapped buffer object's data store. @table @asis @item @var{target} -Specifies the target buffer object. The symbolic constant must be +Specifies the target buffer object. The symbolic constant must be @code{GL_ARRAY_BUFFER}, @code{GL_ELEMENT_ARRAY_BUFFER}, @code{GL_PIXEL_PACK_BUFFER}, or @code{GL_PIXEL_UNPACK_BUFFER}. @item @var{pname} -Specifies the pointer to be returned. The symbolic constant must be +Specifies the pointer to be returned. The symbolic constant must be @code{GL_BUFFER_MAP_POINTER}. @item @var{params} @@ -7886,11 +7901,11 @@ Returns the pointer value specified by @var{pname}. @end table -@code{glGetBufferPointerv} returns pointer information. @var{pname} is a -symbolic constant indicating the pointer to be returned, which must be +@code{glGetBufferPointerv} returns pointer information. @var{pname} is +a symbolic constant indicating the pointer to be returned, which must be @code{GL_BUFFER_MAP_POINTER}, the pointer to which the buffer object's -data store is mapped. If the data store is not currently mapped, -@code{NULL} is returned. @var{params} is a pointer to a location in +data store is mapped. If the data store is not currently mapped, +@code{NULL} is returned. @var{params} is a pointer to a location in which to place the returned pointer value. @code{GL_INVALID_ENUM} is generated if @var{target} or @var{pname} is @@ -7910,7 +7925,7 @@ Returns a subset of a buffer object's data store. @table @asis @item @var{target} -Specifies the target buffer object. The symbolic constant must be +Specifies the target buffer object. The symbolic constant must be @code{GL_ARRAY_BUFFER}, @code{GL_ELEMENT_ARRAY_BUFFER}, @code{GL_PIXEL_PACK_BUFFER}, or @code{GL_PIXEL_UNPACK_BUFFER}. @@ -7928,9 +7943,9 @@ returned. @end table @code{glGetBufferSubData} returns some or all of the data from the -buffer object currently bound to @var{target}. Data starting at byte +buffer object currently bound to @var{target}. Data starting at byte offset @var{offset} and extending for @var{size} bytes is copied from -the data store to the memory pointed to by @var{data}. An error is +the data store to the memory pointed to by @var{data}. An error is thrown if the buffer object is currently mapped, or if @var{offset} and @var{size} together define a range beyond the bounds of the buffer object's data store. @@ -7960,14 +7975,15 @@ Return the coefficients of the specified clipping plane. @table @asis @item @var{plane} -Specifies a clipping plane. The number of clipping planes depends on the -implementation, but at least six clipping planes are supported. They are -identified by symbolic names of the form @code{GL_CLIP_PLANE}@r{@var{i}} -where i ranges from 0 to the value of @code{GL_MAX_CLIP_PLANES} - 1. +Specifies a clipping plane. The number of clipping planes depends on +the implementation, but at least six clipping planes are supported. They +are identified by symbolic names of the form +@code{GL_CLIP_PLANE}@r{@var{i}} where i ranges from 0 to the value of +@code{GL_MAX_CLIP_PLANES} - 1. @item @var{equation} Returns four double-precision values that are the coefficients of the -plane equation of @var{plane} in eye coordinates. The initial value is +plane equation of @var{plane} in eye coordinates. The initial value is (0, 0, 0, 0). @end table @@ -7990,14 +8006,14 @@ Get color lookup table parameters. @table @asis @item @var{target} -The target color table. Must be @code{GL_COLOR_TABLE}, +The target color table. Must be @code{GL_COLOR_TABLE}, @code{GL_POST_CONVOLUTION_COLOR_TABLE}, @code{GL_POST_COLOR_MATRIX_COLOR_TABLE}, @code{GL_PROXY_COLOR_TABLE}, @code{GL_PROXY_POST_CONVOLUTION_COLOR_TABLE}, or @code{GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE}. @item @var{pname} -The symbolic name of a color lookup table parameter. Must be one of +The symbolic name of a color lookup table parameter. Must be one of @code{GL_COLOR_TABLE_BIAS}, @code{GL_COLOR_TABLE_SCALE}, @code{GL_COLOR_TABLE_FORMAT}, @code{GL_COLOR_TABLE_WIDTH}, @code{GL_COLOR_TABLE_RED_SIZE}, @code{GL_COLOR_TABLE_GREEN_SIZE}, @@ -8015,19 +8031,19 @@ Returns parameters specific to color table @var{target}. When @var{pname} is set to @code{GL_COLOR_TABLE_SCALE} or @code{GL_COLOR_TABLE_BIAS}, @code{glGetColorTableParameter} returns the color table scale or bias parameters for the table specified by -@var{target}. For these queries, @var{target} must be set to +@var{target}. For these queries, @var{target} must be set to @code{GL_COLOR_TABLE}, @code{GL_POST_CONVOLUTION_COLOR_TABLE}, or @code{GL_POST_COLOR_MATRIX_COLOR_TABLE} and @var{params} points to an array of four elements, which receive the scale or bias factors for red, green, blue, and alpha, in that order. @code{glGetColorTableParameter} can also be used to retrieve the format -and size parameters for a color table. For these queries, set +and size parameters for a color table. For these queries, set @var{target} to either the color table target or the proxy color table -target. The format and size parameters are set by @code{glColorTable}. +target. The format and size parameters are set by @code{glColorTable}. The following table lists the format and size parameters that may be -queried. For each symbolic constant listed below for @var{pname}, +queried. For each symbolic constant listed below for @var{pname}, @var{params} must point to an array of the given length and receive the values indicated. @@ -8083,13 +8099,13 @@ Must be @code{GL_COLOR_TABLE}, @code{GL_POST_CONVOLUTION_COLOR_TABLE}, or @code{GL_POST_COLOR_MATRIX_COLOR_TABLE}. @item @var{format} -The format of the pixel data in @var{table}. The possible values are +The format of the pixel data in @var{table}. The possible values are @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, and @code{GL_BGRA}. @item @var{type} -The type of the pixel data in @var{table}. Symbolic constants +The type of the pixel data in @var{table}. Symbolic constants @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @@ -8107,7 +8123,7 @@ of the color table. @end table @code{glGetColorTable} returns in @var{table} the contents of the color -table specified by @var{target}. No pixel transfer operations are +table specified by @var{target}. No pixel transfer operations are performed, but pixel storage modes that are applicable to @code{glReadPixels} are performed. @@ -8118,7 +8134,7 @@ into the buffer object's data store. Color components that are requested in the specified @var{format}, but which are not included in the internal format of the color lookup table, -are returned as zero. The assignments of internal color components to +are returned as zero. The assignments of internal color components to the components requested by @var{format} are @table @asis @@ -8200,7 +8216,7 @@ Return a compressed texture image. @table @asis @item @var{target} -Specifies which texture is to be obtained. @code{GL_TEXTURE_1D}, +Specifies which texture is to be obtained. @code{GL_TEXTURE_1D}, @code{GL_TEXTURE_2D}, and @code{GL_TEXTURE_3D}@code{GL_TEXTURE_CUBE_MAP_POSITIVE_X}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_X}, @@ -8210,8 +8226,8 @@ Specifies which texture is to be obtained. @code{GL_TEXTURE_1D}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_Z} are accepted. @item @var{lod} -Specifies the level-of-detail number of the desired image. Level 0 is -the base image level. Level @r{@var{n}} is the @r{@var{n}}th mipmap +Specifies the level-of-detail number of the desired image. Level 0 is +the base image level. Level @r{@var{n}} is the @r{@var{n}}th mipmap reduction image. @item @var{img} @@ -8220,13 +8236,13 @@ Returns the compressed texture image. @end table @code{glGetCompressedTexImage} returns the compressed texture image -associated with @var{target} and @var{lod} into @var{img}. @var{img} +associated with @var{target} and @var{lod} into @var{img}. @var{img} should be an array of @code{GL_TEXTURE_COMPRESSED_IMAGE_SIZE} bytes. @var{target} specifies whether the desired texture image was one specified by @code{glTexImage1D} (@code{GL_TEXTURE_1D}), @code{glTexImage2D} (@code{GL_TEXTURE_2D} or any of @code{GL_TEXTURE_CUBE_MAP_*}), or @code{glTexImage3D} -(@code{GL_TEXTURE_3D}). @var{lod} specifies the level-of-detail number +(@code{GL_TEXTURE_3D}). @var{lod} specifies the level-of-detail number of the desired image. If a non-zero named buffer object is bound to the @@ -8236,14 +8252,14 @@ the buffer object's data store. To minimize errors, first verify that the texture is compressed by calling @code{glGetTexLevelParameter} with argument -@code{GL_TEXTURE_COMPRESSED}. If the texture is compressed, then +@code{GL_TEXTURE_COMPRESSED}. If the texture is compressed, then determine the amount of memory required to store the compressed texture by calling @code{glGetTexLevelParameter} with argument -@code{GL_TEXTURE_COMPRESSED_IMAGE_SIZE}. Finally, retrieve the internal +@code{GL_TEXTURE_COMPRESSED_IMAGE_SIZE}. Finally, retrieve the internal format of the texture by calling @code{glGetTexLevelParameter} with -argument @code{GL_TEXTURE_INTERNAL_FORMAT}. To store the texture for +argument @code{GL_TEXTURE_INTERNAL_FORMAT}. To store the texture for later use, associate the internal format and size with the retrieved -texture image. These data can be used by the respective texture or +texture image. These data can be used by the respective texture or subtexture loading routine used for loading @var{target} textures. @code{GL_INVALID_VALUE} is generated if @var{lod} is less than zero or @@ -8273,17 +8289,17 @@ Get current 1D or 2D convolution filter kernel. @table @asis @item @var{target} -The filter to be retrieved. Must be one of @code{GL_CONVOLUTION_1D} or +The filter to be retrieved. Must be one of @code{GL_CONVOLUTION_1D} or @code{GL_CONVOLUTION_2D}. @item @var{format} -Format of the output image. Must be one of @code{GL_RED}, +Format of the output image. Must be one of @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, or @code{GL_LUMINANCE_ALPHA}. @item @var{type} -Data type of components in the output image. Symbolic constants +Data type of components in the output image. Symbolic constants @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @@ -8300,9 +8316,9 @@ Pointer to storage for the output image. @end table @code{glGetConvolutionFilter} returns the current 1D or 2D convolution -filter kernel as an image. The one- or two-dimensional image is placed +filter kernel as an image. The one- or two-dimensional image is placed in @var{image} according to the specifications in @var{format} and -@var{type}. No pixel transfer operations are performed on this image, +@var{type}. No pixel transfer operations are performed on this image, but the relevant pixel storage modes are applied. If a non-zero named buffer object is bound to the @@ -8311,7 +8327,7 @@ convolution filter is requested, @var{image} is treated as a byte offset into the buffer object's data store. Color components that are present in @var{format} but not included in -the internal format of the filter are returned as zero. The assignments +the internal format of the filter are returned as zero. The assignments of internal color components to the components of @var{format} are as follows. @@ -8395,12 +8411,12 @@ Get convolution parameters. @table @asis @item @var{target} -The filter whose parameters are to be retrieved. Must be one of +The filter whose parameters are to be retrieved. Must be one of @code{GL_CONVOLUTION_1D}, @code{GL_CONVOLUTION_2D}, or @code{GL_SEPARABLE_2D}. @item @var{pname} -The parameter to be retrieved. Must be one of +The parameter to be retrieved. Must be one of @code{GL_CONVOLUTION_BORDER_MODE}, @code{GL_CONVOLUTION_BORDER_COLOR}, @code{GL_CONVOLUTION_FILTER_SCALE}, @code{GL_CONVOLUTION_FILTER_BIAS}, @code{GL_CONVOLUTION_FORMAT}, @code{GL_CONVOLUTION_WIDTH}, @@ -8413,41 +8429,41 @@ Pointer to storage for the parameters to be retrieved. @end table @code{glGetConvolutionParameter} retrieves convolution parameters. -@var{target} determines which convolution filter is queried. @var{pname} +@var{target} determines which convolution filter is queried. @var{pname} determines which parameter is returned: @table @asis @item @code{GL_CONVOLUTION_BORDER_MODE} -The convolution border mode. See @code{glConvolutionParameter} for a +The convolution border mode. See @code{glConvolutionParameter} for a list of border modes. @item @code{GL_CONVOLUTION_BORDER_COLOR} -The current convolution border color. @var{params} must be a pointer to +The current convolution border color. @var{params} must be a pointer to an array of four elements, which will receive the red, green, blue, and alpha border colors. @item @code{GL_CONVOLUTION_FILTER_SCALE} -The current filter scale factors. @var{params} must be a pointer to an +The current filter scale factors. @var{params} must be a pointer to an array of four elements, which will receive the red, green, blue, and alpha filter scale factors in that order. @item @code{GL_CONVOLUTION_FILTER_BIAS} -The current filter bias factors. @var{params} must be a pointer to an +The current filter bias factors. @var{params} must be a pointer to an array of four elements, which will receive the red, green, blue, and alpha filter bias terms in that order. @item @code{GL_CONVOLUTION_FORMAT} -The current internal format. See @code{glConvolutionFilter1D}, +The current internal format. See @code{glConvolutionFilter1D}, @code{glConvolutionFilter2D}, and @code{glSeparableFilter2D} for lists of allowable formats. @@ -8492,21 +8508,21 @@ or @code{GL_MAX_CONVOLUTION_HEIGHT}. @deftypefun GLenum glGetError Return error information. -@code{glGetError} returns the value of the error flag. Each detectable -error is assigned a numeric code and symbolic name. When an error -occurs, the error flag is set to the appropriate error code value. No +@code{glGetError} returns the value of the error flag. Each detectable +error is assigned a numeric code and symbolic name. When an error +occurs, the error flag is set to the appropriate error code value. No other errors are recorded until @code{glGetError} is called, the error -code is returned, and the flag is reset to @code{GL_NO_ERROR}. If a call -to @code{glGetError} returns @code{GL_NO_ERROR}, there has been no +code is returned, and the flag is reset to @code{GL_NO_ERROR}. If a +call to @code{glGetError} returns @code{GL_NO_ERROR}, there has been no detectable error since the last call to @code{glGetError}, or since the GL was initialized. To allow for distributed implementations, there may be several error -flags. If any single error flag has recorded an error, the value of that -flag is returned and that flag is reset to @code{GL_NO_ERROR} when -@code{glGetError} is called. If more than one flag has recorded an +flags. If any single error flag has recorded an error, the value of +that flag is returned and that flag is reset to @code{GL_NO_ERROR} when +@code{glGetError} is called. If more than one flag has recorded an error, @code{glGetError} returns and clears an arbitrary error flag -value. Thus, @code{glGetError} should always be called in a loop, until +value. Thus, @code{glGetError} should always be called in a loop, until it returns @code{GL_NO_ERROR}, if all error flags are to be reset. Initially, all error flags are set to @code{GL_NO_ERROR}. @@ -8515,52 +8531,53 @@ The following errors are currently defined: @table @asis @item @code{GL_NO_ERROR} -No error has been recorded. The value of this symbolic constant is +No error has been recorded. The value of this symbolic constant is guaranteed to be 0. @item @code{GL_INVALID_ENUM} -An unacceptable value is specified for an enumerated argument. The +An unacceptable value is specified for an enumerated argument. The offending command is ignored and has no other side effect than to set the error flag. @item @code{GL_INVALID_VALUE} -A numeric argument is out of range. The offending command is ignored and -has no other side effect than to set the error flag. +A numeric argument is out of range. The offending command is ignored +and has no other side effect than to set the error flag. @item @code{GL_INVALID_OPERATION} -The specified operation is not allowed in the current state. The +The specified operation is not allowed in the current state. The offending command is ignored and has no other side effect than to set the error flag. @item @code{GL_STACK_OVERFLOW} -This command would cause a stack overflow. The offending command is +This command would cause a stack overflow. The offending command is ignored and has no other side effect than to set the error flag. @item @code{GL_STACK_UNDERFLOW} -This command would cause a stack underflow. The offending command is +This command would cause a stack underflow. The offending command is ignored and has no other side effect than to set the error flag. @item @code{GL_OUT_OF_MEMORY} -There is not enough memory left to execute the command. The state of the -GL is undefined, except for the state of the error flags, after this +There is not enough memory left to execute the command. The state of +the GL is undefined, except for the state of the error flags, after this error is recorded. @item @code{GL_TABLE_TOO_LARGE} The specified table exceeds the implementation's maximum supported table -size. The offending command is ignored and has no other side effect than -to set the error flag. +size. The offending command is ignored and has no other side effect +than to set the error flag. @end table When an error flag is set, results of a GL operation are undefined only -if @code{GL_OUT_OF_MEMORY} has occurred. In all other cases, the command -generating the error is ignored and has no effect on the GL state or -frame buffer contents. If the generating command returns a value, it -returns 0. If @code{glGetError} itself generates an error, it returns 0. +if @code{GL_OUT_OF_MEMORY} has occurred. In all other cases, the +command generating the error is ignored and has no effect on the GL +state or frame buffer contents. If the generating command returns a +value, it returns 0. If @code{glGetError} itself generates an error, it +returns 0. @code{GL_INVALID_OPERATION} is generated if @code{glGetError} is executed between the execution of @code{glBegin} and the corresponding -execution of @code{glEnd}. In this case, @code{glGetError} returns 0. +execution of @code{glEnd}. In this case, @code{glGetError} returns 0. @end deftypefun @@ -8573,7 +8590,7 @@ Get histogram parameters. Must be one of @code{GL_HISTOGRAM} or @code{GL_PROXY_HISTOGRAM}. @item @var{pname} -The name of the parameter to be retrieved. Must be one of +The name of the parameter to be retrieved. Must be one of @code{GL_HISTOGRAM_WIDTH}, @code{GL_HISTOGRAM_FORMAT}, @code{GL_HISTOGRAM_RED_SIZE}, @code{GL_HISTOGRAM_GREEN_SIZE}, @code{GL_HISTOGRAM_BLUE_SIZE}, @code{GL_HISTOGRAM_ALPHA_SIZE}, @@ -8585,9 +8602,9 @@ Pointer to storage for the returned values. @end table @code{glGetHistogramParameter} is used to query parameter values for the -current histogram or for a proxy. The histogram state information may be -queried by calling @code{glGetHistogramParameter} with a @var{target} of -@code{GL_HISTOGRAM} (to obtain information for the current histogram +current histogram or for a proxy. The histogram state information may +be queried by calling @code{glGetHistogramParameter} with a @var{target} +of @code{GL_HISTOGRAM} (to obtain information for the current histogram table) or @code{GL_PROXY_HISTOGRAM} (to obtain information from the most recent proxy request) and one of the following values for the @var{pname} argument: @@ -8647,17 +8664,17 @@ Must be @code{GL_HISTOGRAM}. @item @var{reset} If @code{GL_TRUE}, each component counter that is actually returned is -reset to zero. (Other counters are unaffected.) If @code{GL_FALSE}, none -of the counters in the histogram table is modified. +reset to zero. (Other counters are unaffected.) If @code{GL_FALSE}, +none of the counters in the histogram table is modified. @item @var{format} -The format of values to be returned in @var{values}. Must be one of +The format of values to be returned in @var{values}. Must be one of @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, or @code{GL_LUMINANCE_ALPHA}. @item @var{type} -The type of values to be returned in @var{values}. Symbolic constants +The type of values to be returned in @var{values}. Symbolic constants @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @@ -8674,7 +8691,7 @@ A pointer to storage for the returned histogram table. @end table @code{glGetHistogram} returns the current histogram table as a -one-dimensional image with the same width as the histogram. No pixel +one-dimensional image with the same width as the histogram. No pixel transfer operations are performed on this image, but pixel storage modes that are applicable to 1D images are honored. @@ -8685,7 +8702,7 @@ into the buffer object's data store. Color components that are requested in the specified @var{format}, but which are not included in the internal format of the histogram, are -returned as zero. The assignments of internal color components to the +returned as zero. The assignments of internal color components to the components requested by @var{format} are: @table @asis @@ -8764,14 +8781,14 @@ Return light source parameter values. @table @asis @item @var{light} -Specifies a light source. The number of possible lights depends on the -implementation, but at least eight lights are supported. They are +Specifies a light source. The number of possible lights depends on the +implementation, but at least eight lights are supported. They are identified by symbolic names of the form @code{GL_LIGHT}@r{@var{i}} where @r{@var{i}} ranges from 0 to the value of @code{GL_MAX_LIGHTS} - 1. @item @var{pname} -Specifies a light source parameter for @var{light}. Accepted symbolic +Specifies a light source parameter for @var{light}. Accepted symbolic names are @code{GL_AMBIENT}, @code{GL_DIFFUSE}, @code{GL_SPECULAR}, @code{GL_POSITION}, @code{GL_SPOT_DIRECTION}, @code{GL_SPOT_EXPONENT}, @code{GL_SPOT_CUTOFF}, @code{GL_CONSTANT_ATTENUATION}, @@ -8783,10 +8800,10 @@ Returns the requested data. @end table @code{glGetLight} returns in @var{params} the value or values of a light -source parameter. @var{light} names the light and is a symbolic name of +source parameter. @var{light} names the light and is a symbolic name of the form @code{GL_LIGHT}@r{@var{i}} where i ranges from 0 to the value -of @code{GL_MAX_LIGHTS} - 1. @code{GL_MAX_LIGHTS} is an implementation -dependent constant that is greater than or equal to eight. @var{pname} +of @code{GL_MAX_LIGHTS} - 1. @code{GL_MAX_LIGHTS} is an implementation +dependent constant that is greater than or equal to eight. @var{pname} specifies one of ten light source parameters, again by symbolic name. The following parameters are defined: @@ -8794,87 +8811,87 @@ The following parameters are defined: @table @asis @item @code{GL_AMBIENT} @var{params} returns four integer or floating-point values representing -the ambient intensity of the light source. Integer values, when +the ambient intensity of the light source. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer value, and @r{-1.0} maps to the most negative representable -integer value. If the internal value is outside the range @r{[-1,1]}, -the corresponding integer return value is undefined. The initial value +integer value. If the internal value is outside the range @r{[-1,1]}, +the corresponding integer return value is undefined. The initial value is (0, 0, 0, 1). @item @code{GL_DIFFUSE} @var{params} returns four integer or floating-point values representing -the diffuse intensity of the light source. Integer values, when +the diffuse intensity of the light source. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer value, and @r{-1.0} maps to the most negative representable -integer value. If the internal value is outside the range @r{[-1,1]}, -the corresponding integer return value is undefined. The initial value +integer value. If the internal value is outside the range @r{[-1,1]}, +the corresponding integer return value is undefined. The initial value for @code{GL_LIGHT0} is (1, 1, 1, 1); for other lights, the initial value is (0, 0, 0, 0). @item @code{GL_SPECULAR} @var{params} returns four integer or floating-point values representing -the specular intensity of the light source. Integer values, when +the specular intensity of the light source. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer value, and @r{-1.0} maps to the most negative representable -integer value. If the internal value is outside the range @r{[-1,1]}, -the corresponding integer return value is undefined. The initial value +integer value. If the internal value is outside the range @r{[-1,1]}, +the corresponding integer return value is undefined. The initial value for @code{GL_LIGHT0} is (1, 1, 1, 1); for other lights, the initial value is (0, 0, 0, 0). @item @code{GL_POSITION} @var{params} returns four integer or floating-point values representing -the position of the light source. Integer values, when requested, are +the position of the light source. Integer values, when requested, are computed by rounding the internal floating-point values to the nearest -integer value. The returned values are those maintained in eye -coordinates. They will not be equal to the values specified using +integer value. The returned values are those maintained in eye +coordinates. They will not be equal to the values specified using @code{glLight}, unless the modelview matrix was identity at the time -@code{glLight} was called. The initial value is (0, 0, 1, 0). +@code{glLight} was called. The initial value is (0, 0, 1, 0). @item @code{GL_SPOT_DIRECTION} @var{params} returns three integer or floating-point values representing -the direction of the light source. Integer values, when requested, are +the direction of the light source. Integer values, when requested, are computed by rounding the internal floating-point values to the nearest -integer value. The returned values are those maintained in eye -coordinates. They will not be equal to the values specified using +integer value. The returned values are those maintained in eye +coordinates. They will not be equal to the values specified using @code{glLight}, unless the modelview matrix was identity at the time -@code{glLight} was called. Although spot direction is normalized before +@code{glLight} was called. Although spot direction is normalized before being used in the lighting equation, the returned values are the -transformed versions of the specified values prior to normalization. The +transformed versions of the specified values prior to normalization. The initial value is @r{(0,0-1)}. @item @code{GL_SPOT_EXPONENT} @var{params} returns a single integer or floating-point value -representing the spot exponent of the light. An integer value, when +representing the spot exponent of the light. An integer value, when requested, is computed by rounding the internal floating-point -representation to the nearest integer. The initial value is 0. +representation to the nearest integer. The initial value is 0. @item @code{GL_SPOT_CUTOFF} @var{params} returns a single integer or floating-point value -representing the spot cutoff angle of the light. An integer value, when +representing the spot cutoff angle of the light. An integer value, when requested, is computed by rounding the internal floating-point -representation to the nearest integer. The initial value is 180. +representation to the nearest integer. The initial value is 180. @item @code{GL_CONSTANT_ATTENUATION} @var{params} returns a single integer or floating-point value representing the constant (not distance-related) attenuation of the -light. An integer value, when requested, is computed by rounding the -internal floating-point representation to the nearest integer. The +light. An integer value, when requested, is computed by rounding the +internal floating-point representation to the nearest integer. The initial value is 1. @item @code{GL_LINEAR_ATTENUATION} @var{params} returns a single integer or floating-point value -representing the linear attenuation of the light. An integer value, when -requested, is computed by rounding the internal floating-point -representation to the nearest integer. The initial value is 0. +representing the linear attenuation of the light. An integer value, +when requested, is computed by rounding the internal floating-point +representation to the nearest integer. The initial value is 0. @item @code{GL_QUADRATIC_ATTENUATION} @var{params} returns a single integer or floating-point value -representing the quadratic attenuation of the light. An integer value, +representing the quadratic attenuation of the light. An integer value, when requested, is computed by rounding the internal floating-point -representation to the nearest integer. The initial value is 0. +representation to the nearest integer. The initial value is 0. @end table @@ -8894,7 +8911,7 @@ Return evaluator parameters. @table @asis @item @var{target} -Specifies the symbolic name of a map. Accepted values are +Specifies the symbolic name of a map. Accepted values are @code{GL_MAP1_COLOR_4}, @code{GL_MAP1_INDEX}, @code{GL_MAP1_NORMAL}, @code{GL_MAP1_TEXTURE_COORD_1}, @code{GL_MAP1_TEXTURE_COORD_2}, @code{GL_MAP1_TEXTURE_COORD_3}, @code{GL_MAP1_TEXTURE_COORD_4}, @@ -8905,7 +8922,7 @@ Specifies the symbolic name of a map. Accepted values are @code{GL_MAP2_VERTEX_3}, and @code{GL_MAP2_VERTEX_4}. @item @var{query} -Specifies which parameter to return. Symbolic names @code{GL_COEFF}, +Specifies which parameter to return. Symbolic names @code{GL_COEFF}, @code{GL_ORDER}, and @code{GL_DOMAIN} are accepted. @item @var{v} @@ -8913,8 +8930,8 @@ Returns the requested data. @end table -@code{glMap1} and @code{glMap2} define evaluators. @code{glGetMap} -returns evaluator parameters. @var{target} chooses a map, @var{query} +@code{glMap1} and @code{glMap2} define evaluators. @code{glGetMap} +returns evaluator parameters. @var{target} chooses a map, @var{query} selects a specific parameter, and @var{v} points to storage where the values will be returned. @@ -8928,26 +8945,26 @@ the @code{glMap1} and @code{glMap2} reference pages. @var{v} returns the control points for the evaluator function. One-dimensional evaluators return @r{@var{order}} control points, and two-dimensional evaluators return @r{@var{uorder}×@var{vorder}} control -points. Each control point consists of one, two, three, or four integer, -single-precision floating-point, or double-precision floating-point -values, depending on the type of the evaluator. The GL returns -two-dimensional control points in row-major order, incrementing the -@r{@var{uorder}} index quickly and the @r{@var{vorder}} index after each -row. Integer values, when requested, are computed by rounding the +points. Each control point consists of one, two, three, or four +integer, single-precision floating-point, or double-precision +floating-point values, depending on the type of the evaluator. The GL +returns two-dimensional control points in row-major order, incrementing +the @r{@var{uorder}} index quickly and the @r{@var{vorder}} index after +each row. Integer values, when requested, are computed by rounding the internal floating-point values to the nearest integer values. @item @code{GL_ORDER} -@var{v} returns the order of the evaluator function. One-dimensional -evaluators return a single value, @r{@var{order}}. The initial value is -1. Two-dimensional evaluators return two values, @r{@var{uorder}} and -@r{@var{vorder}}. The initial value is 1,1. +@var{v} returns the order of the evaluator function. One-dimensional +evaluators return a single value, @r{@var{order}}. The initial value is +1. Two-dimensional evaluators return two values, @r{@var{uorder}} and +@r{@var{vorder}}. The initial value is 1,1. @item @code{GL_DOMAIN} @var{v} returns the linear @r{@var{u}} and @r{@var{v}} mapping -parameters. One-dimensional evaluators return two values, @r{@var{u1}} -and @r{@var{u2}}, as specified by @code{glMap1}. Two-dimensional +parameters. One-dimensional evaluators return two values, @r{@var{u1}} +and @r{@var{u2}}, as specified by @code{glMap1}. Two-dimensional evaluators return four values (@r{@var{u1}}, @r{@var{u2}}, @r{@var{v1}}, -and @r{@var{v2}}) as specified by @code{glMap2}. Integer values, when +and @r{@var{v2}}) as specified by @code{glMap2}. Integer values, when requested, are computed by rounding the internal floating-point values to the nearest integer values. @@ -8968,12 +8985,12 @@ Return material parameters. @table @asis @item @var{face} -Specifies which of the two materials is being queried. @code{GL_FRONT} +Specifies which of the two materials is being queried. @code{GL_FRONT} or @code{GL_BACK} are accepted, representing the front and back materials, respectively. @item @var{pname} -Specifies the material parameter to return. @code{GL_AMBIENT}, +Specifies the material parameter to return. @code{GL_AMBIENT}, @code{GL_DIFFUSE}, @code{GL_SPECULAR}, @code{GL_EMISSION}, @code{GL_SHININESS}, and @code{GL_COLOR_INDEXES} are accepted. @@ -8983,60 +9000,60 @@ Returns the requested data. @end table @code{glGetMaterial} returns in @var{params} the value or values of -parameter @var{pname} of material @var{face}. Six parameters are +parameter @var{pname} of material @var{face}. Six parameters are defined: @table @asis @item @code{GL_AMBIENT} @var{params} returns four integer or floating-point values representing -the ambient reflectance of the material. Integer values, when requested, -are linearly mapped from the internal floating-point representation such -that 1.0 maps to the most positive representable integer value, and -@r{-1.0} maps to the most negative representable integer value. If the -internal value is outside the range @r{[-1,1]}, the corresponding -integer return value is undefined. The initial value is (0.2, 0.2, 0.2, -1.0) +the ambient reflectance of the material. Integer values, when +requested, are linearly mapped from the internal floating-point +representation such that 1.0 maps to the most positive representable +integer value, and @r{-1.0} maps to the most negative representable +integer value. If the internal value is outside the range @r{[-1,1]}, +the corresponding integer return value is undefined. The initial value +is (0.2, 0.2, 0.2, 1.0) @item @code{GL_DIFFUSE} @var{params} returns four integer or floating-point values representing -the diffuse reflectance of the material. Integer values, when requested, -are linearly mapped from the internal floating-point representation such -that 1.0 maps to the most positive representable integer value, and -@r{-1.0} maps to the most negative representable integer value. If the -internal value is outside the range @r{[-1,1]}, the corresponding -integer return value is undefined. The initial value is (0.8, 0.8, 0.8, -1.0). +the diffuse reflectance of the material. Integer values, when +requested, are linearly mapped from the internal floating-point +representation such that 1.0 maps to the most positive representable +integer value, and @r{-1.0} maps to the most negative representable +integer value. If the internal value is outside the range @r{[-1,1]}, +the corresponding integer return value is undefined. The initial value +is (0.8, 0.8, 0.8, 1.0). @item @code{GL_SPECULAR} @var{params} returns four integer or floating-point values representing -the specular reflectance of the material. Integer values, when +the specular reflectance of the material. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer value, and @r{-1.0} maps to the most negative representable -integer value. If the internal value is outside the range @r{[-1,1]}, -the corresponding integer return value is undefined. The initial value +integer value. If the internal value is outside the range @r{[-1,1]}, +the corresponding integer return value is undefined. The initial value is (0, 0, 0, 1). @item @code{GL_EMISSION} @var{params} returns four integer or floating-point values representing -the emitted light intensity of the material. Integer values, when +the emitted light intensity of the material. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer value, and @r{-1.0} maps to the most negative representable -integer value. If the internal value is outside the range @r{[-1,1]}, -the corresponding integer return value is undefined. The initial value +integer value. If the internal value is outside the range @r{[-1,1]}, +the corresponding integer return value is undefined. The initial value is (0, 0, 0, 1). @item @code{GL_SHININESS} @var{params} returns one integer or floating-point value representing -the specular exponent of the material. Integer values, when requested, +the specular exponent of the material. Integer values, when requested, are computed by rounding the internal floating-point value to the -nearest integer value. The initial value is 0. +nearest integer value. The initial value is 0. @item @code{GL_COLOR_INDEXES} @var{params} returns three integer or floating-point values representing -the ambient, diffuse, and specular indices of the material. These -indices are used only for color index lighting. (All the other +the ambient, diffuse, and specular indices of the material. These +indices are used only for color index lighting. (All the other parameters are used only for RGBA lighting.) Integer values, when requested, are computed by rounding the internal floating-point values to the nearest integer values. @@ -9061,8 +9078,8 @@ Get minmax parameters. Must be @code{GL_MINMAX}. @item @var{pname} -The parameter to be retrieved. Must be one of @code{GL_MINMAX_FORMAT} or -@code{GL_MINMAX_SINK}. +The parameter to be retrieved. Must be one of @code{GL_MINMAX_FORMAT} +or @code{GL_MINMAX_SINK}. @item @var{params} A pointer to storage for the retrieved parameters. @@ -9109,17 +9126,17 @@ Must be @code{GL_MINMAX}. @item @var{reset} If @code{GL_TRUE}, all entries in the minmax table that are actually -returned are reset to their initial values. (Other entries are +returned are reset to their initial values. (Other entries are unaltered.) If @code{GL_FALSE}, the minmax table is unaltered. @item @var{format} -The format of the data to be returned in @var{values}. Must be one of +The format of the data to be returned in @var{values}. Must be one of @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, or @code{GL_LUMINANCE_ALPHA}. @item @var{types} -The type of the data to be returned in @var{values}. Symbolic constants +The type of the data to be returned in @var{values}. Symbolic constants @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @@ -9137,8 +9154,8 @@ A pointer to storage for the returned values. @code{glGetMinmax} returns the accumulated minimum and maximum pixel values (computed on a per-component basis) in a one-dimensional image of -width 2. The first set of return values are the minima, and the second -set of return values are the maxima. The format of the return values is +width 2. The first set of return values are the minima, and the second +set of return values are the maxima. The format of the return values is determined by @var{format}, and their type is determined by @var{types}. If a non-zero named buffer object is bound to the @@ -9148,9 +9165,9 @@ as a byte offset into the buffer object's data store. No pixel transfer operations are performed on the return values, but pixel storage modes that are applicable to one-dimensional images are -performed. Color components that are requested in the specified +performed. Color components that are requested in the specified @var{format}, but that are not included in the internal format of the -minmax table, are returned as zero. The assignment of internal color +minmax table, are returned as zero. The assignment of internal color components to the components requested by @var{format} are as follows: @@ -9182,7 +9199,7 @@ Red @end table If @var{reset} is @code{GL_TRUE}, the minmax table entries corresponding -to the return values are reset to their initial values. Minimum and +to the return values are reset to their initial values. Minimum and maximum values that are not returned are not modified, even if @var{reset} is @code{GL_TRUE}. @@ -9235,7 +9252,7 @@ Return the specified pixel map. @table @asis @item @var{map} -Specifies the name of the pixel map to return. Accepted values are +Specifies the name of the pixel map to return. Accepted values are @code{GL_PIXEL_MAP_I_TO_I}, @code{GL_PIXEL_MAP_S_TO_S}, @code{GL_PIXEL_MAP_I_TO_R}, @code{GL_PIXEL_MAP_I_TO_G}, @code{GL_PIXEL_MAP_I_TO_B}, @code{GL_PIXEL_MAP_I_TO_A}, @@ -9248,16 +9265,16 @@ Returns the pixel map contents. @end table See the @code{glPixelMap} reference page for a description of the -acceptable values for the @var{map} parameter. @code{glGetPixelMap} +acceptable values for the @var{map} parameter. @code{glGetPixelMap} returns in @var{data} the contents of the pixel map specified in -@var{map}. Pixel maps are used during the execution of +@var{map}. Pixel maps are used during the execution of @code{glReadPixels}, @code{glDrawPixels}, @code{glCopyPixels}, @code{glTexImage1D}, @code{glTexImage2D}, @code{glTexImage3D}, @code{glTexSubImage1D}, @code{glTexSubImage2D}, @code{glTexSubImage3D}, @code{glCopyTexImage1D}, @code{glCopyTexImage2D}, @code{glCopyTexSubImage1D}, @code{glCopyTexSubImage2D}, and -@code{glCopyTexSubImage3D}. to map color indices, stencil indices, color -components, and depth components to other values. +@code{glCopyTexSubImage3D}. to map color indices, stencil indices, +color components, and depth components to other values. If a non-zero named buffer object is bound to the @code{GL_PIXEL_PACK_BUFFER} target (see @code{glBindBuffer}) while a @@ -9266,7 +9283,7 @@ buffer object's data store. Unsigned integer values, if requested, are linearly mapped from the internal fixed or floating-point representation such that 1.0 maps to -the largest representable integer value, and 0.0 maps to 0. Return +the largest representable integer value, and 0.0 maps to 0. Return unsigned integer values are undefined if the map value was not in the range [0,1]. @@ -9311,11 +9328,11 @@ Return the address of the specified pointer. @table @asis @item @var{pname} -Specifies the array or buffer pointer to be returned. Symbolic constants -@code{GL_COLOR_ARRAY_POINTER}, @code{GL_EDGE_FLAG_ARRAY_POINTER}, -@code{GL_FOG_COORD_ARRAY_POINTER}, @code{GL_FEEDBACK_BUFFER_POINTER}, -@code{GL_INDEX_ARRAY_POINTER}, @code{GL_NORMAL_ARRAY_POINTER}, -@code{GL_SECONDARY_COLOR_ARRAY_POINTER}, +Specifies the array or buffer pointer to be returned. Symbolic +constants @code{GL_COLOR_ARRAY_POINTER}, +@code{GL_EDGE_FLAG_ARRAY_POINTER}, @code{GL_FOG_COORD_ARRAY_POINTER}, +@code{GL_FEEDBACK_BUFFER_POINTER}, @code{GL_INDEX_ARRAY_POINTER}, +@code{GL_NORMAL_ARRAY_POINTER}, @code{GL_SECONDARY_COLOR_ARRAY_POINTER}, @code{GL_SELECTION_BUFFER_POINTER}, @code{GL_TEXTURE_COORD_ARRAY_POINTER}, or @code{GL_VERTEX_ARRAY_POINTER} are accepted. @@ -9325,7 +9342,7 @@ Returns the pointer value specified by @var{pname}. @end table -@code{glGetPointerv} returns pointer information. @var{pname} is a +@code{glGetPointerv} returns pointer information. @var{pname} is a symbolic constant indicating the pointer to be returned, and @var{params} is a pointer to a location in which to place the returned data. @@ -9335,7 +9352,7 @@ and @code{GL_SELECTION_BUFFER_POINTER}, if a non-zero named buffer object was bound to the @code{GL_ARRAY_BUFFER} target (see @code{glBindBuffer}) when the desired pointer was previously specified, the pointer returned is a byte offset into the buffer object's data -store. Buffer objects are only available in OpenGL versions 1.5 and +store. Buffer objects are only available in OpenGL versions 1.5 and greater. @code{GL_INVALID_ENUM} is generated if @var{pname} is not an accepted @@ -9348,18 +9365,18 @@ Return the polygon stipple pattern. @table @asis @item @var{pattern} -Returns the stipple pattern. The initial value is all 1's. +Returns the stipple pattern. The initial value is all 1's. @end table @code{glGetPolygonStipple} returns to @var{pattern} a @r{32×32} polygon -stipple pattern. The pattern is packed into memory as if +stipple pattern. The pattern is packed into memory as if @code{glReadPixels} with both @var{height} and @var{width} of 32, @var{type} of @code{GL_BITMAP}, and @var{format} of @code{GL_COLOR_INDEX} were called, and the stipple pattern were stored -in an internal @r{32×32} color index buffer. Unlike @code{glReadPixels}, -however, pixel transfer operations (shift, offset, pixel map) are not -applied to the returned stipple image. +in an internal @r{32×32} color index buffer. Unlike +@code{glReadPixels}, however, pixel transfer operations (shift, offset, +pixel map) are not applied to the returned stipple image. If a non-zero named buffer object is bound to the @code{GL_PIXEL_PACK_BUFFER} target (see @code{glBindBuffer}) while a @@ -9403,22 +9420,22 @@ log. @end table @code{glGetProgramInfoLog} returns the information log for the specified -program object. The information log for a program object is modified -when the program object is linked or validated. The string that is +program object. The information log for a program object is modified +when the program object is linked or validated. The string that is returned will be null terminated. @code{glGetProgramInfoLog} returns in @var{infoLog} as much of the information log as it can, up to a maximum of @var{maxLength} -characters. The number of characters actually returned, excluding the -null termination character, is specified by @var{length}. If the length +characters. The number of characters actually returned, excluding the +null termination character, is specified by @var{length}. If the length of the returned string is not required, a value of @code{NULL} can be -passed in the @var{length} argument. The size of the buffer required to +passed in the @var{length} argument. The size of the buffer required to store the returned information log can be obtained by calling @code{glGetProgram} with the value @code{GL_INFO_LOG_LENGTH}. The information log for a program object is either an empty string, or a string containing information about the last link operation, or a string -containing information about the last validation operation. It may +containing information about the last validation operation. It may contain diagnostic messages, warning messages, and other information. When a program object is created, its information log will be a string of length 0. @@ -9445,7 +9462,7 @@ Returns a parameter from a program object. Specifies the program object to be queried. @item @var{pname} -Specifies the object parameter. Accepted symbolic names are +Specifies the object parameter. Accepted symbolic names are @code{GL_DELETE_STATUS}, @code{GL_LINK_STATUS}, @code{GL_VALIDATE_STATUS}, @code{GL_INFO_LOG_LENGTH}, @code{GL_ATTACHED_SHADERS}, @code{GL_ACTIVE_ATTRIBUTES}, @@ -9458,7 +9475,7 @@ Returns the requested object parameter. @end table @code{glGetProgram} returns in @var{params} the value of a parameter for -a specific program object. The following parameters are defined: +a specific program object. The following parameters are defined: @table @asis @item @code{GL_DELETE_STATUS} @@ -9484,7 +9501,7 @@ on @var{program} was successful, and @code{GL_FALSE} otherwise. @var{params} returns the number of characters in the information log for @var{program} including the null termination character (i.e., the size -of the character buffer required to store the information log). If +of the character buffer required to store the information log). If @var{program} has no information log, a value of 0 is returned. @item @code{GL_ATTACHED_SHADERS} @@ -9519,7 +9536,7 @@ If no active attributes exist, 0 is returned. @var{params} returns the length of the longest active uniform variable name for @var{program}, including the null termination character (i.e., the size of the character buffer required to store the longest uniform -variable name). If no active uniform variables exist, 0 is returned. +variable name). If no active uniform variables exist, 0 is returned. @end table @@ -9543,10 +9560,10 @@ Return parameters of a query object target. @table @asis @item @var{target} -Specifies a query object target. Must be @code{GL_SAMPLES_PASSED}. +Specifies a query object target. Must be @code{GL_SAMPLES_PASSED}. @item @var{pname} -Specifies the symbolic name of a query object target parameter. Accepted +Specifies the symbolic name of a query object target parameter. Accepted values are @code{GL_CURRENT_QUERY} or @code{GL_QUERY_COUNTER_BITS}. @item @var{params} @@ -9557,18 +9574,18 @@ Returns the requested data. @code{glGetQueryiv} returns in @var{params} a selected parameter of the query object target specified by @var{target}. -@var{pname} names a specific query object target parameter. When +@var{pname} names a specific query object target parameter. When @var{target} is @code{GL_SAMPLES_PASSED}, @var{pname} can be as follows: @table @asis @item @code{GL_CURRENT_QUERY} @var{params} returns the name of the currently active occlusion query -object. If no occlusion query is active, 0 is returned. The initial +object. If no occlusion query is active, 0 is returned. The initial value is 0. @item @code{GL_QUERY_COUNTER_BITS} @var{params} returns the number of bits in the query counter used to -accumulate passing samples. If the number of bits returned is 0, the +accumulate passing samples. If the number of bits returned is 0, the implementation does not support a query counter, and the results obtained from @code{glGetQueryObject} are useless. @@ -9592,8 +9609,8 @@ Return parameters of a query object. Specifies the name of a query object. @item @var{pname} -Specifies the symbolic name of a query object parameter. Accepted values -are @code{GL_QUERY_RESULT} or @code{GL_QUERY_RESULT_AVAILABLE}. +Specifies the symbolic name of a query object parameter. Accepted +values are @code{GL_QUERY_RESULT} or @code{GL_QUERY_RESULT_AVAILABLE}. @item @var{params} Returns the requested data. @@ -9603,18 +9620,18 @@ Returns the requested data. @code{glGetQueryObject} returns in @var{params} a selected parameter of the query object specified by @var{id}. -@var{pname} names a specific query object parameter. @var{pname} can be +@var{pname} names a specific query object parameter. @var{pname} can be as follows: @table @asis @item @code{GL_QUERY_RESULT} @var{params} returns the value of the query object's passed samples -counter. The initial value is 0. +counter. The initial value is 0. @item @code{GL_QUERY_RESULT_AVAILABLE} @var{params} returns whether the passed samples counter is immediately -available. If a delay would occur waiting for the query result, -@code{GL_FALSE} is returned. Otherwise, @code{GL_TRUE} is returned, +available. If a delay would occur waiting for the query result, +@code{GL_FALSE} is returned. Otherwise, @code{GL_TRUE} is returned, which also indicates that the results of all previous queries are available as well. @@ -9640,16 +9657,16 @@ Get separable convolution filter kernel images. @table @asis @item @var{target} -The separable filter to be retrieved. Must be @code{GL_SEPARABLE_2D}. +The separable filter to be retrieved. Must be @code{GL_SEPARABLE_2D}. @item @var{format} -Format of the output images. Must be one of @code{GL_RED}, +Format of the output images. Must be one of @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}@code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, or @code{GL_LUMINANCE_ALPHA}. @item @var{type} -Data type of components in the output images. Symbolic constants +Data type of components in the output images. Symbolic constants @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @@ -9672,10 +9689,10 @@ Pointer to storage for the span filter image (currently unused). @end table @code{glGetSeparableFilter} returns the two one-dimensional filter -kernel images for the current separable 2D convolution filter. The row +kernel images for the current separable 2D convolution filter. The row image is placed in @var{row} and the column image is placed in @var{column} according to the specifications in @var{format} and -@var{type}. (In the current implementation, @var{span} is not affected +@var{type}. (In the current implementation, @var{span} is not affected in any way.) No pixel transfer operations are performed on the images, but the relevant pixel storage modes are applied. @@ -9686,9 +9703,9 @@ separable convolution filter is requested, @var{row}, @var{column}, and store. Color components that are present in @var{format} but not included in -the internal format of the filters are returned as zero. The assignments -of internal color components to the components of @var{format} are as -follows: +the internal format of the filters are returned as zero. The +assignments of internal color components to the components of +@var{format} are as follows: @@ -9788,23 +9805,23 @@ log. @end table @code{glGetShaderInfoLog} returns the information log for the specified -shader object. The information log for a shader object is modified when -the shader is compiled. The string that is returned will be null +shader object. The information log for a shader object is modified when +the shader is compiled. The string that is returned will be null terminated. @code{glGetShaderInfoLog} returns in @var{infoLog} as much of the information log as it can, up to a maximum of @var{maxLength} -characters. The number of characters actually returned, excluding the -null termination character, is specified by @var{length}. If the length +characters. The number of characters actually returned, excluding the +null termination character, is specified by @var{length}. If the length of the returned string is not required, a value of @code{NULL} can be -passed in the @var{length} argument. The size of the buffer required to +passed in the @var{length} argument. The size of the buffer required to store the returned information log can be obtained by calling @code{glGetShader} with the value @code{GL_INFO_LOG_LENGTH}. The information log for a shader object is a string that may contain diagnostic messages, warning messages, and other information about the -last compile operation. When a shader object is created, its information -log will be a string of length 0. +last compile operation. When a shader object is created, its +information log will be a string of length 0. @code{GL_INVALID_VALUE} is generated if @var{shader} is not a value generated by OpenGL. @@ -9842,17 +9859,17 @@ string. @end table @code{glGetShaderSource} returns the concatenation of the source code -strings from the shader object specified by @var{shader}. The source +strings from the shader object specified by @var{shader}. The source code strings for a shader object are the result of a previous call to -@code{glShaderSource}. The string returned by the function will be null +@code{glShaderSource}. The string returned by the function will be null terminated. @code{glGetShaderSource} returns in @var{source} as much of the source -code string as it can, up to a maximum of @var{bufSize} characters. The +code string as it can, up to a maximum of @var{bufSize} characters. The number of characters actually returned, excluding the null termination -character, is specified by @var{length}. If the length of the returned +character, is specified by @var{length}. If the length of the returned string is not required, a value of @code{NULL} can be passed in the -@var{length} argument. The size of the buffer required to store the +@var{length} argument. The size of the buffer required to store the returned source code string can be obtained by calling @code{glGetShader} with the value @code{GL_SHADER_SOURCE_LENGTH}. @@ -9878,7 +9895,7 @@ Returns a parameter from a shader object. Specifies the shader object to be queried. @item @var{pname} -Specifies the object parameter. Accepted symbolic names are +Specifies the object parameter. Accepted symbolic names are @code{GL_SHADER_TYPE}, @code{GL_DELETE_STATUS}, @code{GL_COMPILE_STATUS}, @code{GL_INFO_LOG_LENGTH}, @code{GL_SHADER_SOURCE_LENGTH}. @@ -9889,7 +9906,7 @@ Returns the requested object parameter. @end table @code{glGetShader} returns in @var{params} the value of a parameter for -a specific shader object. The following parameters are defined: +a specific shader object. The following parameters are defined: @table @asis @item @code{GL_SHADER_TYPE} @@ -9908,14 +9925,14 @@ for deletion, and @code{GL_FALSE} otherwise. @item @code{GL_INFO_LOG_LENGTH} @var{params} returns the number of characters in the information log for @var{shader} including the null termination character (i.e., the size of -the character buffer required to store the information log). If +the character buffer required to store the information log). If @var{shader} has no information log, a value of 0 is returned. @item @code{GL_SHADER_SOURCE_LENGTH} @var{params} returns the length of the concatenation of the source strings that make up the shader source for the @var{shader}, including -the null termination character. (i.e., the size of the character buffer -required to store the shader source). If no source code exists, 0 is +the null termination character. (i.e., the size of the character buffer +required to store the shader source). If no source code exists, 0 is returned. @end table @@ -9947,22 +9964,22 @@ Specifies a symbolic constant, one of @code{GL_VENDOR}, @end table @code{glGetString} returns a pointer to a static string describing some -aspect of the current GL connection. @var{name} can be one of the +aspect of the current GL connection. @var{name} can be one of the following: @table @asis @item @code{GL_VENDOR} -Returns the company responsible for this GL implementation. This name +Returns the company responsible for this GL implementation. This name does not change from release to release. @item @code{GL_RENDERER} -Returns the name of the renderer. This name is typically specific to a -particular configuration of a hardware platform. It does not change from -release to release. +Returns the name of the renderer. This name is typically specific to a +particular configuration of a hardware platform. It does not change +from release to release. @item @code{GL_VERSION} @@ -9984,23 +10001,24 @@ Returns a space-separated list of supported extensions to GL. Because the GL does not include queries for the performance characteristics of an implementation, some applications are written to recognize known platforms and modify their GL usage based on known -performance characteristics of these platforms. Strings @code{GL_VENDOR} -and @code{GL_RENDERER} together uniquely specify a platform. They do not -change from release to release and should be used by -platform-recognition algorithms. +performance characteristics of these platforms. Strings +@code{GL_VENDOR} and @code{GL_RENDERER} together uniquely specify a +platform. They do not change from release to release and should be used +by platform-recognition algorithms. Some applications want to make use of features that are not part of the -standard GL. These features may be implemented as extensions to the -standard GL. The @code{GL_EXTENSIONS} string is a space-separated list -of supported GL extensions. (Extension names never contain a space +standard GL. These features may be implemented as extensions to the +standard GL. The @code{GL_EXTENSIONS} string is a space-separated list +of supported GL extensions. (Extension names never contain a space character.) The @code{GL_VERSION} and @code{GL_SHADING_LANGUAGE_VERSION} strings -begin with a version number. The version number uses one of these forms: +begin with a version number. The version number uses one of these +forms: @var{major_number.minor_number}@var{major_number.minor_number.release_number} -Vendor-specific information may follow the version number. Its format +Vendor-specific information may follow the version number. Its format depends on the implementation, but a space always separates the version number and the vendor-specific information. @@ -10021,11 +10039,11 @@ Return texture environment parameters. @table @asis @item @var{target} -Specifies a texture environment. May be @code{GL_TEXTURE_ENV}, +Specifies a texture environment. May be @code{GL_TEXTURE_ENV}, @code{GL_TEXTURE_FILTER_CONTROL}, or @code{GL_POINT_SPRITE}. @item @var{pname} -Specifies the symbolic name of a texture environment parameter. Accepted +Specifies the symbolic name of a texture environment parameter. Accepted values are @code{GL_TEXTURE_ENV_MODE}, @code{GL_TEXTURE_ENV_COLOR}, @code{GL_TEXTURE_LOD_BIAS}, @code{GL_COMBINE_RGB}, @code{GL_COMBINE_ALPHA}, @code{GL_SRC0_RGB}, @code{GL_SRC1_RGB}, @@ -10041,11 +10059,11 @@ Returns the requested data. @end table @code{glGetTexEnv} returns in @var{params} selected values of a texture -environment that was specified with @code{glTexEnv}. @var{target} +environment that was specified with @code{glTexEnv}. @var{target} specifies a texture environment. When @var{target} is @code{GL_TEXTURE_FILTER_CONTROL}, @var{pname} must -be @code{GL_TEXTURE_LOD_BIAS}. When @var{target} is +be @code{GL_TEXTURE_LOD_BIAS}. When @var{target} is @code{GL_POINT_SPRITE}, @var{pname} must be @code{GL_COORD_REPLACE}. When @var{target} is @code{GL_TEXTURE_ENV}, @var{pname} can be @code{GL_TEXTURE_ENV_MODE}, @code{GL_TEXTURE_ENV_COLOR}, @@ -10059,99 +10077,100 @@ When @var{target} is @code{GL_TEXTURE_ENV}, @var{pname} can be @table @asis @item @code{GL_TEXTURE_ENV_MODE} @var{params} returns the single-valued texture environment mode, a -symbolic constant. The initial value is @code{GL_MODULATE}. +symbolic constant. The initial value is @code{GL_MODULATE}. @item @code{GL_TEXTURE_ENV_COLOR} @var{params} returns four integer or floating-point values that are the -texture environment color. Integer values, when requested, are linearly +texture environment color. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer, and @r{-1.0} maps to -the most negative representable integer. The initial value is (0, 0, 0, +the most negative representable integer. The initial value is (0, 0, 0, 0). @item @code{GL_TEXTURE_LOD_BIAS} @var{params} returns a single floating-point value that is the texture -level-of-detail bias. The initial value is 0. +level-of-detail bias. The initial value is 0. @item @code{GL_COMBINE_RGB} @var{params} returns a single symbolic constant value representing the -current RGB combine mode. The initial value is @code{GL_MODULATE}. +current RGB combine mode. The initial value is @code{GL_MODULATE}. @item @code{GL_COMBINE_ALPHA} @var{params} returns a single symbolic constant value representing the -current alpha combine mode. The initial value is @code{GL_MODULATE}. +current alpha combine mode. The initial value is @code{GL_MODULATE}. @item @code{GL_SRC0_RGB} @var{params} returns a single symbolic constant value representing the -texture combiner zero's RGB source. The initial value is +texture combiner zero's RGB source. The initial value is @code{GL_TEXTURE}. @item @code{GL_SRC1_RGB} @var{params} returns a single symbolic constant value representing the -texture combiner one's RGB source. The initial value is +texture combiner one's RGB source. The initial value is @code{GL_PREVIOUS}. @item @code{GL_SRC2_RGB} @var{params} returns a single symbolic constant value representing the -texture combiner two's RGB source. The initial value is +texture combiner two's RGB source. The initial value is @code{GL_CONSTANT}. @item @code{GL_SRC0_ALPHA} @var{params} returns a single symbolic constant value representing the -texture combiner zero's alpha source. The initial value is +texture combiner zero's alpha source. The initial value is @code{GL_TEXTURE}. @item @code{GL_SRC1_ALPHA} @var{params} returns a single symbolic constant value representing the -texture combiner one's alpha source. The initial value is +texture combiner one's alpha source. The initial value is @code{GL_PREVIOUS}. @item @code{GL_SRC2_ALPHA} @var{params} returns a single symbolic constant value representing the -texture combiner two's alpha source. The initial value is +texture combiner two's alpha source. The initial value is @code{GL_CONSTANT}. @item @code{GL_OPERAND0_RGB} @var{params} returns a single symbolic constant value representing the -texture combiner zero's RGB operand. The initial value is +texture combiner zero's RGB operand. The initial value is @code{GL_SRC_COLOR}. @item @code{GL_OPERAND1_RGB} @var{params} returns a single symbolic constant value representing the -texture combiner one's RGB operand. The initial value is +texture combiner one's RGB operand. The initial value is @code{GL_SRC_COLOR}. @item @code{GL_OPERAND2_RGB} @var{params} returns a single symbolic constant value representing the -texture combiner two's RGB operand. The initial value is +texture combiner two's RGB operand. The initial value is @code{GL_SRC_ALPHA}. @item @code{GL_OPERAND0_ALPHA} @var{params} returns a single symbolic constant value representing the -texture combiner zero's alpha operand. The initial value is +texture combiner zero's alpha operand. The initial value is @code{GL_SRC_ALPHA}. @item @code{GL_OPERAND1_ALPHA} @var{params} returns a single symbolic constant value representing the -texture combiner one's alpha operand. The initial value is +texture combiner one's alpha operand. The initial value is @code{GL_SRC_ALPHA}. @item @code{GL_OPERAND2_ALPHA} @var{params} returns a single symbolic constant value representing the -texture combiner two's alpha operand. The initial value is +texture combiner two's alpha operand. The initial value is @code{GL_SRC_ALPHA}. @item @code{GL_RGB_SCALE} @var{params} returns a single floating-point value representing the -current RGB texture combiner scaling factor. The initial value is 1.0. +current RGB texture combiner scaling factor. The initial value is 1.0. @item @code{GL_ALPHA_SCALE} @var{params} returns a single floating-point value representing the -current alpha texture combiner scaling factor. The initial value is 1.0. +current alpha texture combiner scaling factor. The initial value is +1.0. @item @code{GL_COORD_REPLACE} @var{params} returns a single boolean value representing the current -point sprite texture coordinate replacement enable state. The initial +point sprite texture coordinate replacement enable state. The initial value is @code{GL_FALSE}. @end table @@ -10172,11 +10191,11 @@ Return texture coordinate generation parameters. @table @asis @item @var{coord} -Specifies a texture coordinate. Must be @code{GL_S}, @code{GL_T}, +Specifies a texture coordinate. Must be @code{GL_S}, @code{GL_T}, @code{GL_R}, or @code{GL_Q}. @item @var{pname} -Specifies the symbolic name of the value(s) to be returned. Must be +Specifies the symbolic name of the value(s) to be returned. Must be either @code{GL_TEXTURE_GEN_MODE} or the name of one of the texture generation plane equations: @code{GL_OBJECT_PLANE} or @code{GL_EYE_PLANE}. @@ -10188,7 +10207,7 @@ Returns the requested data. @code{glGetTexGen} returns in @var{params} selected parameters of a texture coordinate generation function that was specified using -@code{glTexGen}. @var{coord} names one of the (@var{s}, @var{t}, +@code{glTexGen}. @var{coord} names one of the (@var{s}, @var{t}, @var{r}, @var{q}) texture coordinates, using the symbolic constant @code{GL_S}, @code{GL_T}, @code{GL_R}, or @code{GL_Q}. @@ -10197,18 +10216,18 @@ texture coordinate generation function that was specified using @table @asis @item @code{GL_TEXTURE_GEN_MODE} @var{params} returns the single-valued texture generation function, a -symbolic constant. The initial value is @code{GL_EYE_LINEAR}. +symbolic constant. The initial value is @code{GL_EYE_LINEAR}. @item @code{GL_OBJECT_PLANE} @var{params} returns the four plane equation coefficients that specify -object linear-coordinate generation. Integer values, when requested, are -mapped directly from the internal floating-point representation. +object linear-coordinate generation. Integer values, when requested, +are mapped directly from the internal floating-point representation. @item @code{GL_EYE_PLANE} @var{params} returns the four plane equation coefficients that specify -eye linear-coordinate generation. Integer values, when requested, are -mapped directly from the internal floating-point representation. The -returned values are those maintained in eye coordinates. They are not +eye linear-coordinate generation. Integer values, when requested, are +mapped directly from the internal floating-point representation. The +returned values are those maintained in eye coordinates. They are not equal to the values specified using @code{glTexGen}, unless the modelview matrix was identity when @code{glTexGen} was called. @@ -10228,7 +10247,7 @@ Return a texture image. @table @asis @item @var{target} -Specifies which texture is to be obtained. @code{GL_TEXTURE_1D}, +Specifies which texture is to be obtained. @code{GL_TEXTURE_1D}, @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_3D}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_X}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_X}, @@ -10238,18 +10257,18 @@ Specifies which texture is to be obtained. @code{GL_TEXTURE_1D}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_Z} are accepted. @item @var{level} -Specifies the level-of-detail number of the desired image. Level 0 is -the base image level. Level @r{@var{n}} is the @r{@var{n}}th mipmap +Specifies the level-of-detail number of the desired image. Level 0 is +the base image level. Level @r{@var{n}} is the @r{@var{n}}th mipmap reduction image. @item @var{format} -Specifies a pixel format for the returned data. The supported formats +Specifies a pixel format for the returned data. The supported formats are @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, and @code{GL_LUMINANCE_ALPHA}. @item @var{type} -Specifies a pixel type for the returned data. The supported types are +Specifies a pixel type for the returned data. The supported types are @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @code{GL_UNSIGNED_BYTE_2_3_3_REV}, @@ -10261,7 +10280,7 @@ Specifies a pixel type for the returned data. The supported types are @code{GL_UNSIGNED_INT_2_10_10_10_REV}. @item @var{img} -Returns the texture image. Should be a pointer to an array of the type +Returns the texture image. Should be a pointer to an array of the type specified by @var{type}. @end table @@ -10271,9 +10290,9 @@ specified by @var{type}. specified by @code{glTexImage1D} (@code{GL_TEXTURE_1D}), @code{glTexImage2D} (@code{GL_TEXTURE_2D} or any of @code{GL_TEXTURE_CUBE_MAP_*}), or @code{glTexImage3D} -(@code{GL_TEXTURE_3D}). @var{level} specifies the level-of-detail number -of the desired image. @var{format} and @var{type} specify the format and -type of the desired image array. See the reference pages +(@code{GL_TEXTURE_3D}). @var{level} specifies the level-of-detail +number of the desired image. @var{format} and @var{type} specify the +format and type of the desired image array. See the reference pages @code{glTexImage1D} and @code{glDrawPixels} for a description of the acceptable values for the @var{format} and @var{type} parameters, respectively. @@ -10285,27 +10304,27 @@ the buffer object's data store. To understand the operation of @code{glGetTexImage}, consider the selected internal four-component texture image to be an RGBA color -buffer the size of the image. The semantics of @code{glGetTexImage} are +buffer the size of the image. The semantics of @code{glGetTexImage} are then identical to those of @code{glReadPixels}, with the exception that no pixel transfer operations are performed, when called with the same @var{format} and @var{type}, with @var{x} and @var{y} set to 0, @var{width} set to the width of the texture image (including border if one was specified), and @var{height} set to 1 for 1D images, or to the height of the texture image (including border if one was specified) for -2D images. Because the internal texture image is an RGBA image, pixel +2D images. Because the internal texture image is an RGBA image, pixel formats @code{GL_COLOR_INDEX}, @code{GL_STENCIL_INDEX}, and @code{GL_DEPTH_COMPONENT} are not accepted, and pixel type @code{GL_BITMAP} is not accepted. If the selected texture image does not contain four components, the -following mappings are applied. Single-component textures are treated as -RGBA buffers with red set to the single-component value, green set to 0, -blue set to 0, and alpha set to 1. Two-component textures are treated as -RGBA buffers with red set to the value of component zero, alpha set to -the value of component one, and green and blue set to 0. Finally, -three-component textures are treated as RGBA buffers with red set to -component zero, green set to component one, blue set to component two, -and alpha set to 1. +following mappings are applied. Single-component textures are treated +as RGBA buffers with red set to the single-component value, green set to +0, blue set to 0, and alpha set to 1. Two-component textures are +treated as RGBA buffers with red set to the value of component zero, +alpha set to the value of component one, and green and blue set to 0. +Finally, three-component textures are treated as RGBA buffers with red +set to component zero, green set to component one, blue set to component +two, and alpha set to 1. To determine the required size of @var{img}, use @code{glGetTexLevelParameter} to determine the dimensions of the @@ -10374,8 +10393,8 @@ Specifies the symbolic name of the target texture, either @code{GL_PROXY_TEXTURE_CUBE_MAP}. @item @var{level} -Specifies the level-of-detail number of the desired image. Level 0 is -the base image level. Level @r{@var{n}} is the @r{@var{n}}th mipmap +Specifies the level-of-detail number of the desired image. Level 0 is +the base image level. Level @r{@var{n}} is the @r{@var{n}}th mipmap reduction image. @item @var{pname} @@ -10408,10 +10427,10 @@ values for a specific level-of-detail value, specified as @var{level}. @code{GL_PROXY_TEXTURE_CUBE_MAP}. @code{GL_MAX_TEXTURE_SIZE}, and @code{GL_MAX_3D_TEXTURE_SIZE} are not -really descriptive enough. It has to report the largest square texture +really descriptive enough. It has to report the largest square texture image that can be accommodated with mipmaps and borders, but a long skinny texture, or a texture without mipmaps and borders, may easily fit -in texture memory. The proxy targets allow the user to more accurately +in texture memory. The proxy targets allow the user to more accurately query whether the GL can accommodate a texture of a given configuration. If the texture cannot be accommodated, the texture state variables, which may be queried with @code{glGetTexLevelParameter}, are set to 0. @@ -10428,21 +10447,21 @@ The accepted parameter names are as follows: @var{params} returns a single value, the width of the texture image. -This value includes the border of the texture image. The initial value +This value includes the border of the texture image. The initial value is 0. @item @code{GL_TEXTURE_HEIGHT} @var{params} returns a single value, the height of the texture image. -This value includes the border of the texture image. The initial value +This value includes the border of the texture image. The initial value is 0. @item @code{GL_TEXTURE_DEPTH} @var{params} returns a single value, the depth of the texture image. -This value includes the border of the texture image. The initial value +This value includes the border of the texture image. The initial value is 0. @item @code{GL_TEXTURE_INTERNAL_FORMAT} @@ -10455,7 +10474,7 @@ image. @var{params} returns a single value, the width in pixels of the border -of the texture image. The initial value is 0. +of the texture image. The initial value is 0. @item @code{GL_TEXTURE_RED_SIZE}, @item @code{GL_TEXTURE_GREEN_SIZE}, @@ -10466,18 +10485,18 @@ of the texture image. The initial value is 0. @item @code{GL_TEXTURE_DEPTH_SIZE} -The internal storage resolution of an individual component. The +The internal storage resolution of an individual component. The resolution chosen by the GL will be a close match for the resolution requested by the user with the component argument of @code{glTexImage1D}, @code{glTexImage2D}, @code{glTexImage3D}, -@code{glCopyTexImage1D}, and @code{glCopyTexImage2D}. The initial value +@code{glCopyTexImage1D}, and @code{glCopyTexImage2D}. The initial value is 0. @item @code{GL_TEXTURE_COMPRESSED} @var{params} returns a single boolean value indicating if the texture -image is stored in a compressed internal format. The initiali value is +image is stored in a compressed internal format. The initiali value is @code{GL_FALSE}. @item @code{GL_TEXTURE_COMPRESSED_IMAGE_SIZE} @@ -10514,7 +10533,7 @@ Return texture parameter values. @table @asis @item @var{target} -Specifies the symbolic name of the target texture. @code{GL_TEXTURE_1D}, +Specifies the symbolic name of the target texture. @code{GL_TEXTURE_1D}, @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_3D}, and @code{GL_TEXTURE_CUBE_MAP} are accepted. @@ -10536,85 +10555,88 @@ Returns the texture parameters. @end table @code{glGetTexParameter} returns in @var{params} the value or values of -the texture parameter specified as @var{pname}. @var{target} defines the -target texture, either @code{GL_TEXTURE_1D}, @code{GL_TEXTURE_2D}, +the texture parameter specified as @var{pname}. @var{target} defines +the target texture, either @code{GL_TEXTURE_1D}, @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_3D}, or @code{GL_TEXTURE_CUBE_MAP}, to specify one-, -two-, or three-dimensional or cube-mapped texturing. @var{pname} accepts -the same symbols as @code{glTexParameter}, with the same +two-, or three-dimensional or cube-mapped texturing. @var{pname} +accepts the same symbols as @code{glTexParameter}, with the same interpretations: @table @asis @item @code{GL_TEXTURE_MAG_FILTER} Returns the single-valued texture magnification filter, a symbolic -constant. The initial value is @code{GL_LINEAR}. +constant. The initial value is @code{GL_LINEAR}. @item @code{GL_TEXTURE_MIN_FILTER} Returns the single-valued texture minification filter, a symbolic -constant. The initial value is @code{GL_NEAREST_MIPMAP_LINEAR}. +constant. The initial value is @code{GL_NEAREST_MIPMAP_LINEAR}. @item @code{GL_TEXTURE_MIN_LOD} -Returns the single-valued texture minimum level-of-detail value. The +Returns the single-valued texture minimum level-of-detail value. The initial value is @r{-1000}. @item @code{GL_TEXTURE_MAX_LOD} -Returns the single-valued texture maximum level-of-detail value. The +Returns the single-valued texture maximum level-of-detail value. The initial value is 1000. @item @code{GL_TEXTURE_BASE_LEVEL} -Returns the single-valued base texture mipmap level. The initial value +Returns the single-valued base texture mipmap level. The initial value is 0. @item @code{GL_TEXTURE_MAX_LEVEL} -Returns the single-valued maximum texture mipmap array level. The +Returns the single-valued maximum texture mipmap array level. The initial value is 1000. @item @code{GL_TEXTURE_WRAP_S} Returns the single-valued wrapping function for texture coordinate -@r{@var{s}}, a symbolic constant. The initial value is @code{GL_REPEAT}. +@r{@var{s}}, a symbolic constant. The initial value is +@code{GL_REPEAT}. @item @code{GL_TEXTURE_WRAP_T} Returns the single-valued wrapping function for texture coordinate -@r{@var{t}}, a symbolic constant. The initial value is @code{GL_REPEAT}. +@r{@var{t}}, a symbolic constant. The initial value is +@code{GL_REPEAT}. @item @code{GL_TEXTURE_WRAP_R} Returns the single-valued wrapping function for texture coordinate -@r{@var{r}}, a symbolic constant. The initial value is @code{GL_REPEAT}. +@r{@var{r}}, a symbolic constant. The initial value is +@code{GL_REPEAT}. @item @code{GL_TEXTURE_BORDER_COLOR} Returns four integer or floating-point numbers that comprise the RGBA -color of the texture border. Floating-point values are returned in the -range @r{[0,1]}. Integer values are returned as a linear mapping of the +color of the texture border. Floating-point values are returned in the +range @r{[0,1]}. Integer values are returned as a linear mapping of the internal floating-point representation such that 1.0 maps to the most positive representable integer and @r{-1.0} maps to the most negative -representable integer. The initial value is (0, 0, 0, 0). +representable integer. The initial value is (0, 0, 0, 0). @item @code{GL_TEXTURE_PRIORITY} Returns the residence priority of the target texture (or the named -texture bound to it). The initial value is 1. See +texture bound to it). The initial value is 1. See @code{glPrioritizeTextures}. @item @code{GL_TEXTURE_RESIDENT} -Returns the residence status of the target texture. If the value +Returns the residence status of the target texture. If the value returned in @var{params} is @code{GL_TRUE}, the texture is resident in -texture memory. See @code{glAreTexturesResident}. +texture memory. See @code{glAreTexturesResident}. @item @code{GL_TEXTURE_COMPARE_MODE} Returns a single-valued texture comparison mode, a symbolic constant. -The initial value is @code{GL_NONE}. See @code{glTexParameter}. +The initial value is @code{GL_NONE}. See @code{glTexParameter}. @item @code{GL_TEXTURE_COMPARE_FUNC} Returns a single-valued texture comparison function, a symbolic -constant. The initial value is @code{GL_LEQUAL}. See +constant. The initial value is @code{GL_LEQUAL}. See @code{glTexParameter}. @item @code{GL_DEPTH_TEXTURE_MODE} Returns a single-valued texture format indicating how the depth values -should be converted into color components. The initial value is -@code{GL_LUMINANCE}. See @code{glTexParameter}. +should be converted into color components. The initial value is +@code{GL_LUMINANCE}. See @code{glTexParameter}. @item @code{GL_GENERATE_MIPMAP} Returns a single boolean value indicating if automatic mipmap level -updates are enabled. See @code{glTexParameter}. +updates are enabled. See @code{glTexParameter}. @end table @@ -10643,33 +10665,33 @@ variable whose location is to be queried. @code{glGetUniformLocation } returns an integer that represents the location of a specific uniform variable within a program object. @var{name} must be a null terminated string that contains no white -space. @var{name} must be an active uniform variable name in +space. @var{name} must be an active uniform variable name in @var{program} that is not a structure, an array of structures, or a -subcomponent of a vector or a matrix. This function returns -1 if +subcomponent of a vector or a matrix. This function returns -1 if @var{name} does not correspond to an active uniform variable in @var{program} or if @var{name} starts with the reserved prefix "gl_". Uniform variables that are structures or arrays of structures may be queried by calling @code{glGetUniformLocation} for each field within the -structure. The array element operator "[]" and the structure field +structure. The array element operator "[]" and the structure field operator "." may be used in @var{name} in order to select elements -within an array or fields within a structure. The result of using these +within an array or fields within a structure. The result of using these operators is not allowed to be another structure, an array of -structures, or a subcomponent of a vector or a matrix. Except if the +structures, or a subcomponent of a vector or a matrix. Except if the last part of @var{name} indicates a uniform variable array, the location of the first element of an array can be retrieved by using the name of the array, or by using the name appended by "[0]". The actual locations assigned to uniform variables are not known until -the program object is linked successfully. After linking has occurred, +the program object is linked successfully. After linking has occurred, the command @code{glGetUniformLocation} can be used to obtain the -location of a uniform variable. This location value can then be passed +location of a uniform variable. This location value can then be passed to @code{glUniform} to set the value of the uniform variable or to @code{glGetUniform} in order to query the current value of the uniform -variable. After a program object has been linked successfully, the index -values for uniform variables remain fixed until the next link command -occurs. Uniform variable locations and values can only be queried after -a link if the link was successful. +variable. After a program object has been linked successfully, the +index values for uniform variables remain fixed until the next link +command occurs. Uniform variable locations and values can only be +queried after a link if the link was successful. @code{GL_INVALID_VALUE} is generated if @var{program} is not a value generated by OpenGL. @@ -10703,27 +10725,27 @@ Returns the value of the specified uniform variable. @end table @code{glGetUniform} returns in @var{params} the value(s) of the -specified uniform variable. The type of the uniform variable specified -by @var{location} determines the number of values returned. If the +specified uniform variable. The type of the uniform variable specified +by @var{location} determines the number of values returned. If the uniform variable is defined in the shader as a boolean, int, or float, a -single value will be returned. If it is defined as a vec2, ivec2, or -bvec2, two values will be returned. If it is defined as a vec3, ivec3, -or bvec3, three values will be returned, and so on. To query values +single value will be returned. If it is defined as a vec2, ivec2, or +bvec2, two values will be returned. If it is defined as a vec3, ivec3, +or bvec3, three values will be returned, and so on. To query values stored in uniform variables declared as arrays, call @code{glGetUniform} -for each element of the array. To query values stored in uniform +for each element of the array. To query values stored in uniform variables declared as structures, call @code{glGetUniform} for each -field in the structure. The values for uniform variables declared as a +field in the structure. The values for uniform variables declared as a matrix will be returned in column major order. The locations assigned to uniform variables are not known until the -program object is linked. After linking has occurred, the command +program object is linked. After linking has occurred, the command @code{glGetUniformLocation} can be used to obtain the location of a -uniform variable. This location value can then be passed to +uniform variable. This location value can then be passed to @code{glGetUniform} in order to query the current value of the uniform -variable. After a program object has been linked successfully, the index -values for uniform variables remain fixed until the next link command -occurs. The uniform variable values can only be queried after a link if -the link was successful. +variable. After a program object has been linked successfully, the +index values for uniform variables remain fixed until the next link +command occurs. The uniform variable values can only be queried after a +link if the link was successful. @code{GL_INVALID_VALUE} is generated if @var{program} is not a value generated by OpenGL. @@ -10753,7 +10775,7 @@ Specifies the generic vertex attribute parameter to be returned. @item @var{pname} Specifies the symbolic name of the generic vertex attribute parameter to -be returned. Must be @code{GL_VERTEX_ATTRIB_ARRAY_POINTER}. +be returned. Must be @code{GL_VERTEX_ATTRIB_ARRAY_POINTER}. @item @var{pointer} Returns the pointer value. @@ -10790,7 +10812,7 @@ Specifies the generic vertex attribute parameter to be queried. @item @var{pname} Specifies the symbolic name of the vertex attribute parameter to be -queried. Accepted values are +queried. Accepted values are @code{GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING}, @code{GL_VERTEX_ATTRIB_ARRAY_ENABLED}, @code{GL_VERTEX_ATTRIB_ARRAY_SIZE}, @@ -10805,7 +10827,7 @@ Returns the requested data. @end table @code{glGetVertexAttrib} returns in @var{params} the value of a generic -vertex attribute parameter. The generic vertex attribute to be queried +vertex attribute parameter. The generic vertex attribute to be queried is specified by @var{index}, and the parameter to be queried is specified by @var{pname}. @@ -10817,40 +10839,40 @@ The accepted parameter names are as follows: @var{params} returns a single value, the name of the buffer object currently bound to the binding point corresponding to generic vertex -attribute array @var{index}. If no buffer object is bound, 0 is -returned. The initial value is 0. +attribute array @var{index}. If no buffer object is bound, 0 is +returned. The initial value is 0. @item @code{GL_VERTEX_ATTRIB_ARRAY_ENABLED} @var{params} returns a single value that is non-zero (true) if the vertex attribute array for @var{index} is enabled and 0 (false) if it is -disabled. The initial value is @code{GL_FALSE}. +disabled. The initial value is @code{GL_FALSE}. @item @code{GL_VERTEX_ATTRIB_ARRAY_SIZE} @var{params} returns a single value, the size of the vertex attribute -array for @var{index}. The size is the number of values for each element -of the vertex attribute array, and it will be 1, 2, 3, or 4. The initial -value is 4. +array for @var{index}. The size is the number of values for each +element of the vertex attribute array, and it will be 1, 2, 3, or 4. The +initial value is 4. @item @code{GL_VERTEX_ATTRIB_ARRAY_STRIDE} @var{params} returns a single value, the array stride for (number of bytes between successive elements in) the vertex attribute array for -@var{index}. A value of 0 indicates that the array elements are stored -sequentially in memory. The initial value is 0. +@var{index}. A value of 0 indicates that the array elements are stored +sequentially in memory. The initial value is 0. @item @code{GL_VERTEX_ATTRIB_ARRAY_TYPE} @var{params} returns a single value, a symbolic constant indicating the -array type for the vertex attribute array for @var{index}. Possible +array type for the vertex attribute array for @var{index}. Possible values are @code{GL_BYTE}, @code{GL_UNSIGNED_BYTE}, @code{GL_SHORT}, @code{GL_UNSIGNED_SHORT}, @code{GL_INT}, @code{GL_UNSIGNED_INT}, -@code{GL_FLOAT}, and @code{GL_DOUBLE}. The initial value is +@code{GL_FLOAT}, and @code{GL_DOUBLE}. The initial value is @code{GL_FLOAT}. @item @code{GL_VERTEX_ATTRIB_ARRAY_NORMALIZED} @@ -10859,15 +10881,15 @@ values are @code{GL_BYTE}, @code{GL_UNSIGNED_BYTE}, @code{GL_SHORT}, @var{params} returns a single value that is non-zero (true) if fixed-point data types for the vertex attribute array indicated by @var{index} are normalized when they are converted to floating point, -and 0 (false) otherwise. The initial value is @code{GL_FALSE}. +and 0 (false) otherwise. The initial value is @code{GL_FALSE}. @item @code{GL_CURRENT_VERTEX_ATTRIB} @var{params} returns four values that represent the current value for -the generic vertex attribute specified by index. Generic vertex +the generic vertex attribute specified by index. Generic vertex attribute 0 is unique in that it has no current state, so an error will -be generated if @var{index} is 0. The initial value for all other +be generated if @var{index} is 0. The initial value for all other generic vertex attributes is (0,0,0,1). @end table @@ -10894,7 +10916,7 @@ Return the value or values of a selected parameter. @table @asis @item @var{pname} -Specifies the parameter value to be returned. The symbolic constants in +Specifies the parameter value to be returned. The symbolic constants in the list below are accepted. @item @var{params} @@ -10908,15 +10930,15 @@ returned, and @var{params} is a pointer to an array of the indicated type in which to place the returned data. Type conversion is performed if @var{params} has a different type than -the state variable value being requested. If @code{glGetBooleanv} is +the state variable value being requested. If @code{glGetBooleanv} is called, a floating-point (or integer) value is converted to -@code{GL_FALSE} if and only if it is 0.0 (or 0). Otherwise, it is -converted to @code{GL_TRUE}. If @code{glGetIntegerv} is called, boolean +@code{GL_FALSE} if and only if it is 0.0 (or 0). Otherwise, it is +converted to @code{GL_TRUE}. If @code{glGetIntegerv} is called, boolean values are returned as @code{GL_TRUE} or @code{GL_FALSE}, and most floating-point values are rounded to the nearest integer value. Floating-point colors and normals, however, are returned with a linear mapping that maps 1.0 to the most positive representable integer value -and @r{-1.0} to the most negative representable integer value. If +and @r{-1.0} to the most negative representable integer value. If @code{glGetFloatv} or @code{glGetDoublev} is called, boolean values are returned as @code{GL_TRUE} or @code{GL_FALSE}, and integer values are converted to floating-point values. @@ -10940,11 +10962,11 @@ accumulation buffer. @var{params} returns four values: the red, green, blue, and alpha values -used to clear the accumulation buffer. Integer values, if requested, are -linearly mapped from the internal floating-point representation such +used to clear the accumulation buffer. Integer values, if requested, +are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -@r{-1.0} returns the most negative representable integer value. The -initial value is (0, 0, 0, 0). See @code{glClearAccum}. +@r{-1.0} returns the most negative representable integer value. The +initial value is (0, 0, 0, 0). See @code{glClearAccum}. @item @code{GL_ACCUM_GREEN_BITS} @@ -10962,7 +10984,7 @@ accumulation buffer. @var{params} returns a single value indicating the active multitexture -unit. The initial value is @code{GL_TEXTURE0}. See +unit. The initial value is @code{GL_TEXTURE0}. See @code{glActiveTexture}. @item @code{GL_ALIASED_POINT_SIZE_RANGE} @@ -10981,7 +11003,7 @@ widths for aliased lines. @var{params} returns one value, the alpha bias factor used during pixel -transfers. The initial value is 0. See @code{glPixelTransfer}. +transfers. The initial value is 0. See @code{glPixelTransfer}. @item @code{GL_ALPHA_BITS} @@ -10993,26 +11015,26 @@ color buffer. @var{params} returns one value, the alpha scale factor used during pixel -transfers. The initial value is 1. See @code{glPixelTransfer}. +transfers. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_ALPHA_TEST} @var{params} returns a single boolean value indicating whether alpha -testing of fragments is enabled. The initial value is @code{GL_FALSE}. +testing of fragments is enabled. The initial value is @code{GL_FALSE}. See @code{glAlphaFunc}. @item @code{GL_ALPHA_TEST_FUNC}@var{params} returns one value, -the symbolic name of the alpha test function. The initial value is -@code{GL_ALWAYS}. See @code{glAlphaFunc}. +the symbolic name of the alpha test function. The initial value is +@code{GL_ALWAYS}. See @code{glAlphaFunc}. @item @code{GL_ALPHA_TEST_REF} @var{params} returns one value, the reference value for the alpha test. -The initial value is 0. See @code{glAlphaFunc}. An integer value, if +The initial value is 0. See @code{glAlphaFunc}. An integer value, if requested, is linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and @r{-1.0} returns the most negative representable @@ -11022,23 +11044,23 @@ integer value. @var{params} returns a single value, the name of the buffer object -currently bound to the target @code{GL_ARRAY_BUFFER}. If no buffer -object is bound to this target, 0 is returned. The initial value is 0. +currently bound to the target @code{GL_ARRAY_BUFFER}. If no buffer +object is bound to this target, 0 is returned. The initial value is 0. See @code{glBindBuffer}. @item @code{GL_ATTRIB_STACK_DEPTH} -@var{params} returns one value, the depth of the attribute stack. If the -stack is empty, 0 is returned. The initial value is 0. See +@var{params} returns one value, the depth of the attribute stack. If +the stack is empty, 0 is returned. The initial value is 0. See @code{glPushAttrib}. @item @code{GL_AUTO_NORMAL} @var{params} returns a single boolean value indicating whether 2D map -evaluation automatically generates surface normals. The initial value is -@code{GL_FALSE}. See @code{glMap2}. +evaluation automatically generates surface normals. The initial value +is @code{GL_FALSE}. See @code{glMap2}. @item @code{GL_AUX_BUFFERS} @@ -11050,35 +11072,35 @@ available. @var{params} returns a single boolean value indicating whether blending -is enabled. The initial value is @code{GL_FALSE}. See +is enabled. The initial value is @code{GL_FALSE}. See @code{glBlendFunc}. @item @code{GL_BLEND_COLOR} @var{params} returns four values, the red, green, blue, and alpha values -which are the components of the blend color. See @code{glBlendColor}. +which are the components of the blend color. See @code{glBlendColor}. @item @code{GL_BLEND_DST_ALPHA} @var{params} returns one value, the symbolic constant identifying the -alpha destination blend function. The initial value is @code{GL_ZERO}. +alpha destination blend function. The initial value is @code{GL_ZERO}. See @code{glBlendFunc} and @code{glBlendFuncSeparate}. @item @code{GL_BLEND_DST_RGB} @var{params} returns one value, the symbolic constant identifying the -RGB destination blend function. The initial value is @code{GL_ZERO}. See -@code{glBlendFunc} and @code{glBlendFuncSeparate}. +RGB destination blend function. The initial value is @code{GL_ZERO}. +See @code{glBlendFunc} and @code{glBlendFuncSeparate}. @item @code{GL_BLEND_EQUATION_RGB} @var{params} returns one value, a symbolic constant indicating whether the RGB blend equation is @code{GL_FUNC_ADD}, @code{GL_FUNC_SUBTRACT}, -@code{GL_FUNC_REVERSE_SUBTRACT}, @code{GL_MIN} or @code{GL_MAX}. See +@code{GL_FUNC_REVERSE_SUBTRACT}, @code{GL_MIN} or @code{GL_MAX}. See @code{glBlendEquationSeparate}. @item @code{GL_BLEND_EQUATION_ALPHA} @@ -11086,28 +11108,28 @@ the RGB blend equation is @code{GL_FUNC_ADD}, @code{GL_FUNC_SUBTRACT}, @var{params} returns one value, a symbolic constant indicating whether the Alpha blend equation is @code{GL_FUNC_ADD}, @code{GL_FUNC_SUBTRACT}, -@code{GL_FUNC_REVERSE_SUBTRACT}, @code{GL_MIN} or @code{GL_MAX}. See +@code{GL_FUNC_REVERSE_SUBTRACT}, @code{GL_MIN} or @code{GL_MAX}. See @code{glBlendEquationSeparate}. @item @code{GL_BLEND_SRC_ALPHA} @var{params} returns one value, the symbolic constant identifying the -alpha source blend function. The initial value is @code{GL_ONE}. See +alpha source blend function. The initial value is @code{GL_ONE}. See @code{glBlendFunc} and @code{glBlendFuncSeparate}. @item @code{GL_BLEND_SRC_RGB} @var{params} returns one value, the symbolic constant identifying the -RGB source blend function. The initial value is @code{GL_ONE}. See +RGB source blend function. The initial value is @code{GL_ONE}. See @code{glBlendFunc} and @code{glBlendFuncSeparate}. @item @code{GL_BLUE_BIAS} @var{params} returns one value, the blue bias factor used during pixel -transfers. The initial value is 0. See @code{glPixelTransfer}. +transfers. The initial value is 0. See @code{glPixelTransfer}. @item @code{GL_BLUE_BITS} @@ -11119,136 +11141,136 @@ color buffer. @var{params} returns one value, the blue scale factor used during pixel -transfers. The initial value is 1. See @code{glPixelTransfer}. +transfers. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_CLIENT_ACTIVE_TEXTURE} @var{params} returns a single integer value indicating the current -client active multitexture unit. The initial value is -@code{GL_TEXTURE0}. See @code{glClientActiveTexture}. +client active multitexture unit. The initial value is +@code{GL_TEXTURE0}. See @code{glClientActiveTexture}. @item @code{GL_CLIENT_ATTRIB_STACK_DEPTH} @var{params} returns one value indicating the depth of the attribute -stack. The initial value is 0. See @code{glPushClientAttrib}. +stack. The initial value is 0. See @code{glPushClientAttrib}. @item @code{GL_CLIP_PLANE}@var{i} @var{params} returns a single boolean value indicating whether the -specified clipping plane is enabled. The initial value is -@code{GL_FALSE}. See @code{glClipPlane}. +specified clipping plane is enabled. The initial value is +@code{GL_FALSE}. See @code{glClipPlane}. @item @code{GL_COLOR_ARRAY} @var{params} returns a single boolean value indicating whether the color -array is enabled. The initial value is @code{GL_FALSE}. See +array is enabled. The initial value is @code{GL_FALSE}. See @code{glColorPointer}. @item @code{GL_COLOR_ARRAY_BUFFER_BINDING} @var{params} returns a single value, the name of the buffer object -associated with the color array. This buffer object would have been +associated with the color array. This buffer object would have been bound to the target @code{GL_ARRAY_BUFFER} at the time of the most -recent call to @code{glColorPointer}. If no buffer object was bound to -this target, 0 is returned. The initial value is 0. See +recent call to @code{glColorPointer}. If no buffer object was bound to +this target, 0 is returned. The initial value is 0. See @code{glBindBuffer}. @item @code{GL_COLOR_ARRAY_SIZE} @var{params} returns one value, the number of components per color in -the color array. The initial value is 4. See @code{glColorPointer}. +the color array. The initial value is 4. See @code{glColorPointer}. @item @code{GL_COLOR_ARRAY_STRIDE} @var{params} returns one value, the byte offset between consecutive -colors in the color array. The initial value is 0. See +colors in the color array. The initial value is 0. See @code{glColorPointer}. @item @code{GL_COLOR_ARRAY_TYPE} @var{params} returns one value, the data type of each component in the -color array. The initial value is @code{GL_FLOAT}. See +color array. The initial value is @code{GL_FLOAT}. See @code{glColorPointer}. @item @code{GL_COLOR_CLEAR_VALUE} @var{params} returns four values: the red, green, blue, and alpha values -used to clear the color buffers. Integer values, if requested, are +used to clear the color buffers. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -@r{-1.0} returns the most negative representable integer value. The -initial value is (0, 0, 0, 0). See @code{glClearColor}. +@r{-1.0} returns the most negative representable integer value. The +initial value is (0, 0, 0, 0). See @code{glClearColor}. @item @code{GL_COLOR_LOGIC_OP} @var{params} returns a single boolean value indicating whether a fragment's RGBA color values are merged into the framebuffer using a -logical operation. The initial value is @code{GL_FALSE}. See +logical operation. The initial value is @code{GL_FALSE}. See @code{glLogicOp}. @item @code{GL_COLOR_MATERIAL} @var{params} returns a single boolean value indicating whether one or -more material parameters are tracking the current color. The initial -value is @code{GL_FALSE}. See @code{glColorMaterial}. +more material parameters are tracking the current color. The initial +value is @code{GL_FALSE}. See @code{glColorMaterial}. @item @code{GL_COLOR_MATERIAL_FACE} @var{params} returns one value, a symbolic constant indicating which -materials have a parameter that is tracking the current color. The -initial value is @code{GL_FRONT_AND_BACK}. See @code{glColorMaterial}. +materials have a parameter that is tracking the current color. The +initial value is @code{GL_FRONT_AND_BACK}. See @code{glColorMaterial}. @item @code{GL_COLOR_MATERIAL_PARAMETER} @var{params} returns one value, a symbolic constant indicating which -material parameters are tracking the current color. The initial value is -@code{GL_AMBIENT_AND_DIFFUSE}. See @code{glColorMaterial}. +material parameters are tracking the current color. The initial value +is @code{GL_AMBIENT_AND_DIFFUSE}. See @code{glColorMaterial}. @item @code{GL_COLOR_MATRIX} @var{params} returns sixteen values: the color matrix on the top of the -color matrix stack. Initially this matrix is the identity matrix. See +color matrix stack. Initially this matrix is the identity matrix. See @code{glPushMatrix}. @item @code{GL_COLOR_MATRIX_STACK_DEPTH} @var{params} returns one value, the maximum supported depth of the -projection matrix stack. The value must be at least 2. See +projection matrix stack. The value must be at least 2. See @code{glPushMatrix}. @item @code{GL_COLOR_SUM} @var{params} returns a single boolean value indicating whether primary -and secondary color sum is enabled. See @code{glSecondaryColor}. +and secondary color sum is enabled. See @code{glSecondaryColor}. @item @code{GL_COLOR_TABLE} @var{params} returns a single boolean value indicating whether the color -table lookup is enabled. See @code{glColorTable}. +table lookup is enabled. See @code{glColorTable}. @item @code{GL_COLOR_WRITEMASK} @var{params} returns four boolean values: the red, green, blue, and -alpha write enables for the color buffers. The initial value is -(@code{GL_TRUE}, @code{GL_TRUE}, @code{GL_TRUE}, @code{GL_TRUE}). See +alpha write enables for the color buffers. The initial value is +(@code{GL_TRUE}, @code{GL_TRUE}, @code{GL_TRUE}, @code{GL_TRUE}). See @code{glColorMask}. @item @code{GL_COMPRESSED_TEXTURE_FORMATS} @@ -11256,153 +11278,154 @@ alpha write enables for the color buffers. The initial value is @var{params} returns a list of symbolic constants of length @code{GL_NUM_COMPRESSED_TEXTURE_FORMATS} indicating which compressed -texture formats are available. See @code{glCompressedTexImage2D}. +texture formats are available. See @code{glCompressedTexImage2D}. @item @code{GL_CONVOLUTION_1D} @var{params} returns a single boolean value indicating whether 1D -convolution is enabled. The initial value is @code{GL_FALSE}. See +convolution is enabled. The initial value is @code{GL_FALSE}. See @code{glConvolutionFilter1D}. @item @code{GL_CONVOLUTION_2D} @var{params} returns a single boolean value indicating whether 2D -convolution is enabled. The initial value is @code{GL_FALSE}. See +convolution is enabled. The initial value is @code{GL_FALSE}. See @code{glConvolutionFilter2D}. @item @code{GL_CULL_FACE} @var{params} returns a single boolean value indicating whether polygon -culling is enabled. The initial value is @code{GL_FALSE}. See +culling is enabled. The initial value is @code{GL_FALSE}. See @code{glCullFace}. @item @code{GL_CULL_FACE_MODE} @var{params} returns one value, a symbolic constant indicating which -polygon faces are to be culled. The initial value is @code{GL_BACK}. See -@code{glCullFace}. +polygon faces are to be culled. The initial value is @code{GL_BACK}. +See @code{glCullFace}. @item @code{GL_CURRENT_COLOR} @var{params} returns four values: the red, green, blue, and alpha values -of the current color. Integer values, if requested, are linearly mapped +of the current color. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and @r{-1.0} returns the -most negative representable integer value. The initial value is (1, 1, -1, 1). See @code{glColor}. +most negative representable integer value. The initial value is (1, 1, +1, 1). See @code{glColor}. @item @code{GL_CURRENT_FOG_COORD} -@var{params} returns one value, the current fog coordinate. The initial -value is 0. See @code{glFogCoord}. +@var{params} returns one value, the current fog coordinate. The initial +value is 0. See @code{glFogCoord}. @item @code{GL_CURRENT_INDEX} -@var{params} returns one value, the current color index. The initial -value is 1. See @code{glIndex}. +@var{params} returns one value, the current color index. The initial +value is 1. See @code{glIndex}. @item @code{GL_CURRENT_NORMAL} @var{params} returns three values: the @var{x}, @var{y}, and @var{z} -values of the current normal. Integer values, if requested, are linearly -mapped from the internal floating-point representation such that 1.0 -returns the most positive representable integer value, and @r{-1.0} -returns the most negative representable integer value. The initial value -is (0, 0, 1). See @code{glNormal}. +values of the current normal. Integer values, if requested, are +linearly mapped from the internal floating-point representation such +that 1.0 returns the most positive representable integer value, and +@r{-1.0} returns the most negative representable integer value. The +initial value is (0, 0, 1). See @code{glNormal}. @item @code{GL_CURRENT_PROGRAM} @var{params} returns one value, the name of the program object that is -currently active, or 0 if no program object is active. See +currently active, or 0 if no program object is active. See @code{glUseProgram}. @item @code{GL_CURRENT_RASTER_COLOR} @var{params} returns four values: the red, green, blue, and alpha color -values of the current raster position. Integer values, if requested, are -linearly mapped from the internal floating-point representation such +values of the current raster position. Integer values, if requested, +are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -@r{-1.0} returns the most negative representable integer value. The -initial value is (1, 1, 1, 1). See @code{glRasterPos}. +@r{-1.0} returns the most negative representable integer value. The +initial value is (1, 1, 1, 1). See @code{glRasterPos}. @item @code{GL_CURRENT_RASTER_DISTANCE} @var{params} returns one value, the distance from the eye to the current -raster position. The initial value is 0. See @code{glRasterPos}. +raster position. The initial value is 0. See @code{glRasterPos}. @item @code{GL_CURRENT_RASTER_INDEX} @var{params} returns one value, the color index of the current raster -position. The initial value is 1. See @code{glRasterPos}. +position. The initial value is 1. See @code{glRasterPos}. @item @code{GL_CURRENT_RASTER_POSITION} @var{params} returns four values: the @var{x}, @var{y}, @var{z}, and -@var{w} components of the current raster position. @var{x}, @var{y}, and -@var{z} are in window coordinates, and @var{w} is in clip coordinates. -The initial value is (0, 0, 0, 1). See @code{glRasterPos}. +@var{w} components of the current raster position. @var{x}, @var{y}, +and @var{z} are in window coordinates, and @var{w} is in clip +coordinates. The initial value is (0, 0, 0, 1). See +@code{glRasterPos}. @item @code{GL_CURRENT_RASTER_POSITION_VALID} @var{params} returns a single boolean value indicating whether the -current raster position is valid. The initial value is @code{GL_TRUE}. +current raster position is valid. The initial value is @code{GL_TRUE}. See @code{glRasterPos}. @item @code{GL_CURRENT_RASTER_SECONDARY_COLOR} @var{params} returns four values: the red, green, blue, and alpha -secondary color values of the current raster position. Integer values, +secondary color values of the current raster position. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and @r{-1.0} returns the most negative representable -integer value. The initial value is (1, 1, 1, 1). See +integer value. The initial value is (1, 1, 1, 1). See @code{glRasterPos}. @item @code{GL_CURRENT_RASTER_TEXTURE_COORDS} @var{params} returns four values: the @var{s}, @var{t}, @var{r}, and -@var{q} texture coordinates of the current raster position. The initial -value is (0, 0, 0, 1). See @code{glRasterPos} and +@var{q} texture coordinates of the current raster position. The initial +value is (0, 0, 0, 1). See @code{glRasterPos} and @code{glMultiTexCoord}. @item @code{GL_CURRENT_SECONDARY_COLOR} @var{params} returns four values: the red, green, blue, and alpha values -of the current secondary color. Integer values, if requested, are +of the current secondary color. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -@r{-1.0} returns the most negative representable integer value. The -initial value is (0, 0, 0, 0). See @code{glSecondaryColor}. +@r{-1.0} returns the most negative representable integer value. The +initial value is (0, 0, 0, 0). See @code{glSecondaryColor}. @item @code{GL_CURRENT_TEXTURE_COORDS} @var{params} returns four values: the @var{s}, @var{t}, @var{r}, and -@var{q} current texture coordinates. The initial value is (0, 0, 0, 1). +@var{q} current texture coordinates. The initial value is (0, 0, 0, 1). See @code{glMultiTexCoord}. @item @code{GL_DEPTH_BIAS} @var{params} returns one value, the depth bias factor used during pixel -transfers. The initial value is 0. See @code{glPixelTransfer}. +transfers. The initial value is 0. See @code{glPixelTransfer}. @item @code{GL_DEPTH_BITS} @@ -11414,54 +11437,54 @@ buffer. @var{params} returns one value, the value that is used to clear the -depth buffer. Integer values, if requested, are linearly mapped from the -internal floating-point representation such that 1.0 returns the most -positive representable integer value, and @r{-1.0} returns the most -negative representable integer value. The initial value is 1. See +depth buffer. Integer values, if requested, are linearly mapped from +the internal floating-point representation such that 1.0 returns the +most positive representable integer value, and @r{-1.0} returns the most +negative representable integer value. The initial value is 1. See @code{glClearDepth}. @item @code{GL_DEPTH_FUNC} @var{params} returns one value, the symbolic constant that indicates the -depth comparison function. The initial value is @code{GL_LESS}. See +depth comparison function. The initial value is @code{GL_LESS}. See @code{glDepthFunc}. @item @code{GL_DEPTH_RANGE} @var{params} returns two values: the near and far mapping limits for the -depth buffer. Integer values, if requested, are linearly mapped from the -internal floating-point representation such that 1.0 returns the most -positive representable integer value, and @r{-1.0} returns the most -negative representable integer value. The initial value is (0, 1). See +depth buffer. Integer values, if requested, are linearly mapped from +the internal floating-point representation such that 1.0 returns the +most positive representable integer value, and @r{-1.0} returns the most +negative representable integer value. The initial value is (0, 1). See @code{glDepthRange}. @item @code{GL_DEPTH_SCALE} @var{params} returns one value, the depth scale factor used during pixel -transfers. The initial value is 1. See @code{glPixelTransfer}. +transfers. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_DEPTH_TEST} @var{params} returns a single boolean value indicating whether depth -testing of fragments is enabled. The initial value is @code{GL_FALSE}. +testing of fragments is enabled. The initial value is @code{GL_FALSE}. See @code{glDepthFunc} and @code{glDepthRange}. @item @code{GL_DEPTH_WRITEMASK} @var{params} returns a single boolean value indicating if the depth -buffer is enabled for writing. The initial value is @code{GL_TRUE}. See +buffer is enabled for writing. The initial value is @code{GL_TRUE}. See @code{glDepthMask}. @item @code{GL_DITHER} @var{params} returns a single boolean value indicating whether dithering -of fragment colors and indices is enabled. The initial value is +of fragment colors and indices is enabled. The initial value is @code{GL_TRUE}. @item @code{GL_DOUBLEBUFFER} @@ -11474,7 +11497,7 @@ buffering is supported. @var{params} returns one value, a symbolic constant indicating which -buffers are being drawn to. See @code{glDrawBuffer}. The initial value +buffers are being drawn to. See @code{glDrawBuffer}. The initial value is @code{GL_BACK} if there are back buffers, otherwise it is @code{GL_FRONT}. @@ -11482,181 +11505,181 @@ is @code{GL_BACK} if there are back buffers, otherwise it is @var{params} returns one value, a symbolic constant indicating which -buffers are being drawn to by the corresponding output color. See -@code{glDrawBuffers}. The initial value of @code{GL_DRAW_BUFFER0} is +buffers are being drawn to by the corresponding output color. See +@code{glDrawBuffers}. The initial value of @code{GL_DRAW_BUFFER0} is @code{GL_BACK} if there are back buffers, otherwise it is -@code{GL_FRONT}. The initial values of draw buffers for all other output -colors is @code{GL_NONE}. +@code{GL_FRONT}. The initial values of draw buffers for all other +output colors is @code{GL_NONE}. @item @code{GL_EDGE_FLAG} @var{params} returns a single boolean value indicating whether the -current edge flag is @code{GL_TRUE} or @code{GL_FALSE}. The initial -value is @code{GL_TRUE}. See @code{glEdgeFlag}. +current edge flag is @code{GL_TRUE} or @code{GL_FALSE}. The initial +value is @code{GL_TRUE}. See @code{glEdgeFlag}. @item @code{GL_EDGE_FLAG_ARRAY} @var{params} returns a single boolean value indicating whether the edge -flag array is enabled. The initial value is @code{GL_FALSE}. See +flag array is enabled. The initial value is @code{GL_FALSE}. See @code{glEdgeFlagPointer}. @item @code{GL_EDGE_FLAG_ARRAY_BUFFER_BINDING} @var{params} returns a single value, the name of the buffer object -associated with the edge flag array. This buffer object would have been +associated with the edge flag array. This buffer object would have been bound to the target @code{GL_ARRAY_BUFFER} at the time of the most -recent call to @code{glEdgeFlagPointer}. If no buffer object was bound -to this target, 0 is returned. The initial value is 0. See +recent call to @code{glEdgeFlagPointer}. If no buffer object was bound +to this target, 0 is returned. The initial value is 0. See @code{glBindBuffer}. @item @code{GL_EDGE_FLAG_ARRAY_STRIDE} @var{params} returns one value, the byte offset between consecutive edge -flags in the edge flag array. The initial value is 0. See +flags in the edge flag array. The initial value is 0. See @code{glEdgeFlagPointer}. @item @code{GL_ELEMENT_ARRAY_BUFFER_BINDING} @var{params} returns a single value, the name of the buffer object -currently bound to the target @code{GL_ELEMENT_ARRAY_BUFFER}. If no -buffer object is bound to this target, 0 is returned. The initial value -is 0. See @code{glBindBuffer}. +currently bound to the target @code{GL_ELEMENT_ARRAY_BUFFER}. If no +buffer object is bound to this target, 0 is returned. The initial value +is 0. See @code{glBindBuffer}. @item @code{GL_FEEDBACK_BUFFER_SIZE} -@var{params} returns one value, the size of the feedback buffer. See +@var{params} returns one value, the size of the feedback buffer. See @code{glFeedbackBuffer}. @item @code{GL_FEEDBACK_BUFFER_TYPE} -@var{params} returns one value, the type of the feedback buffer. See +@var{params} returns one value, the type of the feedback buffer. See @code{glFeedbackBuffer}. @item @code{GL_FOG} @var{params} returns a single boolean value indicating whether fogging -is enabled. The initial value is @code{GL_FALSE}. See @code{glFog}. +is enabled. The initial value is @code{GL_FALSE}. See @code{glFog}. @item @code{GL_FOG_COORD_ARRAY} @var{params} returns a single boolean value indicating whether the fog -coordinate array is enabled. The initial value is @code{GL_FALSE}. See +coordinate array is enabled. The initial value is @code{GL_FALSE}. See @code{glFogCoordPointer}. @item @code{GL_FOG_COORD_ARRAY_BUFFER_BINDING} @var{params} returns a single value, the name of the buffer object -associated with the fog coordinate array. This buffer object would have +associated with the fog coordinate array. This buffer object would have been bound to the target @code{GL_ARRAY_BUFFER} at the time of the most -recent call to @code{glFogCoordPointer}. If no buffer object was bound -to this target, 0 is returned. The initial value is 0. See +recent call to @code{glFogCoordPointer}. If no buffer object was bound +to this target, 0 is returned. The initial value is 0. See @code{glBindBuffer}. @item @code{GL_FOG_COORD_ARRAY_STRIDE} @var{params} returns one value, the byte offset between consecutive fog -coordinates in the fog coordinate array. The initial value is 0. See +coordinates in the fog coordinate array. The initial value is 0. See @code{glFogCoordPointer}. @item @code{GL_FOG_COORD_ARRAY_TYPE} @var{params} returns one value, the type of the fog coordinate array. -The initial value is @code{GL_FLOAT}. See @code{glFogCoordPointer}. +The initial value is @code{GL_FLOAT}. See @code{glFogCoordPointer}. @item @code{GL_FOG_COORD_SRC} @var{params} returns one value, a symbolic constant indicating the -source of the fog coordinate. The initial value is -@code{GL_FRAGMENT_DEPTH}. See @code{glFog}. +source of the fog coordinate. The initial value is +@code{GL_FRAGMENT_DEPTH}. See @code{glFog}. @item @code{GL_FOG_COLOR} @var{params} returns four values: the red, green, blue, and alpha -components of the fog color. Integer values, if requested, are linearly +components of the fog color. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and @r{-1.0} -returns the most negative representable integer value. The initial value -is (0, 0, 0, 0). See @code{glFog}. +returns the most negative representable integer value. The initial +value is (0, 0, 0, 0). See @code{glFog}. @item @code{GL_FOG_DENSITY} -@var{params} returns one value, the fog density parameter. The initial -value is 1. See @code{glFog}. +@var{params} returns one value, the fog density parameter. The initial +value is 1. See @code{glFog}. @item @code{GL_FOG_END} @var{params} returns one value, the end factor for the linear fog -equation. The initial value is 1. See @code{glFog}. +equation. The initial value is 1. See @code{glFog}. @item @code{GL_FOG_HINT} @var{params} returns one value, a symbolic constant indicating the mode -of the fog hint. The initial value is @code{GL_DONT_CARE}. See +of the fog hint. The initial value is @code{GL_DONT_CARE}. See @code{glHint}. @item @code{GL_FOG_INDEX} -@var{params} returns one value, the fog color index. The initial value -is 0. See @code{glFog}. +@var{params} returns one value, the fog color index. The initial value +is 0. See @code{glFog}. @item @code{GL_FOG_MODE} @var{params} returns one value, a symbolic constant indicating which fog -equation is selected. The initial value is @code{GL_EXP}. See +equation is selected. The initial value is @code{GL_EXP}. See @code{glFog}. @item @code{GL_FOG_START} @var{params} returns one value, the start factor for the linear fog -equation. The initial value is 0. See @code{glFog}. +equation. The initial value is 0. See @code{glFog}. @item @code{GL_FRAGMENT_SHADER_DERIVATIVE_HINT} @var{params} returns one value, a symbolic constant indicating the mode -of the derivative accuracy hint for fragment shaders. The initial value -is @code{GL_DONT_CARE}. See @code{glHint}. +of the derivative accuracy hint for fragment shaders. The initial value +is @code{GL_DONT_CARE}. See @code{glHint}. @item @code{GL_FRONT_FACE} @var{params} returns one value, a symbolic constant indicating whether clockwise or counterclockwise polygon winding is treated as -front-facing. The initial value is @code{GL_CCW}. See +front-facing. The initial value is @code{GL_CCW}. See @code{glFrontFace}. @item @code{GL_GENERATE_MIPMAP_HINT} @var{params} returns one value, a symbolic constant indicating the mode -of the mipmap generation filtering hint. The initial value is -@code{GL_DONT_CARE}. See @code{glHint}. +of the mipmap generation filtering hint. The initial value is +@code{GL_DONT_CARE}. See @code{glHint}. @item @code{GL_GREEN_BIAS} @var{params} returns one value, the green bias factor used during pixel -transfers. The initial value is 0. +transfers. The initial value is 0. @item @code{GL_GREEN_BITS} @@ -11668,44 +11691,44 @@ color buffer. @var{params} returns one value, the green scale factor used during pixel -transfers. The initial value is 1. See @code{glPixelTransfer}. +transfers. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_HISTOGRAM} @var{params} returns a single boolean value indicating whether histogram -is enabled. The initial value is @code{GL_FALSE}. See +is enabled. The initial value is @code{GL_FALSE}. See @code{glHistogram}. @item @code{GL_INDEX_ARRAY} @var{params} returns a single boolean value indicating whether the color -index array is enabled. The initial value is @code{GL_FALSE}. See +index array is enabled. The initial value is @code{GL_FALSE}. See @code{glIndexPointer}. @item @code{GL_INDEX_ARRAY_BUFFER_BINDING} @var{params} returns a single value, the name of the buffer object -associated with the color index array. This buffer object would have +associated with the color index array. This buffer object would have been bound to the target @code{GL_ARRAY_BUFFER} at the time of the most -recent call to @code{glIndexPointer}. If no buffer object was bound to -this target, 0 is returned. The initial value is 0. See +recent call to @code{glIndexPointer}. If no buffer object was bound to +this target, 0 is returned. The initial value is 0. See @code{glBindBuffer}. @item @code{GL_INDEX_ARRAY_STRIDE} @var{params} returns one value, the byte offset between consecutive -color indexes in the color index array. The initial value is 0. See +color indexes in the color index array. The initial value is 0. See @code{glIndexPointer}. @item @code{GL_INDEX_ARRAY_TYPE} @var{params} returns one value, the data type of indexes in the color -index array. The initial value is @code{GL_FLOAT}. See +index array. The initial value is @code{GL_FLOAT}. See @code{glIndexPointer}. @item @code{GL_INDEX_BITS} @@ -11718,14 +11741,14 @@ index buffer. @var{params} returns one value, the color index used to clear the color -index buffers. The initial value is 0. See @code{glClearIndex}. +index buffers. The initial value is 0. See @code{glClearIndex}. @item @code{GL_INDEX_LOGIC_OP} @var{params} returns a single boolean value indicating whether a fragment's index values are merged into the framebuffer using a logical -operation. The initial value is @code{GL_FALSE}. See @code{glLogicOp}. +operation. The initial value is @code{GL_FALSE}. See @code{glLogicOp}. @item @code{GL_INDEX_MODE} @@ -11737,47 +11760,47 @@ in color index mode (@code{GL_TRUE}) or RGBA mode (@code{GL_FALSE}). @var{params} returns one value, the offset added to color and stencil -indices during pixel transfers. The initial value is 0. See +indices during pixel transfers. The initial value is 0. See @code{glPixelTransfer}. @item @code{GL_INDEX_SHIFT} @var{params} returns one value, the amount that color and stencil -indices are shifted during pixel transfers. The initial value is 0. See +indices are shifted during pixel transfers. The initial value is 0. See @code{glPixelTransfer}. @item @code{GL_INDEX_WRITEMASK} @var{params} returns one value, a mask indicating which bitplanes of -each color index buffer can be written. The initial value is all 1's. +each color index buffer can be written. The initial value is all 1's. See @code{glIndexMask}. @item @code{GL_LIGHT}@var{i} @var{params} returns a single boolean value indicating whether the -specified light is enabled. The initial value is @code{GL_FALSE}. See +specified light is enabled. The initial value is @code{GL_FALSE}. See @code{glLight} and @code{glLightModel}. @item @code{GL_LIGHTING} @var{params} returns a single boolean value indicating whether lighting -is enabled. The initial value is @code{GL_FALSE}. See +is enabled. The initial value is @code{GL_FALSE}. See @code{glLightModel}. @item @code{GL_LIGHT_MODEL_AMBIENT} @var{params} returns four values: the red, green, blue, and alpha -components of the ambient intensity of the entire scene. Integer values, -if requested, are linearly mapped from the internal floating-point -representation such that 1.0 returns the most positive representable -integer value, and @r{-1.0} returns the most negative representable -integer value. The initial value is (0.2, 0.2, 0.2, 1.0). See -@code{glLightModel}. +components of the ambient intensity of the entire scene. Integer +values, if requested, are linearly mapped from the internal +floating-point representation such that 1.0 returns the most positive +representable integer value, and @r{-1.0} returns the most negative +representable integer value. The initial value is (0.2, 0.2, 0.2, 1.0). +See @code{glLightModel}. @item @code{GL_LIGHT_MODEL_COLOR_CONTROL} @@ -11791,316 +11814,318 @@ The initial value is @code{GL_SINGLE_COLOR}. @var{params} returns a single boolean value indicating whether specular reflection calculations treat the viewer as being local to the scene. -The initial value is @code{GL_FALSE}. See @code{glLightModel}. +The initial value is @code{GL_FALSE}. See @code{glLightModel}. @item @code{GL_LIGHT_MODEL_TWO_SIDE} @var{params} returns a single boolean value indicating whether separate materials are used to compute lighting for front- and back-facing -polygons. The initial value is @code{GL_FALSE}. See @code{glLightModel}. +polygons. The initial value is @code{GL_FALSE}. See +@code{glLightModel}. @item @code{GL_LINE_SMOOTH} @var{params} returns a single boolean value indicating whether -antialiasing of lines is enabled. The initial value is @code{GL_FALSE}. +antialiasing of lines is enabled. The initial value is @code{GL_FALSE}. See @code{glLineWidth}. @item @code{GL_LINE_SMOOTH_HINT} @var{params} returns one value, a symbolic constant indicating the mode -of the line antialiasing hint. The initial value is @code{GL_DONT_CARE}. -See @code{glHint}. +of the line antialiasing hint. The initial value is +@code{GL_DONT_CARE}. See @code{glHint}. @item @code{GL_LINE_STIPPLE} @var{params} returns a single boolean value indicating whether stippling -of lines is enabled. The initial value is @code{GL_FALSE}. See +of lines is enabled. The initial value is @code{GL_FALSE}. See @code{glLineStipple}. @item @code{GL_LINE_STIPPLE_PATTERN} -@var{params} returns one value, the 16-bit line stipple pattern. The -initial value is all 1's. See @code{glLineStipple}. +@var{params} returns one value, the 16-bit line stipple pattern. The +initial value is all 1's. See @code{glLineStipple}. @item @code{GL_LINE_STIPPLE_REPEAT} -@var{params} returns one value, the line stipple repeat factor. The -initial value is 1. See @code{glLineStipple}. +@var{params} returns one value, the line stipple repeat factor. The +initial value is 1. See @code{glLineStipple}. @item @code{GL_LINE_WIDTH} @var{params} returns one value, the line width as specified with -@code{glLineWidth}. The initial value is 1. +@code{glLineWidth}. The initial value is 1. @item @code{GL_LINE_WIDTH_GRANULARITY} @var{params} returns one value, the width difference between adjacent -supported widths for antialiased lines. See @code{glLineWidth}. +supported widths for antialiased lines. See @code{glLineWidth}. @item @code{GL_LINE_WIDTH_RANGE} @var{params} returns two values: the smallest and largest supported -widths for antialiased lines. See @code{glLineWidth}. +widths for antialiased lines. See @code{glLineWidth}. @item @code{GL_LIST_BASE} @var{params} returns one value, the base offset added to all names in -arrays presented to @code{glCallLists}. The initial value is 0. See +arrays presented to @code{glCallLists}. The initial value is 0. See @code{glListBase}. @item @code{GL_LIST_INDEX} @var{params} returns one value, the name of the display list currently -under construction. 0 is returned if no display list is currently under -construction. The initial value is 0. See @code{glNewList}. +under construction. 0 is returned if no display list is currently under +construction. The initial value is 0. See @code{glNewList}. @item @code{GL_LIST_MODE} @var{params} returns one value, a symbolic constant indicating the -construction mode of the display list currently under construction. The -initial value is 0. See @code{glNewList}. +construction mode of the display list currently under construction. The +initial value is 0. See @code{glNewList}. @item @code{GL_LOGIC_OP_MODE} @var{params} returns one value, a symbolic constant indicating the -selected logic operation mode. The initial value is @code{GL_COPY}. See +selected logic operation mode. The initial value is @code{GL_COPY}. See @code{glLogicOp}. @item @code{GL_MAP1_COLOR_4} @var{params} returns a single boolean value indicating whether 1D -evaluation generates colors. The initial value is @code{GL_FALSE}. See +evaluation generates colors. The initial value is @code{GL_FALSE}. See @code{glMap1}. @item @code{GL_MAP1_GRID_DOMAIN} @var{params} returns two values: the endpoints of the 1D map's grid -domain. The initial value is (0, 1). See @code{glMapGrid}. +domain. The initial value is (0, 1). See @code{glMapGrid}. @item @code{GL_MAP1_GRID_SEGMENTS} @var{params} returns one value, the number of partitions in the 1D map's -grid domain. The initial value is 1. See @code{glMapGrid}. +grid domain. The initial value is 1. See @code{glMapGrid}. @item @code{GL_MAP1_INDEX} @var{params} returns a single boolean value indicating whether 1D -evaluation generates color indices. The initial value is -@code{GL_FALSE}. See @code{glMap1}. +evaluation generates color indices. The initial value is +@code{GL_FALSE}. See @code{glMap1}. @item @code{GL_MAP1_NORMAL} @var{params} returns a single boolean value indicating whether 1D -evaluation generates normals. The initial value is @code{GL_FALSE}. See +evaluation generates normals. The initial value is @code{GL_FALSE}. See @code{glMap1}. @item @code{GL_MAP1_TEXTURE_COORD_1} @var{params} returns a single boolean value indicating whether 1D -evaluation generates 1D texture coordinates. The initial value is -@code{GL_FALSE}. See @code{glMap1}. +evaluation generates 1D texture coordinates. The initial value is +@code{GL_FALSE}. See @code{glMap1}. @item @code{GL_MAP1_TEXTURE_COORD_2} @var{params} returns a single boolean value indicating whether 1D -evaluation generates 2D texture coordinates. The initial value is -@code{GL_FALSE}. See @code{glMap1}. +evaluation generates 2D texture coordinates. The initial value is +@code{GL_FALSE}. See @code{glMap1}. @item @code{GL_MAP1_TEXTURE_COORD_3} @var{params} returns a single boolean value indicating whether 1D -evaluation generates 3D texture coordinates. The initial value is -@code{GL_FALSE}. See @code{glMap1}. +evaluation generates 3D texture coordinates. The initial value is +@code{GL_FALSE}. See @code{glMap1}. @item @code{GL_MAP1_TEXTURE_COORD_4} @var{params} returns a single boolean value indicating whether 1D -evaluation generates 4D texture coordinates. The initial value is -@code{GL_FALSE}. See @code{glMap1}. +evaluation generates 4D texture coordinates. The initial value is +@code{GL_FALSE}. See @code{glMap1}. @item @code{GL_MAP1_VERTEX_3} @var{params} returns a single boolean value indicating whether 1D -evaluation generates 3D vertex coordinates. The initial value is -@code{GL_FALSE}. See @code{glMap1}. +evaluation generates 3D vertex coordinates. The initial value is +@code{GL_FALSE}. See @code{glMap1}. @item @code{GL_MAP1_VERTEX_4} @var{params} returns a single boolean value indicating whether 1D -evaluation generates 4D vertex coordinates. The initial value is -@code{GL_FALSE}. See @code{glMap1}. +evaluation generates 4D vertex coordinates. The initial value is +@code{GL_FALSE}. See @code{glMap1}. @item @code{GL_MAP2_COLOR_4} @var{params} returns a single boolean value indicating whether 2D -evaluation generates colors. The initial value is @code{GL_FALSE}. See +evaluation generates colors. The initial value is @code{GL_FALSE}. See @code{glMap2}. @item @code{GL_MAP2_GRID_DOMAIN} @var{params} returns four values: the endpoints of the 2D map's -@r{@var{i}} and @r{@var{j}} grid domains. The initial value is (0,1; -0,1). See @code{glMapGrid}. +@r{@var{i}} and @r{@var{j}} grid domains. The initial value is (0,1; +0,1). See @code{glMapGrid}. @item @code{GL_MAP2_GRID_SEGMENTS} @var{params} returns two values: the number of partitions in the 2D -map's @r{@var{i}} and @r{@var{j}} grid domains. The initial value is -(1,1). See @code{glMapGrid}. +map's @r{@var{i}} and @r{@var{j}} grid domains. The initial value is +(1,1). See @code{glMapGrid}. @item @code{GL_MAP2_INDEX} @var{params} returns a single boolean value indicating whether 2D -evaluation generates color indices. The initial value is -@code{GL_FALSE}. See @code{glMap2}. +evaluation generates color indices. The initial value is +@code{GL_FALSE}. See @code{glMap2}. @item @code{GL_MAP2_NORMAL} @var{params} returns a single boolean value indicating whether 2D -evaluation generates normals. The initial value is @code{GL_FALSE}. See +evaluation generates normals. The initial value is @code{GL_FALSE}. See @code{glMap2}. @item @code{GL_MAP2_TEXTURE_COORD_1} @var{params} returns a single boolean value indicating whether 2D -evaluation generates 1D texture coordinates. The initial value is -@code{GL_FALSE}. See @code{glMap2}. +evaluation generates 1D texture coordinates. The initial value is +@code{GL_FALSE}. See @code{glMap2}. @item @code{GL_MAP2_TEXTURE_COORD_2} @var{params} returns a single boolean value indicating whether 2D -evaluation generates 2D texture coordinates. The initial value is -@code{GL_FALSE}. See @code{glMap2}. +evaluation generates 2D texture coordinates. The initial value is +@code{GL_FALSE}. See @code{glMap2}. @item @code{GL_MAP2_TEXTURE_COORD_3} @var{params} returns a single boolean value indicating whether 2D -evaluation generates 3D texture coordinates. The initial value is -@code{GL_FALSE}. See @code{glMap2}. +evaluation generates 3D texture coordinates. The initial value is +@code{GL_FALSE}. See @code{glMap2}. @item @code{GL_MAP2_TEXTURE_COORD_4} @var{params} returns a single boolean value indicating whether 2D -evaluation generates 4D texture coordinates. The initial value is -@code{GL_FALSE}. See @code{glMap2}. +evaluation generates 4D texture coordinates. The initial value is +@code{GL_FALSE}. See @code{glMap2}. @item @code{GL_MAP2_VERTEX_3} @var{params} returns a single boolean value indicating whether 2D -evaluation generates 3D vertex coordinates. The initial value is -@code{GL_FALSE}. See @code{glMap2}. +evaluation generates 3D vertex coordinates. The initial value is +@code{GL_FALSE}. See @code{glMap2}. @item @code{GL_MAP2_VERTEX_4} @var{params} returns a single boolean value indicating whether 2D -evaluation generates 4D vertex coordinates. The initial value is -@code{GL_FALSE}. See @code{glMap2}. +evaluation generates 4D vertex coordinates. The initial value is +@code{GL_FALSE}. See @code{glMap2}. @item @code{GL_MAP_COLOR} @var{params} returns a single boolean value indicating if colors and color indices are to be replaced by table lookup during pixel transfers. -The initial value is @code{GL_FALSE}. See @code{glPixelTransfer}. +The initial value is @code{GL_FALSE}. See @code{glPixelTransfer}. @item @code{GL_MAP_STENCIL} @var{params} returns a single boolean value indicating if stencil -indices are to be replaced by table lookup during pixel transfers. The -initial value is @code{GL_FALSE}. See @code{glPixelTransfer}. +indices are to be replaced by table lookup during pixel transfers. The +initial value is @code{GL_FALSE}. See @code{glPixelTransfer}. @item @code{GL_MATRIX_MODE} @var{params} returns one value, a symbolic constant indicating which -matrix stack is currently the target of all matrix operations. The -initial value is @code{GL_MODELVIEW}. See @code{glMatrixMode}. +matrix stack is currently the target of all matrix operations. The +initial value is @code{GL_MODELVIEW}. See @code{glMatrixMode}. @item @code{GL_MAX_3D_TEXTURE_SIZE} @var{params} returns one value, a rough estimate of the largest 3D -texture that the GL can handle. The value must be at least 16. If the GL -version is 1.2 or greater, use @code{GL_PROXY_TEXTURE_3D} to determine -if a texture is too large. See @code{glTexImage3D}. +texture that the GL can handle. The value must be at least 16. If the +GL version is 1.2 or greater, use @code{GL_PROXY_TEXTURE_3D} to +determine if a texture is too large. See @code{glTexImage3D}. @item @code{GL_MAX_CLIENT_ATTRIB_STACK_DEPTH} @var{params} returns one value indicating the maximum supported depth of -the client attribute stack. See @code{glPushClientAttrib}. +the client attribute stack. See @code{glPushClientAttrib}. @item @code{GL_MAX_ATTRIB_STACK_DEPTH} @var{params} returns one value, the maximum supported depth of the -attribute stack. The value must be at least 16. See @code{glPushAttrib}. +attribute stack. The value must be at least 16. See +@code{glPushAttrib}. @item @code{GL_MAX_CLIP_PLANES} @var{params} returns one value, the maximum number of -application-defined clipping planes. The value must be at least 6. See +application-defined clipping planes. The value must be at least 6. See @code{glClipPlane}. @item @code{GL_MAX_COLOR_MATRIX_STACK_DEPTH} @var{params} returns one value, the maximum supported depth of the color -matrix stack. The value must be at least 2. See @code{glPushMatrix}. +matrix stack. The value must be at least 2. See @code{glPushMatrix}. @item @code{GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS} @var{params} returns one value, the maximum supported texture image units that can be used to access texture maps from the vertex shader and -the fragment processor combined. If both the vertex shader and the +the fragment processor combined. If both the vertex shader and the fragment processing stage access the same texture image unit, then that -counts as using two texture image units against this limit. The value -must be at least 2. See @code{glActiveTexture}. +counts as using two texture image units against this limit. The value +must be at least 2. See @code{glActiveTexture}. @item @code{GL_MAX_CUBE_MAP_TEXTURE_SIZE} -@var{params} returns one value. The value gives a rough estimate of the -largest cube-map texture that the GL can handle. The value must be at -least 16. If the GL version is 1.3 or greater, use +@var{params} returns one value. The value gives a rough estimate of the +largest cube-map texture that the GL can handle. The value must be at +least 16. If the GL version is 1.3 or greater, use @code{GL_PROXY_TEXTURE_CUBE_MAP} to determine if a texture is too large. See @code{glTexImage2D}. @@ -12109,26 +12134,26 @@ See @code{glTexImage2D}. @var{params} returns one value, the maximum number of simultaneous output colors allowed from a fragment shader using the -@code{gl_FragData} built-in array. The value must be at least 1. See +@code{gl_FragData} built-in array. The value must be at least 1. See @code{glDrawBuffers}. @item @code{GL_MAX_ELEMENTS_INDICES} @var{params} returns one value, the recommended maximum number of vertex -array indices. See @code{glDrawRangeElements}. +array indices. See @code{glDrawRangeElements}. @item @code{GL_MAX_ELEMENTS_VERTICES} @var{params} returns one value, the recommended maximum number of vertex -array vertices. See @code{glDrawRangeElements}. +array vertices. See @code{glDrawRangeElements}. @item @code{GL_MAX_EVAL_ORDER} @var{params} returns one value, the maximum equation order supported by -1D and 2D evaluators. The value must be at least 8. See @code{glMap1} +1D and 2D evaluators. The value must be at least 8. See @code{glMap1} and @code{glMap2}. @item @code{GL_MAX_FRAGMENT_UNIFORM_COMPONENTS} @@ -12136,191 +12161,191 @@ and @code{glMap2}. @var{params} returns one value, the maximum number of individual floating-point, integer, or boolean values that can be held in uniform -variable storage for a fragment shader. The value must be at least 64. +variable storage for a fragment shader. The value must be at least 64. See @code{glUniform}. @item @code{GL_MAX_LIGHTS} -@var{params} returns one value, the maximum number of lights. The value -must be at least 8. See @code{glLight}. +@var{params} returns one value, the maximum number of lights. The value +must be at least 8. See @code{glLight}. @item @code{GL_MAX_LIST_NESTING} @var{params} returns one value, the maximum recursion depth allowed -during display-list traversal. The value must be at least 64. See +during display-list traversal. The value must be at least 64. See @code{glCallList}. @item @code{GL_MAX_MODELVIEW_STACK_DEPTH} @var{params} returns one value, the maximum supported depth of the -modelview matrix stack. The value must be at least 32. See +modelview matrix stack. The value must be at least 32. See @code{glPushMatrix}. @item @code{GL_MAX_NAME_STACK_DEPTH} @var{params} returns one value, the maximum supported depth of the -selection name stack. The value must be at least 64. See +selection name stack. The value must be at least 64. See @code{glPushName}. @item @code{GL_MAX_PIXEL_MAP_TABLE} @var{params} returns one value, the maximum supported size of a -@code{glPixelMap} lookup table. The value must be at least 32. See +@code{glPixelMap} lookup table. The value must be at least 32. See @code{glPixelMap}. @item @code{GL_MAX_PROJECTION_STACK_DEPTH} @var{params} returns one value, the maximum supported depth of the -projection matrix stack. The value must be at least 2. See +projection matrix stack. The value must be at least 2. See @code{glPushMatrix}. @item @code{GL_MAX_TEXTURE_COORDS} @var{params} returns one value, the maximum number of texture coordinate -sets available to vertex and fragment shaders. The value must be at -least 2. See @code{glActiveTexture} and @code{glClientActiveTexture}. +sets available to vertex and fragment shaders. The value must be at +least 2. See @code{glActiveTexture} and @code{glClientActiveTexture}. @item @code{GL_MAX_TEXTURE_IMAGE_UNITS} @var{params} returns one value, the maximum supported texture image units that can be used to access texture maps from the fragment shader. -The value must be at least 2. See @code{glActiveTexture}. +The value must be at least 2. See @code{glActiveTexture}. @item @code{GL_MAX_TEXTURE_LOD_BIAS} @var{params} returns one value, the maximum, absolute value of the -texture level-of-detail bias. The value must be at least 4. +texture level-of-detail bias. The value must be at least 4. @item @code{GL_MAX_TEXTURE_SIZE} -@var{params} returns one value. The value gives a rough estimate of the -largest texture that the GL can handle. The value must be at least 64. +@var{params} returns one value. The value gives a rough estimate of the +largest texture that the GL can handle. The value must be at least 64. If the GL version is 1.1 or greater, use @code{GL_PROXY_TEXTURE_1D} or -@code{GL_PROXY_TEXTURE_2D} to determine if a texture is too large. See +@code{GL_PROXY_TEXTURE_2D} to determine if a texture is too large. See @code{glTexImage1D} and @code{glTexImage2D}. @item @code{GL_MAX_TEXTURE_STACK_DEPTH} @var{params} returns one value, the maximum supported depth of the -texture matrix stack. The value must be at least 2. See +texture matrix stack. The value must be at least 2. See @code{glPushMatrix}. @item @code{GL_MAX_TEXTURE_UNITS} @var{params} returns a single value indicating the number of -conventional texture units supported. Each conventional texture unit +conventional texture units supported. Each conventional texture unit includes both a texture coordinate set and a texture image unit. Conventional texture units may be used for fixed-function (non-shader) -rendering. The value must be at least 2. Additional texture coordinate +rendering. The value must be at least 2. Additional texture coordinate sets and texture image units may be accessed from vertex and fragment -shaders. See @code{glActiveTexture} and @code{glClientActiveTexture}. +shaders. See @code{glActiveTexture} and @code{glClientActiveTexture}. @item @code{GL_MAX_VARYING_FLOATS} @var{params} returns one value, the maximum number of interpolators available for processing varying variables used by vertex and fragment -shaders. This value represents the number of individual floating-point +shaders. This value represents the number of individual floating-point values that can be interpolated; varying variables declared as vectors, -matrices, and arrays will all consume multiple interpolators. The value +matrices, and arrays will all consume multiple interpolators. The value must be at least 32. @item @code{GL_MAX_VERTEX_ATTRIBS} @var{params} returns one value, the maximum number of 4-component -generic vertex attributes accessible to a vertex shader. The value must -be at least 16. See @code{glVertexAttrib}. +generic vertex attributes accessible to a vertex shader. The value must +be at least 16. See @code{glVertexAttrib}. @item @code{GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS} @var{params} returns one value, the maximum supported texture image units that can be used to access texture maps from the vertex shader. -The value may be 0. See @code{glActiveTexture}. +The value may be 0. See @code{glActiveTexture}. @item @code{GL_MAX_VERTEX_UNIFORM_COMPONENTS} @var{params} returns one value, the maximum number of individual floating-point, integer, or boolean values that can be held in uniform -variable storage for a vertex shader. The value must be at least 512. +variable storage for a vertex shader. The value must be at least 512. See @code{glUniform}. @item @code{GL_MAX_VIEWPORT_DIMS} @var{params} returns two values: the maximum supported width and height -of the viewport. These must be at least as large as the visible -dimensions of the display being rendered to. See @code{glViewport}. +of the viewport. These must be at least as large as the visible +dimensions of the display being rendered to. See @code{glViewport}. @item @code{GL_MINMAX} @var{params} returns a single boolean value indicating whether pixel -minmax values are computed. The initial value is @code{GL_FALSE}. See +minmax values are computed. The initial value is @code{GL_FALSE}. See @code{glMinmax}. @item @code{GL_MODELVIEW_MATRIX} @var{params} returns sixteen values: the modelview matrix on the top of -the modelview matrix stack. Initially this matrix is the identity -matrix. See @code{glPushMatrix}. +the modelview matrix stack. Initially this matrix is the identity +matrix. See @code{glPushMatrix}. @item @code{GL_MODELVIEW_STACK_DEPTH} @var{params} returns one value, the number of matrices on the modelview -matrix stack. The initial value is 1. See @code{glPushMatrix}. +matrix stack. The initial value is 1. See @code{glPushMatrix}. @item @code{GL_NAME_STACK_DEPTH} @var{params} returns one value, the number of names on the selection -name stack. The initial value is 0. See @code{glPushName}. +name stack. The initial value is 0. See @code{glPushName}. @item @code{GL_NORMAL_ARRAY} @var{params} returns a single boolean value, indicating whether the -normal array is enabled. The initial value is @code{GL_FALSE}. See +normal array is enabled. The initial value is @code{GL_FALSE}. See @code{glNormalPointer}. @item @code{GL_NORMAL_ARRAY_BUFFER_BINDING} @var{params} returns a single value, the name of the buffer object -associated with the normal array. This buffer object would have been +associated with the normal array. This buffer object would have been bound to the target @code{GL_ARRAY_BUFFER} at the time of the most -recent call to @code{glNormalPointer}. If no buffer object was bound to -this target, 0 is returned. The initial value is 0. See +recent call to @code{glNormalPointer}. If no buffer object was bound to +this target, 0 is returned. The initial value is 0. See @code{glBindBuffer}. @item @code{GL_NORMAL_ARRAY_STRIDE} @var{params} returns one value, the byte offset between consecutive -normals in the normal array. The initial value is 0. See +normals in the normal array. The initial value is 0. See @code{glNormalPointer}. @item @code{GL_NORMAL_ARRAY_TYPE} @var{params} returns one value, the data type of each coordinate in the -normal array. The initial value is @code{GL_FLOAT}. See +normal array. The initial value is @code{GL_FLOAT}. See @code{glNormalPointer}. @item @code{GL_NORMALIZE} @@ -12328,223 +12353,223 @@ normal array. The initial value is @code{GL_FLOAT}. See @var{params} returns a single boolean value indicating whether normals are automatically scaled to unit length after they have been transformed -to eye coordinates. The initial value is @code{GL_FALSE}. See +to eye coordinates. The initial value is @code{GL_FALSE}. See @code{glNormal}. @item @code{GL_NUM_COMPRESSED_TEXTURE_FORMATS} @var{params} returns a single integer value indicating the number of -available compressed texture formats. The minimum value is 0. See +available compressed texture formats. The minimum value is 0. See @code{glCompressedTexImage2D}. @item @code{GL_PACK_ALIGNMENT} @var{params} returns one value, the byte alignment used for writing -pixel data to memory. The initial value is 4. See @code{glPixelStore}. +pixel data to memory. The initial value is 4. See @code{glPixelStore}. @item @code{GL_PACK_IMAGE_HEIGHT} @var{params} returns one value, the image height used for writing pixel -data to memory. The initial value is 0. See @code{glPixelStore}. +data to memory. The initial value is 0. See @code{glPixelStore}. @item @code{GL_PACK_LSB_FIRST} @var{params} returns a single boolean value indicating whether single-bit pixels being written to memory are written first to the least -significant bit of each unsigned byte. The initial value is -@code{GL_FALSE}. See @code{glPixelStore}. +significant bit of each unsigned byte. The initial value is +@code{GL_FALSE}. See @code{glPixelStore}. @item @code{GL_PACK_ROW_LENGTH} @var{params} returns one value, the row length used for writing pixel -data to memory. The initial value is 0. See @code{glPixelStore}. +data to memory. The initial value is 0. See @code{glPixelStore}. @item @code{GL_PACK_SKIP_IMAGES} @var{params} returns one value, the number of pixel images skipped -before the first pixel is written into memory. The initial value is 0. +before the first pixel is written into memory. The initial value is 0. See @code{glPixelStore}. @item @code{GL_PACK_SKIP_PIXELS} @var{params} returns one value, the number of pixel locations skipped -before the first pixel is written into memory. The initial value is 0. +before the first pixel is written into memory. The initial value is 0. See @code{glPixelStore}. @item @code{GL_PACK_SKIP_ROWS} @var{params} returns one value, the number of rows of pixel locations -skipped before the first pixel is written into memory. The initial value -is 0. See @code{glPixelStore}. +skipped before the first pixel is written into memory. The initial +value is 0. See @code{glPixelStore}. @item @code{GL_PACK_SWAP_BYTES} @var{params} returns a single boolean value indicating whether the bytes of two-byte and four-byte pixel indices and components are swapped -before being written to memory. The initial value is @code{GL_FALSE}. +before being written to memory. The initial value is @code{GL_FALSE}. See @code{glPixelStore}. @item @code{GL_PERSPECTIVE_CORRECTION_HINT} @var{params} returns one value, a symbolic constant indicating the mode -of the perspective correction hint. The initial value is -@code{GL_DONT_CARE}. See @code{glHint}. +of the perspective correction hint. The initial value is +@code{GL_DONT_CARE}. See @code{glHint}. @item @code{GL_PIXEL_MAP_A_TO_A_SIZE} @var{params} returns one value, the size of the alpha-to-alpha pixel -translation table. The initial value is 1. See @code{glPixelMap}. +translation table. The initial value is 1. See @code{glPixelMap}. @item @code{GL_PIXEL_MAP_B_TO_B_SIZE} @var{params} returns one value, the size of the blue-to-blue pixel -translation table. The initial value is 1. See @code{glPixelMap}. +translation table. The initial value is 1. See @code{glPixelMap}. @item @code{GL_PIXEL_MAP_G_TO_G_SIZE} @var{params} returns one value, the size of the green-to-green pixel -translation table. The initial value is 1. See @code{glPixelMap}. +translation table. The initial value is 1. See @code{glPixelMap}. @item @code{GL_PIXEL_MAP_I_TO_A_SIZE} @var{params} returns one value, the size of the index-to-alpha pixel -translation table. The initial value is 1. See @code{glPixelMap}. +translation table. The initial value is 1. See @code{glPixelMap}. @item @code{GL_PIXEL_MAP_I_TO_B_SIZE} @var{params} returns one value, the size of the index-to-blue pixel -translation table. The initial value is 1. See @code{glPixelMap}. +translation table. The initial value is 1. See @code{glPixelMap}. @item @code{GL_PIXEL_MAP_I_TO_G_SIZE} @var{params} returns one value, the size of the index-to-green pixel -translation table. The initial value is 1. See @code{glPixelMap}. +translation table. The initial value is 1. See @code{glPixelMap}. @item @code{GL_PIXEL_MAP_I_TO_I_SIZE} @var{params} returns one value, the size of the index-to-index pixel -translation table. The initial value is 1. See @code{glPixelMap}. +translation table. The initial value is 1. See @code{glPixelMap}. @item @code{GL_PIXEL_MAP_I_TO_R_SIZE} @var{params} returns one value, the size of the index-to-red pixel -translation table. The initial value is 1. See @code{glPixelMap}. +translation table. The initial value is 1. See @code{glPixelMap}. @item @code{GL_PIXEL_MAP_R_TO_R_SIZE} @var{params} returns one value, the size of the red-to-red pixel -translation table. The initial value is 1. See @code{glPixelMap}. +translation table. The initial value is 1. See @code{glPixelMap}. @item @code{GL_PIXEL_MAP_S_TO_S_SIZE} @var{params} returns one value, the size of the stencil-to-stencil pixel -translation table. The initial value is 1. See @code{glPixelMap}. +translation table. The initial value is 1. See @code{glPixelMap}. @item @code{GL_PIXEL_PACK_BUFFER_BINDING} @var{params} returns a single value, the name of the buffer object -currently bound to the target @code{GL_PIXEL_PACK_BUFFER}. If no buffer -object is bound to this target, 0 is returned. The initial value is 0. +currently bound to the target @code{GL_PIXEL_PACK_BUFFER}. If no buffer +object is bound to this target, 0 is returned. The initial value is 0. See @code{glBindBuffer}. @item @code{GL_PIXEL_UNPACK_BUFFER_BINDING} @var{params} returns a single value, the name of the buffer object -currently bound to the target @code{GL_PIXEL_UNPACK_BUFFER}. If no -buffer object is bound to this target, 0 is returned. The initial value -is 0. See @code{glBindBuffer}. +currently bound to the target @code{GL_PIXEL_UNPACK_BUFFER}. If no +buffer object is bound to this target, 0 is returned. The initial value +is 0. See @code{glBindBuffer}. @item @code{GL_POINT_DISTANCE_ATTENUATION} @var{params} returns three values, the coefficients for computing the -attenuation value for points. See @code{glPointParameter}. +attenuation value for points. See @code{glPointParameter}. @item @code{GL_POINT_FADE_THRESHOLD_SIZE} @var{params} returns one value, the point size threshold for determining -the point size. See @code{glPointParameter}. +the point size. See @code{glPointParameter}. @item @code{GL_POINT_SIZE} @var{params} returns one value, the point size as specified by -@code{glPointSize}. The initial value is 1. +@code{glPointSize}. The initial value is 1. @item @code{GL_POINT_SIZE_GRANULARITY} @var{params} returns one value, the size difference between adjacent -supported sizes for antialiased points. See @code{glPointSize}. +supported sizes for antialiased points. See @code{glPointSize}. @item @code{GL_POINT_SIZE_MAX} @var{params} returns one value, the upper bound for the attenuated point -sizes. The initial value is 0.0. See @code{glPointParameter}. +sizes. The initial value is 0.0. See @code{glPointParameter}. @item @code{GL_POINT_SIZE_MIN} @var{params} returns one value, the lower bound for the attenuated point -sizes. The initial value is 1.0. See @code{glPointParameter}. +sizes. The initial value is 1.0. See @code{glPointParameter}. @item @code{GL_POINT_SIZE_RANGE} @var{params} returns two values: the smallest and largest supported -sizes for antialiased points. The smallest size must be at most 1, and -the largest size must be at least 1. See @code{glPointSize}. +sizes for antialiased points. The smallest size must be at most 1, and +the largest size must be at least 1. See @code{glPointSize}. @item @code{GL_POINT_SMOOTH} @var{params} returns a single boolean value indicating whether -antialiasing of points is enabled. The initial value is @code{GL_FALSE}. -See @code{glPointSize}. +antialiasing of points is enabled. The initial value is +@code{GL_FALSE}. See @code{glPointSize}. @item @code{GL_POINT_SMOOTH_HINT} @var{params} returns one value, a symbolic constant indicating the mode -of the point antialiasing hint. The initial value is -@code{GL_DONT_CARE}. See @code{glHint}. +of the point antialiasing hint. The initial value is +@code{GL_DONT_CARE}. See @code{glHint}. @item @code{GL_POINT_SPRITE} @var{params} returns a single boolean value indicating whether point -sprite is enabled. The initial value is @code{GL_FALSE}. +sprite is enabled. The initial value is @code{GL_FALSE}. @item @code{GL_POLYGON_MODE} @var{params} returns two values: symbolic constants indicating whether front-facing and back-facing polygons are rasterized as points, lines, -or filled polygons. The initial value is @code{GL_FILL}. See +or filled polygons. The initial value is @code{GL_FILL}. See @code{glPolygonMode}. @item @code{GL_POLYGON_OFFSET_FACTOR} @@ -12552,211 +12577,211 @@ or filled polygons. The initial value is @code{GL_FILL}. See @var{params} returns one value, the scaling factor used to determine the variable offset that is added to the depth value of each fragment -generated when a polygon is rasterized. The initial value is 0. See +generated when a polygon is rasterized. The initial value is 0. See @code{glPolygonOffset}. @item @code{GL_POLYGON_OFFSET_UNITS} -@var{params} returns one value. This value is multiplied by an +@var{params} returns one value. This value is multiplied by an implementation-specific value and then added to the depth value of each -fragment generated when a polygon is rasterized. The initial value is 0. -See @code{glPolygonOffset}. +fragment generated when a polygon is rasterized. The initial value is +0. See @code{glPolygonOffset}. @item @code{GL_POLYGON_OFFSET_FILL} @var{params} returns a single boolean value indicating whether polygon -offset is enabled for polygons in fill mode. The initial value is -@code{GL_FALSE}. See @code{glPolygonOffset}. +offset is enabled for polygons in fill mode. The initial value is +@code{GL_FALSE}. See @code{glPolygonOffset}. @item @code{GL_POLYGON_OFFSET_LINE} @var{params} returns a single boolean value indicating whether polygon -offset is enabled for polygons in line mode. The initial value is -@code{GL_FALSE}. See @code{glPolygonOffset}. +offset is enabled for polygons in line mode. The initial value is +@code{GL_FALSE}. See @code{glPolygonOffset}. @item @code{GL_POLYGON_OFFSET_POINT} @var{params} returns a single boolean value indicating whether polygon -offset is enabled for polygons in point mode. The initial value is -@code{GL_FALSE}. See @code{glPolygonOffset}. +offset is enabled for polygons in point mode. The initial value is +@code{GL_FALSE}. See @code{glPolygonOffset}. @item @code{GL_POLYGON_SMOOTH} @var{params} returns a single boolean value indicating whether -antialiasing of polygons is enabled. The initial value is -@code{GL_FALSE}. See @code{glPolygonMode}. +antialiasing of polygons is enabled. The initial value is +@code{GL_FALSE}. See @code{glPolygonMode}. @item @code{GL_POLYGON_SMOOTH_HINT} @var{params} returns one value, a symbolic constant indicating the mode -of the polygon antialiasing hint. The initial value is -@code{GL_DONT_CARE}. See @code{glHint}. +of the polygon antialiasing hint. The initial value is +@code{GL_DONT_CARE}. See @code{glHint}. @item @code{GL_POLYGON_STIPPLE} @var{params} returns a single boolean value indicating whether polygon -stippling is enabled. The initial value is @code{GL_FALSE}. See +stippling is enabled. The initial value is @code{GL_FALSE}. See @code{glPolygonStipple}. @item @code{GL_POST_COLOR_MATRIX_COLOR_TABLE} @var{params} returns a single boolean value indicating whether post -color matrix transformation lookup is enabled. The initial value is -@code{GL_FALSE}. See @code{glColorTable}. +color matrix transformation lookup is enabled. The initial value is +@code{GL_FALSE}. See @code{glColorTable}. @item @code{GL_POST_COLOR_MATRIX_RED_BIAS} @var{params} returns one value, the red bias factor applied to RGBA -fragments after color matrix transformations. The initial value is 0. +fragments after color matrix transformations. The initial value is 0. See @code{glPixelTransfer}. @item @code{GL_POST_COLOR_MATRIX_GREEN_BIAS} @var{params} returns one value, the green bias factor applied to RGBA -fragments after color matrix transformations. The initial value is 0. +fragments after color matrix transformations. The initial value is 0. See @code{glPixelTransfer} @item @code{GL_POST_COLOR_MATRIX_BLUE_BIAS} @var{params} returns one value, the blue bias factor applied to RGBA -fragments after color matrix transformations. The initial value is 0. +fragments after color matrix transformations. The initial value is 0. See @code{glPixelTransfer}. @item @code{GL_POST_COLOR_MATRIX_ALPHA_BIAS} @var{params} returns one value, the alpha bias factor applied to RGBA -fragments after color matrix transformations. The initial value is 0. +fragments after color matrix transformations. The initial value is 0. See @code{glPixelTransfer}. @item @code{GL_POST_COLOR_MATRIX_RED_SCALE} @var{params} returns one value, the red scale factor applied to RGBA -fragments after color matrix transformations. The initial value is 1. +fragments after color matrix transformations. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_POST_COLOR_MATRIX_GREEN_SCALE} @var{params} returns one value, the green scale factor applied to RGBA -fragments after color matrix transformations. The initial value is 1. +fragments after color matrix transformations. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_POST_COLOR_MATRIX_BLUE_SCALE} @var{params} returns one value, the blue scale factor applied to RGBA -fragments after color matrix transformations. The initial value is 1. +fragments after color matrix transformations. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_POST_COLOR_MATRIX_ALPHA_SCALE} @var{params} returns one value, the alpha scale factor applied to RGBA -fragments after color matrix transformations. The initial value is 1. +fragments after color matrix transformations. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_POST_CONVOLUTION_COLOR_TABLE} @var{params} returns a single boolean value indicating whether post -convolution lookup is enabled. The initial value is @code{GL_FALSE}. See -@code{glColorTable}. +convolution lookup is enabled. The initial value is @code{GL_FALSE}. +See @code{glColorTable}. @item @code{GL_POST_CONVOLUTION_RED_BIAS} @var{params} returns one value, the red bias factor applied to RGBA -fragments after convolution. The initial value is 0. See +fragments after convolution. The initial value is 0. See @code{glPixelTransfer}. @item @code{GL_POST_CONVOLUTION_GREEN_BIAS} @var{params} returns one value, the green bias factor applied to RGBA -fragments after convolution. The initial value is 0. See +fragments after convolution. The initial value is 0. See @code{glPixelTransfer}. @item @code{GL_POST_CONVOLUTION_BLUE_BIAS} @var{params} returns one value, the blue bias factor applied to RGBA -fragments after convolution. The initial value is 0. See +fragments after convolution. The initial value is 0. See @code{glPixelTransfer}. @item @code{GL_POST_CONVOLUTION_ALPHA_BIAS} @var{params} returns one value, the alpha bias factor applied to RGBA -fragments after convolution. The initial value is 0. See +fragments after convolution. The initial value is 0. See @code{glPixelTransfer}. @item @code{GL_POST_CONVOLUTION_RED_SCALE} @var{params} returns one value, the red scale factor applied to RGBA -fragments after convolution. The initial value is 1. See +fragments after convolution. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_POST_CONVOLUTION_GREEN_SCALE} @var{params} returns one value, the green scale factor applied to RGBA -fragments after convolution. The initial value is 1. See +fragments after convolution. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_POST_CONVOLUTION_BLUE_SCALE} @var{params} returns one value, the blue scale factor applied to RGBA -fragments after convolution. The initial value is 1. See +fragments after convolution. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_POST_CONVOLUTION_ALPHA_SCALE} @var{params} returns one value, the alpha scale factor applied to RGBA -fragments after convolution. The initial value is 1. See +fragments after convolution. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_PROJECTION_MATRIX} @var{params} returns sixteen values: the projection matrix on the top of -the projection matrix stack. Initially this matrix is the identity -matrix. See @code{glPushMatrix}. +the projection matrix stack. Initially this matrix is the identity +matrix. See @code{glPushMatrix}. @item @code{GL_PROJECTION_STACK_DEPTH} @var{params} returns one value, the number of matrices on the projection -matrix stack. The initial value is 1. See @code{glPushMatrix}. +matrix stack. The initial value is 1. See @code{glPushMatrix}. @item @code{GL_READ_BUFFER} @var{params} returns one value, a symbolic constant indicating which -color buffer is selected for reading. The initial value is +color buffer is selected for reading. The initial value is @code{GL_BACK} if there is a back buffer, otherwise it is -@code{GL_FRONT}. See @code{glReadPixels} and @code{glAccum}. +@code{GL_FRONT}. See @code{glReadPixels} and @code{glAccum}. @item @code{GL_RED_BIAS} @var{params} returns one value, the red bias factor used during pixel -transfers. The initial value is 0. +transfers. The initial value is 0. @item @code{GL_RED_BITS} @@ -12768,51 +12793,51 @@ color buffer. @var{params} returns one value, the red scale factor used during pixel -transfers. The initial value is 1. See @code{glPixelTransfer}. +transfers. The initial value is 1. See @code{glPixelTransfer}. @item @code{GL_RENDER_MODE} @var{params} returns one value, a symbolic constant indicating whether -the GL is in render, select, or feedback mode. The initial value is -@code{GL_RENDER}. See @code{glRenderMode}. +the GL is in render, select, or feedback mode. The initial value is +@code{GL_RENDER}. See @code{glRenderMode}. @item @code{GL_RESCALE_NORMAL} @var{params} returns single boolean value indicating whether normal -rescaling is enabled. See @code{glEnable}. +rescaling is enabled. See @code{glEnable}. @item @code{GL_RGBA_MODE} @var{params} returns a single boolean value indicating whether the GL is -in RGBA mode (true) or color index mode (false). See @code{glColor}. +in RGBA mode (true) or color index mode (false). See @code{glColor}. @item @code{GL_SAMPLE_BUFFERS} @var{params} returns a single integer value indicating the number of -sample buffers associated with the framebuffer. See +sample buffers associated with the framebuffer. See @code{glSampleCoverage}. @item @code{GL_SAMPLE_COVERAGE_VALUE} @var{params} returns a single positive floating-point value indicating -the current sample coverage value. See @code{glSampleCoverage}. +the current sample coverage value. See @code{glSampleCoverage}. @item @code{GL_SAMPLE_COVERAGE_INVERT} @var{params} returns a single boolean value indicating if the temporary -coverage value should be inverted. See @code{glSampleCoverage}. +coverage value should be inverted. See @code{glSampleCoverage}. @item @code{GL_SAMPLES} @var{params} returns a single integer value indicating the coverage mask -size. See @code{glSampleCoverage}. +size. See @code{glSampleCoverage}. @item @code{GL_SCISSOR_BOX} @@ -12820,119 +12845,119 @@ size. See @code{glSampleCoverage}. @var{params} returns four values: the @r{@var{x}} and @r{@var{y}} window coordinates of the scissor box, followed by its width and height. Initially the @r{@var{x}} and @r{@var{y}} window coordinates are both 0 -and the width and height are set to the size of the window. See +and the width and height are set to the size of the window. See @code{glScissor}. @item @code{GL_SCISSOR_TEST} @var{params} returns a single boolean value indicating whether -scissoring is enabled. The initial value is @code{GL_FALSE}. See +scissoring is enabled. The initial value is @code{GL_FALSE}. See @code{glScissor}. @item @code{GL_SECONDARY_COLOR_ARRAY} @var{params} returns a single boolean value indicating whether the -secondary color array is enabled. The initial value is @code{GL_FALSE}. +secondary color array is enabled. The initial value is @code{GL_FALSE}. See @code{glSecondaryColorPointer}. @item @code{GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING} @var{params} returns a single value, the name of the buffer object -associated with the secondary color array. This buffer object would have -been bound to the target @code{GL_ARRAY_BUFFER} at the time of the most -recent call to @code{glSecondaryColorPointer}. If no buffer object was -bound to this target, 0 is returned. The initial value is 0. See +associated with the secondary color array. This buffer object would +have been bound to the target @code{GL_ARRAY_BUFFER} at the time of the +most recent call to @code{glSecondaryColorPointer}. If no buffer object +was bound to this target, 0 is returned. The initial value is 0. See @code{glBindBuffer}. @item @code{GL_SECONDARY_COLOR_ARRAY_SIZE} @var{params} returns one value, the number of components per color in -the secondary color array. The initial value is 3. See +the secondary color array. The initial value is 3. See @code{glSecondaryColorPointer}. @item @code{GL_SECONDARY_COLOR_ARRAY_STRIDE} @var{params} returns one value, the byte offset between consecutive -colors in the secondary color array. The initial value is 0. See +colors in the secondary color array. The initial value is 0. See @code{glSecondaryColorPointer}. @item @code{GL_SECONDARY_COLOR_ARRAY_TYPE} @var{params} returns one value, the data type of each component in the -secondary color array. The initial value is @code{GL_FLOAT}. See +secondary color array. The initial value is @code{GL_FLOAT}. See @code{glSecondaryColorPointer}. @item @code{GL_SELECTION_BUFFER_SIZE} -@var{params} return one value, the size of the selection buffer. See +@var{params} return one value, the size of the selection buffer. See @code{glSelectBuffer}. @item @code{GL_SEPARABLE_2D} @var{params} returns a single boolean value indicating whether 2D -separable convolution is enabled. The initial value is @code{GL_FALSE}. +separable convolution is enabled. The initial value is @code{GL_FALSE}. See @code{glSeparableFilter2D}. @item @code{GL_SHADE_MODEL} @var{params} returns one value, a symbolic constant indicating whether -the shading mode is flat or smooth. The initial value is -@code{GL_SMOOTH}. See @code{glShadeModel}. +the shading mode is flat or smooth. The initial value is +@code{GL_SMOOTH}. See @code{glShadeModel}. @item @code{GL_SMOOTH_LINE_WIDTH_RANGE} @var{params} returns two values, the smallest and largest supported -widths for antialiased lines. See @code{glLineWidth}. +widths for antialiased lines. See @code{glLineWidth}. @item @code{GL_SMOOTH_LINE_WIDTH_GRANULARITY} @var{params} returns one value, the granularity of widths for -antialiased lines. See @code{glLineWidth}. +antialiased lines. See @code{glLineWidth}. @item @code{GL_SMOOTH_POINT_SIZE_RANGE} @var{params} returns two values, the smallest and largest supported -widths for antialiased points. See @code{glPointSize}. +widths for antialiased points. See @code{glPointSize}. @item @code{GL_SMOOTH_POINT_SIZE_GRANULARITY} @var{params} returns one value, the granularity of sizes for antialiased -points. See @code{glPointSize}. +points. See @code{glPointSize}. @item @code{GL_STENCIL_BACK_FAIL} @var{params} returns one value, a symbolic constant indicating what action is taken for back-facing polygons when the stencil test fails. -The initial value is @code{GL_KEEP}. See @code{glStencilOpSeparate}. +The initial value is @code{GL_KEEP}. See @code{glStencilOpSeparate}. @item @code{GL_STENCIL_BACK_FUNC} @var{params} returns one value, a symbolic constant indicating what function is used for back-facing polygons to compare the stencil -reference value with the stencil buffer value. The initial value is -@code{GL_ALWAYS}. See @code{glStencilFuncSeparate}. +reference value with the stencil buffer value. The initial value is +@code{GL_ALWAYS}. See @code{glStencilFuncSeparate}. @item @code{GL_STENCIL_BACK_PASS_DEPTH_FAIL} @var{params} returns one value, a symbolic constant indicating what action is taken for back-facing polygons when the stencil test passes, -but the depth test fails. The initial value is @code{GL_KEEP}. See +but the depth test fails. The initial value is @code{GL_KEEP}. See @code{glStencilOpSeparate}. @item @code{GL_STENCIL_BACK_PASS_DEPTH_PASS} @@ -12940,30 +12965,30 @@ but the depth test fails. The initial value is @code{GL_KEEP}. See @var{params} returns one value, a symbolic constant indicating what action is taken for back-facing polygons when the stencil test passes -and the depth test passes. The initial value is @code{GL_KEEP}. See +and the depth test passes. The initial value is @code{GL_KEEP}. See @code{glStencilOpSeparate}. @item @code{GL_STENCIL_BACK_REF} @var{params} returns one value, the reference value that is compared -with the contents of the stencil buffer for back-facing polygons. The -initial value is 0. See @code{glStencilFuncSeparate}. +with the contents of the stencil buffer for back-facing polygons. The +initial value is 0. See @code{glStencilFuncSeparate}. @item @code{GL_STENCIL_BACK_VALUE_MASK} @var{params} returns one value, the mask that is used for back-facing polygons to mask both the stencil reference value and the stencil buffer -value before they are compared. The initial value is all 1's. See +value before they are compared. The initial value is all 1's. See @code{glStencilFuncSeparate}. @item @code{GL_STENCIL_BACK_WRITEMASK} @var{params} returns one value, the mask that controls writing of the -stencil bitplanes for back-facing polygons. The initial value is all -1's. See @code{glStencilMaskSeparate}. +stencil bitplanes for back-facing polygons. The initial value is all +1's. See @code{glStencilMaskSeparate}. @item @code{GL_STENCIL_BITS} @@ -12975,16 +13000,16 @@ buffer. @var{params} returns one value, the index to which the stencil bitplanes -are cleared. The initial value is 0. See @code{glClearStencil}. +are cleared. The initial value is 0. See @code{glClearStencil}. @item @code{GL_STENCIL_FAIL} @var{params} returns one value, a symbolic constant indicating what -action is taken when the stencil test fails. The initial value is -@code{GL_KEEP}. See @code{glStencilOp}. If the GL version is 2.0 or +action is taken when the stencil test fails. The initial value is +@code{GL_KEEP}. See @code{glStencilOp}. If the GL version is 2.0 or greater, this stencil state only affects non-polygons and front-facing -polygons. Back-facing polygons use separate stencil state. See +polygons. Back-facing polygons use separate stencil state. See @code{glStencilOpSeparate}. @item @code{GL_STENCIL_FUNC} @@ -12992,45 +13017,45 @@ polygons. Back-facing polygons use separate stencil state. See @var{params} returns one value, a symbolic constant indicating what function is used to compare the stencil reference value with the stencil -buffer value. The initial value is @code{GL_ALWAYS}. See -@code{glStencilFunc}. If the GL version is 2.0 or greater, this stencil -state only affects non-polygons and front-facing polygons. Back-facing -polygons use separate stencil state. See @code{glStencilFuncSeparate}. +buffer value. The initial value is @code{GL_ALWAYS}. See +@code{glStencilFunc}. If the GL version is 2.0 or greater, this stencil +state only affects non-polygons and front-facing polygons. Back-facing +polygons use separate stencil state. See @code{glStencilFuncSeparate}. @item @code{GL_STENCIL_PASS_DEPTH_FAIL} @var{params} returns one value, a symbolic constant indicating what action is taken when the stencil test passes, but the depth test fails. -The initial value is @code{GL_KEEP}. See @code{glStencilOp}. If the GL +The initial value is @code{GL_KEEP}. See @code{glStencilOp}. If the GL version is 2.0 or greater, this stencil state only affects non-polygons -and front-facing polygons. Back-facing polygons use separate stencil -state. See @code{glStencilOpSeparate}. +and front-facing polygons. Back-facing polygons use separate stencil +state. See @code{glStencilOpSeparate}. @item @code{GL_STENCIL_PASS_DEPTH_PASS} @var{params} returns one value, a symbolic constant indicating what action is taken when the stencil test passes and the depth test passes. -The initial value is @code{GL_KEEP}. See @code{glStencilOp}. If the GL +The initial value is @code{GL_KEEP}. See @code{glStencilOp}. If the GL version is 2.0 or greater, this stencil state only affects non-polygons -and front-facing polygons. Back-facing polygons use separate stencil -state. See @code{glStencilOpSeparate}. +and front-facing polygons. Back-facing polygons use separate stencil +state. See @code{glStencilOpSeparate}. @item @code{GL_STENCIL_REF} @var{params} returns one value, the reference value that is compared -with the contents of the stencil buffer. The initial value is 0. See -@code{glStencilFunc}. If the GL version is 2.0 or greater, this stencil -state only affects non-polygons and front-facing polygons. Back-facing -polygons use separate stencil state. See @code{glStencilFuncSeparate}. +with the contents of the stencil buffer. The initial value is 0. See +@code{glStencilFunc}. If the GL version is 2.0 or greater, this stencil +state only affects non-polygons and front-facing polygons. Back-facing +polygons use separate stencil state. See @code{glStencilFuncSeparate}. @item @code{GL_STENCIL_TEST} @var{params} returns a single boolean value indicating whether stencil -testing of fragments is enabled. The initial value is @code{GL_FALSE}. +testing of fragments is enabled. The initial value is @code{GL_FALSE}. See @code{glStencilFunc} and @code{glStencilOp}. @item @code{GL_STENCIL_VALUE_MASK} @@ -13038,19 +13063,19 @@ See @code{glStencilFunc} and @code{glStencilOp}. @var{params} returns one value, the mask that is used to mask both the stencil reference value and the stencil buffer value before they are -compared. The initial value is all 1's. See @code{glStencilFunc}. If the -GL version is 2.0 or greater, this stencil state only affects -non-polygons and front-facing polygons. Back-facing polygons use -separate stencil state. See @code{glStencilFuncSeparate}. +compared. The initial value is all 1's. See @code{glStencilFunc}. If +the GL version is 2.0 or greater, this stencil state only affects +non-polygons and front-facing polygons. Back-facing polygons use +separate stencil state. See @code{glStencilFuncSeparate}. @item @code{GL_STENCIL_WRITEMASK} @var{params} returns one value, the mask that controls writing of the -stencil bitplanes. The initial value is all 1's. See -@code{glStencilMask}. If the GL version is 2.0 or greater, this stencil -state only affects non-polygons and front-facing polygons. Back-facing -polygons use separate stencil state. See @code{glStencilMaskSeparate}. +stencil bitplanes. The initial value is all 1's. See +@code{glStencilMask}. If the GL version is 2.0 or greater, this stencil +state only affects non-polygons and front-facing polygons. Back-facing +polygons use separate stencil state. See @code{glStencilMaskSeparate}. @item @code{GL_STEREO} @@ -13063,305 +13088,307 @@ buffers (left and right) are supported. @var{params} returns one value, an estimate of the number of bits of subpixel resolution that are used to position rasterized geometry in -window coordinates. The value must be at least 4. +window coordinates. The value must be at least 4. @item @code{GL_TEXTURE_1D} @var{params} returns a single boolean value indicating whether 1D -texture mapping is enabled. The initial value is @code{GL_FALSE}. See +texture mapping is enabled. The initial value is @code{GL_FALSE}. See @code{glTexImage1D}. @item @code{GL_TEXTURE_BINDING_1D} @var{params} returns a single value, the name of the texture currently -bound to the target @code{GL_TEXTURE_1D}. The initial value is 0. See +bound to the target @code{GL_TEXTURE_1D}. The initial value is 0. See @code{glBindTexture}. @item @code{GL_TEXTURE_2D} @var{params} returns a single boolean value indicating whether 2D -texture mapping is enabled. The initial value is @code{GL_FALSE}. See +texture mapping is enabled. The initial value is @code{GL_FALSE}. See @code{glTexImage2D}. @item @code{GL_TEXTURE_BINDING_2D} @var{params} returns a single value, the name of the texture currently -bound to the target @code{GL_TEXTURE_2D}. The initial value is 0. See +bound to the target @code{GL_TEXTURE_2D}. The initial value is 0. See @code{glBindTexture}. @item @code{GL_TEXTURE_3D} @var{params} returns a single boolean value indicating whether 3D -texture mapping is enabled. The initial value is @code{GL_FALSE}. See +texture mapping is enabled. The initial value is @code{GL_FALSE}. See @code{glTexImage3D}. @item @code{GL_TEXTURE_BINDING_3D} @var{params} returns a single value, the name of the texture currently -bound to the target @code{GL_TEXTURE_3D}. The initial value is 0. See +bound to the target @code{GL_TEXTURE_3D}. The initial value is 0. See @code{glBindTexture}. @item @code{GL_TEXTURE_BINDING_CUBE_MAP} @var{params} returns a single value, the name of the texture currently -bound to the target @code{GL_TEXTURE_CUBE_MAP}. The initial value is 0. +bound to the target @code{GL_TEXTURE_CUBE_MAP}. The initial value is 0. See @code{glBindTexture}. @item @code{GL_TEXTURE_COMPRESSION_HINT} @var{params} returns a single value indicating the mode of the texture -compression hint. The initial value is @code{GL_DONT_CARE}. +compression hint. The initial value is @code{GL_DONT_CARE}. @item @code{GL_TEXTURE_COORD_ARRAY} @var{params} returns a single boolean value indicating whether the -texture coordinate array is enabled. The initial value is -@code{GL_FALSE}. See @code{glTexCoordPointer}. +texture coordinate array is enabled. The initial value is +@code{GL_FALSE}. See @code{glTexCoordPointer}. @item @code{GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING} @var{params} returns a single value, the name of the buffer object -associated with the texture coordinate array. This buffer object would +associated with the texture coordinate array. This buffer object would have been bound to the target @code{GL_ARRAY_BUFFER} at the time of the -most recent call to @code{glTexCoordPointer}. If no buffer object was -bound to this target, 0 is returned. The initial value is 0. See +most recent call to @code{glTexCoordPointer}. If no buffer object was +bound to this target, 0 is returned. The initial value is 0. See @code{glBindBuffer}. @item @code{GL_TEXTURE_COORD_ARRAY_SIZE} @var{params} returns one value, the number of coordinates per element in -the texture coordinate array. The initial value is 4. See +the texture coordinate array. The initial value is 4. See @code{glTexCoordPointer}. @item @code{GL_TEXTURE_COORD_ARRAY_STRIDE} @var{params} returns one value, the byte offset between consecutive -elements in the texture coordinate array. The initial value is 0. See +elements in the texture coordinate array. The initial value is 0. See @code{glTexCoordPointer}. @item @code{GL_TEXTURE_COORD_ARRAY_TYPE} @var{params} returns one value, the data type of the coordinates in the -texture coordinate array. The initial value is @code{GL_FLOAT}. See +texture coordinate array. The initial value is @code{GL_FLOAT}. See @code{glTexCoordPointer}. @item @code{GL_TEXTURE_CUBE_MAP} @var{params} returns a single boolean value indicating whether -cube-mapped texture mapping is enabled. The initial value is -@code{GL_FALSE}. See @code{glTexImage2D}. +cube-mapped texture mapping is enabled. The initial value is +@code{GL_FALSE}. See @code{glTexImage2D}. @item @code{GL_TEXTURE_GEN_Q} @var{params} returns a single boolean value indicating whether automatic -generation of the @var{q} texture coordinate is enabled. The initial -value is @code{GL_FALSE}. See @code{glTexGen}. +generation of the @var{q} texture coordinate is enabled. The initial +value is @code{GL_FALSE}. See @code{glTexGen}. @item @code{GL_TEXTURE_GEN_R} @var{params} returns a single boolean value indicating whether automatic -generation of the @var{r} texture coordinate is enabled. The initial -value is @code{GL_FALSE}. See @code{glTexGen}. +generation of the @var{r} texture coordinate is enabled. The initial +value is @code{GL_FALSE}. See @code{glTexGen}. @item @code{GL_TEXTURE_GEN_S} @var{params} returns a single boolean value indicating whether automatic -generation of the @var{S} texture coordinate is enabled. The initial -value is @code{GL_FALSE}. See @code{glTexGen}. +generation of the @var{S} texture coordinate is enabled. The initial +value is @code{GL_FALSE}. See @code{glTexGen}. @item @code{GL_TEXTURE_GEN_T} @var{params} returns a single boolean value indicating whether automatic -generation of the T texture coordinate is enabled. The initial value is -@code{GL_FALSE}. See @code{glTexGen}. +generation of the T texture coordinate is enabled. The initial value is +@code{GL_FALSE}. See @code{glTexGen}. @item @code{GL_TEXTURE_MATRIX} @var{params} returns sixteen values: the texture matrix on the top of -the texture matrix stack. Initially this matrix is the identity matrix. +the texture matrix stack. Initially this matrix is the identity matrix. See @code{glPushMatrix}. @item @code{GL_TEXTURE_STACK_DEPTH} @var{params} returns one value, the number of matrices on the texture -matrix stack. The initial value is 1. See @code{glPushMatrix}. +matrix stack. The initial value is 1. See @code{glPushMatrix}. @item @code{GL_TRANSPOSE_COLOR_MATRIX} @var{params} returns 16 values, the elements of the color matrix in -row-major order. See @code{glLoadTransposeMatrix}. +row-major order. See @code{glLoadTransposeMatrix}. @item @code{GL_TRANSPOSE_MODELVIEW_MATRIX} @var{params} returns 16 values, the elements of the modelview matrix in -row-major order. See @code{glLoadTransposeMatrix}. +row-major order. See @code{glLoadTransposeMatrix}. @item @code{GL_TRANSPOSE_PROJECTION_MATRIX} @var{params} returns 16 values, the elements of the projection matrix in -row-major order. See @code{glLoadTransposeMatrix}. +row-major order. See @code{glLoadTransposeMatrix}. @item @code{GL_TRANSPOSE_TEXTURE_MATRIX} @var{params} returns 16 values, the elements of the texture matrix in -row-major order. See @code{glLoadTransposeMatrix}. +row-major order. See @code{glLoadTransposeMatrix}. @item @code{GL_UNPACK_ALIGNMENT} @var{params} returns one value, the byte alignment used for reading -pixel data from memory. The initial value is 4. See @code{glPixelStore}. +pixel data from memory. The initial value is 4. See +@code{glPixelStore}. @item @code{GL_UNPACK_IMAGE_HEIGHT} @var{params} returns one value, the image height used for reading pixel -data from memory. The initial is 0. See @code{glPixelStore}. +data from memory. The initial is 0. See @code{glPixelStore}. @item @code{GL_UNPACK_LSB_FIRST} @var{params} returns a single boolean value indicating whether single-bit pixels being read from memory are read first from the least -significant bit of each unsigned byte. The initial value is -@code{GL_FALSE}. See @code{glPixelStore}. +significant bit of each unsigned byte. The initial value is +@code{GL_FALSE}. See @code{glPixelStore}. @item @code{GL_UNPACK_ROW_LENGTH} @var{params} returns one value, the row length used for reading pixel -data from memory. The initial value is 0. See @code{glPixelStore}. +data from memory. The initial value is 0. See @code{glPixelStore}. @item @code{GL_UNPACK_SKIP_IMAGES} @var{params} returns one value, the number of pixel images skipped -before the first pixel is read from memory. The initial value is 0. See +before the first pixel is read from memory. The initial value is 0. See @code{glPixelStore}. @item @code{GL_UNPACK_SKIP_PIXELS} @var{params} returns one value, the number of pixel locations skipped -before the first pixel is read from memory. The initial value is 0. See +before the first pixel is read from memory. The initial value is 0. See @code{glPixelStore}. @item @code{GL_UNPACK_SKIP_ROWS} @var{params} returns one value, the number of rows of pixel locations -skipped before the first pixel is read from memory. The initial value is -0. See @code{glPixelStore}. +skipped before the first pixel is read from memory. The initial value +is 0. See @code{glPixelStore}. @item @code{GL_UNPACK_SWAP_BYTES} @var{params} returns a single boolean value indicating whether the bytes of two-byte and four-byte pixel indices and components are swapped after -being read from memory. The initial value is @code{GL_FALSE}. See +being read from memory. The initial value is @code{GL_FALSE}. See @code{glPixelStore}. @item @code{GL_VERTEX_ARRAY} @var{params} returns a single boolean value indicating whether the -vertex array is enabled. The initial value is @code{GL_FALSE}. See +vertex array is enabled. The initial value is @code{GL_FALSE}. See @code{glVertexPointer}. @item @code{GL_VERTEX_ARRAY_BUFFER_BINDING} @var{params} returns a single value, the name of the buffer object -associated with the vertex array. This buffer object would have been +associated with the vertex array. This buffer object would have been bound to the target @code{GL_ARRAY_BUFFER} at the time of the most -recent call to @code{glVertexPointer}. If no buffer object was bound to -this target, 0 is returned. The initial value is 0. See +recent call to @code{glVertexPointer}. If no buffer object was bound to +this target, 0 is returned. The initial value is 0. See @code{glBindBuffer}. @item @code{GL_VERTEX_ARRAY_SIZE} @var{params} returns one value, the number of coordinates per vertex in -the vertex array. The initial value is 4. See @code{glVertexPointer}. +the vertex array. The initial value is 4. See @code{glVertexPointer}. @item @code{GL_VERTEX_ARRAY_STRIDE} @var{params} returns one value, the byte offset between consecutive -vertices in the vertex array. The initial value is 0. See +vertices in the vertex array. The initial value is 0. See @code{glVertexPointer}. @item @code{GL_VERTEX_ARRAY_TYPE} @var{params} returns one value, the data type of each coordinate in the -vertex array. The initial value is @code{GL_FLOAT}. See +vertex array. The initial value is @code{GL_FLOAT}. See @code{glVertexPointer}. @item @code{GL_VERTEX_PROGRAM_POINT_SIZE} @var{params} returns a single boolean value indicating whether vertex -program point size mode is enabled. If enabled, and a vertex shader is +program point size mode is enabled. If enabled, and a vertex shader is active, then the point size is taken from the shader built-in -@code{gl_PointSize}. If disabled, and a vertex shader is active, then +@code{gl_PointSize}. If disabled, and a vertex shader is active, then the point size is taken from the point state as specified by -@code{glPointSize}. The initial value is @code{GL_FALSE}. +@code{glPointSize}. The initial value is @code{GL_FALSE}. @item @code{GL_VERTEX_PROGRAM_TWO_SIDE} @var{params} returns a single boolean value indicating whether vertex -program two-sided color mode is enabled. If enabled, and a vertex shader -is active, then the GL chooses the back color output for back-facing -polygons, and the front color output for non-polygons and front-facing -polygons. If disabled, and a vertex shader is active, then the front -color output is always selected. The initial value is @code{GL_FALSE}. +program two-sided color mode is enabled. If enabled, and a vertex +shader is active, then the GL chooses the back color output for +back-facing polygons, and the front color output for non-polygons and +front-facing polygons. If disabled, and a vertex shader is active, then +the front color output is always selected. The initial value is +@code{GL_FALSE}. @item @code{GL_VIEWPORT} @var{params} returns four values: the @r{@var{x}} and @r{@var{y}} window -coordinates of the viewport, followed by its width and height. Initially +coordinates of the viewport, followed by its width and height. Initially the @r{@var{x}} and @r{@var{y}} window coordinates are both set to 0, and the width and height are set to the width and height of the window -into which the GL will do its rendering. See @code{glViewport}. +into which the GL will do its rendering. See @code{glViewport}. @item @code{GL_ZOOM_X} -@var{params} returns one value, the @r{@var{x}} pixel zoom factor. The -initial value is 1. See @code{glPixelZoom}. +@var{params} returns one value, the @r{@var{x}} pixel zoom factor. The +initial value is 1. See @code{glPixelZoom}. @item @code{GL_ZOOM_Y} -@var{params} returns one value, the @r{@var{y}} pixel zoom factor. The -initial value is 1. See @code{glPixelZoom}. +@var{params} returns one value, the @r{@var{y}} pixel zoom factor. The +initial value is 1. See @code{glPixelZoom}. @end table @@ -13399,11 +13426,11 @@ accepted. @end table Certain aspects of GL behavior, when there is room for interpretation, -can be controlled with hints. A hint is specified with two arguments. +can be controlled with hints. A hint is specified with two arguments. @var{target} is a symbolic constant indicating the behavior to be controlled, and @var{mode} is another symbolic constant indicating the -desired behavior. The initial value for each @var{target} is -@code{GL_DONT_CARE}. @var{mode} can be one of the following: +desired behavior. The initial value for each @var{target} is +@code{GL_DONT_CARE}. @var{mode} can be one of the following: @table @asis @item @code{GL_FASTEST} @@ -13424,7 +13451,7 @@ No preference. @end table Though the implementation aspects that can be hinted are well defined, -the interpretation of the hints depends on the implementation. The hint +the interpretation of the hints depends on the implementation. The hint aspects that can be specified with @var{target}, along with suggested semantics, are as follows: @@ -13432,7 +13459,7 @@ semantics, are as follows: @item @code{GL_FOG_HINT} -Indicates the accuracy of fog calculation. If per-pixel fog calculation +Indicates the accuracy of fog calculation. If per-pixel fog calculation is not efficiently supported by the GL implementation, hinting @code{GL_DONT_CARE} or @code{GL_FASTEST} can result in per-vertex calculation of fog effects. @@ -13452,7 +13479,7 @@ Indicates the quality of filtering when generating mipmap images. @item @code{GL_LINE_SMOOTH_HINT} -Indicates the sampling quality of antialiased lines. If a larger filter +Indicates the sampling quality of antialiased lines. If a larger filter function is applied, hinting @code{GL_NICEST} can result in more pixel fragments being generated during rasterization. @@ -13460,7 +13487,7 @@ fragments being generated during rasterization. Indicates the quality of color, texture coordinate, and fog coordinate -interpolation. If perspective-corrected parameter interpolation is not +interpolation. If perspective-corrected parameter interpolation is not efficiently supported by the GL implementation, hinting @code{GL_DONT_CARE} or @code{GL_FASTEST} can result in simple linear interpolation of colors and/or texture coordinates. @@ -13468,14 +13495,14 @@ interpolation of colors and/or texture coordinates. @item @code{GL_POINT_SMOOTH_HINT} -Indicates the sampling quality of antialiased points. If a larger filter -function is applied, hinting @code{GL_NICEST} can result in more pixel -fragments being generated during rasterization. +Indicates the sampling quality of antialiased points. If a larger +filter function is applied, hinting @code{GL_NICEST} can result in more +pixel fragments being generated during rasterization. @item @code{GL_POLYGON_SMOOTH_HINT} -Indicates the sampling quality of antialiased polygons. Hinting +Indicates the sampling quality of antialiased polygons. Hinting @code{GL_NICEST} can result in more pixel fragments being generated during rasterization, if a larger filter function is applied. @@ -13486,7 +13513,7 @@ Indicates the quality and performance of the compressing texture images. Hinting @code{GL_FASTEST} indicates that texture images should be compressed as quickly as possible, while @code{GL_NICEST} indicates that texture images should be compressed with as little image quality loss as -possible. @code{GL_NICEST} should be selected if the texture is to be +possible. @code{GL_NICEST} should be selected if the texture is to be retrieved by @code{glGetCompressedTexImage} for reuse. @end table @@ -13505,14 +13532,14 @@ Define histogram table. @table @asis @item @var{target} -The histogram whose parameters are to be set. Must be one of +The histogram whose parameters are to be set. Must be one of @code{GL_HISTOGRAM} or @code{GL_PROXY_HISTOGRAM}. @item @var{width} -The number of entries in the histogram table. Must be a power of 2. +The number of entries in the histogram table. Must be a power of 2. @item @var{internalformat} -The format of entries in the histogram table. Must be one of +The format of entries in the histogram table. Must be one of @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE4}, @code{GL_LUMINANCE8}, @code{GL_LUMINANCE12}, @code{GL_LUMINANCE16}, @@ -13527,7 +13554,7 @@ The format of entries in the histogram table. Must be one of @item @var{sink} If @code{GL_TRUE}, pixels will be consumed by the histogramming process -and no drawing or texture loading will take place. If @code{GL_FALSE}, +and no drawing or texture loading will take place. If @code{GL_FALSE}, pixels will proceed to the minmax process after histogramming. @end table @@ -13535,32 +13562,32 @@ pixels will proceed to the minmax process after histogramming. When @code{GL_HISTOGRAM} is enabled, RGBA color components are converted to histogram table indices by clamping to the range [0,1], multiplying by the width of the histogram table, and rounding to the nearest -integer. The table entries selected by the RGBA indices are then -incremented. (If the internal format of the histogram table includes +integer. The table entries selected by the RGBA indices are then +incremented. (If the internal format of the histogram table includes luminance, then the index derived from the R color component determines the luminance table entry to be incremented.) If a histogram table entry is incremented beyond its maximum value, then its value becomes -undefined. (This is not an error.) +undefined. (This is not an error.) Histogramming is performed only for RGBA pixels (though these may be specified originally as color indices and converted to RGBA by index -table lookup). Histogramming is enabled with @code{glEnable} and +table lookup). Histogramming is enabled with @code{glEnable} and disabled with @code{glDisable}. When @var{target} is @code{GL_HISTOGRAM}, @code{glHistogram} redefines the current histogram table to have @var{width} entries of the format -specified by @var{internalformat}. The entries are indexed 0 through -@r{@var{width}-1}, and all entries are initialized to zero. The values -in the previous histogram table, if any, are lost. If @var{sink} is +specified by @var{internalformat}. The entries are indexed 0 through +@r{@var{width}-1}, and all entries are initialized to zero. The values +in the previous histogram table, if any, are lost. If @var{sink} is @code{GL_TRUE}, then pixels are discarded after histogramming; no further processing of the pixels takes place, and no drawing, texture loading, or pixel readback will result. When @var{target} is @code{GL_PROXY_HISTOGRAM}, @code{glHistogram} computes all state information as if the histogram table were to be -redefined, but does not actually define the new table. If the requested +redefined, but does not actually define the new table. If the requested histogram table is too large to be supported, then the state information -will be set to zero. This provides a way to determine if a histogram +will be set to zero. This provides a way to determine if a histogram table with the given parameters can be supported. @@ -13590,15 +13617,15 @@ Control the writing of individual bits in the color index buffers. @table @asis @item @var{mask} Specifies a bit mask to enable and disable the writing of individual -bits in the color index buffers. Initially, the mask is all 1's. +bits in the color index buffers. Initially, the mask is all 1's. @end table @code{glIndexMask} controls the writing of individual bits in the color -index buffers. The least significant @r{@var{n}} bits of @var{mask}, +index buffers. The least significant @r{@var{n}} bits of @var{mask}, where @r{@var{n}} is the number of bits in a color index buffer, specify -a mask. Where a 1 (one) appears in the mask, it's possible to write to -the corresponding bit in the color index buffer (or buffers). Where a 0 +a mask. Where a 1 (one) appears in the mask, it's possible to write to +the corresponding bit in the color index buffer (or buffers). Where a 0 (zero) appears, the corresponding bit is write-protected. This mask is used only in color index mode, and it affects only the @@ -13616,24 +13643,24 @@ Define an array of color indexes. @table @asis @item @var{type} -Specifies the data type of each color index in the array. Symbolic +Specifies the data type of each color index in the array. Symbolic constants @code{GL_UNSIGNED_BYTE}, @code{GL_SHORT}, @code{GL_INT}, -@code{GL_FLOAT}, and @code{GL_DOUBLE} are accepted. The initial value is -@code{GL_FLOAT}. +@code{GL_FLOAT}, and @code{GL_DOUBLE} are accepted. The initial value +is @code{GL_FLOAT}. @item @var{stride} -Specifies the byte offset between consecutive color indexes. If +Specifies the byte offset between consecutive color indexes. If @var{stride} is 0, the color indexes are understood to be tightly packed -in the array. The initial value is 0. +in the array. The initial value is 0. @item @var{pointer} -Specifies a pointer to the first index in the array. The initial value +Specifies a pointer to the first index in the array. The initial value is 0. @end table @code{glIndexPointer} specifies the location and data format of an array -of color indexes to use when rendering. @var{type} specifies the data +of color indexes to use when rendering. @var{type} specifies the data type of each color index and @var{stride} specifies the byte stride from one color index to the next, allowing vertices and attributes to be packed into a single array or stored in separate arrays. @@ -13641,7 +13668,7 @@ packed into a single array or stored in separate arrays. If a non-zero named buffer object is bound to the @code{GL_ARRAY_BUFFER} target (see @code{glBindBuffer}) while a color index array is specified, @var{pointer} is treated as a byte offset into the buffer object's data -store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) +store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) is saved as color index vertex array client-side state (@code{GL_INDEX_ARRAY_BUFFER_BINDING}). @@ -13651,7 +13678,7 @@ vertex array buffer object binding. To enable and disable the color index array, call @code{glEnableClientState} and @code{glDisableClientState} with the -argument @code{GL_INDEX_ARRAY}. If enabled, the color index array is +argument @code{GL_INDEX_ARRAY}. If enabled, the color index array is used when @code{glDrawArrays}, @code{glMultiDrawArrays}, @code{glDrawElements}, @code{glMultiDrawElements}, @code{glDrawRangeElements}, or @code{glArrayElement} is called. @@ -13683,16 +13710,16 @@ Specifies the new value for the current color index. @end table -@code{glIndex} updates the current (single-valued) color index. It takes -one argument, the new value for the current color index. +@code{glIndex} updates the current (single-valued) color index. It +takes one argument, the new value for the current color index. -The current index is stored as a floating-point value. Integer values +The current index is stored as a floating-point value. Integer values are converted directly to floating-point values, with no special -mapping. The initial value is 1. +mapping. The initial value is 1. Index values outside the representable range of the color index buffer -are not clamped. However, before an index is dithered (if enabled) and -written to the frame buffer, it is converted to fixed-point format. Any +are not clamped. However, before an index is dithered (if enabled) and +written to the frame buffer, it is converted to fixed-point format. Any bits in the integer portion of the resulting fixed-point value that do not correspond to bits in the frame buffer are masked out. @@ -13702,12 +13729,12 @@ not correspond to bits in the frame buffer are masked out. Initialize the name stack. The name stack is used during selection mode to allow sets of rendering -commands to be uniquely identified. It consists of an ordered set of -unsigned integers. @code{glInitNames} causes the name stack to be +commands to be uniquely identified. It consists of an ordered set of +unsigned integers. @code{glInitNames} causes the name stack to be initialized to its default empty state. The name stack is always empty while the render mode is not -@code{GL_SELECT}. Calls to @code{glInitNames} while the render mode is +@code{GL_SELECT}. Calls to @code{glInitNames} while the render mode is not @code{GL_SELECT} are ignored. @code{GL_INVALID_OPERATION} is generated if @code{glInitNames} is @@ -13721,8 +13748,8 @@ Simultaneously specify and enable several interleaved arrays. @table @asis @item @var{format} -Specifies the type of array to enable. Symbolic constants @code{GL_V2F}, -@code{GL_V3F}, @code{GL_C4UB_V2F}, @code{GL_C4UB_V3F}, +Specifies the type of array to enable. Symbolic constants +@code{GL_V2F}, @code{GL_V3F}, @code{GL_C4UB_V2F}, @code{GL_C4UB_V3F}, @code{GL_C3F_V3F}, @code{GL_N3F_V3F}, @code{GL_C4F_N3F_V3F}, @code{GL_T2F_V3F}, @code{GL_T4F_V4F}, @code{GL_T2F_C4UB_V3F}, @code{GL_T2F_C3F_V3F}, @code{GL_T2F_N3F_V3F}, @code{GL_T2F_C4F_N3F_V3F}, @@ -13735,7 +13762,7 @@ Specifies the offset in bytes between each aggregate array element. @code{glInterleavedArrays} lets you specify and enable individual color, normal, texture and vertex arrays whose elements are part of a larger -aggregate array element. For some implementations, this is more +aggregate array element. For some implementations, this is more efficient than specifying the arrays separately. If @var{stride} is 0, the aggregate elements are stored consecutively. @@ -13744,16 +13771,16 @@ aggregate array element and the beginning of the next aggregate array element. @var{format} serves as a ``key'' describing the extraction of individual -arrays from the aggregate array. If @var{format} contains a T, then -texture coordinates are extracted from the interleaved array. If C is -present, color values are extracted. If N is present, normal coordinates -are extracted. Vertex coordinates are always extracted. +arrays from the aggregate array. If @var{format} contains a T, then +texture coordinates are extracted from the interleaved array. If C is +present, color values are extracted. If N is present, normal +coordinates are extracted. Vertex coordinates are always extracted. -The digits 2, 3, and 4 denote how many values are extracted. F indicates -that values are extracted as floating-point values. Colors may also be -extracted as 4 unsigned bytes if 4UB follows the C. If a color is -extracted as 4 unsigned bytes, the vertex array element which follows is -located at the first possible floating-point aligned address. +The digits 2, 3, and 4 denote how many values are extracted. F +indicates that values are extracted as floating-point values. Colors +may also be extracted as 4 unsigned bytes if 4UB follows the C. If a +color is extracted as 4 unsigned bytes, the vertex array element which +follows is located at the first possible floating-point aligned address. @code{GL_INVALID_ENUM} is generated if @var{format} is not an accepted value. @@ -13772,7 +13799,7 @@ Specifies a value that may be the name of a buffer object. @end table @code{glIsBuffer} returns @code{GL_TRUE} if @var{buffer} is currently -the name of a buffer object. If @var{buffer} is zero, or is a non-zero +the name of a buffer object. If @var{buffer} is zero, or is a non-zero value that is not currently the name of a buffer object, or if an error occurs, @code{glIsBuffer} returns @code{GL_FALSE}. @@ -13796,7 +13823,7 @@ Specifies a symbolic constant indicating a GL capability. @end table @code{glIsEnabled} returns @code{GL_TRUE} if @var{cap} is an enabled -capability and returns @code{GL_FALSE} otherwise. Initially all +capability and returns @code{GL_FALSE} otherwise. Initially all capabilities except @code{GL_DITHER} are disabled; @code{GL_DITHER} is initially enabled. @@ -14074,8 +14101,8 @@ Specifies a potential program object. @code{glIsProgram} returns @code{GL_TRUE} if @var{program} is the name of a program object previously created with @code{glCreateProgram} and -not yet deleted with @code{glDeleteProgram}. If @var{program} is zero or -a non-zero value that is not the name of a program object, or if an +not yet deleted with @code{glDeleteProgram}. If @var{program} is zero +or a non-zero value that is not the name of a program object, or if an error occurs, @code{glIsProgram} returns @code{GL_FALSE}. @code{GL_INVALID_OPERATION} is generated if @code{glIsProgram} is @@ -14094,8 +14121,8 @@ Specifies a value that may be the name of a query object. @end table @code{glIsQuery} returns @code{GL_TRUE} if @var{id} is currently the -name of a query object. If @var{id} is zero, or is a non-zero value that -is not currently the name of a query object, or if an error occurs, +name of a query object. If @var{id} is zero, or is a non-zero value +that is not currently the name of a query object, or if an error occurs, @code{glIsQuery} returns @code{GL_FALSE}. A name returned by @code{glGenQueries}, but not yet associated with a @@ -14119,7 +14146,7 @@ Specifies a potential shader object. @code{glIsShader} returns @code{GL_TRUE} if @var{shader} is the name of a shader object previously created with @code{glCreateShader} and not -yet deleted with @code{glDeleteShader}. If @var{shader} is zero or a +yet deleted with @code{glDeleteShader}. If @var{shader} is zero or a non-zero value that is not the name of a shader object, or if an error occurs, @code{glIsShader } returns @code{GL_FALSE}. @@ -14139,7 +14166,7 @@ Specifies a value that may be the name of a texture. @end table @code{glIsTexture} returns @code{GL_TRUE} if @var{texture} is currently -the name of a texture. If @var{texture} is zero, or is a non-zero value +the name of a texture. If @var{texture} is zero, or is a non-zero value that is not currently the name of a texture, or if an error occurs, @code{glIsTexture} returns @code{GL_FALSE}. @@ -14169,8 +14196,8 @@ Specifies the value that @var{param} will be set to. @end table -@code{glLightModel} sets the lighting model parameter. @var{pname} names -a parameter and @var{params} gives the new value. There are three +@code{glLightModel} sets the lighting model parameter. @var{pname} +names a parameter and @var{params} gives the new value. There are three lighting model parameters: @table @asis @@ -14178,22 +14205,22 @@ lighting model parameters: @var{params} contains four integer or floating-point values that specify -the ambient RGBA intensity of the entire scene. Integer values are +the ambient RGBA intensity of the entire scene. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to @r{-1.0}. -Floating-point values are mapped directly. Neither integer nor -floating-point values are clamped. The initial ambient scene intensity +Floating-point values are mapped directly. Neither integer nor +floating-point values are clamped. The initial ambient scene intensity is (0.2, 0.2, 0.2, 1.0). @item @code{GL_LIGHT_MODEL_COLOR_CONTROL} @var{params} must be either @code{GL_SEPARATE_SPECULAR_COLOR} or -@code{GL_SINGLE_COLOR}. @code{GL_SINGLE_COLOR} specifies that a single +@code{GL_SINGLE_COLOR}. @code{GL_SINGLE_COLOR} specifies that a single color is generated from the lighting computation for a vertex. @code{GL_SEPARATE_SPECULAR_COLOR} specifies that the specular color computation of lighting be stored separately from the remainder of the -lighting computation. The specular color is summed into the generated +lighting computation. The specular color is summed into the generated fragment's color after the application of texture mapping (if enabled). The initial value is @code{GL_SINGLE_COLOR}. @@ -14201,12 +14228,12 @@ The initial value is @code{GL_SINGLE_COLOR}. @var{params} is a single integer or floating-point value that specifies -how specular reflection angles are computed. If @var{params} is 0 (or +how specular reflection angles are computed. If @var{params} is 0 (or 0.0), specular reflection angles take the view direction to be parallel to and in the direction of the -@var{z} axis, regardless of the location -of the vertex in eye coordinates. Otherwise, specular reflections are -computed from the origin of the eye coordinate system. The initial value -is 0. +of the vertex in eye coordinates. Otherwise, specular reflections are +computed from the origin of the eye coordinate system. The initial +value is 0. @item @code{GL_LIGHT_MODEL_TWO_SIDE} @@ -14214,34 +14241,34 @@ is 0. @var{params} is a single integer or floating-point value that specifies whether one- or two-sided lighting calculations are done for polygons. It has no effect on the lighting calculations for points, lines, or -bitmaps. If @var{params} is 0 (or 0.0), one-sided lighting is specified, -and only the @var{front} material parameters are used in the lighting -equation. Otherwise, two-sided lighting is specified. In this case, -vertices of back-facing polygons are lighted using the @var{back} +bitmaps. If @var{params} is 0 (or 0.0), one-sided lighting is +specified, and only the @var{front} material parameters are used in the +lighting equation. Otherwise, two-sided lighting is specified. In this +case, vertices of back-facing polygons are lighted using the @var{back} material parameters and have their normals reversed before the lighting -equation is evaluated. Vertices of front-facing polygons are always +equation is evaluated. Vertices of front-facing polygons are always lighted using the @var{front} material parameters, with no change to -their normals. The initial value is 0. +their normals. The initial value is 0. @end table In RGBA mode, the lighted color of a vertex is the sum of the material emission intensity, the product of the material ambient reflectance and the lighting model full-scene ambient intensity, and the contribution of -each enabled light source. Each light source contributes the sum of -three terms: ambient, diffuse, and specular. The ambient light source +each enabled light source. Each light source contributes the sum of +three terms: ambient, diffuse, and specular. The ambient light source contribution is the product of the material ambient reflectance and the -light's ambient intensity. The diffuse light source contribution is the +light's ambient intensity. The diffuse light source contribution is the product of the material diffuse reflectance, the light's diffuse intensity, and the dot product of the vertex's normal with the -normalized vector from the vertex to the light source. The specular +normalized vector from the vertex to the light source. The specular light source contribution is the product of the material specular reflectance, the light's specular intensity, and the dot product of the normalized vertex-to-eye and vertex-to-light vectors, raised to the -power of the shininess of the material. All three light source +power of the shininess of the material. All three light source contributions are attenuated equally based on the distance from the vertex to the light source and on light source direction, spread -exponent, and spread cutoff angle. All dot products are replaced with 0 +exponent, and spread cutoff angle. All dot products are replaced with 0 if they evaluate to a negative value. The alpha component of the resulting lighted color is set to the alpha @@ -14249,7 +14276,7 @@ value of the material diffuse reflectance. In color index mode, the value of the lighted index of a vertex ranges from the ambient to the specular values passed to @code{glMaterial} -using @code{GL_COLOR_INDEXES}. Diffuse and specular coefficients, +using @code{GL_COLOR_INDEXES}. Diffuse and specular coefficients, computed with a (.30, .59, .11) weighting of the lights' colors, the shininess of the material, and the same reflection and attenuation equations as in the RGBA case, determine how much above ambient the @@ -14276,10 +14303,10 @@ Set light source parameters. @table @asis @item @var{light} -Specifies a light. The number of lights depends on the implementation, -but at least eight lights are supported. They are identified by symbolic -names of the form @code{GL_LIGHT}@r{@var{i}}, where i ranges from 0 to -the value of @code{GL_MAX_LIGHTS} - 1. +Specifies a light. The number of lights depends on the implementation, +but at least eight lights are supported. They are identified by +symbolic names of the form @code{GL_LIGHT}@r{@var{i}}, where i ranges +from 0 to the value of @code{GL_MAX_LIGHTS} - 1. @item @var{pname} Specifies a single-valued light source parameter for @var{light}. @@ -14296,81 +14323,81 @@ Specifies the value that parameter @var{pname} of light source @code{glLight} sets the values of individual light source parameters. @var{light} names the light and is a symbolic name of the form @code{GL_LIGHT}@r{@var{i}}, where i ranges from 0 to the value of -@code{GL_MAX_LIGHTS} - 1. @var{pname} specifies one of ten light source -parameters, again by symbolic name. @var{params} is either a single +@code{GL_MAX_LIGHTS} - 1. @var{pname} specifies one of ten light source +parameters, again by symbolic name. @var{params} is either a single value or a pointer to an array that contains the new values. To enable and disable lighting calculation, call @code{glEnable} and -@code{glDisable} with argument @code{GL_LIGHTING}. Lighting is initially -disabled. When it is enabled, light sources that are enabled contribute -to the lighting calculation. Light source @r{@var{i}} is enabled and -disabled using @code{glEnable} and @code{glDisable} with argument -@code{GL_LIGHT}@r{@var{i}}. +@code{glDisable} with argument @code{GL_LIGHTING}. Lighting is +initially disabled. When it is enabled, light sources that are enabled +contribute to the lighting calculation. Light source @r{@var{i}} is +enabled and disabled using @code{glEnable} and @code{glDisable} with +argument @code{GL_LIGHT}@r{@var{i}}. The ten light parameters are as follows: @table @asis @item @code{GL_AMBIENT} @var{params} contains four integer or floating-point values that specify -the ambient RGBA intensity of the light. Integer values are mapped +the ambient RGBA intensity of the light. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to @r{-1.0}. -Floating-point values are mapped directly. Neither integer nor -floating-point values are clamped. The initial ambient light intensity +Floating-point values are mapped directly. Neither integer nor +floating-point values are clamped. The initial ambient light intensity is (0, 0, 0, 1). @item @code{GL_DIFFUSE} @var{params} contains four integer or floating-point values that specify -the diffuse RGBA intensity of the light. Integer values are mapped +the diffuse RGBA intensity of the light. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to @r{-1.0}. -Floating-point values are mapped directly. Neither integer nor -floating-point values are clamped. The initial value for +Floating-point values are mapped directly. Neither integer nor +floating-point values are clamped. The initial value for @code{GL_LIGHT0} is (1, 1, 1, 1); for other lights, the initial value is (0, 0, 0, 1). @item @code{GL_SPECULAR} @var{params} contains four integer or floating-point values that specify -the specular RGBA intensity of the light. Integer values are mapped +the specular RGBA intensity of the light. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to @r{-1.0}. -Floating-point values are mapped directly. Neither integer nor -floating-point values are clamped. The initial value for +Floating-point values are mapped directly. Neither integer nor +floating-point values are clamped. The initial value for @code{GL_LIGHT0} is (1, 1, 1, 1); for other lights, the initial value is (0, 0, 0, 1). @item @code{GL_POSITION} @var{params} contains four integer or floating-point values that specify -the position of the light in homogeneous object coordinates. Both -integer and floating-point values are mapped directly. Neither integer +the position of the light in homogeneous object coordinates. Both +integer and floating-point values are mapped directly. Neither integer nor floating-point values are clamped. The position is transformed by the modelview matrix when @code{glLight} is called (just as if it were a point), and it is stored in eye -coordinates. If the @r{@var{w}} component of the position is 0, the -light is treated as a directional source. Diffuse and specular lighting +coordinates. If the @r{@var{w}} component of the position is 0, the +light is treated as a directional source. Diffuse and specular lighting calculations take the light's direction, but not its actual position, -into account, and attenuation is disabled. Otherwise, diffuse and +into account, and attenuation is disabled. Otherwise, diffuse and specular lighting calculations are based on the actual location of the -light in eye coordinates, and attenuation is enabled. The initial +light in eye coordinates, and attenuation is enabled. The initial position is (0, 0, 1, 0); thus, the initial light source is directional, parallel to, and in the direction of the @r{-@var{z}} axis. @item @code{GL_SPOT_DIRECTION} @var{params} contains three integer or floating-point values that specify the direction of the light in homogeneous object coordinates. -Both integer and floating-point values are mapped directly. Neither +Both integer and floating-point values are mapped directly. Neither integer nor floating-point values are clamped. The spot direction is transformed by the upper 3x3 of the modelview matrix when @code{glLight} is called, and it is stored in eye -coordinates. It is significant only when @code{GL_SPOT_CUTOFF} is not -180, which it is initially. The initial direction is @r{(0,0-1)}. +coordinates. It is significant only when @code{GL_SPOT_CUTOFF} is not +180, which it is initially. The initial direction is @r{(0,0-1)}. @item @code{GL_SPOT_EXPONENT} @var{params} is a single integer or floating-point value that specifies -the intensity distribution of the light. Integer and floating-point -values are mapped directly. Only values in the range @r{[0,128]} are +the intensity distribution of the light. Integer and floating-point +values are mapped directly. Only values in the range @r{[0,128]} are accepted. Effective light intensity is attenuated by the cosine of the angle @@ -14378,27 +14405,27 @@ between the direction of the light and the direction from the light to the vertex being lighted, raised to the power of the spot exponent. Thus, higher spot exponents result in a more focused light source, regardless of the spot cutoff angle (see @code{GL_SPOT_CUTOFF}, next -paragraph). The initial spot exponent is 0, resulting in uniform light +paragraph). The initial spot exponent is 0, resulting in uniform light distribution. @item @code{GL_SPOT_CUTOFF} @var{params} is a single integer or floating-point value that specifies -the maximum spread angle of a light source. Integer and floating-point -values are mapped directly. Only values in the range @r{[0,90]} and the -special value 180 are accepted. If the angle between the direction of +the maximum spread angle of a light source. Integer and floating-point +values are mapped directly. Only values in the range @r{[0,90]} and the +special value 180 are accepted. If the angle between the direction of the light and the direction from the light to the vertex being lighted is greater than the spot cutoff angle, the light is completely masked. Otherwise, its intensity is controlled by the spot exponent and the -attenuation factors. The initial spot cutoff is 180, resulting in +attenuation factors. The initial spot cutoff is 180, resulting in uniform light distribution. @item @code{GL_CONSTANT_ATTENUATION} @item @code{GL_LINEAR_ATTENUATION} @item @code{GL_QUADRATIC_ATTENUATION} @var{params} is a single integer or floating-point value that specifies -one of the three light attenuation factors. Integer and floating-point -values are mapped directly. Only nonnegative values are accepted. If the -light is positional, rather than directional, its intensity is +one of the three light attenuation factors. Integer and floating-point +values are mapped directly. Only nonnegative values are accepted. If +the light is positional, rather than directional, its intensity is attenuated by the reciprocal of the sum of the constant factor, the linear factor times the distance between the light and the vertex being lighted, and the quadratic factor times the square of the same distance. @@ -14426,45 +14453,46 @@ Specify the line stipple pattern. @table @asis @item @var{factor} -Specifies a multiplier for each bit in the line stipple pattern. If +Specifies a multiplier for each bit in the line stipple pattern. If @var{factor} is 3, for example, each bit in the pattern is used three -times before the next bit in the pattern is used. @var{factor} is +times before the next bit in the pattern is used. @var{factor} is clamped to the range [1, 256] and defaults to 1. @item @var{pattern} Specifies a 16-bit integer whose bit pattern determines which fragments -of a line will be drawn when the line is rasterized. Bit zero is used +of a line will be drawn when the line is rasterized. Bit zero is used first; the default pattern is all 1's. @end table Line stippling masks out certain fragments produced by rasterization; -those fragments will not be drawn. The masking is achieved by using +those fragments will not be drawn. The masking is achieved by using three parameters: the 16-bit line stipple pattern @var{pattern}, the repeat count @var{factor}, and an integer stipple counter @r{@var{s}}. Counter @r{@var{s}} is reset to 0 whenever @code{glBegin} is called and before each line segment of a -@code{glBegin}(@code{GL_LINES})/@code{glEnd} sequence is generated. It +@code{glBegin}(@code{GL_LINES})/@code{glEnd} sequence is generated. It is incremented after each fragment of a unit width aliased line segment is generated or after each @r{@var{i}} fragments of an @r{@var{i}} width -line segment are generated. The @r{@var{i}} fragments associated with +line segment are generated. The @r{@var{i}} fragments associated with count @r{@var{s}} are masked out if @var{pattern} bit @r{(@var{s}/@var{factor},)%16} -is 0, otherwise these fragments are sent to the frame buffer. Bit zero +is 0, otherwise these fragments are sent to the frame buffer. Bit zero of @var{pattern} is the least significant bit. Antialiased lines are treated as a sequence of @r{1×@var{width}} -rectangles for purposes of stippling. Whether rectangle @r{@var{s}} is +rectangles for purposes of stippling. Whether rectangle @r{@var{s}} is rasterized or not depends on the fragment rule described for aliased lines, counting rectangles rather than groups of fragments. To enable and disable line stippling, call @code{glEnable} and -@code{glDisable} with argument @code{GL_LINE_STIPPLE}. When enabled, the -line stipple pattern is applied as described above. When disabled, it is -as if the pattern were all 1's. Initially, line stippling is disabled. +@code{glDisable} with argument @code{GL_LINE_STIPPLE}. When enabled, +the line stipple pattern is applied as described above. When disabled, +it is as if the pattern were all 1's. Initially, line stippling is +disabled. @code{GL_INVALID_OPERATION} is generated if @code{glLineStipple} is executed between the execution of @code{glBegin} and the corresponding @@ -14477,19 +14505,19 @@ Specify the width of rasterized lines. @table @asis @item @var{width} -Specifies the width of rasterized lines. The initial value is 1. +Specifies the width of rasterized lines. The initial value is 1. @end table @code{glLineWidth} specifies the rasterized width of both aliased and -antialiased lines. Using a line width other than 1 has different -effects, depending on whether line antialiasing is enabled. To enable +antialiased lines. Using a line width other than 1 has different +effects, depending on whether line antialiasing is enabled. To enable and disable line antialiasing, call @code{glEnable} and @code{glDisable} -with argument @code{GL_LINE_SMOOTH}. Line antialiasing is initially +with argument @code{GL_LINE_SMOOTH}. Line antialiasing is initially disabled. If line antialiasing is disabled, the actual width is determined by -rounding the supplied width to the nearest integer. (If the rounding +rounding the supplied width to the nearest integer. (If the rounding results in the value 0, it is as if the line width were 1.) If @r{∣Δ@var{x},∣>=∣Δ@var{y},∣}, @var{i} pixels are filled in each column that is rasterized, where @var{i} is the rounded value of @var{width}. @@ -14498,16 +14526,16 @@ Otherwise, @var{i} pixels are filled in each row that is rasterized. If antialiasing is enabled, line rasterization produces a fragment for each pixel square that intersects the region lying within the rectangle having width equal to the current line width, length equal to the actual -length of the line, and centered on the mathematical line segment. The +length of the line, and centered on the mathematical line segment. The coverage value for each fragment is the window coordinate area of the intersection of the rectangular region with the corresponding pixel -square. This value is saved and used in the final rasterization step. +square. This value is saved and used in the final rasterization step. -Not all widths can be supported when line antialiasing is enabled. If an -unsupported width is requested, the nearest supported width is used. +Not all widths can be supported when line antialiasing is enabled. If +an unsupported width is requested, the nearest supported width is used. Only width 1 is guaranteed to be supported; others depend on the -implementation. Likewise, there is a range for aliased line widths as -well. To query the range of supported widths and the size difference +implementation. Likewise, there is a range for aliased line widths as +well. To query the range of supported widths and the size difference between supported widths within the range, call @code{glGet} with arguments @code{GL_ALIASED_LINE_WIDTH_RANGE}, @code{GL_SMOOTH_LINE_WIDTH_RANGE}, and @@ -14532,17 +14560,17 @@ Specifies the handle of the program object to be linked. @end table @code{glLinkProgram} links the program object specified by -@var{program}. If any shader objects of type @code{GL_VERTEX_SHADER} are -attached to @var{program}, they will be used to create an executable -that will run on the programmable vertex processor. If any shader +@var{program}. If any shader objects of type @code{GL_VERTEX_SHADER} +are attached to @var{program}, they will be used to create an executable +that will run on the programmable vertex processor. If any shader objects of type @code{GL_FRAGMENT_SHADER} are attached to @var{program}, they will be used to create an executable that will run on the programmable fragment processor. The status of the link operation will be stored as part of the program -object's state. This value will be set to @code{GL_TRUE} if the program +object's state. This value will be set to @code{GL_TRUE} if the program object was linked without errors and is ready for use, and -@code{GL_FALSE} otherwise. It can be queried by calling +@code{GL_FALSE} otherwise. It can be queried by calling @code{glGetProgram} with arguments @var{program} and @code{GL_LINK_STATUS}. @@ -14550,12 +14578,12 @@ As a result of a successful link operation, all active user-defined uniform variables belonging to @var{program} will be initialized to 0, and each of the program object's active uniform variables will be assigned a location that can be queried by calling -@code{glGetUniformLocation}. Also, any active user-defined attribute +@code{glGetUniformLocation}. Also, any active user-defined attribute variables that have not been bound to a generic vertex attribute index will be bound to one at this time. Linking of a program object can fail for a number of reasons as -specified in the @var{OpenGL Shading Language Specification}. The +specified in the @var{OpenGL Shading Language Specification}. The following lists some of the conditions that will cause a link error. @itemize @@ -14602,33 +14630,33 @@ attribute matrices. When a program object has been successfully linked, the program object can be made part of current state by calling @code{glUseProgram}. Whether or not the link operation was successful, the program object's -information log will be overwritten. The information log can be +information log will be overwritten. The information log can be retrieved by calling @code{glGetProgramInfoLog}. @code{glLinkProgram} will also install the generated executables as part of the current rendering state if the link operation was successful and the specified program object is already currently in use as a result of -a previous call to @code{glUseProgram}. If the program object currently +a previous call to @code{glUseProgram}. If the program object currently in use is relinked unsuccessfully, its link status will be set to @code{GL_FALSE} , but the executables and associated state will remain part of the current state until a subsequent call to @code{glUseProgram} -removes it from use. After it is removed from use, it cannot be made +removes it from use. After it is removed from use, it cannot be made part of current state until it has been successfully relinked. If @var{program} contains shader objects of type @code{GL_VERTEX_SHADER} but does not contain shader objects of type @code{GL_FRAGMENT_SHADER}, the vertex shader will be linked against the implicit interface for -fixed functionality fragment processing. Similarly, if @var{program} +fixed functionality fragment processing. Similarly, if @var{program} contains shader objects of type @code{GL_FRAGMENT_SHADER} but it does not contain shader objects of type @code{GL_VERTEX_SHADER}, the fragment shader will be linked against the implicit interface for fixed functionality vertex processing. The program object's information log is updated and the program is -generated at the time of the link operation. After the link operation, +generated at the time of the link operation. After the link operation, applications are free to modify attached shader objects, compile attached shader objects, detach shader objects, delete shader objects, -and attach additional shader objects. None of these operations affects +and attach additional shader objects. None of these operations affects the information log or the program that is part of the program object. @code{GL_INVALID_VALUE} is generated if @var{program} is not a value @@ -14649,12 +14677,12 @@ Set the display-list base for . @table @asis @item @var{base} Specifies an integer offset that will be added to @code{glCallLists} -offsets to generate display-list names. The initial value is 0. +offsets to generate display-list names. The initial value is 0. @end table -@code{glCallLists} specifies an array of offsets. Display-list names are -generated by adding @var{base} to each offset. Names that reference +@code{glCallLists} specifies an array of offsets. Display-list names +are generated by adding @var{base} to each offset. Names that reference valid display lists are executed; the others are ignored. @code{GL_INVALID_OPERATION} is generated if @code{glListBase} is @@ -14667,7 +14695,7 @@ execution of @code{glEnd}. Replace the current matrix with the identity matrix. @code{glLoadIdentity} replaces the current matrix with the identity -matrix. It is semantically equivalent to calling @code{glLoadMatrix} +matrix. It is semantically equivalent to calling @code{glLoadMatrix} with the identity matrix @@ -14696,12 +14724,12 @@ elements of a @r{4×4} column-major matrix. @end table @code{glLoadMatrix} replaces the current matrix with the one whose -elements are specified by @var{m}. The current matrix is the projection +elements are specified by @var{m}. The current matrix is the projection matrix, modelview matrix, or texture matrix, depending on the current matrix mode (see @code{glMatrixMode}). -The current matrix, M, defines a transformation of coordinates. For -instance, assume M refers to the modelview matrix. If +The current matrix, M, defines a transformation of coordinates. For +instance, assume M refers to the modelview matrix. If @r{@var{v}=(@var{v}⁡[0,],@var{v}⁡[1,]@var{v}⁡[2,]@var{v}⁡[3,])} is the set of object coordinates of a vertex, and @var{m} points to an array of @r{16} single- or double-precision floating-point values @@ -14734,14 +14762,14 @@ Specifies a name that will replace the top value on the name stack. @end table The name stack is used during selection mode to allow sets of rendering -commands to be uniquely identified. It consists of an ordered set of +commands to be uniquely identified. It consists of an ordered set of unsigned integers and is initially empty. @code{glLoadName} causes @var{name} to replace the value on the top of the name stack. The name stack is always empty while the render mode is not -@code{GL_SELECT}. Calls to @code{glLoadName} while the render mode is +@code{GL_SELECT}. Calls to @code{glLoadName} while the render mode is not @code{GL_SELECT} are ignored. @code{GL_INVALID_OPERATION} is generated if @code{glLoadName} is called @@ -14765,12 +14793,12 @@ elements of a @r{4×4} row-major matrix. @end table @code{glLoadTransposeMatrix} replaces the current matrix with the one -whose elements are specified by @var{m}. The current matrix is the +whose elements are specified by @var{m}. The current matrix is the projection matrix, modelview matrix, or texture matrix, depending on the current matrix mode (see @code{glMatrixMode}). -The current matrix, M, defines a transformation of coordinates. For -instance, assume M refers to the modelview matrix. If +The current matrix, M, defines a transformation of coordinates. For +instance, assume M refers to the modelview matrix. If @r{@var{v}=(@var{v}⁡[0,],@var{v}⁡[1,]@var{v}⁡[2,]@var{v}⁡[3,])} is the set of object coordinates of a vertex, and @var{m} points to an array of @r{16} single- or double-precision floating-point values @@ -14802,7 +14830,7 @@ Specify a logical pixel operation for color index rendering. @table @asis @item @var{opcode} -Specifies a symbolic constant that selects a logical operation. The +Specifies a symbolic constant that selects a logical operation. The following symbols are accepted: @code{GL_CLEAR}, @code{GL_SET}, @code{GL_COPY}, @code{GL_COPY_INVERTED}, @code{GL_NOOP}, @code{GL_INVERT}, @code{GL_AND}, @code{GL_NAND}, @code{GL_OR}, @@ -14817,7 +14845,7 @@ applied between the incoming color index or RGBA color and the color index or RGBA color at the corresponding location in the frame buffer. To enable or disable the logical operation, call @code{glEnable} and @code{glDisable} using the symbolic constant @code{GL_COLOR_LOGIC_OP} -for RGBA mode or @code{GL_INDEX_LOGIC_OP} for color index mode. The +for RGBA mode or @code{GL_INDEX_LOGIC_OP} for color index mode. The initial value is disabled for both operations. @@ -14876,10 +14904,10 @@ s | ~d @end table -@var{opcode} is a symbolic constant chosen from the list above. In the +@var{opcode} is a symbolic constant chosen from the list above. In the explanation of the logical operations, @var{s} represents the incoming color index and @var{d} represents the index in the frame buffer. -Standard C-language operators are used. As these bitwise operators +Standard C-language operators are used. As these bitwise operators suggest, the logical operation is applied independently to each bit pair of the source and destination indices or colors. @@ -14914,12 +14942,12 @@ the equations specified by this command. @item @var{stride} Specifies the number of floats or doubles between the beginning of one control point and the beginning of the next one in the data structure -referenced in @var{points}. This allows control points to be embedded in -arbitrary data structures. The only constraint is that the values for a -particular control point must occupy contiguous memory locations. +referenced in @var{points}. This allows control points to be embedded +in arbitrary data structures. The only constraint is that the values +for a particular control point must occupy contiguous memory locations. @item @var{order} -Specifies the number of control points. Must be positive. +Specifies the number of control points. Must be positive. @item @var{points} Specifies a pointer to the array of control points. @@ -14936,10 +14964,10 @@ coordinates, or color. All polynomial or rational polynomial splines of any degree (up to the maximum degree supported by the GL implementation) can be described -using evaluators. These include almost all splines used in computer +using evaluators. These include almost all splines used in computer graphics: B-splines, Bezier curves, Hermite splines, and so on. -Evaluators define curves based on Bernstein polynomials. Define +Evaluators define curves based on Bernstein polynomials. Define @r{@var{p}⁡(@var{u}^,)} as @r{@var{p}⁡(@var{u}^,)=Σ@var{i}=0@var{n}@var{B}_@var{i},^@var{n}⁡(@var{u}^,)⁢@var{R}_@var{i}} @@ -14958,7 +14986,7 @@ Recall that @r{0^0==1} and @r{((@var{n}), (0),,)==1} @code{glMap1} is used to define the basis and to specify what kind of -values are produced. Once defined, a map can be enabled and disabled by +values are produced. Once defined, a map can be enabled and disabled by calling @code{glEnable} and @code{glDisable} with the map name, one of the nine predefined values for @var{target} described below. @code{glEvalCoord1} evaluates the one-dimensional maps that are enabled. @@ -14968,28 +14996,28 @@ functions are evaluated using @r{@var{u}^}, where @var{target} is a symbolic constant that indicates what kind of control points are provided in @var{points}, and what output is generated when -the map is evaluated. It can assume one of nine predefined values: +the map is evaluated. It can assume one of nine predefined values: @table @asis @item @code{GL_MAP1_VERTEX_3} Each control point is three floating-point values representing -@r{@var{x}}, @r{@var{y}}, and @r{@var{z}}. Internal @code{glVertex3} +@r{@var{x}}, @r{@var{y}}, and @r{@var{z}}. Internal @code{glVertex3} commands are generated when the map is evaluated. @item @code{GL_MAP1_VERTEX_4} Each control point is four floating-point values representing -@r{@var{x}}, @r{@var{y}}, @r{@var{z}}, and @r{@var{w}}. Internal +@r{@var{x}}, @r{@var{y}}, @r{@var{z}}, and @r{@var{w}}. Internal @code{glVertex4} commands are generated when the map is evaluated. @item @code{GL_MAP1_INDEX} Each control point is a single floating-point value representing a color -index. Internal @code{glIndex} commands are generated when the map is +index. Internal @code{glIndex} commands are generated when the map is evaluated but the current index is not updated with the value of these @code{glIndex} commands. @item @code{GL_MAP1_COLOR_4} Each control point is four floating-point values representing red, -green, blue, and alpha. Internal @code{glColor4} commands are generated +green, blue, and alpha. Internal @code{glColor4} commands are generated when the map is evaluated but the current color is not updated with the value of these @code{glColor4} commands. @@ -15002,20 +15030,21 @@ evaluated but the current normal is not updated with the value of these @item @code{GL_MAP1_TEXTURE_COORD_1} Each control point is a single floating-point value representing the -@r{@var{s}} texture coordinate. Internal @code{glTexCoord1} commands are -generated when the map is evaluated but the current texture coordinates -are not updated with the value of these @code{glTexCoord} commands. +@r{@var{s}} texture coordinate. Internal @code{glTexCoord1} commands +are generated when the map is evaluated but the current texture +coordinates are not updated with the value of these @code{glTexCoord} +commands. @item @code{GL_MAP1_TEXTURE_COORD_2} Each control point is two floating-point values representing the -@r{@var{s}} and @r{@var{t}} texture coordinates. Internal +@r{@var{s}} and @r{@var{t}} texture coordinates. Internal @code{glTexCoord2} commands are generated when the map is evaluated but the current texture coordinates are not updated with the value of these @code{glTexCoord} commands. @item @code{GL_MAP1_TEXTURE_COORD_3} Each control point is three floating-point values representing the -@r{@var{s}}, @r{@var{t}}, and @r{@var{r}} texture coordinates. Internal +@r{@var{s}}, @r{@var{t}}, and @r{@var{r}} texture coordinates. Internal @code{glTexCoord3} commands are generated when the map is evaluated but the current texture coordinates are not updated with the value of these @code{glTexCoord} commands. @@ -15023,19 +15052,19 @@ the current texture coordinates are not updated with the value of these @item @code{GL_MAP1_TEXTURE_COORD_4} Each control point is four floating-point values representing the @r{@var{s}}, @r{@var{t}}, @r{@var{r}}, and @r{@var{q}} texture -coordinates. Internal @code{glTexCoord4} commands are generated when the -map is evaluated but the current texture coordinates are not updated +coordinates. Internal @code{glTexCoord4} commands are generated when +the map is evaluated but the current texture coordinates are not updated with the value of these @code{glTexCoord} commands. @end table @var{stride}, @var{order}, and @var{points} define the array addressing -for accessing the control points. @var{points} is the location of the +for accessing the control points. @var{points} is the location of the first control point, which occupies one, two, three, or four contiguous -memory locations, depending on which map is being defined. @var{order} -is the number of control points in the array. @var{stride} specifies how -many float or double locations to advance the internal memory pointer to -reach the next control point. +memory locations, depending on which map is being defined. @var{order} +is the number of control points in the array. @var{stride} specifies +how many float or double locations to advance the internal memory +pointer to reach the next control point. @code{GL_INVALID_ENUM} is generated if @var{target} is not an accepted value. @@ -15074,7 +15103,7 @@ accepted. @itemx @var{u2} Specify a linear mapping of @r{@var{u}}, as presented to @code{glEvalCoord2}, to @r{@var{u}^}, one of the two variables that are -evaluated by the equations specified by this command. Initially, +evaluated by the equations specified by this command. Initially, @var{u1} is 0 and @var{u2} is 1. @item @var{ustride} @@ -15084,18 +15113,18 @@ control point @r{@var{R}_@var{ij}} and the beginning of control point the @r{@var{u}} and @r{@var{v}} control point indices, respectively. This allows control points to be embedded in arbitrary data structures. The only constraint is that the values for a particular control point -must occupy contiguous memory locations. The initial value of +must occupy contiguous memory locations. The initial value of @var{ustride} is 0. @item @var{uorder} Specifies the dimension of the control point array in the @r{@var{u}} -axis. Must be positive. The initial value is 1. +axis. Must be positive. The initial value is 1. @item @var{v1} @itemx @var{v2} Specify a linear mapping of @r{@var{v}}, as presented to @code{glEvalCoord2}, to @r{@var{v}^}, one of the two variables that are -evaluated by the equations specified by this command. Initially, +evaluated by the equations specified by this command. Initially, @var{v1} is 0 and @var{v2} is 1. @item @var{vstride} @@ -15105,12 +15134,12 @@ control point @r{@var{R}_@var{ij}} and the beginning of control point the @r{@var{u}} and @r{@var{v}} control point indices, respectively. This allows control points to be embedded in arbitrary data structures. The only constraint is that the values for a particular control point -must occupy contiguous memory locations. The initial value of +must occupy contiguous memory locations. The initial value of @var{vstride} is 0. @item @var{vorder} Specifies the dimension of the control point array in the @r{@var{v}} -axis. Must be positive. The initial value is 1. +axis. Must be positive. The initial value is 1. @item @var{points} Specifies a pointer to the array of control points. @@ -15127,7 +15156,7 @@ coordinates, or color. All polynomial or rational polynomial splines of any degree (up to the maximum degree supported by the GL implementation) can be described -using evaluators. These include almost all surfaces used in computer +using evaluators. These include almost all surfaces used in computer graphics, including B-spline surfaces, NURBS surfaces, Bezier surfaces, and so on. @@ -15155,9 +15184,9 @@ Bernstein polynomial of degree @r{@var{m}} (@var{vorder} = Recall that @r{0^0==1} and @r{((@var{n}), (0),,)==1} @code{glMap2} is used to define the basis and to specify what kind of -values are produced. Once defined, a map can be enabled and disabled by +values are produced. Once defined, a map can be enabled and disabled by calling @code{glEnable} and @code{glDisable} with the map name, one of -the nine predefined values for @var{target}, described below. When +the nine predefined values for @var{target}, described below. When @code{glEvalCoord2} presents values @r{@var{u}} and @r{@var{v}}, the bivariate Bernstein polynomials are evaluated using @r{@var{u}^} and @r{@var{v}^}, where @@ -15168,28 +15197,28 @@ bivariate Bernstein polynomials are evaluated using @r{@var{u}^} and @var{target} is a symbolic constant that indicates what kind of control points are provided in @var{points}, and what output is generated when -the map is evaluated. It can assume one of nine predefined values: +the map is evaluated. It can assume one of nine predefined values: @table @asis @item @code{GL_MAP2_VERTEX_3} Each control point is three floating-point values representing -@r{@var{x}}, @r{@var{y}}, and @r{@var{z}}. Internal @code{glVertex3} +@r{@var{x}}, @r{@var{y}}, and @r{@var{z}}. Internal @code{glVertex3} commands are generated when the map is evaluated. @item @code{GL_MAP2_VERTEX_4} Each control point is four floating-point values representing -@r{@var{x}}, @r{@var{y}}, @r{@var{z}}, and @r{@var{w}}. Internal +@r{@var{x}}, @r{@var{y}}, @r{@var{z}}, and @r{@var{w}}. Internal @code{glVertex4} commands are generated when the map is evaluated. @item @code{GL_MAP2_INDEX} Each control point is a single floating-point value representing a color -index. Internal @code{glIndex} commands are generated when the map is +index. Internal @code{glIndex} commands are generated when the map is evaluated but the current index is not updated with the value of these @code{glIndex} commands. @item @code{GL_MAP2_COLOR_4} Each control point is four floating-point values representing red, -green, blue, and alpha. Internal @code{glColor4} commands are generated +green, blue, and alpha. Internal @code{glColor4} commands are generated when the map is evaluated but the current color is not updated with the value of these @code{glColor4} commands. @@ -15202,20 +15231,21 @@ evaluated but the current normal is not updated with the value of these @item @code{GL_MAP2_TEXTURE_COORD_1} Each control point is a single floating-point value representing the -@r{@var{s}} texture coordinate. Internal @code{glTexCoord1} commands are -generated when the map is evaluated but the current texture coordinates -are not updated with the value of these @code{glTexCoord} commands. +@r{@var{s}} texture coordinate. Internal @code{glTexCoord1} commands +are generated when the map is evaluated but the current texture +coordinates are not updated with the value of these @code{glTexCoord} +commands. @item @code{GL_MAP2_TEXTURE_COORD_2} Each control point is two floating-point values representing the -@r{@var{s}} and @r{@var{t}} texture coordinates. Internal +@r{@var{s}} and @r{@var{t}} texture coordinates. Internal @code{glTexCoord2} commands are generated when the map is evaluated but the current texture coordinates are not updated with the value of these @code{glTexCoord} commands. @item @code{GL_MAP2_TEXTURE_COORD_3} Each control point is three floating-point values representing the -@r{@var{s}}, @r{@var{t}}, and @r{@var{r}} texture coordinates. Internal +@r{@var{s}}, @r{@var{t}}, and @r{@var{r}} texture coordinates. Internal @code{glTexCoord3} commands are generated when the map is evaluated but the current texture coordinates are not updated with the value of these @code{glTexCoord} commands. @@ -15223,21 +15253,21 @@ the current texture coordinates are not updated with the value of these @item @code{GL_MAP2_TEXTURE_COORD_4} Each control point is four floating-point values representing the @r{@var{s}}, @r{@var{t}}, @r{@var{r}}, and @r{@var{q}} texture -coordinates. Internal @code{glTexCoord4} commands are generated when the -map is evaluated but the current texture coordinates are not updated +coordinates. Internal @code{glTexCoord4} commands are generated when +the map is evaluated but the current texture coordinates are not updated with the value of these @code{glTexCoord} commands. @end table @var{ustride}, @var{uorder}, @var{vstride}, @var{vorder}, and @var{points} define the array addressing for accessing the control -points. @var{points} is the location of the first control point, which +points. @var{points} is the location of the first control point, which occupies one, two, three, or four contiguous memory locations, depending -on which map is being defined. There are @r{@var{uorder}×@var{vorder}} -control points in the array. @var{ustride} specifies how many float or +on which map is being defined. There are @r{@var{uorder}×@var{vorder}} +control points in the array. @var{ustride} specifies how many float or double locations are skipped to advance the internal memory pointer from control point @r{@var{R}_@var{i}⁢@var{j},} to control point -@r{@var{R}_(@var{i}+1,)⁢@var{j},}. @var{vstride} specifies how many +@r{@var{R}_(@var{i}+1,)⁢@var{j},}. @var{vstride} specifies how many float or double locations are skipped to advance the internal memory pointer from control point @r{@var{R}_@var{i}⁢@var{j},} to control point @r{@var{R}_@var{i}⁡(@var{j}+1,),}. @@ -15270,30 +15300,30 @@ Map a buffer object's data store. @table @asis @item @var{target} -Specifies the target buffer object being mapped. The symbolic constant +Specifies the target buffer object being mapped. The symbolic constant must be @code{GL_ARRAY_BUFFER}, @code{GL_ELEMENT_ARRAY_BUFFER}, @code{GL_PIXEL_PACK_BUFFER}, or @code{GL_PIXEL_UNPACK_BUFFER}. @item @var{access} Specifies the access policy, indicating whether it will be possible to read from, write to, or both read from and write to the buffer object's -mapped data store. The symbolic constant must be @code{GL_READ_ONLY}, +mapped data store. The symbolic constant must be @code{GL_READ_ONLY}, @code{GL_WRITE_ONLY}, or @code{GL_READ_WRITE}. @end table @code{glMapBuffer} maps to the client's address space the entire data -store of the buffer object currently bound to @var{target}. The data can -then be directly read and/or written relative to the returned pointer, -depending on the specified @var{access} policy. If the GL is unable to -map the buffer object's data store, @code{glMapBuffer} generates an -error and returns @code{NULL}. This may occur for system-specific -reasons, such as low virtual memory availability. +store of the buffer object currently bound to @var{target}. The data +can then be directly read and/or written relative to the returned +pointer, depending on the specified @var{access} policy. If the GL is +unable to map the buffer object's data store, @code{glMapBuffer} +generates an error and returns @code{NULL}. This may occur for +system-specific reasons, such as low virtual memory availability. If a mapped data store is accessed in a way inconsistent with the specified @var{access} policy, no error is generated, but performance may be negatively impacted and system errors, including program -termination, may result. Unlike the @var{usage} parameter of +termination, may result. Unlike the @var{usage} parameter of @code{glBufferData}, @var{access} is not a hint, and does in fact constrain the usage of the mapped data store on some GL implementations. In order to achieve the highest performance available, a buffer object's @@ -15301,15 +15331,15 @@ data store should be used in ways consistent with both its specified @var{usage} and @var{access} parameters. A mapped data store must be unmapped with @code{glUnmapBuffer} before -its buffer object is used. Otherwise an error will be generated by any +its buffer object is used. Otherwise an error will be generated by any GL command that attempts to dereference the buffer object's data store. When a data store is unmapped, the pointer to its data store becomes -invalid. @code{glUnmapBuffer} returns @code{GL_TRUE} unless the data +invalid. @code{glUnmapBuffer} returns @code{GL_TRUE} unless the data store contents have become corrupt during the time the data store was -mapped. This can occur for system-specific reasons that affect the -availability of graphics memory, such as screen mode changes. In such +mapped. This can occur for system-specific reasons that affect the +availability of graphics memory, such as screen mode changes. In such situations, @code{GL_FALSE} is returned and the data store contents are -undefined. An application must detect this rare condition and +undefined. An application must detect this rare condition and reinitialize the data store. A buffer object's mapped data store is automatically unmapped when the @@ -15324,7 +15354,7 @@ buffer object is deleted or its data store is recreated with @code{GL_READ_ONLY}, @code{GL_WRITE_ONLY}, or @code{GL_READ_WRITE}. @code{GL_OUT_OF_MEMORY} is generated when @code{glMapBuffer} is executed -if the GL is unable to map the buffer object's data store. This may +if the GL is unable to map the buffer object's data store. This may occur for a variety of system-specific reasons, such as the absence of sufficient remaining virtual memory. @@ -15352,7 +15382,7 @@ Define a one- or two-dimensional mesh. @table @asis @item @var{un} Specifies the number of partitions in the grid range interval [@var{u1}, -@var{u2}]. Must be positive. +@var{u2}]. Must be positive. @item @var{u1} @itemx @var{u2} @@ -15379,22 +15409,22 @@ specified by @code{glMap1} and @code{glMap2}. @code{glMapGrid1} and @code{glMapGrid2} specify the linear grid mappings between the @r{@var{i}} (or @r{@var{i}} and @r{@var{j}}) integer grid coordinates, to the @r{@var{u}} (or @r{@var{u}} and @r{@var{v}}) -floating-point evaluation map coordinates. See @code{glMap1} and +floating-point evaluation map coordinates. See @code{glMap1} and @code{glMap2} for details of how @r{@var{u}} and @r{@var{v}} coordinates are evaluated. @code{glMapGrid1} specifies a single linear mapping such that integer grid coordinate 0 maps exactly to @var{u1}, and integer grid coordinate -@var{un} maps exactly to @var{u2}. All other integer grid coordinates +@var{un} maps exactly to @var{u2}. All other integer grid coordinates @r{@var{i}} are mapped so that @r{@var{u}=@var{i}⁡(@var{u2}-@var{u1},)/@var{un}+@var{u1}} -@code{glMapGrid2} specifies two such linear mappings. One maps integer +@code{glMapGrid2} specifies two such linear mappings. One maps integer grid coordinate @r{@var{i}=0} exactly to @var{u1}, and integer grid -coordinate @r{@var{i}=@var{un}} exactly to @var{u2}. The other maps +coordinate @r{@var{i}=@var{un}} exactly to @var{u2}. The other maps integer grid coordinate @r{@var{j}=0} exactly to @var{v1}, and integer -grid coordinate @r{@var{j}=@var{vn}} exactly to @var{v2}. Other integer +grid coordinate @r{@var{j}=@var{vn}} exactly to @var{v2}. Other integer grid coordinates @r{@var{i}} and @r{@var{j}} are mapped such that @r{@var{u}=@var{i}⁡(@var{u2}-@var{u1},)/@var{un}+@var{u1}} @@ -15421,82 +15451,82 @@ Specify material parameters for the lighting model. @table @asis @item @var{face} -Specifies which face or faces are being updated. Must be one of +Specifies which face or faces are being updated. Must be one of @code{GL_FRONT}, @code{GL_BACK}, or @code{GL_FRONT_AND_BACK}. @item @var{pname} Specifies the single-valued material parameter of the face or faces that -is being updated. Must be @code{GL_SHININESS}. +is being updated. Must be @code{GL_SHININESS}. @item @var{param} Specifies the value that parameter @code{GL_SHININESS} will be set to. @end table -@code{glMaterial} assigns values to material parameters. There are two -matched sets of material parameters. One, the @var{front-facing} set, is -used to shade points, lines, bitmaps, and all polygons (when two-sided -lighting is disabled), or just front-facing polygons (when two-sided -lighting is enabled). The other set, @var{back-facing}, is used to shade -back-facing polygons only when two-sided lighting is enabled. Refer to -the @code{glLightModel} reference page for details concerning one- and -two-sided lighting calculations. +@code{glMaterial} assigns values to material parameters. There are two +matched sets of material parameters. One, the @var{front-facing} set, +is used to shade points, lines, bitmaps, and all polygons (when +two-sided lighting is disabled), or just front-facing polygons (when +two-sided lighting is enabled). The other set, @var{back-facing}, is +used to shade back-facing polygons only when two-sided lighting is +enabled. Refer to the @code{glLightModel} reference page for details +concerning one- and two-sided lighting calculations. -@code{glMaterial} takes three arguments. The first, @var{face}, +@code{glMaterial} takes three arguments. The first, @var{face}, specifies whether the @code{GL_FRONT} materials, the @code{GL_BACK} materials, or both @code{GL_FRONT_AND_BACK} materials will be modified. The second, @var{pname}, specifies which of several parameters in one or -both sets will be modified. The third, @var{params}, specifies what +both sets will be modified. The third, @var{params}, specifies what value or values will be assigned to the specified parameter. Material parameters are used in the lighting equation that is optionally -applied to each vertex. The equation is discussed in the -@code{glLightModel} reference page. The parameters that can be specified -using @code{glMaterial}, and their interpretations by the lighting -equation, are as follows: +applied to each vertex. The equation is discussed in the +@code{glLightModel} reference page. The parameters that can be +specified using @code{glMaterial}, and their interpretations by the +lighting equation, are as follows: @table @asis @item @code{GL_AMBIENT} @var{params} contains four integer or floating-point values that specify -the ambient RGBA reflectance of the material. Integer values are mapped +the ambient RGBA reflectance of the material. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to @r{-1.0}. -Floating-point values are mapped directly. Neither integer nor -floating-point values are clamped. The initial ambient reflectance for +Floating-point values are mapped directly. Neither integer nor +floating-point values are clamped. The initial ambient reflectance for both front- and back-facing materials is (0.2, 0.2, 0.2, 1.0). @item @code{GL_DIFFUSE} @var{params} contains four integer or floating-point values that specify -the diffuse RGBA reflectance of the material. Integer values are mapped +the diffuse RGBA reflectance of the material. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to @r{-1.0}. -Floating-point values are mapped directly. Neither integer nor -floating-point values are clamped. The initial diffuse reflectance for +Floating-point values are mapped directly. Neither integer nor +floating-point values are clamped. The initial diffuse reflectance for both front- and back-facing materials is (0.8, 0.8, 0.8, 1.0). @item @code{GL_SPECULAR} @var{params} contains four integer or floating-point values that specify -the specular RGBA reflectance of the material. Integer values are mapped -linearly such that the most positive representable value maps to 1.0, -and the most negative representable value maps to @r{-1.0}. -Floating-point values are mapped directly. Neither integer nor -floating-point values are clamped. The initial specular reflectance for +the specular RGBA reflectance of the material. Integer values are +mapped linearly such that the most positive representable value maps to +1.0, and the most negative representable value maps to @r{-1.0}. +Floating-point values are mapped directly. Neither integer nor +floating-point values are clamped. The initial specular reflectance for both front- and back-facing materials is (0, 0, 0, 1). @item @code{GL_EMISSION} @var{params} contains four integer or floating-point values that specify -the RGBA emitted light intensity of the material. Integer values are +the RGBA emitted light intensity of the material. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to @r{-1.0}. -Floating-point values are mapped directly. Neither integer nor -floating-point values are clamped. The initial emission intensity for +Floating-point values are mapped directly. Neither integer nor +floating-point values are clamped. The initial emission intensity for both front- and back-facing materials is (0, 0, 0, 1). @item @code{GL_SHININESS} @var{params} is a single integer or floating-point value that specifies -the RGBA specular exponent of the material. Integer and floating-point -values are mapped directly. Only values in the range @r{[0,128]} are -accepted. The initial specular exponent for both front- and back-facing +the RGBA specular exponent of the material. Integer and floating-point +values are mapped directly. Only values in the range @r{[0,128]} are +accepted. The initial specular exponent for both front- and back-facing materials is 0. @item @code{GL_AMBIENT_AND_DIFFUSE} @@ -15505,9 +15535,9 @@ values, once with @code{GL_AMBIENT} and once with @code{GL_DIFFUSE}. @item @code{GL_COLOR_INDEXES} @var{params} contains three integer or floating-point values specifying -the color indices for ambient, diffuse, and specular lighting. These +the color indices for ambient, diffuse, and specular lighting. These three values, and @code{GL_SHININESS}, are the only material values used -by the color index mode lighting equation. Refer to the +by the color index mode lighting equation. Refer to the @code{glLightModel} reference page for a discussion of color index lighting. @@ -15527,14 +15557,14 @@ Specify which matrix is the current matrix. @table @asis @item @var{mode} Specifies which matrix stack is the target for subsequent matrix -operations. Three values are accepted: @code{GL_MODELVIEW}, -@code{GL_PROJECTION}, and @code{GL_TEXTURE}. The initial value is -@code{GL_MODELVIEW}. Additionally, if the @code{ARB_imaging} extension +operations. Three values are accepted: @code{GL_MODELVIEW}, +@code{GL_PROJECTION}, and @code{GL_TEXTURE}. The initial value is +@code{GL_MODELVIEW}. Additionally, if the @code{ARB_imaging} extension is supported, @code{GL_COLOR} is also accepted. @end table -@code{glMatrixMode} sets the current matrix mode. @var{mode} can assume +@code{glMatrixMode} sets the current matrix mode. @var{mode} can assume one of four values: @table @asis @@ -15553,7 +15583,7 @@ Applies subsequent matrix operations to the color matrix stack. @end table To find out which matrix stack is currently the target of all matrix -operations, call @code{glGet} with argument @code{GL_MATRIX_MODE}. The +operations, call @code{glGet} with argument @code{GL_MATRIX_MODE}. The initial value is @code{GL_MODELVIEW}. @code{GL_INVALID_ENUM} is generated if @var{mode} is not an accepted @@ -15570,11 +15600,11 @@ Define minmax table. @table @asis @item @var{target} -The minmax table whose parameters are to be set. Must be +The minmax table whose parameters are to be set. Must be @code{GL_MINMAX}. @item @var{internalformat} -The format of entries in the minmax table. Must be one of +The format of entries in the minmax table. Must be one of @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE4}, @code{GL_LUMINANCE8}, @code{GL_LUMINANCE12}, @code{GL_LUMINANCE16}, @@ -15589,31 +15619,31 @@ The format of entries in the minmax table. Must be one of @item @var{sink} If @code{GL_TRUE}, pixels will be consumed by the minmax process and no -drawing or texture loading will take place. If @code{GL_FALSE}, pixels +drawing or texture loading will take place. If @code{GL_FALSE}, pixels will proceed to the final conversion process after minmax. @end table When @code{GL_MINMAX} is enabled, the RGBA components of incoming pixels are compared to the minimum and maximum values for each component, which -are stored in the two-element minmax table. (The first element stores +are stored in the two-element minmax table. (The first element stores the minima, and the second element stores the maxima.) If a pixel component is greater than the corresponding component in the maximum element, then the maximum element is updated with the pixel component -value. If a pixel component is less than the corresponding component in +value. If a pixel component is less than the corresponding component in the minimum element, then the minimum element is updated with the pixel -component value. (In both cases, if the internal format of the minmax +component value. (In both cases, if the internal format of the minmax table includes luminance, then the R color component of incoming pixels is used for comparison.) The contents of the minmax table may be -retrieved at a later time by calling @code{glGetMinmax}. The minmax +retrieved at a later time by calling @code{glGetMinmax}. The minmax operation is enabled or disabled by calling @code{glEnable} or @code{glDisable}, respectively, with an argument of @code{GL_MINMAX}. @code{glMinmax} redefines the current minmax table to have entries of -the format specified by @var{internalformat}. The maximum element is +the format specified by @var{internalformat}. The maximum element is initialized with the smallest possible component values, and the minimum -element is initialized with the largest possible component values. The -values in the previous minmax table, if any, are lost. If @var{sink} is +element is initialized with the largest possible component values. The +values in the previous minmax table, if any, are lost. If @var{sink} is @code{GL_TRUE}, then pixels are discarded after minmax; no further processing of the pixels takes place, and no drawing, texture loading, or pixel readback will result. @@ -15637,7 +15667,7 @@ Render multiple sets of primitives from array data. @table @asis @item @var{mode} -Specifies what kind of primitives to render. Symbolic constants +Specifies what kind of primitives to render. Symbolic constants @code{GL_POINTS}, @code{GL_LINE_STRIP}, @code{GL_LINE_LOOP}, @code{GL_LINES}, @code{GL_TRIANGLE_STRIP}, @code{GL_TRIANGLE_FAN}, @code{GL_TRIANGLES}, @code{GL_QUAD_STRIP}, @code{GL_QUADS}, and @@ -15655,7 +15685,7 @@ Specifies the size of the first and count @end table @code{glMultiDrawArrays} specifies multiple sets of geometric primitives -with very few subroutine calls. Instead of calling a GL procedure to +with very few subroutine calls. Instead of calling a GL procedure to pass each individual vertex, normal, texture coordinate, edge flag, or color, you can prespecify separate arrays of vertices, normals, and colors and use them to construct a sequence of primitives with a single @@ -15667,15 +15697,15 @@ instead. When @code{glMultiDrawArrays} is called, it uses @var{count} sequential elements from each enabled array to construct a sequence of geometric -primitives, beginning with element @var{first}. @var{mode} specifies +primitives, beginning with element @var{first}. @var{mode} specifies what kind of primitives are constructed, and how the array elements -construct those primitives. If @code{GL_VERTEX_ARRAY} is not enabled, no -geometric primitives are generated. +construct those primitives. If @code{GL_VERTEX_ARRAY} is not enabled, +no geometric primitives are generated. Vertex attributes that are modified by @code{glMultiDrawArrays} have an -unspecified value after @code{glMultiDrawArrays} returns. For example, +unspecified value after @code{glMultiDrawArrays} returns. For example, if @code{GL_COLOR_ARRAY} is enabled, the value of the current color is -undefined after @code{glMultiDrawArrays} executes. Attributes that +undefined after @code{glMultiDrawArrays} executes. Attributes that aren't modified remain well defined. @code{GL_INVALID_ENUM} is generated if @var{mode} is not an accepted @@ -15699,7 +15729,7 @@ elements. @table @asis @item @var{mode} -Specifies what kind of primitives to render. Symbolic constants +Specifies what kind of primitives to render. Symbolic constants @code{GL_POINTS}, @code{GL_LINE_STRIP}, @code{GL_LINE_LOOP}, @code{GL_LINES}, @code{GL_TRIANGLE_STRIP}, @code{GL_TRIANGLE_FAN}, @code{GL_TRIANGLES}, @code{GL_QUAD_STRIP}, @code{GL_QUADS}, and @@ -15709,7 +15739,7 @@ Specifies what kind of primitives to render. Symbolic constants Points to an array of the elements counts. @item @var{type} -Specifies the type of the values in @var{indices}. Must be one of +Specifies the type of the values in @var{indices}. Must be one of @code{GL_UNSIGNED_BYTE}, @code{GL_UNSIGNED_SHORT}, or @code{GL_UNSIGNED_INT}. @@ -15722,7 +15752,7 @@ Specifies the size of the @var{count} array. @end table @code{glMultiDrawElements} specifies multiple sets of geometric -primitives with very few subroutine calls. Instead of calling a GL +primitives with very few subroutine calls. Instead of calling a GL function to pass each individual vertex, normal, texture coordinate, edge flag, or color, you can prespecify separate arrays of vertices, normals, and so on, and use them to construct a sequence of primitives @@ -15733,9 +15763,9 @@ with a single call to @code{glMultiDrawElements}. elements are specified. Vertex attributes that are modified by @code{glMultiDrawElements} have -an unspecified value after @code{glMultiDrawElements} returns. For +an unspecified value after @code{glMultiDrawElements} returns. For example, if @code{GL_COLOR_ARRAY} is enabled, the value of the current -color is undefined after @code{glMultiDrawElements} executes. Attributes +color is undefined after @code{glMultiDrawElements} executes. Attributes that aren't modified maintain their previous values. @code{GL_INVALID_ENUM} is generated if @var{mode} is not an accepted @@ -15789,9 +15819,9 @@ Set the current texture coordinates. @table @asis @item @var{target} -Specifies the texture unit whose coordinates should be modified. The +Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at -least two. Symbolic constant must be one of +least two. Symbolic constant must be one of @code{GL_TEXTURE}@r{@var{i}}, where i ranges from 0 to @code{GL_MAX_TEXTURE_COORDS} - 1, which is an implementation-dependent value. @@ -15801,21 +15831,21 @@ value. @itemx @var{r} @itemx @var{q} Specify @var{s}, @var{t}, @var{r}, and @var{q} texture coordinates for -@var{target} texture unit. Not all parameters are present in all forms +@var{target} texture unit. Not all parameters are present in all forms of the command. @end table @code{glMultiTexCoord} specifies texture coordinates in one, two, three, -or four dimensions. @code{glMultiTexCoord1} sets the current texture +or four dimensions. @code{glMultiTexCoord1} sets the current texture coordinates to @r{(@var{s},001)}; a call to @code{glMultiTexCoord2} sets -them to @r{(@var{s},@var{t}01)}. Similarly, @code{glMultiTexCoord3} +them to @r{(@var{s},@var{t}01)}. Similarly, @code{glMultiTexCoord3} specifies the texture coordinates as @r{(@var{s},@var{t}@var{r}1)}, and @code{glMultiTexCoord4} defines all four components explicitly as @r{(@var{s},@var{t}@var{r}@var{q})}. The current texture coordinates are part of the data that is associated -with each vertex and with the current raster position. Initially, the +with each vertex and with the current raster position. Initially, the values for @r{(@var{s},@var{t}@var{r}@var{q})} are @r{(0,001)}. @@ -15837,7 +15867,7 @@ Points to 16 consecutive values that are used as the elements of a using @var{m}, and replaces the current matrix with the product. The current matrix is determined by the current matrix mode (see -@code{glMatrixMode}). It is either the projection matrix, modelview +@code{glMatrixMode}). It is either the projection matrix, modelview matrix, or the texture matrix. @code{GL_INVALID_OPERATION} is generated if @code{glMultMatrix} is @@ -15862,7 +15892,7 @@ specified using @var{m}, and replaces the current matrix with the product. The current matrix is determined by the current matrix mode (see -@code{glMatrixMode}). It is either the projection matrix, modelview +@code{glMatrixMode}). It is either the projection matrix, modelview matrix, or the texture matrix. @code{GL_INVALID_OPERATION} is generated if @code{glMultTransposeMatrix} @@ -15886,14 +15916,14 @@ Specifies the compilation mode, which can be @code{GL_COMPILE} or @end table Display lists are groups of GL commands that have been stored for -subsequent execution. Display lists are created with @code{glNewList}. +subsequent execution. Display lists are created with @code{glNewList}. All subsequent commands are placed in the display list, in the order issued, until @code{glEndList} is called. -@code{glNewList} has two arguments. The first argument, @var{list}, is a -positive integer that becomes the unique name for the display list. +@code{glNewList} has two arguments. The first argument, @var{list}, is +a positive integer that becomes the unique name for the display list. Names can be created and reserved with @code{glGenLists} and tested for -uniqueness with @code{glIsList}. The second argument, @var{mode}, is a +uniqueness with @code{glIsList}. The second argument, @var{mode}, is a symbolic constant that can assume one of two values: @table @asis @@ -15906,7 +15936,7 @@ Commands are executed as they are compiled into the display list. @end table Certain commands are not compiled into the display list but are executed -immediately, regardless of the display-list mode. These commands are +immediately, regardless of the display-list mode. These commands are @code{glAreTexturesResident}, @code{glColorPointer}, @code{glDeleteLists}, @code{glDeleteTextures}, @code{glDisableClientState}, @code{glEdgeFlagPointer}, @@ -15937,9 +15967,9 @@ into display lists, but executed immediately. When @code{glEndList} is encountered, the display-list definition is completed by associating the list with the unique name @var{list} -(specified in the @code{glNewList} command). If a display list with name -@var{list} already exists, it is replaced only when @code{glEndList} is -called. +(specified in the @code{glNewList} command). If a display list with +name @var{list} already exists, it is replaced only when +@code{glEndList} is called. @code{GL_INVALID_VALUE} is generated if @var{list} is 0. @@ -15955,10 +15985,10 @@ while a display list is being defined. the corresponding execution of @code{glEnd}. @code{GL_OUT_OF_MEMORY} is generated if there is insufficient memory to -compile the display list. If the GL version is 1.1 or greater, no change -is made to the previous contents of the display list, if any, and no -other change is made to the GL state. (It is as if no attempt had been -made to create the new display list.) +compile the display list. If the GL version is 1.1 or greater, no +change is made to the previous contents of the display list, if any, and +no other change is made to the GL state. (It is as if no attempt had +been made to create the new display list.) @end deftypefun @@ -15967,24 +15997,24 @@ Define an array of normals. @table @asis @item @var{type} -Specifies the data type of each coordinate in the array. Symbolic +Specifies the data type of each coordinate in the array. Symbolic constants @code{GL_BYTE}, @code{GL_SHORT}, @code{GL_INT}, -@code{GL_FLOAT}, and @code{GL_DOUBLE} are accepted. The initial value is -@code{GL_FLOAT}. +@code{GL_FLOAT}, and @code{GL_DOUBLE} are accepted. The initial value +is @code{GL_FLOAT}. @item @var{stride} -Specifies the byte offset between consecutive normals. If @var{stride} -is 0, the normals are understood to be tightly packed in the array. The +Specifies the byte offset between consecutive normals. If @var{stride} +is 0, the normals are understood to be tightly packed in the array. The initial value is 0. @item @var{pointer} Specifies a pointer to the first coordinate of the first normal in the -array. The initial value is 0. +array. The initial value is 0. @end table @code{glNormalPointer} specifies the location and data format of an -array of normals to use when rendering. @var{type} specifies the data +array of normals to use when rendering. @var{type} specifies the data type of each normal coordinate, and @var{stride} specifies the byte stride from one normal to the next, allowing vertices and attributes to be packed into a single array or stored in separate arrays. @@ -15994,7 +16024,7 @@ be packed into a single array or stored in separate arrays. If a non-zero named buffer object is bound to the @code{GL_ARRAY_BUFFER} target (see @code{glBindBuffer}) while a normal array is specified, @var{pointer} is treated as a byte offset into the buffer object's data -store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) +store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) is saved as normal vertex array client-side state (@code{GL_NORMAL_ARRAY_BUFFER_BINDING}). @@ -16004,7 +16034,7 @@ vertex array buffer object binding. To enable and disable the normal array, call @code{glEnableClientState} and @code{glDisableClientState} with the argument -@code{GL_NORMAL_ARRAY}. If enabled, the normal array is used when +@code{GL_NORMAL_ARRAY}. If enabled, the normal array is used when @code{glDrawArrays}, @code{glMultiDrawArrays}, @code{glDrawElements}, @code{glMultiDrawElements}, @code{glDrawRangeElements}, or @code{glArrayElement} is called. @@ -16033,7 +16063,7 @@ Set the current normal vector. @itemx @var{ny} @itemx @var{nz} Specify the @r{@var{x}}, @r{@var{y}}, and @r{@var{z}} coordinates of the -new current normal. The initial value of the current normal is the unit +new current normal. The initial value of the current normal is the unit vector, (0, 0, 1). @@ -16041,21 +16071,21 @@ vector, (0, 0, 1). @end table The current normal is set to the given coordinates whenever -@code{glNormal} is issued. Byte, short, or integer arguments are +@code{glNormal} is issued. Byte, short, or integer arguments are converted to floating-point format with a linear mapping that maps the most positive representable integer value to 1.0 and the most negative representable integer value to @r{-1.0}. -Normals specified with @code{glNormal} need not have unit length. If +Normals specified with @code{glNormal} need not have unit length. If @code{GL_NORMALIZE} is enabled, then normals of any length specified -with @code{glNormal} are normalized after transformation. If +with @code{glNormal} are normalized after transformation. If @code{GL_RESCALE_NORMAL} is enabled, normals are scaled by a scaling -factor derived from the modelview matrix. @code{GL_RESCALE_NORMAL} +factor derived from the modelview matrix. @code{GL_RESCALE_NORMAL} requires that the originally specified normals were of unit length, and that the modelview matrix contain only uniform scales for proper -results. To enable and disable normalization, call @code{glEnable} and +results. To enable and disable normalization, call @code{glEnable} and @code{glDisable} with either @code{GL_NORMALIZE} or -@code{GL_RESCALE_NORMAL}. Normalization is initially disabled. +@code{GL_RESCALE_NORMAL}. Normalization is initially disabled. @end deftypefun @@ -16080,7 +16110,7 @@ These values are negative if the plane is to be behind the viewer. @end table @code{glOrtho} describes a transformation that produces a parallel -projection. The current matrix (see @code{glMatrixMode}) is multiplied +projection. The current matrix (see @code{glMatrixMode}) is multiplied by this matrix and the result replaces the current matrix, as if @code{glMultMatrix} were called with the following matrix as its argument: @@ -16097,7 +16127,7 @@ Typically, the matrix mode is @code{GL_PROJECTION}, and @r{(@var{right},@var{top}-@var{nearVal})} specify the points on the near clipping plane that are mapped to the lower left and upper right corners of the window, respectively, assuming that the eye is located at (0, 0, -0). @r{-@var{farVal}} specifies the location of the far clipping plane. +0). @r{-@var{farVal}} specifies the location of the far clipping plane. Both @var{nearVal} and @var{farVal} can be either positive or negative. Use @code{glPushMatrix} and @code{glPopMatrix} to save and restore the @@ -16124,17 +16154,17 @@ Specifies a marker value to be placed in the feedback buffer following a -Feedback is a GL render mode. The mode is selected by calling -@code{glRenderMode} with @code{GL_FEEDBACK}. When the GL is in feedback -mode, no pixels are produced by rasterization. Instead, information +Feedback is a GL render mode. The mode is selected by calling +@code{glRenderMode} with @code{GL_FEEDBACK}. When the GL is in feedback +mode, no pixels are produced by rasterization. Instead, information about primitives that would have been rasterized is fed back to the -application using the GL. See the @code{glFeedbackBuffer} reference page -for a description of the feedback buffer and the values in it. +application using the GL. See the @code{glFeedbackBuffer} reference +page for a description of the feedback buffer and the values in it. @code{glPassThrough} inserts a user-defined marker in the feedback -buffer when it is executed in feedback mode. @var{token} is returned as +buffer when it is executed in feedback mode. @var{token} is returned as if it were a primitive; it is indicated with its own unique identifying -value: @code{GL_PASS_THROUGH_TOKEN}. The order of @code{glPassThrough} +value: @code{GL_PASS_THROUGH_TOKEN}. The order of @code{glPassThrough} commands with respect to the specification of graphics primitives is maintained. @@ -16151,7 +16181,7 @@ Set up pixel transfer maps. @table @asis @item @var{map} -Specifies a symbolic map name. Must be one of the following: +Specifies a symbolic map name. Must be one of the following: @code{GL_PIXEL_MAP_I_TO_I}, @code{GL_PIXEL_MAP_S_TO_S}, @code{GL_PIXEL_MAP_I_TO_R}, @code{GL_PIXEL_MAP_I_TO_G}, @code{GL_PIXEL_MAP_I_TO_B}, @code{GL_PIXEL_MAP_I_TO_A}, @@ -16172,13 +16202,13 @@ Specifies an array of @var{mapsize} values. @code{glCopyTexSubImage3D}, @code{glDrawPixels}, @code{glReadPixels}, @code{glTexImage1D}, @code{glTexImage2D}, @code{glTexImage3D}, @code{glTexSubImage1D}, @code{glTexSubImage2D}, and -@code{glTexSubImage3D}. Additionally, if the @code{ARB_imaging} subset +@code{glTexSubImage3D}. Additionally, if the @code{ARB_imaging} subset is supported, the routines @code{glColorTable}, @code{glColorSubTable}, @code{glConvolutionFilter1D}, @code{glConvolutionFilter2D}, -@code{glHistogram}, @code{glMinmax}, and @code{glSeparableFilter2D}. Use +@code{glHistogram}, @code{glMinmax}, and @code{glSeparableFilter2D}. Use of these maps is described completely in the @code{glPixelTransfer} reference page, and partly in the reference pages for the pixel and -texture image commands. Only the specification of the maps is described +texture image commands. Only the specification of the maps is described in this reference page. @var{map} is a symbolic map name, indicating one of ten maps to set. @@ -16226,13 +16256,13 @@ Maps alpha components to alpha components. @end table The entries in a map can be specified as single-precision floating-point -numbers, unsigned short integers, or unsigned int integers. Maps that +numbers, unsigned short integers, or unsigned int integers. Maps that store color component values (all but @code{GL_PIXEL_MAP_I_TO_I} and @code{GL_PIXEL_MAP_S_TO_S}) retain their values in floating-point -format, with unspecified mantissa and exponent sizes. Floating-point +format, with unspecified mantissa and exponent sizes. Floating-point values specified by @code{glPixelMapfv} are converted directly to the internal floating-point format of these maps, then clamped to the range -[0,1]. Unsigned integer values specified by @code{glPixelMapusv} and +[0,1]. Unsigned integer values specified by @code{glPixelMapusv} and @code{glPixelMapuiv} are converted linearly such that the largest representable integer maps to 1.0, and 0 maps to 0.0. @@ -16240,17 +16270,17 @@ Maps that store indices, @code{GL_PIXEL_MAP_I_TO_I} and @code{GL_PIXEL_MAP_S_TO_S}, retain their values in fixed-point format, with an unspecified number of bits to the right of the binary point. Floating-point values specified by @code{glPixelMapfv} are converted -directly to the internal fixed-point format of these maps. Unsigned +directly to the internal fixed-point format of these maps. Unsigned integer values specified by @code{glPixelMapusv} and @code{glPixelMapuiv} specify integer values, with all 0's to the right of the binary point. The following table shows the initial sizes and values for each of the -maps. Maps that are indexed by either color or stencil indices must have -@var{mapsize} = @r{2^@var{n}} for some @r{@var{n}} or the results are -undefined. The maximum allowable size for each map depends on the +maps. Maps that are indexed by either color or stencil indices must +have @var{mapsize} = @r{2^@var{n}} for some @r{@var{n}} or the results +are undefined. The maximum allowable size for each map depends on the implementation and can be determined by calling @code{glGet} with -argument @code{GL_MAX_PIXEL_MAP_TABLE}. The single maximum applies to +argument @code{GL_MAX_PIXEL_MAP_TABLE}. The single maximum applies to all maps; it is at least 32. @table @asis @@ -16341,12 +16371,12 @@ Set pixel storage modes. @table @asis @item @var{pname} -Specifies the symbolic name of the parameter to be set. Six values +Specifies the symbolic name of the parameter to be set. Six values affect the packing of pixel data into memory: @code{GL_PACK_SWAP_BYTES}, @code{GL_PACK_LSB_FIRST}, @code{GL_PACK_ROW_LENGTH}, @code{GL_PACK_IMAGE_HEIGHT}, @code{GL_PACK_SKIP_PIXELS}, @code{GL_PACK_SKIP_ROWS}, @code{GL_PACK_SKIP_IMAGES}, and -@code{GL_PACK_ALIGNMENT}. Six more affect the unpacking of pixel data +@code{GL_PACK_ALIGNMENT}. Six more affect the unpacking of pixel data @var{from} memory: @code{GL_UNPACK_SWAP_BYTES}, @code{GL_UNPACK_LSB_FIRST}, @code{GL_UNPACK_ROW_LENGTH}, @code{GL_UNPACK_IMAGE_HEIGHT}, @code{GL_UNPACK_SKIP_PIXELS}, @@ -16372,30 +16402,31 @@ storage modes affect convolution filters (see @code{glHistogram}), and minmax (See @code{glMinmax}) data. @var{pname} is a symbolic constant indicating the parameter to be set, -and @var{param} is the new value. Six of the twelve storage parameters -affect how pixel data is returned to client memory. They are as follows: +and @var{param} is the new value. Six of the twelve storage parameters +affect how pixel data is returned to client memory. They are as +follows: @table @asis @item @code{GL_PACK_SWAP_BYTES} If true, byte ordering for multibyte color components, depth components, -color indices, or stencil indices is reversed. That is, if a four-byte +color indices, or stencil indices is reversed. That is, if a four-byte component consists of bytes @r{@var{b}_0}, @r{@var{b}_1}, @r{@var{b}_2}, @r{@var{b}_3}, it is stored in memory as @r{@var{b}_3}, @r{@var{b}_2}, @r{@var{b}_1}, @r{@var{b}_0} if @code{GL_PACK_SWAP_BYTES} is true. @code{GL_PACK_SWAP_BYTES} has no effect on the memory order of components within a pixel, only on the order of bytes within components -or indices. For example, the three components of a @code{GL_RGB} format +or indices. For example, the three components of a @code{GL_RGB} format pixel are always stored with red first, green second, and blue third, regardless of the value of @code{GL_PACK_SWAP_BYTES}. @item @code{GL_PACK_LSB_FIRST} If true, bits are ordered within a byte from least significant to most significant; otherwise, the first bit in each byte is the most -significant one. This parameter is significant for bitmap data only. +significant one. This parameter is significant for bitmap data only. @item @code{GL_PACK_ROW_LENGTH} If greater than 0, @code{GL_PACK_ROW_LENGTH} defines the number of -pixels in a row. If the first pixel of a row is placed at location +pixels in a row. If the first pixel of a row is placed at location @r{@var{p}} in memory, then the location of the first pixel of the next row is obtained by skipping @@ -16409,7 +16440,7 @@ indices in a pixel, @r{@var{l}} is the number of pixels in a row argument to the pixel routine otherwise), @r{@var{a}} is the value of @code{GL_PACK_ALIGNMENT}, and @r{@var{s}} is the size, in bytes, of a single component (if @r{@var{a}<@var{s}}, then it is as if -@r{@var{a}=@var{s}}). In the case of 1-bit values, the location of the +@r{@var{a}=@var{s}}). In the case of 1-bit values, the location of the next row is obtained by skipping @r{@var{k}=8⁢@var{a}⁢⌈@var{n}⁢@var{l},/8⁢@var{a},,⌉} @@ -16417,14 +16448,14 @@ next row is obtained by skipping components or indices. The word @var{component} in this description refers to the nonindex -values red, green, blue, alpha, and depth. Storage format @code{GL_RGB}, -for example, has three components per pixel: first red, then green, and -finally blue. +values red, green, blue, alpha, and depth. Storage format +@code{GL_RGB}, for example, has three components per pixel: first red, +then green, and finally blue. @item @code{GL_PACK_IMAGE_HEIGHT} If greater than 0, @code{GL_PACK_IMAGE_HEIGHT} defines the number of pixels in an image three-dimensional texture volume, where ``image'' is -defined by all pixels sharing the same third dimension index. If the +defined by all pixels sharing the same third dimension index. If the first pixel of a row is placed at location @r{@var{p}} in memory, then the location of the first pixel of the next row is obtained by skipping @@ -16443,21 +16474,21 @@ otherwise), @r{@var{a}} is the value of @code{GL_PACK_ALIGNMENT}, and @r{@var{a}<@var{s}}, then it is as if @r{@var{a}=@var{s}}). The word @var{component} in this description refers to the nonindex -values red, green, blue, alpha, and depth. Storage format @code{GL_RGB}, -for example, has three components per pixel: first red, then green, and -finally blue. +values red, green, blue, alpha, and depth. Storage format +@code{GL_RGB}, for example, has three components per pixel: first red, +then green, and finally blue. @item @code{GL_PACK_SKIP_PIXELS}, @code{GL_PACK_SKIP_ROWS}, and @code{GL_PACK_SKIP_IMAGES} These values are provided as a convenience to the programmer; they provide no functionality that cannot be duplicated simply by -incrementing the pointer passed to @code{glReadPixels}. Setting +incrementing the pointer passed to @code{glReadPixels}. Setting @code{GL_PACK_SKIP_PIXELS} to @r{@var{i}} is equivalent to incrementing the pointer by @r{@var{i}⁢@var{n}} components or indices, where @r{@var{n}} is the number of components or indices in each pixel. Setting @code{GL_PACK_SKIP_ROWS} to @r{@var{j}} is equivalent to incrementing the pointer by @r{@var{j}⁢@var{m}} components or indices, where @r{@var{m}} is the number of components or indices per row, as -just computed in the @code{GL_PACK_ROW_LENGTH} section. Setting +just computed in the @code{GL_PACK_ROW_LENGTH} section. Setting @code{GL_PACK_SKIP_IMAGES} to @r{@var{k}} is equivalent to incrementing the pointer by @r{@var{k}⁢@var{p}}, where @r{@var{p}} is the number of components or indices per image, as computed in the @@ -16465,14 +16496,14 @@ components or indices per image, as computed in the @item @code{GL_PACK_ALIGNMENT} Specifies the alignment requirements for the start of each pixel row in -memory. The allowable values are 1 (byte-alignment), 2 (rows aligned to +memory. The allowable values are 1 (byte-alignment), 2 (rows aligned to even-numbered bytes), 4 (word-alignment), and 8 (rows start on double-word boundaries). @end table The other six of the twelve storage parameters affect how pixel data is -read from client memory. These values are significant for +read from client memory. These values are significant for @code{glDrawPixels}, @code{glTexImage1D}, @code{glTexImage2D}, @code{glTexImage3D}, @code{glTexSubImage1D}, @code{glTexSubImage2D}, @code{glTexSubImage3D}, @code{glBitmap}, and @code{glPolygonStipple}. @@ -16480,29 +16511,29 @@ read from client memory. These values are significant for Additionally, if the @code{ARB_imaging} extension is supported, @code{glColorTable}, @code{glColorSubTable}, @code{glConvolutionFilter1D}, @code{glConvolutionFilter2D}, and -@code{glSeparableFilter2D}. They are as follows: +@code{glSeparableFilter2D}. They are as follows: @table @asis @item @code{GL_UNPACK_SWAP_BYTES} If true, byte ordering for multibyte color components, depth components, -color indices, or stencil indices is reversed. That is, if a four-byte +color indices, or stencil indices is reversed. That is, if a four-byte component consists of bytes @r{@var{b}_0}, @r{@var{b}_1}, @r{@var{b}_2}, @r{@var{b}_3}, it is taken from memory as @r{@var{b}_3}, @r{@var{b}_2}, @r{@var{b}_1}, @r{@var{b}_0} if @code{GL_UNPACK_SWAP_BYTES} is true. @code{GL_UNPACK_SWAP_BYTES} has no effect on the memory order of components within a pixel, only on the order of bytes within components -or indices. For example, the three components of a @code{GL_RGB} format +or indices. For example, the three components of a @code{GL_RGB} format pixel are always stored with red first, green second, and blue third, regardless of the value of @code{GL_UNPACK_SWAP_BYTES}. @item @code{GL_UNPACK_LSB_FIRST} If true, bits are ordered within a byte from least significant to most significant; otherwise, the first bit in each byte is the most -significant one. This is relevant only for bitmap data. +significant one. This is relevant only for bitmap data. @item @code{GL_UNPACK_ROW_LENGTH} If greater than 0, @code{GL_UNPACK_ROW_LENGTH} defines the number of -pixels in a row. If the first pixel of a row is placed at location +pixels in a row. If the first pixel of a row is placed at location @r{@var{p}} in memory, then the location of the first pixel of the next row is obtained by skipping @@ -16516,7 +16547,7 @@ indices in a pixel, @r{@var{l}} is the number of pixels in a row @r{@var{width}} argument to the pixel routine otherwise), @r{@var{a}} is the value of @code{GL_UNPACK_ALIGNMENT}, and @r{@var{s}} is the size, in bytes, of a single component (if @r{@var{a}<@var{s}}, then it is as if -@r{@var{a}=@var{s}}). In the case of 1-bit values, the location of the +@r{@var{a}=@var{s}}). In the case of 1-bit values, the location of the next row is obtained by skipping @r{@var{k}=8⁢@var{a}⁢⌈@var{n}⁢@var{l},/8⁢@var{a},,⌉} @@ -16524,15 +16555,15 @@ next row is obtained by skipping components or indices. The word @var{component} in this description refers to the nonindex -values red, green, blue, alpha, and depth. Storage format @code{GL_RGB}, -for example, has three components per pixel: first red, then green, and -finally blue. +values red, green, blue, alpha, and depth. Storage format +@code{GL_RGB}, for example, has three components per pixel: first red, +then green, and finally blue. @item @code{GL_UNPACK_IMAGE_HEIGHT} If greater than 0, @code{GL_UNPACK_IMAGE_HEIGHT} defines the number of -pixels in an image of a three-dimensional texture volume. Where +pixels in an image of a three-dimensional texture volume. Where ``image'' is defined by all pixel sharing the same third dimension -index. If the first pixel of a row is placed at location @r{@var{p}} in +index. If the first pixel of a row is placed at location @r{@var{p}} in memory, then the location of the first pixel of the next row is obtained by skipping @@ -16551,16 +16582,16 @@ otherwise), @r{@var{a}} is the value of @code{GL_UNPACK_ALIGNMENT}, and @r{@var{a}<@var{s}}, then it is as if @r{@var{a}=@var{s}}). The word @var{component} in this description refers to the nonindex -values red, green, blue, alpha, and depth. Storage format @code{GL_RGB}, -for example, has three components per pixel: first red, then green, and -finally blue. +values red, green, blue, alpha, and depth. Storage format +@code{GL_RGB}, for example, has three components per pixel: first red, +then green, and finally blue. @item @code{GL_UNPACK_SKIP_PIXELS} and @code{GL_UNPACK_SKIP_ROWS} These values are provided as a convenience to the programmer; they provide no functionality that cannot be duplicated by incrementing the pointer passed to @code{glDrawPixels}, @code{glTexImage1D}, @code{glTexImage2D}, @code{glTexSubImage1D}, @code{glTexSubImage2D}, -@code{glBitmap}, or @code{glPolygonStipple}. Setting +@code{glBitmap}, or @code{glPolygonStipple}. Setting @code{GL_UNPACK_SKIP_PIXELS} to @r{@var{i}} is equivalent to incrementing the pointer by @r{@var{i}⁢@var{n}} components or indices, where @r{@var{n}} is the number of components or indices in each pixel. @@ -16571,7 +16602,7 @@ just computed in the @code{GL_UNPACK_ROW_LENGTH} section. @item @code{GL_UNPACK_ALIGNMENT} Specifies the alignment requirements for the start of each pixel row in -memory. The allowable values are 1 (byte-alignment), 2 (rows aligned to +memory. The allowable values are 1 (byte-alignment), 2 (rows aligned to even-numbered bytes), 4 (word-alignment), and 8 (rows start on double-word boundaries). @@ -16637,13 +16668,13 @@ integer , 4 , 1, 2, 4, or 8 @end table -@code{glPixelStoref} can be used to set any pixel store parameter. If +@code{glPixelStoref} can be used to set any pixel store parameter. If the parameter type is boolean, then if @var{param} is 0, the parameter -is false; otherwise it is set to true. If @var{pname} is a integer type +is false; otherwise it is set to true. If @var{pname} is a integer type parameter, @var{param} is rounded to the nearest integer. Likewise, @code{glPixelStorei} can also be used to set any of the pixel -store parameters. Boolean parameters are set to false if @var{param} is +store parameters. Boolean parameters are set to false if @var{param} is 0 and true otherwise. @code{GL_INVALID_ENUM} is generated if @var{pname} is not an accepted @@ -16708,32 +16739,32 @@ Additionally, if the @code{ARB_imaging} subset is supported, the routines @code{glColorTable}, @code{glColorSubTable}, @code{glConvolutionFilter1D}, @code{glConvolutionFilter2D}, @code{glHistogram}, @code{glMinmax}, and @code{glSeparableFilter2D} are -also affected. The algorithms that are specified by pixel transfer modes -operate on pixels after they are read from the frame buffer +also affected. The algorithms that are specified by pixel transfer +modes operate on pixels after they are read from the frame buffer (@code{glCopyPixels}@code{glCopyTexImage1D}, @code{glCopyTexImage2D}, @code{glCopyTexSubImage1D}, @code{glCopyTexSubImage2D}, @code{glCopyTexSubImage3D}, and @code{glReadPixels}), or unpacked from client memory (@code{glDrawPixels}, @code{glTexImage1D}, @code{glTexImage2D}, @code{glTexImage3D}, @code{glTexSubImage1D}, -@code{glTexSubImage2D}, and @code{glTexSubImage3D}). Pixel transfer +@code{glTexSubImage2D}, and @code{glTexSubImage3D}). Pixel transfer operations happen in the same order, and in the same manner, regardless -of the command that resulted in the pixel operation. Pixel storage modes -(see @code{glPixelStore}) control the unpacking of pixels being read -from client memory and the packing of pixels being written back into -client memory. +of the command that resulted in the pixel operation. Pixel storage +modes (see @code{glPixelStore}) control the unpacking of pixels being +read from client memory and the packing of pixels being written back +into client memory. Pixel transfer operations handle four fundamental pixel types: @var{color}, @var{color index}, @var{depth}, and @var{stencil}. @var{Color} pixels consist of four floating-point values with unspecified mantissa and exponent sizes, scaled such that 0 represents -zero intensity and 1 represents full intensity. @var{Color indices} +zero intensity and 1 represents full intensity. @var{Color indices} comprise a single fixed-point value, with unspecified precision to the -right of the binary point. @var{Depth} pixels comprise a single +right of the binary point. @var{Depth} pixels comprise a single floating-point value, with unspecified mantissa and exponent sizes, scaled such that 0.0 represents the minimum depth buffer value, and 1.0 -represents the maximum depth buffer value. Finally, @var{stencil} pixels -comprise a single fixed-point value, with unspecified precision to the -right of the binary point. +represents the maximum depth buffer value. Finally, @var{stencil} +pixels comprise a single fixed-point value, with unspecified precision +to the right of the binary point. The pixel transfer operations performed on the four basic pixel types are as follows: @@ -16741,34 +16772,35 @@ are as follows: @table @asis @item @var{Color} Each of the four color components is multiplied by a scale factor, then -added to a bias factor. That is, the red component is multiplied by +added to a bias factor. That is, the red component is multiplied by @code{GL_RED_SCALE}, then added to @code{GL_RED_BIAS}; the green component is multiplied by @code{GL_GREEN_SCALE}, then added to @code{GL_GREEN_BIAS}; the blue component is multiplied by @code{GL_BLUE_SCALE}, then added to @code{GL_BLUE_BIAS}; and the alpha component is multiplied by @code{GL_ALPHA_SCALE}, then added to -@code{GL_ALPHA_BIAS}. After all four color components are scaled and -biased, each is clamped to the range @r{[0,1]}. All color, scale, and +@code{GL_ALPHA_BIAS}. After all four color components are scaled and +biased, each is clamped to the range @r{[0,1]}. All color, scale, and bias values are specified with @code{glPixelTransfer}. If @code{GL_MAP_COLOR} is true, each color component is scaled by the size of the corresponding color-to-color map, then replaced by the -contents of that map indexed by the scaled component. That is, the red +contents of that map indexed by the scaled component. That is, the red component is scaled by @code{GL_PIXEL_MAP_R_TO_R_SIZE}, then replaced by -the contents of @code{GL_PIXEL_MAP_R_TO_R} indexed by itself. The green +the contents of @code{GL_PIXEL_MAP_R_TO_R} indexed by itself. The green component is scaled by @code{GL_PIXEL_MAP_G_TO_G_SIZE}, then replaced by -the contents of @code{GL_PIXEL_MAP_G_TO_G} indexed by itself. The blue +the contents of @code{GL_PIXEL_MAP_G_TO_G} indexed by itself. The blue component is scaled by @code{GL_PIXEL_MAP_B_TO_B_SIZE}, then replaced by -the contents of @code{GL_PIXEL_MAP_B_TO_B} indexed by itself. And the +the contents of @code{GL_PIXEL_MAP_B_TO_B} indexed by itself. And the alpha component is scaled by @code{GL_PIXEL_MAP_A_TO_A_SIZE}, then replaced by the contents of @code{GL_PIXEL_MAP_A_TO_A} indexed by -itself. All components taken from the maps are then clamped to the range -@r{[0,1]}. @code{GL_MAP_COLOR} is specified with @code{glPixelTransfer}. -The contents of the various maps are specified with @code{glPixelMap}. +itself. All components taken from the maps are then clamped to the +range @r{[0,1]}. @code{GL_MAP_COLOR} is specified with +@code{glPixelTransfer}. The contents of the various maps are specified +with @code{glPixelMap}. If the @code{ARB_imaging} extension is supported, each of the four color components may be scaled and biased after transformation by the color -matrix. That is, the red component is multiplied by +matrix. That is, the red component is multiplied by @code{GL_POST_COLOR_MATRIX_RED_SCALE}, then added to @code{GL_POST_COLOR_MATRIX_RED_BIAS}; the green component is multiplied by @code{GL_POST_COLOR_MATRIX_GREEN_SCALE}, then added to @@ -16776,12 +16808,12 @@ by @code{GL_POST_COLOR_MATRIX_GREEN_SCALE}, then added to by @code{GL_POST_COLOR_MATRIX_BLUE_SCALE}, then added to @code{GL_POST_COLOR_MATRIX_BLUE_BIAS}; and the alpha component is multiplied by @code{GL_POST_COLOR_MATRIX_ALPHA_SCALE}, then added to -@code{GL_POST_COLOR_MATRIX_ALPHA_BIAS}. After all four color components +@code{GL_POST_COLOR_MATRIX_ALPHA_BIAS}. After all four color components are scaled and biased, each is clamped to the range @r{[0,1]}. Similarly, if the @code{ARB_imaging} extension is supported, each of the four color components may be scaled and biased after processing by the -enabled convolution filter. That is, the red component is multiplied by +enabled convolution filter. That is, the red component is multiplied by @code{GL_POST_CONVOLUTION_RED_SCALE}, then added to @code{GL_POST_CONVOLUTION_RED_BIAS}; the green component is multiplied by @code{GL_POST_CONVOLUTION_GREEN_SCALE}, then added to @@ -16789,26 +16821,26 @@ by @code{GL_POST_CONVOLUTION_GREEN_SCALE}, then added to by @code{GL_POST_CONVOLUTION_BLUE_SCALE}, then added to @code{GL_POST_CONVOLUTION_BLUE_BIAS}; and the alpha component is multiplied by @code{GL_POST_CONVOLUTION_ALPHA_SCALE}, then added to -@code{GL_POST_CONVOLUTION_ALPHA_BIAS}. After all four color components +@code{GL_POST_CONVOLUTION_ALPHA_BIAS}. After all four color components are scaled and biased, each is clamped to the range @r{[0,1]}. @item @var{Color index} Each color index is shifted left by @code{GL_INDEX_SHIFT} bits; any bits beyond the number of fraction bits carried by the fixed-point index are -filled with zeros. If @code{GL_INDEX_SHIFT} is negative, the shift is to -the right, again zero filled. Then @code{GL_INDEX_OFFSET} is added to -the index. @code{GL_INDEX_SHIFT} and @code{GL_INDEX_OFFSET} are +filled with zeros. If @code{GL_INDEX_SHIFT} is negative, the shift is +to the right, again zero filled. Then @code{GL_INDEX_OFFSET} is added +to the index. @code{GL_INDEX_SHIFT} and @code{GL_INDEX_OFFSET} are specified with @code{glPixelTransfer}. From this point, operation diverges depending on the required format of -the resulting pixels. If the resulting pixels are to be written to a +the resulting pixels. If the resulting pixels are to be written to a color index buffer, or if they are being read back to client memory in @code{GL_COLOR_INDEX} format, the pixels continue to be treated as -indices. If @code{GL_MAP_COLOR} is true, each index is masked by +indices. If @code{GL_MAP_COLOR} is true, each index is masked by @r{2^@var{n}-1}, where @r{@var{n}} is @code{GL_PIXEL_MAP_I_TO_I_SIZE}, then replaced by the contents of @code{GL_PIXEL_MAP_I_TO_I} indexed by -the masked value. @code{GL_MAP_COLOR} is specified with -@code{glPixelTransfer}. The contents of the index map is specified with +the masked value. @code{GL_MAP_COLOR} is specified with +@code{glPixelTransfer}. The contents of the index map is specified with @code{glPixelMap}. If the resulting pixels are to be written to an RGBA color buffer, or if @@ -16816,13 +16848,13 @@ they are read back to client memory in a format other than @code{GL_COLOR_INDEX}, the pixels are converted from indices to colors by referencing the four maps @code{GL_PIXEL_MAP_I_TO_R}, @code{GL_PIXEL_MAP_I_TO_G}, @code{GL_PIXEL_MAP_I_TO_B}, and -@code{GL_PIXEL_MAP_I_TO_A}. Before being dereferenced, the index is +@code{GL_PIXEL_MAP_I_TO_A}. Before being dereferenced, the index is masked by @r{2^@var{n}-1}, where @r{@var{n}} is @code{GL_PIXEL_MAP_I_TO_R_SIZE} for the red map, @code{GL_PIXEL_MAP_I_TO_G_SIZE} for the green map, @code{GL_PIXEL_MAP_I_TO_B_SIZE} for the blue map, and -@code{GL_PIXEL_MAP_I_TO_A_SIZE} for the alpha map. All components taken -from the maps are then clamped to the range @r{[0,1]}. The contents of +@code{GL_PIXEL_MAP_I_TO_A_SIZE} for the alpha map. All components taken +from the maps are then clamped to the range @r{[0,1]}. The contents of the four maps is specified with @code{glPixelMap}. @item @var{Depth} @@ -16831,7 +16863,7 @@ Each depth value is multiplied by @code{GL_DEPTH_SCALE}, added to @item @var{Stencil} Each index is shifted @code{GL_INDEX_SHIFT} bits just as a color index -is, then added to @code{GL_INDEX_OFFSET}. If @code{GL_MAP_STENCIL} is +is, then added to @code{GL_INDEX_OFFSET}. If @code{GL_MAP_STENCIL} is true, each index is masked by @r{2^@var{n}-1}, where @r{@var{n}} is @code{GL_PIXEL_MAP_S_TO_S_SIZE}, then replaced by the contents of @code{GL_PIXEL_MAP_S_TO_S} indexed by the masked value. @@ -16942,12 +16974,12 @@ float , 0 , @r{(-∞,∞)} @code{glPixelTransferf} can be used to set any pixel transfer parameter. If the parameter type is boolean, 0 implies false and any other value -implies true. If @var{pname} is an integer parameter, @var{param} is +implies true. If @var{pname} is an integer parameter, @var{param} is rounded to the nearest integer. Likewise, @code{glPixelTransferi} can be used to set any of the pixel -transfer parameters. Boolean parameters are set to false if @var{param} -is 0 and to true otherwise. @var{param} is converted to floating point +transfer parameters. Boolean parameters are set to false if @var{param} +is 0 and to true otherwise. @var{param} is converted to floating point before being assigned to real-valued parameters. @code{GL_INVALID_ENUM} is generated if @var{pname} is not an accepted @@ -16971,7 +17003,7 @@ operations. @end table @code{glPixelZoom} specifies values for the @r{@var{x}} and @r{@var{y}} -zoom factors. During the execution of @code{glDrawPixels} or +zoom factors. During the execution of @code{glDrawPixels} or @code{glCopyPixels}, if (@r{@var{xr}}, @r{@var{yr}}) is the current raster position, and a given element is in the @r{@var{m}}th row and @r{@var{n}}th column of the pixel rectangle, then pixels whose centers @@ -16982,10 +17014,10 @@ are in the rectangle with corners at (@r{@var{xr}+(@var{n}+1,)·@var{xfactor}}, @r{@var{yr}+(@var{m}+1,)·@var{yfactor}}) -are candidates for replacement. Any pixel whose center lies on the +are candidates for replacement. Any pixel whose center lies on the bottom or left edge of this rectangular region is also modified. -Pixel zoom factors are not limited to positive values. Negative zoom +Pixel zoom factors are not limited to positive values. Negative zoom factors reflect the resulting image about the current raster position. @code{GL_INVALID_OPERATION} is generated if @code{glPixelZoom} is @@ -17002,7 +17034,7 @@ Specify point parameters. @table @asis @item @var{pname} -Specifies a single-valued point parameter. @code{GL_POINT_SIZE_MIN}, +Specifies a single-valued point parameter. @code{GL_POINT_SIZE_MIN}, @code{GL_POINT_SIZE_MAX}, @code{GL_POINT_FADE_THRESHOLD_SIZE}, and @code{GL_POINT_SPRITE_COORD_ORIGIN} are accepted. @@ -17018,26 +17050,26 @@ The following values are accepted for @var{pname}: @var{params} is a single floating-point value that specifies the minimum -point size. The default value is 0.0. +point size. The default value is 0.0. @item @code{GL_POINT_SIZE_MAX} @var{params} is a single floating-point value that specifies the maximum -point size. The default value is 1.0. +point size. The default value is 1.0. @item @code{GL_POINT_FADE_THRESHOLD_SIZE} @var{params} is a single floating-point value that specifies the threshold value to which point sizes are clamped if they exceed the -specified value. The default value is 1.0. +specified value. The default value is 1.0. @item @code{GL_POINT_DISTANCE_ATTENUATION} @var{params} is an array of three floating-point values that specify the -coefficients used for scaling the computed point size. The default +coefficients used for scaling the computed point size. The default values are @r{(1,00)}. @item @code{GL_POINT_SPRITE_COORD_ORIGIN} @@ -17070,15 +17102,15 @@ Specify the diameter of rasterized points. @table @asis @item @var{size} -Specifies the diameter of rasterized points. The initial value is 1. +Specifies the diameter of rasterized points. The initial value is 1. @end table @code{glPointSize} specifies the rasterized diameter of both aliased and -antialiased points. Using a point size other than 1 has different -effects, depending on whether point antialiasing is enabled. To enable +antialiased points. Using a point size other than 1 has different +effects, depending on whether point antialiasing is enabled. To enable and disable point antialiasing, call @code{glEnable} and -@code{glDisable} with argument @code{GL_POINT_SMOOTH}. Point +@code{glDisable} with argument @code{GL_POINT_SMOOTH}. Point antialiasing is initially disabled. The specified point size is multiplied with a distance attenuation @@ -17111,42 +17143,43 @@ The point alpha value is modified by computing: (@var{otherwise}),} If point antialiasing is disabled, the actual size is determined by -rounding the supplied size to the nearest integer. (If the rounding +rounding the supplied size to the nearest integer. (If the rounding results in the value 0, it is as if the point size were 1.) If the rounded size is odd, then the center point (@r{@var{x}}, @r{@var{y}}) of the pixel fragment that represents the point is computed as @r{(⌊@var{x}_@var{w},⌋+.5,⌊@var{y}_@var{w},⌋+.5)} -where @r{@var{w}} subscripts indicate window coordinates. All pixels +where @r{@var{w}} subscripts indicate window coordinates. All pixels that lie within the square grid of the rounded size centered at -(@r{@var{x}}, @r{@var{y}}) make up the fragment. If the size is even, +(@r{@var{x}}, @r{@var{y}}) make up the fragment. If the size is even, the center point is @r{(⌊@var{x}_@var{w}+.5,⌋,⌊@var{y}_@var{w}+.5,⌋)} and the rasterized fragment's centers are the half-integer window coordinates within the square of the rounded size centered at -@r{(@var{x},@var{y})}. All pixel fragments produced in rasterizing a +@r{(@var{x},@var{y})}. All pixel fragments produced in rasterizing a nonantialiased point are assigned the same associated data, that of the vertex corresponding to the point. If antialiasing is enabled, then point rasterization produces a fragment for each pixel square that intersects the region lying within the circle having diameter equal to the current point size and centered at the -point's @r{(@var{x}_@var{w},@var{y}_@var{w})}. The coverage value for +point's @r{(@var{x}_@var{w},@var{y}_@var{w})}. The coverage value for each fragment is the window coordinate area of the intersection of the -circular region with the corresponding pixel square. This value is saved -and used in the final rasterization step. The data associated with each -fragment is the data associated with the point being rasterized. +circular region with the corresponding pixel square. This value is +saved and used in the final rasterization step. The data associated +with each fragment is the data associated with the point being +rasterized. -Not all sizes are supported when point antialiasing is enabled. If an -unsupported size is requested, the nearest supported size is used. Only +Not all sizes are supported when point antialiasing is enabled. If an +unsupported size is requested, the nearest supported size is used. Only size 1 is guaranteed to be supported; others depend on the -implementation. To query the range of supported sizes and the size +implementation. To query the range of supported sizes and the size difference between supported sizes within the range, call @code{glGet} with arguments @code{GL_SMOOTH_POINT_SIZE_RANGE} and -@code{GL_SMOOTH_POINT_SIZE_GRANULARITY}. For aliased points, query the +@code{GL_SMOOTH_POINT_SIZE_GRANULARITY}. For aliased points, query the supported ranges and granularity with @code{glGet} with arguments @code{GL_ALIASED_POINT_SIZE_RANGE}. @@ -17164,23 +17197,23 @@ Select a polygon rasterization mode. @table @asis @item @var{face} -Specifies the polygons that @var{mode} applies to. Must be +Specifies the polygons that @var{mode} applies to. Must be @code{GL_FRONT} for front-facing polygons, @code{GL_BACK} for back-facing polygons, or @code{GL_FRONT_AND_BACK} for front- and back-facing polygons. @item @var{mode} -Specifies how polygons will be rasterized. Accepted values are -@code{GL_POINT}, @code{GL_LINE}, and @code{GL_FILL}. The initial value +Specifies how polygons will be rasterized. Accepted values are +@code{GL_POINT}, @code{GL_LINE}, and @code{GL_FILL}. The initial value is @code{GL_FILL} for both front- and back-facing polygons. @end table @code{glPolygonMode} controls the interpretation of polygons for -rasterization. @var{face} describes which polygons @var{mode} applies +rasterization. @var{face} describes which polygons @var{mode} applies to: front-facing polygons (@code{GL_FRONT}), back-facing polygons -(@code{GL_BACK}), or both (@code{GL_FRONT_AND_BACK}). The polygon mode -affects only the final rasterization of polygons. In particular, a +(@code{GL_BACK}), or both (@code{GL_FRONT_AND_BACK}). The polygon mode +affects only the final rasterization of polygons. In particular, a polygon's vertices are lit and the polygon is clipped and possibly culled before these modes are applied. @@ -17189,22 +17222,22 @@ Three modes are defined and can be specified in @var{mode}: @table @asis @item @code{GL_POINT} Polygon vertices that are marked as the start of a boundary edge are -drawn as points. Point attributes such as @code{GL_POINT_SIZE} and -@code{GL_POINT_SMOOTH} control the rasterization of the points. Polygon +drawn as points. Point attributes such as @code{GL_POINT_SIZE} and +@code{GL_POINT_SMOOTH} control the rasterization of the points. Polygon rasterization attributes other than @code{GL_POLYGON_MODE} have no effect. @item @code{GL_LINE} -Boundary edges of the polygon are drawn as line segments. They are +Boundary edges of the polygon are drawn as line segments. They are treated as connected line segments for line stippling; the line stipple counter and pattern are not reset between segments (see -@code{glLineStipple}). Line attributes such as @code{GL_LINE_WIDTH} and -@code{GL_LINE_SMOOTH} control the rasterization of the lines. Polygon +@code{glLineStipple}). Line attributes such as @code{GL_LINE_WIDTH} and +@code{GL_LINE_SMOOTH} control the rasterization of the lines. Polygon rasterization attributes other than @code{GL_POLYGON_MODE} have no effect. @item @code{GL_FILL} -The interior of the polygon is filled. Polygon attributes such as +The interior of the polygon is filled. Polygon attributes such as @code{GL_POLYGON_STIPPLE} and @code{GL_POLYGON_SMOOTH} control the rasterization of the polygon. @@ -17225,22 +17258,22 @@ Set the scale and units used to calculate depth values. @table @asis @item @var{factor} Specifies a scale factor that is used to create a variable depth offset -for each polygon. The initial value is 0. +for each polygon. The initial value is 0. @item @var{units} Is multiplied by an implementation-specific value to create a constant -depth offset. The initial value is 0. +depth offset. The initial value is 0. @end table When @code{GL_POLYGON_OFFSET_FILL}, @code{GL_POLYGON_OFFSET_LINE}, or @code{GL_POLYGON_OFFSET_POINT} is enabled, each fragment's @var{depth} value will be offset after it is interpolated from the @var{depth} -values of the appropriate vertices. The value of the offset is +values of the appropriate vertices. The value of the offset is @r{@var{factor}×@var{DZ}+@var{r}×@var{units}}, where @r{@var{DZ}} is a measurement of the change in depth relative to the screen area of the polygon, and @r{@var{r}} is the smallest value that is guaranteed to -produce a resolvable offset for a given implementation. The offset is +produce a resolvable offset for a given implementation. The offset is added before the depth test is performed and before the value is written into the depth buffer. @@ -17271,13 +17304,13 @@ Stippling is independent of polygon antialiasing. @var{pattern} is a pointer to a @r{32×32} stipple pattern that is stored in memory just like the pixel data supplied to a @code{glDrawPixels} call with height and @var{width} both equal to 32, a pixel format of -@code{GL_COLOR_INDEX}, and data type of @code{GL_BITMAP}. That is, the +@code{GL_COLOR_INDEX}, and data type of @code{GL_BITMAP}. That is, the stipple pattern is represented as a @r{32×32} array of 1-bit color -indices packed in unsigned bytes. @code{glPixelStore} parameters like +indices packed in unsigned bytes. @code{glPixelStore} parameters like @code{GL_UNPACK_SWAP_BYTES} and @code{GL_UNPACK_LSB_FIRST} affect the -assembling of the bits into a stipple pattern. Pixel transfer operations -(shift, offset, pixel map) are not applied to the stipple image, -however. +assembling of the bits into a stipple pattern. Pixel transfer +operations (shift, offset, pixel map) are not applied to the stipple +image, however. If a non-zero named buffer object is bound to the @code{GL_PIXEL_UNPACK_BUFFER} target (see @code{glBindBuffer}) while a @@ -17285,12 +17318,12 @@ stipple pattern is specified, @var{pattern} is treated as a byte offset into the buffer object's data store. To enable and disable polygon stippling, call @code{glEnable} and -@code{glDisable} with argument @code{GL_POLYGON_STIPPLE}. Polygon -stippling is initially disabled. If it's enabled, a rasterized polygon +@code{glDisable} with argument @code{GL_POLYGON_STIPPLE}. Polygon +stippling is initially disabled. If it's enabled, a rasterized polygon fragment with window coordinates @r{@var{x}_@var{w}} and @r{@var{y}_@var{w}} is sent to the next stage of the GL if and only if the (@r{@var{x}_@var{w}%32})th bit in the (@r{@var{y}_@var{w}%32})th row -of the stipple pattern is 1 (one). When polygon stippling is disabled, +of the stipple pattern is 1 (one). When polygon stippling is disabled, it is as if the stipple pattern consists of all 1's. @code{GL_INVALID_OPERATION} is generated if a non-zero buffer object @@ -17320,7 +17353,7 @@ Specifies an array containing the names of the textures to be prioritized. @item @var{priorities} -Specifies an array containing the texture priorities. A priority given +Specifies an array containing the texture priorities. A priority given in an element of @var{priorities} applies to the texture named by the corresponding element of @var{textures}. @@ -17330,18 +17363,18 @@ corresponding element of @var{textures}. in @var{priorities} to the @var{n} textures named in @var{textures}. The GL establishes a ``working set'' of textures that are resident in -texture memory. These textures may be bound to a texture target much -more efficiently than textures that are not resident. By specifying a +texture memory. These textures may be bound to a texture target much +more efficiently than textures that are not resident. By specifying a priority for each texture, @code{glPrioritizeTextures} allows applications to guide the GL implementation in determining which textures should be resident. The priorities given in @var{priorities} are clamped to the range -@r{[0,1]} before they are assigned. 0 indicates the lowest priority; -textures with priority 0 are least likely to be resident. 1 indicates +@r{[0,1]} before they are assigned. 0 indicates the lowest priority; +textures with priority 0 are least likely to be resident. 1 indicates the highest priority; textures with priority 1 are most likely to be -resident. However, textures are not guaranteed to be resident until they -are used. +resident. However, textures are not guaranteed to be resident until +they are used. @code{glPrioritizeTextures} silently ignores attempts to prioritize texture 0 or any texture name that does not correspond to an existing @@ -17350,7 +17383,7 @@ texture. @code{glPrioritizeTextures} does not require that any of the textures named by @var{textures} be bound to a texture target. @code{glTexParameter} may also be used to set a texture's priority, but -only if the texture is currently bound. This is the only way to set the +only if the texture is currently bound. This is the only way to set the priority of a default texture. @code{GL_INVALID_VALUE} is generated if @var{n} is negative. @@ -17367,17 +17400,17 @@ Push and pop the server attribute stack. @table @asis @item @var{mask} -Specifies a mask that indicates which attributes to save. Values for +Specifies a mask that indicates which attributes to save. Values for @var{mask} are listed below. @end table @code{glPushAttrib} takes one argument, a mask that indicates which -groups of state variables to save on the attribute stack. Symbolic -constants are used to set bits in the mask. @var{mask} is typically +groups of state variables to save on the attribute stack. Symbolic +constants are used to set bits in the mask. @var{mask} is typically constructed by specifying the bitwise-or of several of these constants -together. The special mask @code{GL_ALL_ATTRIB_BITS} can be used to save -all stackable states. +together. The special mask @code{GL_ALL_ATTRIB_BITS} can be used to +save all stackable states. The symbolic mask constants and their associated GL state are as follows (the second column lists which attributes are saved): @@ -17853,11 +17886,11 @@ Viewport origin and extent @end table @code{glPopAttrib} restores the values of the state variables saved with -the last @code{glPushAttrib} command. Those not saved are left +the last @code{glPushAttrib} command. Those not saved are left unchanged. It is an error to push attributes onto a full stack or to pop attributes -off an empty stack. In either case, the error flag is set and no other +off an empty stack. In either case, the error flag is set and no other change is made to GL state. Initially, the attribute stack is empty. @@ -17880,16 +17913,16 @@ Push and pop the client attribute stack. @table @asis @item @var{mask} -Specifies a mask that indicates which attributes to save. Values for +Specifies a mask that indicates which attributes to save. Values for @var{mask} are listed below. @end table @code{glPushClientAttrib} takes one argument, a mask that indicates which groups of client-state variables to save on the client attribute -stack. Symbolic constants are used to set bits in the mask. @var{mask} +stack. Symbolic constants are used to set bits in the mask. @var{mask} is typically constructed by specifying the bitwise-or of several of -these constants together. The special mask +these constants together. The special mask @code{GL_CLIENT_ALL_ATTRIB_BITS} can be used to save all stackable client state. @@ -17900,11 +17933,11 @@ follows (the second column lists which attributes are saved): @code{GL_CLIENT_VERTEX_ARRAY_BIT} Vertex arrays (and enables) @code{glPopClientAttrib} restores the values of the client-state -variables saved with the last @code{glPushClientAttrib}. Those not saved -are left unchanged. +variables saved with the last @code{glPushClientAttrib}. Those not +saved are left unchanged. It is an error to push attributes onto a full client attribute stack or -to pop attributes off an empty stack. In either case, the error flag is +to pop attributes off an empty stack. In either case, the error flag is set, and no other change is made to GL state. Initially, the client attribute stack is empty. @@ -17921,14 +17954,14 @@ called while the attribute stack is empty. @deftypefunx void glPopMatrix Push and pop the current matrix stack. -There is a stack of matrices for each of the matrix modes. In -@code{GL_MODELVIEW} mode, the stack depth is at least 32. In the other +There is a stack of matrices for each of the matrix modes. In +@code{GL_MODELVIEW} mode, the stack depth is at least 32. In the other modes, @code{GL_COLOR}, @code{GL_PROJECTION}, and @code{GL_TEXTURE}, the -depth is at least 2. The current matrix in any mode is the matrix on the -top of the stack for that mode. +depth is at least 2. The current matrix in any mode is the matrix on +the top of the stack for that mode. @code{glPushMatrix} pushes the current matrix stack down by one, -duplicating the current matrix. That is, after a @code{glPushMatrix} +duplicating the current matrix. That is, after a @code{glPushMatrix} call, the matrix on top of the stack is identical to the one below it. @code{glPopMatrix} pops the current matrix stack, replacing the current @@ -17937,8 +17970,8 @@ matrix with the one below it on the stack. Initially, each of the stacks contains one matrix, an identity matrix. It is an error to push a full matrix stack or to pop a matrix stack that -contains only a single matrix. In either case, the error flag is set and -no other change is made to GL state. +contains only a single matrix. In either case, the error flag is set +and no other change is made to GL state. @code{GL_STACK_OVERFLOW} is generated if @code{glPushMatrix} is called while the current matrix stack is full. @@ -17963,7 +17996,7 @@ Specifies a name that will be pushed onto the name stack. @end table The name stack is used during selection mode to allow sets of rendering -commands to be uniquely identified. It consists of an ordered set of +commands to be uniquely identified. It consists of an ordered set of unsigned integers and is initially empty. @code{glPushName} causes @var{name} to be pushed onto the name stack. @@ -17971,14 +18004,14 @@ unsigned integers and is initially empty. The maximum name stack depth is implementation-dependent; call @code{GL_MAX_NAME_STACK_DEPTH} to find out the value for a particular -implementation. It is an error to push a name onto a full stack or to -pop a name off an empty stack. It is also an error to manipulate the +implementation. It is an error to push a name onto a full stack or to +pop a name off an empty stack. It is also an error to manipulate the name stack between the execution of @code{glBegin} and the corresponding -execution of @code{glEnd}. In any of these cases, the error flag is set +execution of @code{glEnd}. In any of these cases, the error flag is set and no other change is made to GL state. The name stack is always empty while the render mode is not -@code{GL_SELECT}. Calls to @code{glPushName} or @code{glPopName} while +@code{GL_SELECT}. Calls to @code{glPushName} or @code{glPopName} while the render mode is not @code{GL_SELECT} are ignored. @code{GL_STACK_OVERFLOW} is generated if @code{glPushName} is called @@ -18029,39 +18062,39 @@ object coordinates (if present) for the raster position. @end table -The GL maintains a 3D position in window coordinates. This position, +The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write -operations. It is maintained with subpixel accuracy. See +operations. It is maintained with subpixel accuracy. See @code{glBitmap}, @code{glDrawPixels}, and @code{glCopyPixels}. The current raster position consists of three window coordinates (@r{@var{x}}, @r{@var{y}}, @r{@var{z}}), a clip coordinate value (@r{@var{w}}), an eye coordinate distance, a valid bit, and associated -color data and texture coordinates. The @r{@var{w}} coordinate is a clip -coordinate, because @r{@var{w}} is not projected to window coordinates. -@code{glRasterPos4} specifies object coordinates @r{@var{x}}, -@r{@var{y}}, @r{@var{z}}, and @r{@var{w}} explicitly. +color data and texture coordinates. The @r{@var{w}} coordinate is a +clip coordinate, because @r{@var{w}} is not projected to window +coordinates. @code{glRasterPos4} specifies object coordinates +@r{@var{x}}, @r{@var{y}}, @r{@var{z}}, and @r{@var{w}} explicitly. @code{glRasterPos3} specifies object coordinate @r{@var{x}}, @r{@var{y}}, and @r{@var{z}} explicitly, while @r{@var{w}} is implicitly -set to 1. @code{glRasterPos2} uses the argument values for @r{@var{x}} +set to 1. @code{glRasterPos2} uses the argument values for @r{@var{x}} and @r{@var{y}} while implicitly setting @r{@var{z}} and @r{@var{w}} to 0 and 1. The object coordinates presented by @code{glRasterPos} are treated just like those of a @code{glVertex} command: They are transformed by the current modelview and projection matrices and passed to the clipping -stage. If the vertex is not culled, then it is projected and scaled to +stage. If the vertex is not culled, then it is projected and scaled to window coordinates, which become the new current raster position, and -the @code{GL_CURRENT_RASTER_POSITION_VALID} flag is set. If the vertex +the @code{GL_CURRENT_RASTER_POSITION_VALID} flag is set. If the vertex @var{is} culled, then the valid bit is cleared and the current raster position and associated color and texture coordinates are undefined. The current raster position also includes some associated color data and -texture coordinates. If lighting is enabled, then +texture coordinates. If lighting is enabled, then @code{GL_CURRENT_RASTER_COLOR} (in RGBA mode) or @code{GL_CURRENT_RASTER_INDEX} (in color index mode) is set to the color produced by the lighting calculation (see @code{glLight}, -@code{glLightModel}, and @code{glShadeModel}). If lighting is disabled, +@code{glLightModel}, and @code{glShadeModel}). If lighting is disabled, current color (in RGBA mode, state variable @code{GL_CURRENT_COLOR}) or color index (in color index mode, state variable @code{GL_CURRENT_INDEX}) is used to update the current raster color. @@ -18078,7 +18111,7 @@ the vertex as transformed by only the modelview matrix replaces Initially, the current raster position is (0, 0, 0, 1), the current raster distance is 0, the valid bit is set, the associated RGBA color is (1, 1, 1, 1), the associated color index is 1, and the associated -texture coordinates are (0, 0, 0, 1). In RGBA mode, +texture coordinates are (0, 0, 0, 1). In RGBA mode, @code{GL_CURRENT_RASTER_INDEX} is always 1; in color index mode, the current raster RGBA color always maintains its initial value. @@ -18093,7 +18126,7 @@ Select a color buffer source for pixels. @table @asis @item @var{mode} -Specifies a color buffer. Accepted values are @code{GL_FRONT_LEFT}, +Specifies a color buffer. Accepted values are @code{GL_FRONT_LEFT}, @code{GL_FRONT_RIGHT}, @code{GL_BACK_LEFT}, @code{GL_BACK_RIGHT}, @code{GL_FRONT}, @code{GL_BACK}, @code{GL_LEFT}, @code{GL_RIGHT}, and @code{GL_AUX}@var{i}, where @var{i} is between 0 and the value of @@ -18105,17 +18138,18 @@ Specifies a color buffer. Accepted values are @code{GL_FRONT_LEFT}, subsequent @code{glReadPixels}, @code{glCopyTexImage1D}, @code{glCopyTexImage2D}, @code{glCopyTexSubImage1D}, @code{glCopyTexSubImage2D}, @code{glCopyTexSubImage3D}, and -@code{glCopyPixels} commands. @var{mode} accepts one of twelve or more -predefined values. (@code{GL_AUX0} through @code{GL_AUX3} are always +@code{glCopyPixels} commands. @var{mode} accepts one of twelve or more +predefined values. (@code{GL_AUX0} through @code{GL_AUX3} are always defined.) In a fully configured system, @code{GL_FRONT}, @code{GL_LEFT}, and @code{GL_FRONT_LEFT} all name the front left buffer, @code{GL_FRONT_RIGHT} and @code{GL_RIGHT} name the front right buffer, and @code{GL_BACK_LEFT} and @code{GL_BACK} name the back left buffer. Nonstereo double-buffered configurations have only a front left and a -back left buffer. Single-buffered configurations have a front left and a -front right buffer if stereo, and only a front left buffer if nonstereo. -It is an error to specify a nonexistent buffer to @code{glReadBuffer}. +back left buffer. Single-buffered configurations have a front left and +a front right buffer if stereo, and only a front left buffer if +nonstereo. It is an error to specify a nonexistent buffer to +@code{glReadBuffer}. @var{mode} is initially @code{GL_FRONT} in single-buffered configurations and @code{GL_BACK} in double-buffered configurations. @@ -18139,16 +18173,16 @@ Read a block of pixels from the frame buffer. @item @var{x} @itemx @var{y} Specify the window coordinates of the first pixel that is read from the -frame buffer. This location is the lower left corner of a rectangular +frame buffer. This location is the lower left corner of a rectangular block of pixels. @item @var{width} @itemx @var{height} -Specify the dimensions of the pixel rectangle. @var{width} and +Specify the dimensions of the pixel rectangle. @var{width} and @var{height} of one correspond to a single pixel. @item @var{format} -Specifies the format of the pixel data. The following symbolic values +Specifies the format of the pixel data. The following symbolic values are accepted: @code{GL_COLOR_INDEX}, @code{GL_STENCIL_INDEX}, @code{GL_DEPTH_COMPONENT}, @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @@ -18156,7 +18190,7 @@ are accepted: @code{GL_COLOR_INDEX}, @code{GL_STENCIL_INDEX}, @code{GL_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type of the pixel data. Must be one of +Specifies the data type of the pixel data. Must be one of @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @@ -18174,10 +18208,10 @@ Returns the pixel data. @code{glReadPixels} returns pixel data from the frame buffer, starting with the pixel whose lower left corner is at location (@var{x}, -@var{y}), into client memory starting at location @var{data}. Several +@var{y}), into client memory starting at location @var{data}. Several parameters control the processing of the pixel data before it is placed -into client memory. These parameters are set with three commands: -@code{glPixelStore}, @code{glPixelTransfer}, and @code{glPixelMap}. This +into client memory. These parameters are set with three commands: +@code{glPixelStore}, @code{glPixelTransfer}, and @code{glPixelMap}. This reference page describes the effects on @code{glReadPixels} of most, but not all of the parameters specified by these three commands. @@ -18194,8 +18228,8 @@ maximum pixel value computations. @code{glReadPixels} returns values from each pixel with lower left corner at @r{(@var{x}+@var{i},@var{y}+@var{j})} for -@r{0<=@var{i}<@var{width}} and @r{0<=@var{j}<@var{height}}. This pixel -is said to be the @r{@var{i}}th pixel in the @r{@var{j}}th row. Pixels +@r{0<=@var{i}<@var{width}} and @r{0<=@var{j}<@var{height}}. This pixel +is said to be the @r{@var{i}}th pixel in the @r{@var{j}}th row. Pixels are returned in row order from the lowest to the highest row, left to right in each row. @@ -18205,23 +18239,23 @@ accepted values are: @table @asis @item @code{GL_COLOR_INDEX} Color indices are read from the color buffer selected by -@code{glReadBuffer}. Each index is converted to fixed point, shifted +@code{glReadBuffer}. Each index is converted to fixed point, shifted left or right depending on the value and sign of @code{GL_INDEX_SHIFT}, -and added to @code{GL_INDEX_OFFSET}. If @code{GL_MAP_COLOR} is +and added to @code{GL_INDEX_OFFSET}. If @code{GL_MAP_COLOR} is @code{GL_TRUE}, indices are replaced by their mappings in the table @code{GL_PIXEL_MAP_I_TO_I}. @item @code{GL_STENCIL_INDEX} -Stencil values are read from the stencil buffer. Each index is converted -to fixed point, shifted left or right depending on the value and sign of -@code{GL_INDEX_SHIFT}, and added to @code{GL_INDEX_OFFSET}. If -@code{GL_MAP_STENCIL} is @code{GL_TRUE}, indices are replaced by their -mappings in the table @code{GL_PIXEL_MAP_S_TO_S}. +Stencil values are read from the stencil buffer. Each index is +converted to fixed point, shifted left or right depending on the value +and sign of @code{GL_INDEX_SHIFT}, and added to @code{GL_INDEX_OFFSET}. +If @code{GL_MAP_STENCIL} is @code{GL_TRUE}, indices are replaced by +their mappings in the table @code{GL_PIXEL_MAP_S_TO_S}. @item @code{GL_DEPTH_COMPONENT} -Depth values are read from the depth buffer. Each component is converted -to floating point such that the minimum depth value maps to 0 and the -maximum value maps to 1. Each component is then multiplied by +Depth values are read from the depth buffer. Each component is +converted to floating point such that the minimum depth value maps to 0 +and the maximum value maps to 1. Each component is then multiplied by @code{GL_DEPTH_SCALE}, added to @code{GL_DEPTH_BIAS}, and finally clamped to the range @r{[0,1]}. @@ -18236,46 +18270,46 @@ clamped to the range @r{[0,1]}. @item @code{GL_LUMINANCE} @item @code{GL_LUMINANCE_ALPHA} Processing differs depending on whether color buffers store color -indices or RGBA color components. If color indices are stored, they are -read from the color buffer selected by @code{glReadBuffer}. Each index +indices or RGBA color components. If color indices are stored, they are +read from the color buffer selected by @code{glReadBuffer}. Each index is converted to fixed point, shifted left or right depending on the value and sign of @code{GL_INDEX_SHIFT}, and added to -@code{GL_INDEX_OFFSET}. Indices are then replaced by the red, green, +@code{GL_INDEX_OFFSET}. Indices are then replaced by the red, green, blue, and alpha values obtained by indexing the tables @code{GL_PIXEL_MAP_I_TO_R}, @code{GL_PIXEL_MAP_I_TO_G}, -@code{GL_PIXEL_MAP_I_TO_B}, and @code{GL_PIXEL_MAP_I_TO_A}. Each table +@code{GL_PIXEL_MAP_I_TO_B}, and @code{GL_PIXEL_MAP_I_TO_A}. Each table must be of size @r{2^@var{n}}, but @r{@var{n}} may be different for -different tables. Before an index is used to look up a value in a table +different tables. Before an index is used to look up a value in a table of size @r{2^@var{n}}, it must be masked against @r{2^@var{n}-1}. If RGBA color components are stored in the color buffers, they are read -from the color buffer selected by @code{glReadBuffer}. Each color +from the color buffer selected by @code{glReadBuffer}. Each color component is converted to floating point such that zero intensity maps -to 0.0 and full intensity maps to 1.0. Each component is then multiplied -by @code{GL_c_SCALE} and added to @code{GL_c_BIAS}, where @var{c} is -RED, GREEN, BLUE, or ALPHA. Finally, if @code{GL_MAP_COLOR} is -@code{GL_TRUE}, each component is clamped to the range @r{[0,1]}, scaled -to the size of its corresponding table, and is then replaced by its -mapping in the table @code{GL_PIXEL_MAP_c_TO_c}, where @var{c} is R, G, -B, or A. - -Unneeded data is then discarded. For example, @code{GL_RED} discards the -green, blue, and alpha components, while @code{GL_RGB} discards only the -alpha component. @code{GL_LUMINANCE} computes a single-component value -as the sum of the red, green, and blue components, and +to 0.0 and full intensity maps to 1.0. Each component is then +multiplied by @code{GL_c_SCALE} and added to @code{GL_c_BIAS}, where +@var{c} is RED, GREEN, BLUE, or ALPHA. Finally, if @code{GL_MAP_COLOR} +is @code{GL_TRUE}, each component is clamped to the range @r{[0,1]}, +scaled to the size of its corresponding table, and is then replaced by +its mapping in the table @code{GL_PIXEL_MAP_c_TO_c}, where @var{c} is R, +G, B, or A. + +Unneeded data is then discarded. For example, @code{GL_RED} discards +the green, blue, and alpha components, while @code{GL_RGB} discards only +the alpha component. @code{GL_LUMINANCE} computes a single-component +value as the sum of the red, green, and blue components, and @code{GL_LUMINANCE_ALPHA} does the same, while keeping alpha as a second -value. The final values are clamped to the range @r{[0,1]}. +value. The final values are clamped to the range @r{[0,1]}. @end table The shift, scale, bias, and lookup factors just described are all -specified by @code{glPixelTransfer}. The lookup table contents +specified by @code{glPixelTransfer}. The lookup table contents themselves are specified by @code{glPixelMap}. Finally, the indices or components are converted to the proper format, -as specified by @var{type}. If @var{format} is @code{GL_COLOR_INDEX} or +as specified by @var{type}. If @var{format} is @code{GL_COLOR_INDEX} or @code{GL_STENCIL_INDEX} and @var{type} is not @code{GL_FLOAT}, each -index is masked with the mask value given in the following table. If +index is masked with the mask value given in the following table. If @var{type} is @code{GL_FLOAT}, then each integer index is converted to single-precision floating-point format. @@ -18283,7 +18317,7 @@ If @var{format} is @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, or @code{GL_LUMINANCE_ALPHA} and @var{type} is not @code{GL_FLOAT}, each component is multiplied by the -multiplier shown in the following table. If type is @code{GL_FLOAT}, +multiplier shown in the following table. If type is @code{GL_FLOAT}, then each component is passed as is (or converted to the client's single-precision floating-point format if it is different from the one used by the GL). @@ -18320,19 +18354,19 @@ none , @r{@var{c}} @end table -Return values are placed in memory as follows. If @var{format} is +Return values are placed in memory as follows. If @var{format} is @code{GL_COLOR_INDEX}, @code{GL_STENCIL_INDEX}, @code{GL_DEPTH_COMPONENT}, @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, or @code{GL_LUMINANCE}, a single value is returned and the data for the @r{@var{i}}th pixel in the @r{@var{j}}th row is placed in location -@r{(@var{j},)⁢@var{width}+@var{i}}. @code{GL_RGB} and @code{GL_BGR} +@r{(@var{j},)⁢@var{width}+@var{i}}. @code{GL_RGB} and @code{GL_BGR} return three values, @code{GL_RGBA} and @code{GL_BGRA} return four values, and @code{GL_LUMINANCE_ALPHA} returns two values for each pixel, with all values corresponding to a single pixel occupying contiguous -space in @var{data}. Storage parameters set by @code{glPixelStore}, such -as @code{GL_PACK_LSB_FIRST} and @code{GL_PACK_SWAP_BYTES}, affect the -way that data is written into memory. See @code{glPixelStore} for a +space in @var{data}. Storage parameters set by @code{glPixelStore}, +such as @code{GL_PACK_LSB_FIRST} and @code{GL_PACK_SWAP_BYTES}, affect +the way that data is written into memory. See @code{glPixelStore} for a description. @code{GL_INVALID_ENUM} is generated if @var{format} or @var{type} is not @@ -18419,10 +18453,10 @@ Specify the opposite vertex of the rectangle. @end table @code{glRect} supports efficient specification of rectangles as two -corner points. Each rectangle command takes four arguments, organized +corner points. Each rectangle command takes four arguments, organized either as two consecutive pairs of @r{(@var{x},@var{y})} coordinates or as two pointers to arrays, each containing an @r{(@var{x},@var{y})} -pair. The resulting rectangle is defined in the @r{@var{z}=0} plane. +pair. The resulting rectangle is defined in the @r{@var{z}=0} plane. @code{glRect}(@var{x1}, @var{y1}, @var{x2}, @var{y2}) is exactly equivalent to the following sequence: Note that if the second vertex is @@ -18450,31 +18484,31 @@ Set rasterization mode. @table @asis @item @var{mode} -Specifies the rasterization mode. Three values are accepted: -@code{GL_RENDER}, @code{GL_SELECT}, and @code{GL_FEEDBACK}. The initial +Specifies the rasterization mode. Three values are accepted: +@code{GL_RENDER}, @code{GL_SELECT}, and @code{GL_FEEDBACK}. The initial value is @code{GL_RENDER}. @end table -@code{glRenderMode} sets the rasterization mode. It takes one argument, +@code{glRenderMode} sets the rasterization mode. It takes one argument, @var{mode}, which can assume one of three predefined values: @table @asis @item @code{GL_RENDER} -Render mode. Primitives are rasterized, producing pixel fragments, which -are written into the frame buffer. This is the normal mode and also the -default mode. +Render mode. Primitives are rasterized, producing pixel fragments, +which are written into the frame buffer. This is the normal mode and +also the default mode. @item @code{GL_SELECT} -Selection mode. No pixel fragments are produced, and no change to the -frame buffer contents is made. Instead, a record of the names of +Selection mode. No pixel fragments are produced, and no change to the +frame buffer contents is made. Instead, a record of the names of primitives that would have been drawn if the render mode had been @code{GL_RENDER} is returned in a select buffer, which must be created (see @code{glSelectBuffer}) before selection mode is entered. @item @code{GL_FEEDBACK} -Feedback mode. No pixel fragments are produced, and no change to the -frame buffer contents is made. Instead, the coordinates and attributes +Feedback mode. No pixel fragments are produced, and no change to the +frame buffer contents is made. Instead, the coordinates and attributes of vertices that would have been drawn if the render mode had been @code{GL_RENDER} is returned in a feedback buffer, which must be created (see @code{glFeedbackBuffer}) before feedback mode is entered. @@ -18580,7 +18614,7 @@ respectively. @end table @code{glRotate} produces a rotation of @var{angle} degrees around the -vector @r{(@var{x},@var{y}@var{z})}. The current matrix (see +vector @r{(@var{x},@var{y}@var{z})}. The current matrix (see @code{glMatrixMode}) is multiplied by a rotation matrix with the product replacing the current matrix, as if @code{glMultMatrix} were called with the following matrix as its argument: @@ -18608,7 +18642,7 @@ vector). If the matrix mode is either @code{GL_MODELVIEW} or @code{GL_PROJECTION}, all objects drawn after @code{glRotate} is called -are rotated. Use @code{glPushMatrix} and @code{glPopMatrix} to save and +are rotated. Use @code{glPushMatrix} and @code{glPopMatrix} to save and restore the unrotated coordinate system. @code{GL_INVALID_OPERATION} is generated if @code{glRotate} is executed @@ -18622,25 +18656,25 @@ Specify multisample coverage parameters. @table @asis @item @var{value} -Specify a single floating-point sample coverage value. The value is -clamped to the range @r{[0,1]}. The initial value is 1.0. +Specify a single floating-point sample coverage value. The value is +clamped to the range @r{[0,1]}. The initial value is 1.0. @item @var{invert} Specify a single boolean value representing if the coverage masks should -be inverted. @code{GL_TRUE} and @code{GL_FALSE} are accepted. The +be inverted. @code{GL_TRUE} and @code{GL_FALSE} are accepted. The initial value is @code{GL_FALSE}. @end table Multisampling samples a pixel multiple times at various implementation-dependent subpixel locations to generate antialiasing -effects. Multisampling transparently antialiases points, lines, +effects. Multisampling transparently antialiases points, lines, polygons, bitmaps, and images if it is enabled. @var{value} is used in constructing a temporary mask used in determining -which samples will be used in resolving the final fragment color. This +which samples will be used in resolving the final fragment color. This mask is bitwise-anded with the coverage mask generated from the -multisampling computation. If the @var{invert} flag is set, the +multisampling computation. If the @var{invert} flag is set, the temporary mask is inverted (all bits flipped) and then the bitwise-and is computed. @@ -18650,7 +18684,7 @@ sample computing a pixel's final RGB color. Provided an implementation supports multisample buffers, and multisampling is enabled, then a pixel's final color is generated by -combining several samples per pixel. Each sample contains color, depth, +combining several samples per pixel. Each sample contains color, depth, and stencil information, allowing those operations to be performed on each sample. @@ -18674,8 +18708,8 @@ respectively. @end table @code{glScale} produces a nonuniform scaling along the @var{x}, @var{y}, -and @var{z} axes. The three parameters indicate the desired scale factor -along each of the three axes. +and @var{z} axes. The three parameters indicate the desired scale +factor along each of the three axes. The current matrix (see @code{glMatrixMode}) is multiplied by this scale matrix, and the product replaces the current matrix as if @@ -18703,27 +18737,27 @@ Define the scissor box. @table @asis @item @var{x} @itemx @var{y} -Specify the lower left corner of the scissor box. Initially (0, 0). +Specify the lower left corner of the scissor box. Initially (0, 0). @item @var{width} @itemx @var{height} -Specify the width and height of the scissor box. When a GL context is +Specify the width and height of the scissor box. When a GL context is first attached to a window, @var{width} and @var{height} are set to the dimensions of that window. @end table @code{glScissor} defines a rectangle, called the scissor box, in window -coordinates. The first two arguments, @var{x} and @var{y}, specify the -lower left corner of the box. @var{width} and @var{height} specify the +coordinates. The first two arguments, @var{x} and @var{y}, specify the +lower left corner of the box. @var{width} and @var{height} specify the width and height of the box. To enable and disable the scissor test, call @code{glEnable} and -@code{glDisable} with argument @code{GL_SCISSOR_TEST}. The test is -initially disabled. While the test is enabled, only pixels that lie -within the scissor box can be modified by drawing commands. Window +@code{glDisable} with argument @code{GL_SCISSOR_TEST}. The test is +initially disabled. While the test is enabled, only pixels that lie +within the scissor box can be modified by drawing commands. Window coordinates have integer values at the shared corners of frame buffer -pixels. @code{glScissor(0,0,1,1)} allows modification of only the lower +pixels. @code{glScissor(0,0,1,1)} allows modification of only the lower left pixel in the window, and @code{glScissor(0,0,0,0)} doesn't allow modification of any pixels in the window. @@ -18744,37 +18778,38 @@ Define an array of secondary colors. @table @asis @item @var{size} -Specifies the number of components per color. Must be 3. +Specifies the number of components per color. Must be 3. @item @var{type} -Specifies the data type of each color component in the array. Symbolic +Specifies the data type of each color component in the array. Symbolic constants @code{GL_BYTE}, @code{GL_UNSIGNED_BYTE}, @code{GL_SHORT}, @code{GL_UNSIGNED_SHORT}, @code{GL_INT}, @code{GL_UNSIGNED_INT}, -@code{GL_FLOAT}, or @code{GL_DOUBLE} are accepted. The initial value is +@code{GL_FLOAT}, or @code{GL_DOUBLE} are accepted. The initial value is @code{GL_FLOAT}. @item @var{stride} -Specifies the byte offset between consecutive colors. If @var{stride} is -0, the colors are understood to be tightly packed in the array. The +Specifies the byte offset between consecutive colors. If @var{stride} +is 0, the colors are understood to be tightly packed in the array. The initial value is 0. @item @var{pointer} Specifies a pointer to the first component of the first color element in -the array. The initial value is 0. +the array. The initial value is 0. @end table @code{glSecondaryColorPointer} specifies the location and data format of -an array of color components to use when rendering. @var{size} specifies -the number of components per color, and must be 3. @var{type} specifies -the data type of each color component, and @var{stride} specifies the -byte stride from one color to the next, allowing vertices and attributes -to be packed into a single array or stored in separate arrays. +an array of color components to use when rendering. @var{size} +specifies the number of components per color, and must be 3. @var{type} +specifies the data type of each color component, and @var{stride} +specifies the byte stride from one color to the next, allowing vertices +and attributes to be packed into a single array or stored in separate +arrays. If a non-zero named buffer object is bound to the @code{GL_ARRAY_BUFFER} target (see @code{glBindBuffer}) while a secondary color array is specified, @var{pointer} is treated as a byte offset into the buffer -object's data store. Also, the buffer object binding +object's data store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) is saved as secondary color vertex array client-side state (@code{GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING}). @@ -18785,7 +18820,7 @@ addition to the current vertex array buffer object binding. To enable and disable the secondary color array, call @code{glEnableClientState} and @code{glDisableClientState} with the -argument @code{GL_SECONDARY_COLOR_ARRAY}. If enabled, the secondary +argument @code{GL_SECONDARY_COLOR_ARRAY}. If enabled, the secondary color array is used when @code{glArrayElement}, @code{glDrawArrays}, @code{glMultiDrawArrays}, @code{glDrawElements}, @code{glMultiDrawElements}, or @code{glDrawRangeElements} is called. @@ -18830,32 +18865,32 @@ four-valued RGBA color (where alpha is always set to 0.0) that is associated with every vertex. The secondary color is interpolated and applied to each fragment during -rasterization when @code{GL_COLOR_SUM} is enabled. When lighting is +rasterization when @code{GL_COLOR_SUM} is enabled. When lighting is enabled, and @code{GL_SEPARATE_SPECULAR_COLOR} is specified, the value of the secondary color is assigned the value computed from the specular -term of the lighting computation. Both the primary and secondary current -colors are applied to each fragment, regardless of the state of -@code{GL_COLOR_SUM}, under such conditions. When +term of the lighting computation. Both the primary and secondary +current colors are applied to each fragment, regardless of the state of +@code{GL_COLOR_SUM}, under such conditions. When @code{GL_SEPARATE_SPECULAR_COLOR} is specified, the value returned from querying the current secondary color is undefined. @code{glSecondaryColor3b}, @code{glSecondaryColor3s}, and @code{glSecondaryColor3i} take three signed byte, short, or long -integers as arguments. When @strong{v} is appended to the name, the +integers as arguments. When @strong{v} is appended to the name, the color commands can take a pointer to an array of such values. Color values are stored in floating-point format, with unspecified -mantissa and exponent sizes. Unsigned integer color components, when +mantissa and exponent sizes. Unsigned integer color components, when specified, are linearly mapped to floating-point values such that the largest representable value maps to 1.0 (full intensity), and 0 maps to -0.0 (zero intensity). Signed integer color components, when specified, +0.0 (zero intensity). Signed integer color components, when specified, are linearly mapped to floating-point values such that the most positive representable value maps to 1.0, and the most negative representable -value maps to @r{-1.0}. (Note that this mapping does not convert 0 -precisely to 0.0). Floating-point values are mapped directly. +value maps to @r{-1.0}. (Note that this mapping does not convert 0 +precisely to 0.0). Floating-point values are mapped directly. Neither floating-point nor signed integer values are clamped to the -range @r{[0,1]} before the current color is updated. However, color +range @r{[0,1]} before the current color is updated. However, color components are clamped to this range before they are interpolated or written into a color buffer. @@ -18875,24 +18910,24 @@ Returns the selection data. @code{glSelectBuffer} has two arguments: @var{buffer} is a pointer to an array of unsigned integers, and @var{size} indicates the size of the -array. @var{buffer} returns values from the name stack (see +array. @var{buffer} returns values from the name stack (see @code{glInitNames}, @code{glLoadName}, @code{glPushName}) when the rendering mode is @code{GL_SELECT} (see @code{glRenderMode}). @code{glSelectBuffer} must be issued before selection mode is enabled, and it must not be issued while the rendering mode is @code{GL_SELECT}. A programmer can use selection to determine which primitives are drawn -into some region of a window. The region is defined by the current +into some region of a window. The region is defined by the current modelview and perspective matrices. In selection mode, no pixel fragments are produced from rasterization. Instead, if a primitive or a raster position intersects the clipping volume defined by the viewing frustum and the user-defined clipping -planes, this primitive causes a selection hit. (With polygons, no hit +planes, this primitive causes a selection hit. (With polygons, no hit occurs if the polygon is culled.) When a change is made to the name stack, or when @code{glRenderMode} is called, a hit record is copied to @var{buffer} if any hits have occurred since the last such event (name -stack change or @code{glRenderMode} call). The hit record consists of +stack change or @code{glRenderMode} call). The hit record consists of the number of names in the name stack at the time of the event, followed by the minimum and maximum depth values of all vertices that hit since the previous event, followed by the name stack contents, bottom name @@ -18902,19 +18937,19 @@ Depth values (which are in the range [0,1]) are multiplied by @r{2^32-1}, before being placed in the hit record. An internal index into @var{buffer} is reset to 0 whenever selection -mode is entered. Each time a hit record is copied into @var{buffer}, the -index is incremented to point to the cell just past the end of the block -of names\(emthat is, to the next available cell If the hit record is -larger than the number of remaining locations in @var{buffer}, as much -data as can fit is copied, and the overflow flag is set. If the name -stack is empty when a hit record is copied, that record consists of 0 -followed by the minimum and maximum depth values. +mode is entered. Each time a hit record is copied into @var{buffer}, +the index is incremented to point to the cell just past the end of the +block of names\(emthat is, to the next available cell If the hit record +is larger than the number of remaining locations in @var{buffer}, as +much data as can fit is copied, and the overflow flag is set. If the +name stack is empty when a hit record is copied, that record consists of +0 followed by the minimum and maximum depth values. To exit selection mode, call @code{glRenderMode} with an argument other -than @code{GL_SELECT}. Whenever @code{glRenderMode} is called while the +than @code{GL_SELECT}. Whenever @code{glRenderMode} is called while the render mode is @code{GL_SELECT}, it returns the number of hit records copied to @var{buffer}, resets the overflow flag and the selection -buffer pointer, and initializes the name stack to be empty. If the +buffer pointer, and initializes the name stack to be empty. If the overflow bit was set when @code{glRenderMode} was called, a negative hit record count is returned. @@ -18939,7 +18974,7 @@ Define a separable two-dimensional convolution filter. Must be @code{GL_SEPARABLE_2D}. @item @var{internalformat} -The internal format of the convolution filter kernel. The allowable +The internal format of the convolution filter kernel. The allowable values are @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_LUMINANCE}, @code{GL_LUMINANCE4}, @code{GL_LUMINANCE8}, @code{GL_LUMINANCE12}, @@ -18955,7 +18990,7 @@ values are @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_RGB10_A2}, @code{GL_RGBA12}, or @code{GL_RGBA16}. @item @var{width} -The number of elements in the pixel array referenced by @var{row}. (This +The number of elements in the pixel array referenced by @var{row}. (This is the width of the separable filter kernel.) @item @var{height} @@ -18963,14 +18998,14 @@ The number of elements in the pixel array referenced by @var{column}. (This is the height of the separable filter kernel.) @item @var{format} -The format of the pixel data in @var{row} and @var{column}. The +The format of the pixel data in @var{row} and @var{column}. The allowable values are @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_INTENSITY}, @code{GL_LUMINANCE}, and @code{GL_LUMINANCE_ALPHA}. @item @var{type} -The type of the pixel data in @var{row} and @var{column}. Symbolic +The type of the pixel data in @var{row} and @var{column}. Symbolic constants @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, @@ -19007,19 +19042,19 @@ as byte offsets into the buffer object's data store. Next, the R, G, B, and A components of all pixels in both arrays are scaled by the four separable 2D @code{GL_CONVOLUTION_FILTER_SCALE} parameters and biased by the four separable 2D -@code{GL_CONVOLUTION_FILTER_BIAS} parameters. (The scale and bias +@code{GL_CONVOLUTION_FILTER_BIAS} parameters. (The scale and bias parameters are set by @code{glConvolutionParameter} using the @code{GL_SEPARABLE_2D} target and the names @code{GL_CONVOLUTION_FILTER_SCALE} and -@code{GL_CONVOLUTION_FILTER_BIAS}. The parameters themselves are vectors -of four values that are applied to red, green, blue, and alpha, in that -order.) The R, G, B, and A values are not clamped to [0,1] at any time -during this process. +@code{GL_CONVOLUTION_FILTER_BIAS}. The parameters themselves are +vectors of four values that are applied to red, green, blue, and alpha, +in that order.) The R, G, B, and A values are not clamped to [0,1] at +any time during this process. Each pixel is then converted to the internal format specified by -@var{internalformat}. This conversion simply maps the component values +@var{internalformat}. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal -format (red, green, blue, alpha, luminance, and intensity). The mapping +format (red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @table @asis @@ -19046,11 +19081,11 @@ R , G , B , A , , The red, green, blue, alpha, luminance, and/or intensity components of the resulting pixels are stored in floating-point rather than integer -format. They form two one-dimensional filter kernel images. The row +format. They form two one-dimensional filter kernel images. The row image is indexed by coordinate @var{i} starting at zero and increasing -from left to right. Each location in the row image is derived from -element @var{i} of @var{row}. The column image is indexed by coordinate -@var{j} starting at zero and increasing from bottom to top. Each +from left to right. Each location in the row image is derived from +element @var{i} of @var{row}. The column image is indexed by coordinate +@var{j} starting at zero and increasing from bottom to top. Each location in the column image is derived from element @var{j} of @var{column}. @@ -19059,7 +19094,8 @@ components are also scaled by their corresponding @code{GL_POST_CONVOLUTION_c_SCALE} parameters and biased by their corresponding @code{GL_POST_CONVOLUTION_c_BIAS} parameters (where @var{c} takes on the values @strong{RED}, @strong{GREEN}, @strong{BLUE}, -and @strong{ALPHA}). These parameters are set by @code{glPixelTransfer}. +and @strong{ALPHA}). These parameters are set by +@code{glPixelTransfer}. @code{GL_INVALID_ENUM} is generated if @var{target} is not @code{GL_SEPARABLE_2D}. @@ -19074,12 +19110,12 @@ allowable values. allowable values. @code{GL_INVALID_VALUE} is generated if @var{width} is less than zero or -greater than the maximum supported value. This value may be queried with -@code{glGetConvolutionParameter} using target @code{GL_SEPARABLE_2D} and -name @code{GL_MAX_CONVOLUTION_WIDTH}. +greater than the maximum supported value. This value may be queried +with @code{glGetConvolutionParameter} using target +@code{GL_SEPARABLE_2D} and name @code{GL_MAX_CONVOLUTION_WIDTH}. @code{GL_INVALID_VALUE} is generated if @var{height} is less than zero -or greater than the maximum supported value. This value may be queried +or greater than the maximum supported value. This value may be queried with @code{glGetConvolutionParameter} using target @code{GL_SEPARABLE_2D} and name @code{GL_MAX_CONVOLUTION_HEIGHT}. @@ -19121,30 +19157,30 @@ Select flat or smooth shading. @table @asis @item @var{mode} -Specifies a symbolic value representing a shading technique. Accepted -values are @code{GL_FLAT} and @code{GL_SMOOTH}. The initial value is +Specifies a symbolic value representing a shading technique. Accepted +values are @code{GL_FLAT} and @code{GL_SMOOTH}. The initial value is @code{GL_SMOOTH}. @end table -GL primitives can have either flat or smooth shading. Smooth shading, +GL primitives can have either flat or smooth shading. Smooth shading, the default, causes the computed colors of vertices to be interpolated as the primitive is rasterized, typically assigning different colors to -each resulting pixel fragment. Flat shading selects the computed color +each resulting pixel fragment. Flat shading selects the computed color of just one vertex and assigns it to all the pixel fragments generated -by rasterizing a single primitive. In either case, the computed color of -a vertex is the result of lighting if lighting is enabled, or it is the -current color at the time the vertex was specified if lighting is +by rasterizing a single primitive. In either case, the computed color +of a vertex is the result of lighting if lighting is enabled, or it is +the current color at the time the vertex was specified if lighting is disabled. -Flat and smooth shading are indistinguishable for points. Starting when +Flat and smooth shading are indistinguishable for points. Starting when @code{glBegin} is issued and counting vertices and primitives from 1, the GL gives each flat-shaded line segment @r{@var{i}} the computed -color of vertex @r{@var{i}+1}, its second vertex. Counting similarly +color of vertex @r{@var{i}+1}, its second vertex. Counting similarly from 1, the GL gives each flat-shaded polygon the computed color of the -vertex listed in the following table. This is the last vertex to specify -the polygon in all cases except single polygons, where the first vertex -specifies the flat-shaded color. +vertex listed in the following table. This is the last vertex to +specify the polygon in all cases except single polygons, where the first +vertex specifies the flat-shaded color. @@ -19214,18 +19250,18 @@ Specifies an array of string lengths. @end table @code{glShaderSource} sets the source code in @var{shader} to the source -code in the array of strings specified by @var{string}. Any source code -previously stored in the shader object is completely replaced. The -number of strings in the array is specified by @var{count}. If +code in the array of strings specified by @var{string}. Any source code +previously stored in the shader object is completely replaced. The +number of strings in the array is specified by @var{count}. If @var{length} is @code{NULL}, each string is assumed to be null -terminated. If @var{length} is a value other than @code{NULL}, it points -to an array containing a string length for each of the corresponding -elements of @var{string}. Each element in the @var{length} array may -contain the length of the corresponding string (the null character is -not counted as part of the string length) or a value less than 0 to -indicate that the string is null terminated. The source code strings are -not scanned or parsed at this time; they are simply copied into the -specified shader object. +terminated. If @var{length} is a value other than @code{NULL}, it +points to an array containing a string length for each of the +corresponding elements of @var{string}. Each element in the +@var{length} array may contain the length of the corresponding string +(the null character is not counted as part of the string length) or a +value less than 0 to indicate that the string is null terminated. The +source code strings are not scanned or parsed at this time; they are +simply copied into the specified shader object. @code{GL_INVALID_VALUE} is generated if @var{shader} is not a value generated by OpenGL. @@ -19246,39 +19282,39 @@ Set front and/or back function and reference value for stencil testing. @table @asis @item @var{face} -Specifies whether front and/or back stencil state is updated. Three +Specifies whether front and/or back stencil state is updated. Three symbolic constants are valid: @code{GL_FRONT}, @code{GL_BACK}, and @code{GL_FRONT_AND_BACK}. @item @var{func} -Specifies the test function. Eight symbolic constants are valid: +Specifies the test function. Eight symbolic constants are valid: @code{GL_NEVER}, @code{GL_LESS}, @code{GL_LEQUAL}, @code{GL_GREATER}, @code{GL_GEQUAL}, @code{GL_EQUAL}, @code{GL_NOTEQUAL}, and -@code{GL_ALWAYS}. The initial value is @code{GL_ALWAYS}. +@code{GL_ALWAYS}. The initial value is @code{GL_ALWAYS}. @item @var{ref} -Specifies the reference value for the stencil test. @var{ref} is clamped -to the range @r{[0,2^@var{n}-1]}, where @r{@var{n}} is the number of -bitplanes in the stencil buffer. The initial value is 0. +Specifies the reference value for the stencil test. @var{ref} is +clamped to the range @r{[0,2^@var{n}-1]}, where @r{@var{n}} is the +number of bitplanes in the stencil buffer. The initial value is 0. @item @var{mask} Specifies a mask that is ANDed with both the reference value and the -stored stencil value when the test is done. The initial value is all +stored stencil value when the test is done. The initial value is all 1's. @end table Stenciling, like depth-buffering, enables and disables drawing on a -per-pixel basis. You draw into the stencil planes using GL drawing +per-pixel basis. You draw into the stencil planes using GL drawing primitives, then render geometry and images, using the stencil planes to -mask out portions of the screen. Stenciling is typically used in +mask out portions of the screen. Stenciling is typically used in multipass rendering algorithms to achieve special effects, such as decals, outlining, and constructive solid geometry rendering. The stencil test conditionally eliminates a pixel based on the outcome of a comparison between the reference value and the value in the stencil -buffer. To enable and disable the test, call @code{glEnable} and -@code{glDisable} with argument @code{GL_STENCIL_TEST}. To specify +buffer. To enable and disable the test, call @code{glEnable} and +@code{glDisable} with argument @code{GL_STENCIL_TEST}. To specify actions based on the outcome of the stencil test, call @code{glStencilOp} or @code{glStencilOpSeparate}. @@ -19290,18 +19326,18 @@ values, as if @code{glStencilFuncSeparate} were called with @var{face} set to @code{GL_FRONT_AND_BACK}. @var{func} is a symbolic constant that determines the stencil comparison -function. It accepts one of eight values, shown in the following list. +function. It accepts one of eight values, shown in the following list. @var{ref} is an integer reference value that is used in the stencil -comparison. It is clamped to the range @r{[0,2^@var{n}-1]}, where -@r{@var{n}} is the number of bitplanes in the stencil buffer. @var{mask} +comparison. It is clamped to the range @r{[0,2^@var{n}-1]}, where +@r{@var{n}} is the number of bitplanes in the stencil buffer. @var{mask} is bitwise ANDed with both the reference value and the stored stencil value, with the ANDed values participating in the comparison. If @var{stencil} represents the value stored in the corresponding stencil buffer location, the following list shows the effect of each -comparison function that can be specified by @var{func}. Only if the +comparison function that can be specified by @var{func}. Only if the comparison succeeds is the pixel passed through to the next stage in the -rasterization process (see @code{glStencilOp}). All tests treat +rasterization process (see @code{glStencilOp}). All tests treat @var{stencil} values as unsigned integers in the range @r{[0,2^@var{n}-1]}, where @r{@var{n}} is the number of bitplanes in the stencil buffer. @@ -19349,34 +19385,34 @@ Set front and back function and reference value for stencil testing. @table @asis @item @var{func} -Specifies the test function. Eight symbolic constants are valid: +Specifies the test function. Eight symbolic constants are valid: @code{GL_NEVER}, @code{GL_LESS}, @code{GL_LEQUAL}, @code{GL_GREATER}, @code{GL_GEQUAL}, @code{GL_EQUAL}, @code{GL_NOTEQUAL}, and -@code{GL_ALWAYS}. The initial value is @code{GL_ALWAYS}. +@code{GL_ALWAYS}. The initial value is @code{GL_ALWAYS}. @item @var{ref} -Specifies the reference value for the stencil test. @var{ref} is clamped -to the range @r{[0,2^@var{n}-1]}, where @r{@var{n}} is the number of -bitplanes in the stencil buffer. The initial value is 0. +Specifies the reference value for the stencil test. @var{ref} is +clamped to the range @r{[0,2^@var{n}-1]}, where @r{@var{n}} is the +number of bitplanes in the stencil buffer. The initial value is 0. @item @var{mask} Specifies a mask that is ANDed with both the reference value and the -stored stencil value when the test is done. The initial value is all +stored stencil value when the test is done. The initial value is all 1's. @end table Stenciling, like depth-buffering, enables and disables drawing on a -per-pixel basis. Stencil planes are first drawn into using GL drawing +per-pixel basis. Stencil planes are first drawn into using GL drawing primitives, then geometry and images are rendered using the stencil -planes to mask out portions of the screen. Stenciling is typically used +planes to mask out portions of the screen. Stenciling is typically used in multipass rendering algorithms to achieve special effects, such as decals, outlining, and constructive solid geometry rendering. The stencil test conditionally eliminates a pixel based on the outcome of a comparison between the reference value and the value in the stencil -buffer. To enable and disable the test, call @code{glEnable} and -@code{glDisable} with argument @code{GL_STENCIL_TEST}. To specify +buffer. To enable and disable the test, call @code{glEnable} and +@code{glDisable} with argument @code{GL_STENCIL_TEST}. To specify actions based on the outcome of the stencil test, call @code{glStencilOp} or @code{glStencilOpSeparate}. @@ -19384,22 +19420,22 @@ There can be two separate sets of @var{func}, @var{ref}, and @var{mask} parameters; one affects back-facing polygons, and the other affects front-facing polygons as well as other non-polygon primitives. @code{glStencilFunc} sets both front and back stencil state to the same -values. Use @code{glStencilFuncSeparate} to set front and back stencil +values. Use @code{glStencilFuncSeparate} to set front and back stencil state to different values. @var{func} is a symbolic constant that determines the stencil comparison -function. It accepts one of eight values, shown in the following list. +function. It accepts one of eight values, shown in the following list. @var{ref} is an integer reference value that is used in the stencil -comparison. It is clamped to the range @r{[0,2^@var{n}-1]}, where -@r{@var{n}} is the number of bitplanes in the stencil buffer. @var{mask} +comparison. It is clamped to the range @r{[0,2^@var{n}-1]}, where +@r{@var{n}} is the number of bitplanes in the stencil buffer. @var{mask} is bitwise ANDed with both the reference value and the stored stencil value, with the ANDed values participating in the comparison. If @var{stencil} represents the value stored in the corresponding stencil buffer location, the following list shows the effect of each -comparison function that can be specified by @var{func}. Only if the +comparison function that can be specified by @var{func}. Only if the comparison succeeds is the pixel passed through to the next stage in the -rasterization process (see @code{glStencilOp}). All tests treat +rasterization process (see @code{glStencilOp}). All tests treat @var{stencil} values as unsigned integers in the range @r{[0,2^@var{n}-1]}, where @r{@var{n}} is the number of bitplanes in the stencil buffer. @@ -19454,21 +19490,21 @@ Three symbolic constants are valid: @code{GL_FRONT}, @code{GL_BACK}, and @item @var{mask} Specifies a bit mask to enable and disable writing of individual bits in -the stencil planes. Initially, the mask is all 1's. +the stencil planes. Initially, the mask is all 1's. @end table @code{glStencilMaskSeparate} controls the writing of individual bits in -the stencil planes. The least significant @r{@var{n}} bits of +the stencil planes. The least significant @r{@var{n}} bits of @var{mask}, where @r{@var{n}} is the number of bits in the stencil -buffer, specify a mask. Where a 1 appears in the mask, it's possible to -write to the corresponding bit in the stencil buffer. Where a 0 appears, -the corresponding bit is write-protected. Initially, all bits are -enabled for writing. +buffer, specify a mask. Where a 1 appears in the mask, it's possible to +write to the corresponding bit in the stencil buffer. Where a 0 +appears, the corresponding bit is write-protected. Initially, all bits +are enabled for writing. There can be two separate @var{mask} writemasks; one affects back-facing polygons, and the other affects front-facing polygons as well as other -non-polygon primitives. @code{glStencilMask} sets both front and back +non-polygon primitives. @code{glStencilMask} sets both front and back stencil writemasks to the same values, as if @code{glStencilMaskSeparate} were called with @var{face} set to @code{GL_FRONT_AND_BACK}. @@ -19486,22 +19522,22 @@ planes. @table @asis @item @var{mask} Specifies a bit mask to enable and disable writing of individual bits in -the stencil planes. Initially, the mask is all 1's. +the stencil planes. Initially, the mask is all 1's. @end table @code{glStencilMask} controls the writing of individual bits in the -stencil planes. The least significant @r{@var{n}} bits of @var{mask}, +stencil planes. The least significant @r{@var{n}} bits of @var{mask}, where @r{@var{n}} is the number of bits in the stencil buffer, specify a -mask. Where a 1 appears in the mask, it's possible to write to the -corresponding bit in the stencil buffer. Where a 0 appears, the -corresponding bit is write-protected. Initially, all bits are enabled +mask. Where a 1 appears in the mask, it's possible to write to the +corresponding bit in the stencil buffer. Where a 0 appears, the +corresponding bit is write-protected. Initially, all bits are enabled for writing. There can be two separate @var{mask} writemasks; one affects back-facing polygons, and the other affects front-facing polygons as well as other -non-polygon primitives. @code{glStencilMask} sets both front and back -stencil writemasks to the same values. Use @code{glStencilMaskSeparate} +non-polygon primitives. @code{glStencilMask} sets both front and back +stencil writemasks to the same values. Use @code{glStencilMaskSeparate} to set front and back stencil writemasks to different values. @code{GL_INVALID_OPERATION} is generated if @code{glStencilMask} is @@ -19515,40 +19551,40 @@ Set front and/or back stencil test actions. @table @asis @item @var{face} -Specifies whether front and/or back stencil state is updated. Three +Specifies whether front and/or back stencil state is updated. Three symbolic constants are valid: @code{GL_FRONT}, @code{GL_BACK}, and @code{GL_FRONT_AND_BACK}. @item @var{sfail} -Specifies the action to take when the stencil test fails. Eight symbolic -constants are accepted: @code{GL_KEEP}, @code{GL_ZERO}, +Specifies the action to take when the stencil test fails. Eight +symbolic constants are accepted: @code{GL_KEEP}, @code{GL_ZERO}, @code{GL_REPLACE}, @code{GL_INCR}, @code{GL_INCR_WRAP}, @code{GL_DECR}, -@code{GL_DECR_WRAP}, and @code{GL_INVERT}. The initial value is +@code{GL_DECR_WRAP}, and @code{GL_INVERT}. The initial value is @code{GL_KEEP}. @item @var{dpfail} Specifies the stencil action when the stencil test passes, but the depth -test fails. @var{dpfail} accepts the same symbolic constants as -@var{sfail}. The initial value is @code{GL_KEEP}. +test fails. @var{dpfail} accepts the same symbolic constants as +@var{sfail}. The initial value is @code{GL_KEEP}. @item @var{dppass} Specifies the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth -buffer or depth testing is not enabled. @var{dppass} accepts the same -symbolic constants as @var{sfail}. The initial value is @code{GL_KEEP}. +buffer or depth testing is not enabled. @var{dppass} accepts the same +symbolic constants as @var{sfail}. The initial value is @code{GL_KEEP}. @end table Stenciling, like depth-buffering, enables and disables drawing on a -per-pixel basis. You draw into the stencil planes using GL drawing +per-pixel basis. You draw into the stencil planes using GL drawing primitives, then render geometry and images, using the stencil planes to -mask out portions of the screen. Stenciling is typically used in +mask out portions of the screen. Stenciling is typically used in multipass rendering algorithms to achieve special effects, such as decals, outlining, and constructive solid geometry rendering. The stencil test conditionally eliminates a pixel based on the outcome of a comparison between the value in the stencil buffer and a reference -value. To enable and disable the test, call @code{glEnable} and +value. To enable and disable the test, call @code{glEnable} and @code{glDisable} with argument @code{GL_STENCIL_TEST}; to control it, call @code{glStencilFunc} or @code{glStencilFuncSeparate}. @@ -19560,10 +19596,10 @@ values, as if @code{glStencilOpSeparate} were called with @var{face} set to @code{GL_FRONT_AND_BACK}. @code{glStencilOpSeparate} takes three arguments that indicate what -happens to the stored stencil value while stenciling is enabled. If the +happens to the stored stencil value while stenciling is enabled. If the stencil test fails, no change is made to the pixel's color or depth buffers, and @var{sfail} specifies what happens to the stencil buffer -contents. The following eight actions are possible. +contents. The following eight actions are possible. @table @asis @item @code{GL_KEEP} @@ -19577,18 +19613,18 @@ Sets the stencil buffer value to @var{ref}, as specified by @code{glStencilFunc}. @item @code{GL_INCR} -Increments the current stencil buffer value. Clamps to the maximum +Increments the current stencil buffer value. Clamps to the maximum representable unsigned value. @item @code{GL_INCR_WRAP} -Increments the current stencil buffer value. Wraps stencil buffer value +Increments the current stencil buffer value. Wraps stencil buffer value to zero when incrementing the maximum representable unsigned value. @item @code{GL_DECR} -Decrements the current stencil buffer value. Clamps to 0. +Decrements the current stencil buffer value. Clamps to 0. @item @code{GL_DECR_WRAP} -Decrements the current stencil buffer value. Wraps stencil buffer value +Decrements the current stencil buffer value. Wraps stencil buffer value to the maximum representable unsigned value when decrementing a stencil buffer value of zero. @@ -19597,16 +19633,17 @@ Bitwise inverts the current stencil buffer value. @end table -Stencil buffer values are treated as unsigned integers. When incremented -and decremented, values are clamped to 0 and @r{2^@var{n}-1}, where -@r{@var{n}} is the value returned by querying @code{GL_STENCIL_BITS}. +Stencil buffer values are treated as unsigned integers. When +incremented and decremented, values are clamped to 0 and +@r{2^@var{n}-1}, where @r{@var{n}} is the value returned by querying +@code{GL_STENCIL_BITS}. The other two arguments to @code{glStencilOpSeparate} specify stencil buffer actions that depend on whether subsequent depth buffer tests succeed (@var{dppass}) or fail (@var{dpfail}) (see @code{glDepthFunc}). The actions are specified using the same eight symbolic constants as -@var{sfail}. Note that @var{dpfail} is ignored when there is no depth -buffer, or when the depth buffer is not enabled. In these cases, +@var{sfail}. Note that @var{dpfail} is ignored when there is no depth +buffer, or when the depth buffer is not enabled. In these cases, @var{sfail} and @var{dppass} specify stencil action when the stencil test fails and passes, respectively. @@ -19627,35 +19664,35 @@ Set front and back stencil test actions. @table @asis @item @var{sfail} -Specifies the action to take when the stencil test fails. Eight symbolic -constants are accepted: @code{GL_KEEP}, @code{GL_ZERO}, +Specifies the action to take when the stencil test fails. Eight +symbolic constants are accepted: @code{GL_KEEP}, @code{GL_ZERO}, @code{GL_REPLACE}, @code{GL_INCR}, @code{GL_INCR_WRAP}, @code{GL_DECR}, -@code{GL_DECR_WRAP}, and @code{GL_INVERT}. The initial value is +@code{GL_DECR_WRAP}, and @code{GL_INVERT}. The initial value is @code{GL_KEEP}. @item @var{dpfail} Specifies the stencil action when the stencil test passes, but the depth -test fails. @var{dpfail} accepts the same symbolic constants as -@var{sfail}. The initial value is @code{GL_KEEP}. +test fails. @var{dpfail} accepts the same symbolic constants as +@var{sfail}. The initial value is @code{GL_KEEP}. @item @var{dppass} Specifies the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth -buffer or depth testing is not enabled. @var{dppass} accepts the same -symbolic constants as @var{sfail}. The initial value is @code{GL_KEEP}. +buffer or depth testing is not enabled. @var{dppass} accepts the same +symbolic constants as @var{sfail}. The initial value is @code{GL_KEEP}. @end table Stenciling, like depth-buffering, enables and disables drawing on a -per-pixel basis. You draw into the stencil planes using GL drawing +per-pixel basis. You draw into the stencil planes using GL drawing primitives, then render geometry and images, using the stencil planes to -mask out portions of the screen. Stenciling is typically used in +mask out portions of the screen. Stenciling is typically used in multipass rendering algorithms to achieve special effects, such as decals, outlining, and constructive solid geometry rendering. The stencil test conditionally eliminates a pixel based on the outcome of a comparison between the value in the stencil buffer and a reference -value. To enable and disable the test, call @code{glEnable} and +value. To enable and disable the test, call @code{glEnable} and @code{glDisable} with argument @code{GL_STENCIL_TEST}; to control it, call @code{glStencilFunc} or @code{glStencilFuncSeparate}. @@ -19663,13 +19700,13 @@ There can be two separate sets of @var{sfail}, @var{dpfail}, and @var{dppass} parameters; one affects back-facing polygons, and the other affects front-facing polygons as well as other non-polygon primitives. @code{glStencilOp} sets both front and back stencil state to the same -values. Use @code{glStencilOpSeparate} to set front and back stencil +values. Use @code{glStencilOpSeparate} to set front and back stencil state to different values. @code{glStencilOp} takes three arguments that indicate what happens to -the stored stencil value while stenciling is enabled. If the stencil +the stored stencil value while stenciling is enabled. If the stencil test fails, no change is made to the pixel's color or depth buffers, and -@var{sfail} specifies what happens to the stencil buffer contents. The +@var{sfail} specifies what happens to the stencil buffer contents. The following eight actions are possible. @table @asis @@ -19684,18 +19721,18 @@ Sets the stencil buffer value to @var{ref}, as specified by @code{glStencilFunc}. @item @code{GL_INCR} -Increments the current stencil buffer value. Clamps to the maximum +Increments the current stencil buffer value. Clamps to the maximum representable unsigned value. @item @code{GL_INCR_WRAP} -Increments the current stencil buffer value. Wraps stencil buffer value +Increments the current stencil buffer value. Wraps stencil buffer value to zero when incrementing the maximum representable unsigned value. @item @code{GL_DECR} -Decrements the current stencil buffer value. Clamps to 0. +Decrements the current stencil buffer value. Clamps to 0. @item @code{GL_DECR_WRAP} -Decrements the current stencil buffer value. Wraps stencil buffer value +Decrements the current stencil buffer value. Wraps stencil buffer value to the maximum representable unsigned value when decrementing a stencil buffer value of zero. @@ -19704,16 +19741,17 @@ Bitwise inverts the current stencil buffer value. @end table -Stencil buffer values are treated as unsigned integers. When incremented -and decremented, values are clamped to 0 and @r{2^@var{n}-1}, where -@r{@var{n}} is the value returned by querying @code{GL_STENCIL_BITS}. +Stencil buffer values are treated as unsigned integers. When +incremented and decremented, values are clamped to 0 and +@r{2^@var{n}-1}, where @r{@var{n}} is the value returned by querying +@code{GL_STENCIL_BITS}. The other two arguments to @code{glStencilOp} specify stencil buffer actions that depend on whether subsequent depth buffer tests succeed -(@var{dppass}) or fail (@var{dpfail}) (see @code{glDepthFunc}). The +(@var{dppass}) or fail (@var{dpfail}) (see @code{glDepthFunc}). The actions are specified using the same eight symbolic constants as -@var{sfail}. Note that @var{dpfail} is ignored when there is no depth -buffer, or when the depth buffer is not enabled. In these cases, +@var{sfail}. Note that @var{dpfail} is ignored when there is no depth +buffer, or when the depth buffer is not enabled. In these cases, @var{sfail} and @var{dppass} specify stencil action when the stencil test fails and passes, respectively. @@ -19731,38 +19769,39 @@ Define an array of texture coordinates. @table @asis @item @var{size} -Specifies the number of coordinates per array element. Must be 1, 2, 3, -or 4. The initial value is 4. +Specifies the number of coordinates per array element. Must be 1, 2, 3, +or 4. The initial value is 4. @item @var{type} -Specifies the data type of each texture coordinate. Symbolic constants +Specifies the data type of each texture coordinate. Symbolic constants @code{GL_SHORT}, @code{GL_INT}, @code{GL_FLOAT}, or @code{GL_DOUBLE} are -accepted. The initial value is @code{GL_FLOAT}. +accepted. The initial value is @code{GL_FLOAT}. @item @var{stride} Specifies the byte offset between consecutive texture coordinate sets. If @var{stride} is 0, the array elements are understood to be tightly -packed. The initial value is 0. +packed. The initial value is 0. @item @var{pointer} Specifies a pointer to the first coordinate of the first texture -coordinate set in the array. The initial value is 0. +coordinate set in the array. The initial value is 0. @end table @code{glTexCoordPointer} specifies the location and data format of an -array of texture coordinates to use when rendering. @var{size} specifies -the number of coordinates per texture coordinate set, and must be 1, 2, -3, or 4. @var{type} specifies the data type of each texture coordinate, -and @var{stride} specifies the byte stride from one texture coordinate -set to the next, allowing vertices and attributes to be packed into a -single array or stored in separate arrays. (Single-array storage may be -more efficient on some implementations; see @code{glInterleavedArrays}.) +array of texture coordinates to use when rendering. @var{size} +specifies the number of coordinates per texture coordinate set, and must +be 1, 2, 3, or 4. @var{type} specifies the data type of each texture +coordinate, and @var{stride} specifies the byte stride from one texture +coordinate set to the next, allowing vertices and attributes to be +packed into a single array or stored in separate arrays. (Single-array +storage may be more efficient on some implementations; see +@code{glInterleavedArrays}.) If a non-zero named buffer object is bound to the @code{GL_ARRAY_BUFFER} target (see @code{glBindBuffer}) while a texture coordinate array is specified, @var{pointer} is treated as a byte offset into the buffer -object's data store. Also, the buffer object binding +object's data store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) is saved as texture coordinate vertex array client-side state (@code{GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING}). @@ -19772,7 +19811,7 @@ addition to the current vertex array buffer object binding. To enable and disable a texture coordinate array, call @code{glEnableClientState} and @code{glDisableClientState} with the -argument @code{GL_TEXTURE_COORD_ARRAY}. If enabled, the texture +argument @code{GL_TEXTURE_COORD_ARRAY}. If enabled, the texture coordinate array is used when @code{glArrayElement}, @code{glDrawArrays}, @code{glMultiDrawArrays}, @code{glDrawElements}, @code{glMultiDrawElements}, or @code{glDrawRangeElements} is called. @@ -19825,21 +19864,21 @@ Set the current texture coordinates. @itemx @var{t} @itemx @var{r} @itemx @var{q} -Specify @var{s}, @var{t}, @var{r}, and @var{q} texture coordinates. Not +Specify @var{s}, @var{t}, @var{r}, and @var{q} texture coordinates. Not all parameters are present in all forms of the command. @end table @code{glTexCoord} specifies texture coordinates in one, two, three, or -four dimensions. @code{glTexCoord1} sets the current texture coordinates -to @r{(@var{s},001)}; a call to @code{glTexCoord2} sets them to -@r{(@var{s},@var{t}01)}. Similarly, @code{glTexCoord3} specifies the +four dimensions. @code{glTexCoord1} sets the current texture +coordinates to @r{(@var{s},001)}; a call to @code{glTexCoord2} sets them +to @r{(@var{s},@var{t}01)}. Similarly, @code{glTexCoord3} specifies the texture coordinates as @r{(@var{s},@var{t}@var{r}1)}, and @code{glTexCoord4} defines all four components explicitly as @r{(@var{s},@var{t}@var{r}@var{q})}. The current texture coordinates are part of the data that is associated -with each vertex and with the current raster position. Initially, the +with each vertex and with the current raster position. Initially, the values for @var{s}, @var{t}, @var{r}, and @var{q} are (0, 0, 0, 1). @@ -19854,12 +19893,12 @@ Set texture environment parameters. @table @asis @item @var{target} -Specifies a texture environment. May be @code{GL_TEXTURE_ENV}, +Specifies a texture environment. May be @code{GL_TEXTURE_ENV}, @code{GL_TEXTURE_FILTER_CONTROL} or @code{GL_POINT_SPRITE}. @item @var{pname} Specifies the symbolic name of a single-valued texture environment -parameter. May be either @code{GL_TEXTURE_ENV_MODE}, +parameter. May be either @code{GL_TEXTURE_ENV_MODE}, @code{GL_TEXTURE_LOD_BIAS}, @code{GL_COMBINE_RGB}, @code{GL_COMBINE_ALPHA}, @code{GL_SRC0_RGB}, @code{GL_SRC1_RGB}, @code{GL_SRC2_RGB}, @code{GL_SRC0_ALPHA}, @code{GL_SRC1_ALPHA}, @@ -19883,9 +19922,9 @@ the @code{GL_RGB_SCALE} or @code{GL_ALPHA_SCALE}. @end table A texture environment specifies how texture values are interpreted when -a fragment is textured. When @var{target} is +a fragment is textured. When @var{target} is @code{GL_TEXTURE_FILTER_CONTROL}, @var{pname} must be -@code{GL_TEXTURE_LOD_BIAS}. When @var{target} is @code{GL_TEXTURE_ENV}, +@code{GL_TEXTURE_LOD_BIAS}. When @var{target} is @code{GL_TEXTURE_ENV}, @var{pname} can be @code{GL_TEXTURE_ENV_MODE}, @code{GL_TEXTURE_ENV_COLOR}, @code{GL_COMBINE_RGB}, @code{GL_COMBINE_ALPHA}, @code{GL_RGB_SCALE}, @code{GL_ALPHA_SCALE}, @@ -19893,7 +19932,7 @@ a fragment is textured. When @var{target} is @code{GL_SRC0_ALPHA}, @code{GL_SRC1_ALPHA}, or @code{GL_SRC2_ALPHA}. If @var{pname} is @code{GL_TEXTURE_ENV_MODE}, then @var{params} is (or -points to) the symbolic name of a texture function. Six texture +points to) the symbolic name of a texture function. Six texture functions may be specified: @code{GL_ADD}, @code{GL_MODULATE}, @code{GL_DECAL}, @code{GL_BLEND}, @code{GL_REPLACE}, or @code{GL_COMBINE}. @@ -19901,7 +19940,7 @@ functions may be specified: @code{GL_ADD}, @code{GL_MODULATE}, The following table shows the correspondence of filtered texture values @r{@var{R}_@var{t}}, @r{@var{G}_@var{t}}, @r{@var{B}_@var{t}}, @r{@var{A}_@var{t}}, @r{@var{L}_@var{t}}, @r{@var{I}_@var{t}} to texture -source components. @r{@var{C}_@var{s}} and @r{@var{A}_@var{s}} are used +source components. @r{@var{C}_@var{s}} and @r{@var{A}_@var{s}} are used by the texture functions described below. @@ -19936,11 +19975,11 @@ Texture Base Internal Format A texture function acts on the fragment to be textured using the texture image value that applies to the fragment (see @code{glTexParameter}) and -produces an RGBA color for that fragment. The following table shows how +produces an RGBA color for that fragment. The following table shows how the RGBA color is produced for each of the first five texture functions -that can be chosen. @r{@var{C}} is a triple of color values (RGB) and -@r{@var{A}} is the associated alpha value. RGBA values extracted from a -texture image are in the range [0,1]. The subscript @r{@var{p}} refers +that can be chosen. @r{@var{C}} is a triple of color values (RGB) and +@r{@var{A}} is the associated alpha value. RGBA values extracted from a +texture image are in the range [0,1]. The subscript @r{@var{p}} refers to the color computed from the previous texture stage (or the incoming fragment if processing texture stage 0), the subscript @r{@var{s}} to the texture source color, the subscript @r{@var{c}} to the texture @@ -20034,7 +20073,7 @@ values of @code{GL_COMBINE_RGB} and @code{GL_COMBINE_ALPHA}. The following describes how the texture sources, as specified by @code{GL_SRC0_RGB}, @code{GL_SRC1_RGB}, @code{GL_SRC2_RGB}, @code{GL_SRC0_ALPHA}, @code{GL_SRC1_ALPHA}, and @code{GL_SRC2_ALPHA}, -are combined to produce a final texture color. In the following tables, +are combined to produce a final texture color. In the following tables, @code{GL_SRC0_c} is represented by @r{@var{Arg0}}, @code{GL_SRC1_c} is represented by @r{@var{Arg1}}, and @code{GL_SRC2_c} is represented by @r{@var{Arg2}}. @@ -20079,7 +20118,7 @@ placed into each of the 3 (RGB) or 4 (RGBA) components on output. Likewise, @code{GL_COMBINE_ALPHA} accepts any of @code{GL_REPLACE}, @code{GL_MODULATE}, @code{GL_ADD}, @code{GL_ADD_SIGNED}, -@code{GL_INTERPOLATE}, or @code{GL_SUBTRACT}. The following table +@code{GL_INTERPOLATE}, or @code{GL_SUBTRACT}. The following table describes how alpha values are combined: @@ -20240,9 +20279,9 @@ values of @code{GL_RGB_SCALE} and @code{GL_ALPHA_SCALE}, respectively, and clamped to the range @r{[0,1]}. If @var{pname} is @code{GL_TEXTURE_ENV_COLOR}, @var{params} is a pointer -to an array that holds an RGBA color consisting of four values. Integer +to an array that holds an RGBA color consisting of four values. Integer color components are interpreted linearly such that the most positive -integer maps to 1.0, and the most negative integer maps to -1.0. The +integer maps to 1.0, and the most negative integer maps to -1.0. The values are clamped to the range [0,1] when they are specified. @r{@var{C}_@var{c}} takes these four values. @@ -20256,7 +20295,7 @@ mipmap, or mipmaps depending upon the selected If @var{target} is @code{GL_POINT_SPRITE} and @var{pname} is @code{GL_COORD_REPLACE}, the boolean value specified is used to either -enable or disable point sprite texture coordinate replacement. The +enable or disable point sprite texture coordinate replacement. The default value is @code{GL_FALSE}. @code{GL_INVALID_ENUM} is generated when @var{target} or @var{pname} is @@ -20284,12 +20323,12 @@ Control the generation of texture coordinates. @table @asis @item @var{coord} -Specifies a texture coordinate. Must be one of @code{GL_S}, @code{GL_T}, -@code{GL_R}, or @code{GL_Q}. +Specifies a texture coordinate. Must be one of @code{GL_S}, +@code{GL_T}, @code{GL_R}, or @code{GL_Q}. @item @var{pname} Specifies the symbolic name of the texture-coordinate generation -function. Must be @code{GL_TEXTURE_GEN_MODE}. +function. Must be @code{GL_TEXTURE_GEN_MODE}. @item @var{param} Specifies a single-valued texture generation parameter, one of @@ -20299,15 +20338,15 @@ Specifies a single-valued texture generation parameter, one of @end table @code{glTexGen} selects a texture-coordinate generation function or -supplies coefficients for one of the functions. @var{coord} names one of -the (@var{s}, @var{t}, @var{r}, @var{q}) texture coordinates; it must be -one of the symbols @code{GL_S}, @code{GL_T}, @code{GL_R}, or -@code{GL_Q}. @var{pname} must be one of three symbolic constants: +supplies coefficients for one of the functions. @var{coord} names one +of the (@var{s}, @var{t}, @var{r}, @var{q}) texture coordinates; it must +be one of the symbols @code{GL_S}, @code{GL_T}, @code{GL_R}, or +@code{GL_Q}. @var{pname} must be one of three symbolic constants: @code{GL_TEXTURE_GEN_MODE}, @code{GL_OBJECT_PLANE}, or -@code{GL_EYE_PLANE}. If @var{pname} is @code{GL_TEXTURE_GEN_MODE}, then +@code{GL_EYE_PLANE}. If @var{pname} is @code{GL_TEXTURE_GEN_MODE}, then @var{params} chooses a mode, one of @code{GL_OBJECT_LINEAR}, @code{GL_EYE_LINEAR}, @code{GL_SPHERE_MAP}, @code{GL_NORMAL_MAP}, or -@code{GL_REFLECTION_MAP}. If @var{pname} is either +@code{GL_REFLECTION_MAP}. If @var{pname} is either @code{GL_OBJECT_PLANE} or @code{GL_EYE_PLANE}, @var{params} contains coefficients for the corresponding texture generation function. @@ -20320,10 +20359,10 @@ is used, where @r{@var{g}} is the value computed for the coordinate named in @var{coord}, @r{@var{p}_1}, @r{@var{p}_2}, @r{@var{p}_3}, and @r{@var{p}_4} are the four values supplied in @var{params}, and @r{@var{x}_@var{o}}, @r{@var{y}_@var{o}}, @r{@var{z}_@var{o}}, and -@r{@var{w}_@var{o}} are the object coordinates of the vertex. This +@r{@var{w}_@var{o}} are the object coordinates of the vertex. This function can be used, for example, to texture-map terrain using sea level as a reference plane (defined by @r{@var{p}_1}, @r{@var{p}_2}, -@r{@var{p}_3}, and @r{@var{p}_4}). The altitude of a terrain vertex is +@r{@var{p}_3}, and @r{@var{p}_4}). The altitude of a terrain vertex is computed by the @code{GL_OBJECT_LINEAR} coordinate generation function as its distance from sea level; that altitude can then be used to index the texture image to map white snow onto peaks and green grass onto @@ -20341,22 +20380,22 @@ and @r{@var{x}_@var{e}}, @r{@var{y}_@var{e}}, @r{@var{z}_@var{e}}, and @r{@var{w}_@var{e}} are the eye coordinates of the vertex, @r{@var{p}_1}, @r{@var{p}_2}, @r{@var{p}_3}, and @r{@var{p}_4} are the values supplied in @var{params}, and @r{@var{M}} is the modelview matrix -when @code{glTexGen} is invoked. If @r{@var{M}} is poorly conditioned or -singular, texture coordinates generated by the resulting function may be -inaccurate or undefined. +when @code{glTexGen} is invoked. If @r{@var{M}} is poorly conditioned +or singular, texture coordinates generated by the resulting function may +be inaccurate or undefined. Note that the values in @var{params} define a reference plane in eye -coordinates. The modelview matrix that is applied to them may not be the -same one in effect when the polygon vertices are transformed. This +coordinates. The modelview matrix that is applied to them may not be +the same one in effect when the polygon vertices are transformed. This function establishes a field of texture coordinates that can produce dynamic contour lines on moving objects. If the texture generation function is @code{GL_SPHERE_MAP} and @var{coord} is either @code{GL_S} or @code{GL_T}, @r{@var{s}} and -@r{@var{t}} texture coordinates are generated as follows. Let @var{u} be -the unit vector pointing from the origin to the polygon vertex (in eye -coordinates). Let @var{n} sup prime be the current normal, after -transformation to eye coordinates. Let +@r{@var{t}} texture coordinates are generated as follows. Let @var{u} +be the unit vector pointing from the origin to the polygon vertex (in +eye coordinates). Let @var{n} sup prime be the current normal, after +transformation to eye coordinates. Let @r{@var{f}=(@var{f}_@var{x}⁢@var{f}_@var{y}⁢@var{f}_@var{z},)^@var{T}} be the reflection vector such that @@ -20376,12 +20415,12 @@ To enable or disable a texture-coordinate generation function, call @code{glEnable} or @code{glDisable} with one of the symbolic texture-coordinate names (@code{GL_TEXTURE_GEN_S}, @code{GL_TEXTURE_GEN_T}, @code{GL_TEXTURE_GEN_R}, or -@code{GL_TEXTURE_GEN_Q}) as the argument. When enabled, the specified +@code{GL_TEXTURE_GEN_Q}) as the argument. When enabled, the specified texture coordinate is computed according to the generating function -associated with that coordinate. When disabled, subsequent vertices take -the specified texture coordinate from the current set of texture -coordinates. Initially, all texture generation functions are set to -@code{GL_EYE_LINEAR} and are disabled. Both @r{@var{s}} plane equations +associated with that coordinate. When disabled, subsequent vertices +take the specified texture coordinate from the current set of texture +coordinates. Initially, all texture generation functions are set to +@code{GL_EYE_LINEAR} and are disabled. Both @r{@var{s}} plane equations are (1, 0, 0, 0), both @r{@var{t}} plane equations are (0, 1, 0, 0), and all @r{@var{r}} and @r{@var{q}} plane equations are (0, 0, 0, 0). @@ -20409,15 +20448,15 @@ Specify a one-dimensional texture image. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_1D} or +Specifies the target texture. Must be @code{GL_TEXTURE_1D} or @code{GL_PROXY_TEXTURE_1D}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{internalFormat} -Specifies the number of color components in the texture. Must be 1, 2, +Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_COMPRESSED_ALPHA}, @@ -20442,33 +20481,34 @@ Specifies the number of color components in the texture. Must be 1, 2, @code{GL_SRGB_ALPHA}, or @code{GL_SRGB8_ALPHA8}. @item @var{width} -Specifies the width of the texture image including the border if any. If +Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must -be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All +be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All implementations support texture images that are at least 64 texels wide. The height of the 1D texture image is 1. @item @var{border} -Specifies the width of the border. Must be either 0 or 1. +Specifies the width of the border. Must be either 0 or 1. @item @var{format} -Specifies the format of the pixel data. The following symbolic values +Specifies the format of the pixel data. The following symbolic values are accepted: @code{GL_COLOR_INDEX}, @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, and @code{GL_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type of the pixel data. The following symbolic values -are accepted: @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, -@code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, -@code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, -@code{GL_UNSIGNED_BYTE_2_3_3_REV}, @code{GL_UNSIGNED_SHORT_5_6_5}, -@code{GL_UNSIGNED_SHORT_5_6_5_REV}, @code{GL_UNSIGNED_SHORT_4_4_4_4}, -@code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, @code{GL_UNSIGNED_SHORT_5_5_5_1}, -@code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, @code{GL_UNSIGNED_INT_8_8_8_8}, -@code{GL_UNSIGNED_INT_8_8_8_8_REV}, @code{GL_UNSIGNED_INT_10_10_10_2}, -and @code{GL_UNSIGNED_INT_2_10_10_10_REV}. +Specifies the data type of the pixel data. The following symbolic +values are accepted: @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, +@code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, +@code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, +@code{GL_UNSIGNED_BYTE_3_3_2}, @code{GL_UNSIGNED_BYTE_2_3_3_REV}, +@code{GL_UNSIGNED_SHORT_5_6_5}, @code{GL_UNSIGNED_SHORT_5_6_5_REV}, +@code{GL_UNSIGNED_SHORT_4_4_4_4}, @code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, +@code{GL_UNSIGNED_SHORT_5_5_5_1}, @code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, +@code{GL_UNSIGNED_INT_8_8_8_8}, @code{GL_UNSIGNED_INT_8_8_8_8_REV}, +@code{GL_UNSIGNED_INT_10_10_10_2}, and +@code{GL_UNSIGNED_INT_2_10_10_10_REV}. @item @var{data} Specifies a pointer to the image data in memory. @@ -20476,14 +20516,14 @@ Specifies a pointer to the image data in memory. @end table Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable one-dimensional texturing, call @code{glEnable} and @code{glDisable} with argument @code{GL_TEXTURE_1D}. -Texture images are defined with @code{glTexImage1D}. The arguments +Texture images are defined with @code{glTexImage1D}. The arguments describe the parameters of the texture image, such as width, width of the border, level-of-detail number (see @code{glTexParameter}), and the -internal resolution and format used to store the image. The last three +internal resolution and format used to store the image. The last three arguments describe how the image is represented in memory; they are identical to the pixel formats used for @code{glDrawPixels}. @@ -20492,16 +20532,16 @@ If @var{target} is @code{GL_PROXY_TEXTURE_1D}, no data is read from for consistency, and checked against the implementation's capabilities. If the implementation cannot handle a texture of the requested texture size, it sets all of the image state to 0, but does not generate an -error (see @code{glGetError}). To query for an entire mipmap array, use +error (see @code{glGetError}). To query for an entire mipmap array, use an image array level greater than or equal to 1. If @var{target} is @code{GL_TEXTURE_1D}, data is read from @var{data} as a sequence of signed or unsigned bytes, shorts, or longs, or -single-precision floating-point values, depending on @var{type}. These +single-precision floating-point values, depending on @var{type}. These values are grouped into sets of one, two, three, or four values, -depending on @var{format}, to form elements. If @var{type} is +depending on @var{format}, to form elements. If @var{type} is @code{GL_BITMAP}, the data is considered as a string of unsigned bytes -(and @var{format} must be @code{GL_COLOR_INDEX}). Each data byte is +(and @var{format} must be @code{GL_COLOR_INDEX}). Each data byte is treated as eight 1-bit elements, with bit ordering determined by @code{GL_UNPACK_LSB_FIRST} (see @code{glPixelStore}). @@ -20512,7 +20552,7 @@ the buffer object's data store. The first element corresponds to the left end of the texture array. Subsequent elements progress left-to-right through the remaining texels -in the texture array. The final element corresponds to the right end of +in the texture array. The final element corresponds to the right end of the texture array. @var{format} determines the composition of each element in @var{data}. @@ -20520,87 +20560,88 @@ It can assume one of these symbolic values: @table @asis @item @code{GL_COLOR_INDEX} -Each element is a single value, a color index. The GL converts it to +Each element is a single value, a color index. The GL converts it to fixed point (with an unspecified number of zero bits to the right of the binary point), shifted left or right depending on the value and sign of @code{GL_INDEX_SHIFT}, and added to @code{GL_INDEX_OFFSET} (see -@code{glPixelTransfer}). The resulting index is converted to a set of +@code{glPixelTransfer}). The resulting index is converted to a set of color components using the @code{GL_PIXEL_MAP_I_TO_R}, @code{GL_PIXEL_MAP_I_TO_G}, @code{GL_PIXEL_MAP_I_TO_B}, and @code{GL_PIXEL_MAP_I_TO_A} tables, and clamped to the range [0,1]. @item @code{GL_RED} -Each element is a single red component. The GL converts it to floating +Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and -blue, and 1 for alpha. Each component is then multiplied by the signed +blue, and 1 for alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_GREEN} -Each element is a single green component. The GL converts it to floating -point and assembles it into an RGBA element by attaching 0 for red and -blue, and 1 for alpha. Each component is then multiplied by the signed -scale factor @code{GL_c_SCALE}, added to the signed bias +Each element is a single green component. The GL converts it to +floating point and assembles it into an RGBA element by attaching 0 for +red and blue, and 1 for alpha. Each component is then multiplied by the +signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_BLUE} -Each element is a single blue component. The GL converts it to floating +Each element is a single blue component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for red and -green, and 1 for alpha. Each component is then multiplied by the signed +green, and 1 for alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_ALPHA} -Each element is a single alpha component. The GL converts it to floating -point and assembles it into an RGBA element by attaching 0 for red, -green, and blue. Each component is then multiplied by the signed scale -factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and -clamped to the range [0,1] (see @code{glPixelTransfer}). +Each element is a single alpha component. The GL converts it to +floating point and assembles it into an RGBA element by attaching 0 for +red, green, and blue. Each component is then multiplied by the signed +scale factor @code{GL_c_SCALE}, added to the signed bias +@code{GL_c_BIAS}, and clamped to the range [0,1] (see +@code{glPixelTransfer}). @item @code{GL_INTENSITY} -Each element is a single intensity value. The GL converts it to floating -point, then assembles it into an RGBA element by replicating the -intensity value three times for red, green, blue, and alpha. Each +Each element is a single intensity value. The GL converts it to +floating point, then assembles it into an RGBA element by replicating +the intensity value three times for red, green, blue, and alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_RGB} @item @code{GL_BGR} -Each element is an RGB triple. The GL converts it to floating point and -assembles it into an RGBA element by attaching 1 for alpha. Each +Each element is an RGB triple. The GL converts it to floating point and +assembles it into an RGBA element by attaching 1 for alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_RGBA} @item @code{GL_BGRA} -Each element contains all four components. Each component is multiplied +Each element contains all four components. Each component is multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_LUMINANCE} -Each element is a single luminance value. The GL converts it to floating -point, then assembles it into an RGBA element by replicating the -luminance value three times for red, green, and blue and attaching 1 for -alpha. Each component is then multiplied by the signed scale factor +Each element is a single luminance value. The GL converts it to +floating point, then assembles it into an RGBA element by replicating +the luminance value three times for red, green, and blue and attaching 1 +for alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_LUMINANCE_ALPHA} -Each element is a luminance/alpha pair. The GL converts it to floating +Each element is a luminance/alpha pair. The GL converts it to floating point, then assembles it into an RGBA element by replicating the -luminance value three times for red, green, and blue. Each component is +luminance value three times for red, green, and blue. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_DEPTH_COMPONENT} -Each element is a single depth value. The GL converts it to floating +Each element is a single depth value. The GL converts it to floating point, multiplies by the signed scale factor @code{GL_DEPTH_SCALE}, adds the signed bias @code{GL_DEPTH_BIAS}, and clamps to the range [0,1] (see @code{glPixelTransfer}). @@ -20612,19 +20653,19 @@ acceptable values for the @var{type} parameter. If an application wants to store the texture at a certain resolution or in a certain format, it can request the resolution and format with -@var{internalFormat}. The GL will choose an internal representation that -closely approximates that requested by @var{internalFormat}, but it may -not match exactly. (The representations specified by +@var{internalFormat}. The GL will choose an internal representation +that closely approximates that requested by @var{internalFormat}, but it +may not match exactly. (The representations specified by @code{GL_LUMINANCE}, @code{GL_LUMINANCE_ALPHA}, @code{GL_RGB}, and -@code{GL_RGBA} must match exactly. The numeric values 1, 2, 3, and 4 may -also be used to specify the above representations.) +@code{GL_RGBA} must match exactly. The numeric values 1, 2, 3, and 4 +may also be used to specify the above representations.) If the @var{internalFormat} parameter is one of the generic compressed formats, @code{GL_COMPRESSED_ALPHA}, @code{GL_COMPRESSED_INTENSITY}, @code{GL_COMPRESSED_LUMINANCE}, @code{GL_COMPRESSED_LUMINANCE_ALPHA}, @code{GL_COMPRESSED_RGB}, or @code{GL_COMPRESSED_RGBA}, the GL will replace the internal format with the symbolic constant for a specific -internal format and compress the texture before storage. If no +internal format and compress the texture before storage. If no corresponding internal format is available, or the GL can not compress that image for any reason, the internal format is instead replaced with a corresponding base internal format. @@ -20634,7 +20675,7 @@ If the @var{internalFormat} parameter is @code{GL_SRGB}, @code{GL_SLUMINANCE}, @code{GL_SLUMINANCE8}, @code{GL_SLUMINANCE_ALPHA}, or @code{GL_SLUMINANCE8_ALPHA8}, the texture is treated as if the red, green, blue, or luminance components are encoded in the sRGB color -space. Any alpha component is left unchanged. The conversion from the +space. Any alpha component is left unchanged. The conversion from the sRGB encoded component @r{@var{c}_@var{s}} to a linear component @r{@var{c}_@var{l}} is: @@ -20644,28 +20685,28 @@ sRGB encoded component @r{@var{c}_@var{s}} to a linear component Assume @r{@var{c}_@var{s}} is the sRGB component in the range [0,1]. Use the @code{GL_PROXY_TEXTURE_1D} target to try out a resolution and -format. The implementation will update and recompute its best match for -the requested storage resolution and format. To then query this state, -call @code{glGetTexLevelParameter}. If the texture cannot be +format. The implementation will update and recompute its best match for +the requested storage resolution and format. To then query this state, +call @code{glGetTexLevelParameter}. If the texture cannot be accommodated, texture state is set to 0. A one-component texture image uses only the red component of the RGBA -color from @var{data}. A two-component image uses the R and A values. A -three-component image uses the R, G, and B values. A four-component +color from @var{data}. A two-component image uses the R and A values. A +three-component image uses the R, G, and B values. A four-component image uses all of the RGBA components. Depth textures can be treated as LUMINANCE, INTENSITY or ALPHA textures -during texture filtering and application. Image-based shadowing can be +during texture filtering and application.  Image-based shadowing can be  enabled by comparing texture r coordinates to depth texture values to -generate a boolean result. See @code{glTexParameter} for details on +generate a boolean result. See @code{glTexParameter} for details on texture comparison. @code{GL_INVALID_ENUM} is generated if @var{target} is not @code{GL_TEXTURE_1D} or @code{GL_PROXY_TEXTURE_1D}. @code{GL_INVALID_ENUM} is generated if @var{format} is not an accepted -format constant. Format constants other than @code{GL_STENCIL_INDEX} are -accepted. +format constant. Format constants other than @code{GL_STENCIL_INDEX} +are accepted. @code{GL_INVALID_ENUM} is generated if @var{type} is not a type constant. @@ -20740,7 +20781,7 @@ Specify a two-dimensional texture image. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_2D}, +Specifies the target texture. Must be @code{GL_TEXTURE_2D}, @code{GL_PROXY_TEXTURE_2D}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_X}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_X}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_Y}, @@ -20750,11 +20791,11 @@ Specifies the target texture. Must be @code{GL_TEXTURE_2D}, @code{GL_PROXY_TEXTURE_CUBE_MAP}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{internalFormat} -Specifies the number of color components in the texture. Must be 1, 2, +Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_COMPRESSED_ALPHA}, @@ -20779,9 +20820,9 @@ Specifies the number of color components in the texture. Must be 1, 2, @code{GL_SRGB_ALPHA}, or @code{GL_SRGB8_ALPHA8}. @item @var{width} -Specifies the width of the texture image including the border if any. If +Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must -be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All +be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All implementations support texture images that are at least 64 texels wide. @item @var{height} @@ -20792,26 +20833,27 @@ All implementations support texture images that are at least 64 texels high. @item @var{border} -Specifies the width of the border. Must be either 0 or 1. +Specifies the width of the border. Must be either 0 or 1. @item @var{format} -Specifies the format of the pixel data. The following symbolic values +Specifies the format of the pixel data. The following symbolic values are accepted: @code{GL_COLOR_INDEX}, @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, and @code{GL_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type of the pixel data. The following symbolic values -are accepted: @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, -@code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, -@code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, -@code{GL_UNSIGNED_BYTE_2_3_3_REV}, @code{GL_UNSIGNED_SHORT_5_6_5}, -@code{GL_UNSIGNED_SHORT_5_6_5_REV}, @code{GL_UNSIGNED_SHORT_4_4_4_4}, -@code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, @code{GL_UNSIGNED_SHORT_5_5_5_1}, -@code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, @code{GL_UNSIGNED_INT_8_8_8_8}, -@code{GL_UNSIGNED_INT_8_8_8_8_REV}, @code{GL_UNSIGNED_INT_10_10_10_2}, -and @code{GL_UNSIGNED_INT_2_10_10_10_REV}. +Specifies the data type of the pixel data. The following symbolic +values are accepted: @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, +@code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, +@code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, +@code{GL_UNSIGNED_BYTE_3_3_2}, @code{GL_UNSIGNED_BYTE_2_3_3_REV}, +@code{GL_UNSIGNED_SHORT_5_6_5}, @code{GL_UNSIGNED_SHORT_5_6_5_REV}, +@code{GL_UNSIGNED_SHORT_4_4_4_4}, @code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, +@code{GL_UNSIGNED_SHORT_5_5_5_1}, @code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, +@code{GL_UNSIGNED_INT_8_8_8_8}, @code{GL_UNSIGNED_INT_8_8_8_8_REV}, +@code{GL_UNSIGNED_INT_10_10_10_2}, and +@code{GL_UNSIGNED_INT_2_10_10_10_REV}. @item @var{data} Specifies a pointer to the image data in memory. @@ -20819,36 +20861,36 @@ Specifies a pointer to the image data in memory. @end table Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable two-dimensional texturing, call @code{glEnable} and -@code{glDisable} with argument @code{GL_TEXTURE_2D}. To enable and +@code{glDisable} with argument @code{GL_TEXTURE_2D}. To enable and disable texturing using cube-mapped texture, call @code{glEnable} and @code{glDisable} with argument @code{GL_TEXTURE_CUBE_MAP}. -To define texture images, call @code{glTexImage2D}. The arguments +To define texture images, call @code{glTexImage2D}. The arguments describe the parameters of the texture image, such as height, width, width of the border, level-of-detail number (see @code{glTexParameter}), -and number of color components provided. The last three arguments +and number of color components provided. The last three arguments describe how the image is represented in memory; they are identical to the pixel formats used for @code{glDrawPixels}. If @var{target} is @code{GL_PROXY_TEXTURE_2D} or @code{GL_PROXY_TEXTURE_CUBE_MAP}, no data is read from @var{data}, but all of the texture image state is recalculated, checked for consistency, -and checked against the implementation's capabilities. If the +and checked against the implementation's capabilities. If the implementation cannot handle a texture of the requested texture size, it sets all of the image state to 0, but does not generate an error (see -@code{glGetError}). To query for an entire mipmap array, use an image +@code{glGetError}). To query for an entire mipmap array, use an image array level greater than or equal to 1. If @var{target} is @code{GL_TEXTURE_2D}, or one of the @code{GL_TEXTURE_CUBE_MAP} targets, data is read from @var{data} as a sequence of signed or unsigned bytes, shorts, or longs, or -single-precision floating-point values, depending on @var{type}. These +single-precision floating-point values, depending on @var{type}. These values are grouped into sets of one, two, three, or four values, -depending on @var{format}, to form elements. If @var{type} is +depending on @var{format}, to form elements. If @var{type} is @code{GL_BITMAP}, the data is considered as a string of unsigned bytes -(and @var{format} must be @code{GL_COLOR_INDEX}). Each data byte is +(and @var{format} must be @code{GL_COLOR_INDEX}). Each data byte is treated as eight 1-bit elements, with bit ordering determined by @code{GL_UNPACK_LSB_FIRST} (see @code{glPixelStore}). @@ -20858,9 +20900,9 @@ texture image is specified, @var{data} is treated as a byte offset into the buffer object's data store. The first element corresponds to the lower left corner of the texture -image. Subsequent elements progress left-to-right through the remaining +image. Subsequent elements progress left-to-right through the remaining texels in the lowest row of the texture image, and then in successively -higher rows of the texture image. The final element corresponds to the +higher rows of the texture image. The final element corresponds to the upper right corner of the texture image. @var{format} determines the composition of each element in @var{data}. @@ -20868,87 +20910,88 @@ It can assume one of these symbolic values: @table @asis @item @code{GL_COLOR_INDEX} -Each element is a single value, a color index. The GL converts it to +Each element is a single value, a color index. The GL converts it to fixed point (with an unspecified number of zero bits to the right of the binary point), shifted left or right depending on the value and sign of @code{GL_INDEX_SHIFT}, and added to @code{GL_INDEX_OFFSET} (see -@code{glPixelTransfer}). The resulting index is converted to a set of +@code{glPixelTransfer}). The resulting index is converted to a set of color components using the @code{GL_PIXEL_MAP_I_TO_R}, @code{GL_PIXEL_MAP_I_TO_G}, @code{GL_PIXEL_MAP_I_TO_B}, and @code{GL_PIXEL_MAP_I_TO_A} tables, and clamped to the range [0,1]. @item @code{GL_RED} -Each element is a single red component. The GL converts it to floating +Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and -blue, and 1 for alpha. Each component is then multiplied by the signed +blue, and 1 for alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_GREEN} -Each element is a single green component. The GL converts it to floating -point and assembles it into an RGBA element by attaching 0 for red and -blue, and 1 for alpha. Each component is then multiplied by the signed -scale factor @code{GL_c_SCALE}, added to the signed bias +Each element is a single green component. The GL converts it to +floating point and assembles it into an RGBA element by attaching 0 for +red and blue, and 1 for alpha. Each component is then multiplied by the +signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_BLUE} -Each element is a single blue component. The GL converts it to floating +Each element is a single blue component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for red and -green, and 1 for alpha. Each component is then multiplied by the signed +green, and 1 for alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_ALPHA} -Each element is a single alpha component. The GL converts it to floating -point and assembles it into an RGBA element by attaching 0 for red, -green, and blue. Each component is then multiplied by the signed scale -factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and -clamped to the range [0,1] (see @code{glPixelTransfer}). +Each element is a single alpha component. The GL converts it to +floating point and assembles it into an RGBA element by attaching 0 for +red, green, and blue. Each component is then multiplied by the signed +scale factor @code{GL_c_SCALE}, added to the signed bias +@code{GL_c_BIAS}, and clamped to the range [0,1] (see +@code{glPixelTransfer}). @item @code{GL_INTENSITY} -Each element is a single intensity value. The GL converts it to floating -point, then assembles it into an RGBA element by replicating the -intensity value three times for red, green, blue, and alpha. Each +Each element is a single intensity value. The GL converts it to +floating point, then assembles it into an RGBA element by replicating +the intensity value three times for red, green, blue, and alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_RGB} @item @code{GL_BGR} -Each element is an RGB triple. The GL converts it to floating point and -assembles it into an RGBA element by attaching 1 for alpha. Each +Each element is an RGB triple. The GL converts it to floating point and +assembles it into an RGBA element by attaching 1 for alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_RGBA} @item @code{GL_BGRA} -Each element contains all four components. Each component is multiplied +Each element contains all four components. Each component is multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_LUMINANCE} -Each element is a single luminance value. The GL converts it to floating -point, then assembles it into an RGBA element by replicating the -luminance value three times for red, green, and blue and attaching 1 for -alpha. Each component is then multiplied by the signed scale factor +Each element is a single luminance value. The GL converts it to +floating point, then assembles it into an RGBA element by replicating +the luminance value three times for red, green, and blue and attaching 1 +for alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_LUMINANCE_ALPHA} -Each element is a luminance/alpha pair. The GL converts it to floating +Each element is a luminance/alpha pair. The GL converts it to floating point, then assembles it into an RGBA element by replicating the -luminance value three times for red, green, and blue. Each component is +luminance value three times for red, green, and blue. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_DEPTH_COMPONENT} -Each element is a single depth value. The GL converts it to floating +Each element is a single depth value. The GL converts it to floating point, multiplies by the signed scale factor @code{GL_DEPTH_SCALE}, adds the signed bias @code{GL_DEPTH_BIAS}, and clamps to the range [0,1] (see @code{glPixelTransfer}). @@ -20960,19 +21003,19 @@ acceptable values for the @var{type} parameter. If an application wants to store the texture at a certain resolution or in a certain format, it can request the resolution and format with -@var{internalFormat}. The GL will choose an internal representation that -closely approximates that requested by @var{internalFormat}, but it may -not match exactly. (The representations specified by +@var{internalFormat}. The GL will choose an internal representation +that closely approximates that requested by @var{internalFormat}, but it +may not match exactly. (The representations specified by @code{GL_LUMINANCE}, @code{GL_LUMINANCE_ALPHA}, @code{GL_RGB}, and -@code{GL_RGBA} must match exactly. The numeric values 1, 2, 3, and 4 may -also be used to specify the above representations.) +@code{GL_RGBA} must match exactly. The numeric values 1, 2, 3, and 4 +may also be used to specify the above representations.) If the @var{internalFormat} parameter is one of the generic compressed formats, @code{GL_COMPRESSED_ALPHA}, @code{GL_COMPRESSED_INTENSITY}, @code{GL_COMPRESSED_LUMINANCE}, @code{GL_COMPRESSED_LUMINANCE_ALPHA}, @code{GL_COMPRESSED_RGB}, or @code{GL_COMPRESSED_RGBA}, the GL will replace the internal format with the symbolic constant for a specific -internal format and compress the texture before storage. If no +internal format and compress the texture before storage. If no corresponding internal format is available, or the GL can not compress that image for any reason, the internal format is instead replaced with a corresponding base internal format. @@ -20982,7 +21025,7 @@ If the @var{internalFormat} parameter is @code{GL_SRGB}, @code{GL_SLUMINANCE}, @code{GL_SLUMINANCE8}, @code{GL_SLUMINANCE_ALPHA}, or @code{GL_SLUMINANCE8_ALPHA8}, the texture is treated as if the red, green, blue, or luminance components are encoded in the sRGB color -space. Any alpha component is left unchanged. The conversion from the +space. Any alpha component is left unchanged. The conversion from the sRGB encoded component @r{@var{c}_@var{s}} to a linear component @r{@var{c}_@var{l}} is: @@ -20992,21 +21035,21 @@ sRGB encoded component @r{@var{c}_@var{s}} to a linear component Assume @r{@var{c}_@var{s}} is the sRGB component in the range [0,1]. Use the @code{GL_PROXY_TEXTURE_2D} or @code{GL_PROXY_TEXTURE_CUBE_MAP} -target to try out a resolution and format. The implementation will +target to try out a resolution and format. The implementation will update and recompute its best match for the requested storage resolution -and format. To then query this state, call -@code{glGetTexLevelParameter}. If the texture cannot be accommodated, +and format. To then query this state, call +@code{glGetTexLevelParameter}. If the texture cannot be accommodated, texture state is set to 0. A one-component texture image uses only the red component of the RGBA -color extracted from @var{data}. A two-component image uses the R and A -values. A three-component image uses the R, G, and B values. A +color extracted from @var{data}. A two-component image uses the R and A +values. A three-component image uses the R, G, and B values. A four-component image uses all of the RGBA components. Depth textures can be treated as LUMINANCE, INTENSITY or ALPHA textures -during texture filtering and application. Image-based shadowing can be +during texture filtering and application.  Image-based shadowing can be  enabled by comparing texture r coordinates to depth texture values to -generate a boolean result. See @code{glTexParameter} for details on +generate a boolean result. See @code{glTexParameter} for details on texture comparison. @code{GL_INVALID_ENUM} is generated if @var{target} is not @@ -21104,15 +21147,15 @@ Specify a three-dimensional texture image. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_3D} or +Specifies the target texture. Must be @code{GL_TEXTURE_3D} or @code{GL_PROXY_TEXTURE_3D}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @r{@var{n}} is the @r{@var{n}^@var{th}} mipmap reduction image. @item @var{internalFormat} -Specifies the number of color components in the texture. Must be 1, 2, +Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: @code{GL_ALPHA}, @code{GL_ALPHA4}, @code{GL_ALPHA8}, @code{GL_ALPHA12}, @code{GL_ALPHA16}, @code{GL_COMPRESSED_ALPHA}, @@ -21135,9 +21178,9 @@ Specifies the number of color components in the texture. Must be 1, 2, @code{GL_SRGB_ALPHA}, or @code{GL_SRGB8_ALPHA8}. @item @var{width} -Specifies the width of the texture image including the border if any. If +Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must -be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All +be @r{2^@var{n}+2⁡(@var{border},)} for some integer @r{@var{n}}. All implementations support 3D texture images that are at least 16 texels wide. @@ -21149,33 +21192,34 @@ All implementations support 3D texture images that are at least 16 texels high. @item @var{depth} -Specifies the depth of the texture image including the border if any. If +Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must -be @r{2^@var{k}+2⁡(@var{border},)} for some integer @r{@var{k}}. All +be @r{2^@var{k}+2⁡(@var{border},)} for some integer @r{@var{k}}. All implementations support 3D texture images that are at least 16 texels deep. @item @var{border} -Specifies the width of the border. Must be either 0 or 1. +Specifies the width of the border. Must be either 0 or 1. @item @var{format} -Specifies the format of the pixel data. The following symbolic values +Specifies the format of the pixel data. The following symbolic values are accepted: @code{GL_COLOR_INDEX}, @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, and @code{GL_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type of the pixel data. The following symbolic values -are accepted: @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, -@code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, -@code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, -@code{GL_UNSIGNED_BYTE_2_3_3_REV}, @code{GL_UNSIGNED_SHORT_5_6_5}, -@code{GL_UNSIGNED_SHORT_5_6_5_REV}, @code{GL_UNSIGNED_SHORT_4_4_4_4}, -@code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, @code{GL_UNSIGNED_SHORT_5_5_5_1}, -@code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, @code{GL_UNSIGNED_INT_8_8_8_8}, -@code{GL_UNSIGNED_INT_8_8_8_8_REV}, @code{GL_UNSIGNED_INT_10_10_10_2}, -and @code{GL_UNSIGNED_INT_2_10_10_10_REV}. +Specifies the data type of the pixel data. The following symbolic +values are accepted: @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, +@code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, +@code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, +@code{GL_UNSIGNED_BYTE_3_3_2}, @code{GL_UNSIGNED_BYTE_2_3_3_REV}, +@code{GL_UNSIGNED_SHORT_5_6_5}, @code{GL_UNSIGNED_SHORT_5_6_5_REV}, +@code{GL_UNSIGNED_SHORT_4_4_4_4}, @code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, +@code{GL_UNSIGNED_SHORT_5_5_5_1}, @code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, +@code{GL_UNSIGNED_INT_8_8_8_8}, @code{GL_UNSIGNED_INT_8_8_8_8_REV}, +@code{GL_UNSIGNED_INT_10_10_10_2}, and +@code{GL_UNSIGNED_INT_2_10_10_10_REV}. @item @var{data} Specifies a pointer to the image data in memory. @@ -21183,14 +21227,14 @@ Specifies a pointer to the image data in memory. @end table Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable three-dimensional texturing, call @code{glEnable} and @code{glDisable} with argument @code{GL_TEXTURE_3D}. -To define texture images, call @code{glTexImage3D}. The arguments +To define texture images, call @code{glTexImage3D}. The arguments describe the parameters of the texture image, such as height, width, depth, width of the border, level-of-detail number (see -@code{glTexParameter}), and number of color components provided. The +@code{glTexParameter}), and number of color components provided. The last three arguments describe how the image is represented in memory; they are identical to the pixel formats used for @code{glDrawPixels}. @@ -21199,16 +21243,16 @@ If @var{target} is @code{GL_PROXY_TEXTURE_3D}, no data is read from for consistency, and checked against the implementation's capabilities. If the implementation cannot handle a texture of the requested texture size, it sets all of the image state to 0, but does not generate an -error (see @code{glGetError}). To query for an entire mipmap array, use +error (see @code{glGetError}). To query for an entire mipmap array, use an image array level greater than or equal to 1. If @var{target} is @code{GL_TEXTURE_3D}, data is read from @var{data} as a sequence of signed or unsigned bytes, shorts, or longs, or -single-precision floating-point values, depending on @var{type}. These +single-precision floating-point values, depending on @var{type}. These values are grouped into sets of one, two, three, or four values, -depending on @var{format}, to form elements. If @var{type} is +depending on @var{format}, to form elements. If @var{type} is @code{GL_BITMAP}, the data is considered as a string of unsigned bytes -(and @var{format} must be @code{GL_COLOR_INDEX}). Each data byte is +(and @var{format} must be @code{GL_COLOR_INDEX}). Each data byte is treated as eight 1-bit elements, with bit ordering determined by @code{GL_UNPACK_LSB_FIRST} (see @code{glPixelStore}). @@ -21218,9 +21262,9 @@ texture image is specified, @var{data} is treated as a byte offset into the buffer object's data store. The first element corresponds to the lower left corner of the texture -image. Subsequent elements progress left-to-right through the remaining +image. Subsequent elements progress left-to-right through the remaining texels in the lowest row of the texture image, and then in successively -higher rows of the texture image. The final element corresponds to the +higher rows of the texture image. The final element corresponds to the upper right corner of the texture image. @var{format} determines the composition of each element in @var{data}. @@ -21228,81 +21272,82 @@ It can assume one of these symbolic values: @table @asis @item @code{GL_COLOR_INDEX} -Each element is a single value, a color index. The GL converts it to +Each element is a single value, a color index. The GL converts it to fixed point (with an unspecified number of zero bits to the right of the binary point), shifted left or right depending on the value and sign of @code{GL_INDEX_SHIFT}, and added to @code{GL_INDEX_OFFSET} (see -@code{glPixelTransfer}). The resulting index is converted to a set of +@code{glPixelTransfer}). The resulting index is converted to a set of color components using the @code{GL_PIXEL_MAP_I_TO_R}, @code{GL_PIXEL_MAP_I_TO_G}, @code{GL_PIXEL_MAP_I_TO_B}, and @code{GL_PIXEL_MAP_I_TO_A} tables, and clamped to the range [0,1]. @item @code{GL_RED} -Each element is a single red component. The GL converts it to floating +Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and -blue, and 1 for alpha. Each component is then multiplied by the signed +blue, and 1 for alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_GREEN} -Each element is a single green component. The GL converts it to floating -point and assembles it into an RGBA element by attaching 0 for red and -blue, and 1 for alpha. Each component is then multiplied by the signed -scale factor @code{GL_c_SCALE}, added to the signed bias +Each element is a single green component. The GL converts it to +floating point and assembles it into an RGBA element by attaching 0 for +red and blue, and 1 for alpha. Each component is then multiplied by the +signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_BLUE} -Each element is a single blue component. The GL converts it to floating +Each element is a single blue component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for red and -green, and 1 for alpha. Each component is then multiplied by the signed +green, and 1 for alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_ALPHA} -Each element is a single alpha component. The GL converts it to floating -point and assembles it into an RGBA element by attaching 0 for red, -green, and blue. Each component is then multiplied by the signed scale -factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and -clamped to the range [0,1] (see @code{glPixelTransfer}). +Each element is a single alpha component. The GL converts it to +floating point and assembles it into an RGBA element by attaching 0 for +red, green, and blue. Each component is then multiplied by the signed +scale factor @code{GL_c_SCALE}, added to the signed bias +@code{GL_c_BIAS}, and clamped to the range [0,1] (see +@code{glPixelTransfer}). @item @code{GL_INTENSITY} -Each element is a single intensity value. The GL converts it to floating -point, then assembles it into an RGBA element by replicating the -intensity value three times for red, green, blue, and alpha. Each +Each element is a single intensity value. The GL converts it to +floating point, then assembles it into an RGBA element by replicating +the intensity value three times for red, green, blue, and alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_RGB} @item @code{GL_BGR} -Each element is an RGB triple. The GL converts it to floating point and -assembles it into an RGBA element by attaching 1 for alpha. Each +Each element is an RGB triple. The GL converts it to floating point and +assembles it into an RGBA element by attaching 1 for alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_RGBA} @item @code{GL_BGRA} -Each element contains all four components. Each component is multiplied +Each element contains all four components. Each component is multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_LUMINANCE} -Each element is a single luminance value. The GL converts it to floating -point, then assembles it into an RGBA element by replicating the -luminance value three times for red, green, and blue and attaching 1 for -alpha. Each component is then multiplied by the signed scale factor +Each element is a single luminance value. The GL converts it to +floating point, then assembles it into an RGBA element by replicating +the luminance value three times for red, green, and blue and attaching 1 +for alpha. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @item @code{GL_LUMINANCE_ALPHA} -Each element is a luminance/alpha pair. The GL converts it to floating +Each element is a luminance/alpha pair. The GL converts it to floating point, then assembles it into an RGBA element by replicating the -luminance value three times for red, green, and blue. Each component is +luminance value three times for red, green, and blue. Each component is then multiplied by the signed scale factor @code{GL_c_SCALE}, added to the signed bias @code{GL_c_BIAS}, and clamped to the range [0,1] (see @code{glPixelTransfer}). @@ -21314,19 +21359,19 @@ acceptable values for the @var{type} parameter. If an application wants to store the texture at a certain resolution or in a certain format, it can request the resolution and format with -@var{internalFormat}. The GL will choose an internal representation that -closely approximates that requested by @var{internalFormat}, but it may -not match exactly. (The representations specified by +@var{internalFormat}. The GL will choose an internal representation +that closely approximates that requested by @var{internalFormat}, but it +may not match exactly. (The representations specified by @code{GL_LUMINANCE}, @code{GL_LUMINANCE_ALPHA}, @code{GL_RGB}, and -@code{GL_RGBA} must match exactly. The numeric values 1, 2, 3, and 4 may -also be used to specify the above representations.) +@code{GL_RGBA} must match exactly. The numeric values 1, 2, 3, and 4 +may also be used to specify the above representations.) If the @var{internalFormat} parameter is one of the generic compressed formats, @code{GL_COMPRESSED_ALPHA}, @code{GL_COMPRESSED_INTENSITY}, @code{GL_COMPRESSED_LUMINANCE}, @code{GL_COMPRESSED_LUMINANCE_ALPHA}, @code{GL_COMPRESSED_RGB}, or @code{GL_COMPRESSED_RGBA}, the GL will replace the internal format with the symbolic constant for a specific -internal format and compress the texture before storage. If no +internal format and compress the texture before storage. If no corresponding internal format is available, or the GL can not compress that image for any reason, the internal format is instead replaced with a corresponding base internal format. @@ -21336,7 +21381,7 @@ If the @var{internalFormat} parameter is @code{GL_SRGB}, @code{GL_SLUMINANCE}, @code{GL_SLUMINANCE8}, @code{GL_SLUMINANCE_ALPHA}, or @code{GL_SLUMINANCE8_ALPHA8}, the texture is treated as if the red, green, blue, or luminance components are encoded in the sRGB color -space. Any alpha component is left unchanged. The conversion from the +space. Any alpha component is left unchanged. The conversion from the sRGB encoded component @r{@var{c}_@var{s}} to a linear component @r{@var{c}_@var{l}} is: @@ -21346,22 +21391,22 @@ sRGB encoded component @r{@var{c}_@var{s}} to a linear component Assume @r{@var{c}_@var{s}} is the sRGB component in the range [0,1]. Use the @code{GL_PROXY_TEXTURE_3D} target to try out a resolution and -format. The implementation will update and recompute its best match for -the requested storage resolution and format. To then query this state, -call @code{glGetTexLevelParameter}. If the texture cannot be +format. The implementation will update and recompute its best match for +the requested storage resolution and format. To then query this state, +call @code{glGetTexLevelParameter}. If the texture cannot be accommodated, texture state is set to 0. A one-component texture image uses only the red component of the RGBA -color extracted from @var{data}. A two-component image uses the R and A -values. A three-component image uses the R, G, and B values. A +color extracted from @var{data}. A two-component image uses the R and A +values. A three-component image uses the R, G, and B values. A four-component image uses all of the RGBA components. @code{GL_INVALID_ENUM} is generated if @var{target} is not @code{GL_TEXTURE_3D} or @code{GL_PROXY_TEXTURE_3D}. @code{GL_INVALID_ENUM} is generated if @var{format} is not an accepted -format constant. Format constants other than @code{GL_STENCIL_INDEX} and -@code{GL_DEPTH_COMPONENT} are accepted. +format constant. Format constants other than @code{GL_STENCIL_INDEX} +and @code{GL_DEPTH_COMPONENT} are accepted. @code{GL_INVALID_ENUM} is generated if @var{type} is not a type constant. @@ -21457,58 +21502,59 @@ Specifies the value of @var{pname}. @end table Texture mapping is a technique that applies an image onto an object's -surface as if the image were a decal or cellophane shrink-wrap. The +surface as if the image were a decal or cellophane shrink-wrap. The image is created in texture space, with an (@r{@var{s}}, @r{@var{t}}) -coordinate system. A texture is a one- or two-dimensional image and a +coordinate system. A texture is a one- or two-dimensional image and a set of parameters that determine how samples are derived from the image. @code{glTexParameter} assigns the value or values in @var{params} to the -texture parameter specified as @var{pname}. @var{target} defines the +texture parameter specified as @var{pname}. @var{target} defines the target texture, either @code{GL_TEXTURE_1D}, @code{GL_TEXTURE_2D}, or -@code{GL_TEXTURE_3D}. The following symbols are accepted in @var{pname}: +@code{GL_TEXTURE_3D}. The following symbols are accepted in +@var{pname}: @table @asis @item @code{GL_TEXTURE_MIN_FILTER} The texture minifying function is used whenever the pixel being textured -maps to an area greater than one texture element. There are six defined -minifying functions. Two of them use the nearest one or nearest four -texture elements to compute the texture value. The other four use +maps to an area greater than one texture element. There are six defined +minifying functions. Two of them use the nearest one or nearest four +texture elements to compute the texture value. The other four use mipmaps. A mipmap is an ordered set of arrays representing the same image at -progressively lower resolutions. If the texture has dimensions +progressively lower resolutions. If the texture has dimensions @r{2^@var{n}×2^@var{m}}, there are @r{@var{max}⁡(@var{n},@var{m})+1} -mipmaps. The first mipmap is the original texture, with dimensions -@r{2^@var{n}×2^@var{m}}. Each subsequent mipmap has dimensions +mipmaps. The first mipmap is the original texture, with dimensions +@r{2^@var{n}×2^@var{m}}. Each subsequent mipmap has dimensions @r{2^@var{k}-1,×2^@var{l}-1,}, where @r{2^@var{k}×2^@var{l}} are the dimensions of the previous mipmap, until either @r{@var{k}=0} or -@r{@var{l}=0}. At that point, subsequent mipmaps have dimension +@r{@var{l}=0}. At that point, subsequent mipmaps have dimension @r{1×2^@var{l}-1,} or @r{2^@var{k}-1,×1} until the final mipmap, which -has dimension @r{1×1}. To define the mipmaps, call @code{glTexImage1D}, +has dimension @r{1×1}. To define the mipmaps, call @code{glTexImage1D}, @code{glTexImage2D}, @code{glTexImage3D}, @code{glCopyTexImage1D}, or @code{glCopyTexImage2D} with the @var{level} argument indicating the -order of the mipmaps. Level 0 is the original texture; level +order of the mipmaps. Level 0 is the original texture; level @r{@var{max}⁡(@var{n},@var{m})} is the final @r{1×1} mipmap. @var{params} supplies a function for minifying the texture as one of the following: As more texture elements are sampled in the minification process, fewer -aliasing artifacts will be apparent. While the @code{GL_NEAREST} and +aliasing artifacts will be apparent. While the @code{GL_NEAREST} and @code{GL_LINEAR} minification functions can be faster than the other four, they sample only one or four texture elements to determine the texture value of the pixel being rendered and can produce moire patterns -or ragged transitions. The initial value of @code{GL_TEXTURE_MIN_FILTER} -is @code{GL_NEAREST_MIPMAP_LINEAR}. +or ragged transitions. The initial value of +@code{GL_TEXTURE_MIN_FILTER} is @code{GL_NEAREST_MIPMAP_LINEAR}. @item @code{GL_TEXTURE_MAG_FILTER} The texture magnification function is used when the pixel being textured -maps to an area less than or equal to one texture element. It sets the +maps to an area less than or equal to one texture element. It sets the texture magnification function to either @code{GL_NEAREST} or -@code{GL_LINEAR} (see below). @code{GL_NEAREST} is generally faster than -@code{GL_LINEAR}, but it can produce textured images with sharper edges -because the transition between texture elements is not as smooth. The -initial value of @code{GL_TEXTURE_MAG_FILTER} is @code{GL_LINEAR}. +@code{GL_LINEAR} (see below). @code{GL_NEAREST} is generally faster +than @code{GL_LINEAR}, but it can produce textured images with sharper +edges because the transition between texture elements is not as smooth. +The initial value of @code{GL_TEXTURE_MAG_FILTER} is @code{GL_LINEAR}. @end table @@ -21519,7 +21565,7 @@ distance) to the center of the pixel being textured. @item @code{GL_LINEAR} Returns the weighted average of the four texture elements that are -closest to the center of the pixel being textured. These can include +closest to the center of the pixel being textured. These can include border texture elements, depending on the values of @code{GL_TEXTURE_WRAP_S} and @code{GL_TEXTURE_WRAP_T}, and on the exact mapping. @@ -21539,14 +21585,14 @@ to produce a texture value. Chooses the two mipmaps that most closely match the size of the pixel being textured and uses the @code{GL_NEAREST} criterion (the texture element nearest to the center of the pixel) to produce a texture value -from each mipmap. The final texture value is a weighted average of those -two values. +from each mipmap. The final texture value is a weighted average of +those two values. @item @code{GL_LINEAR_MIPMAP_LINEAR} Chooses the two mipmaps that most closely match the size of the pixel being textured and uses the @code{GL_LINEAR} criterion (a weighted average of the four texture elements that are closest to the center of -the pixel) to produce a texture value from each mipmap. The final +the pixel) to produce a texture value from each mipmap. The final texture value is a weighted average of those two values. @end table @@ -21558,7 +21604,7 @@ distance) to the center of the pixel being textured. @item @code{GL_LINEAR} Returns the weighted average of the four texture elements that are -closest to the center of the pixel being textured. These can include +closest to the center of the pixel being textured. These can include border texture elements, depending on the values of @code{GL_TEXTURE_WRAP_S} and @code{GL_TEXTURE_WRAP_T}, and on the exact mapping. @@ -21569,7 +21615,7 @@ mapping. @table @asis @item @code{GL_TEXTURE_MIN_LOD} -Sets the minimum level-of-detail parameter. This floating-point value +Sets the minimum level-of-detail parameter. This floating-point value limits the selection of highest resolution mipmap (lowest mipmap level). The initial value is -1000. @@ -21579,9 +21625,9 @@ The initial value is -1000. @table @asis @item @code{GL_TEXTURE_MAX_LOD} -Sets the maximum level-of-detail parameter. This floating-point value +Sets the maximum level-of-detail parameter. This floating-point value limits the selection of the lowest resolution mipmap (highest mipmap -level). The initial value is 1000. +level). The initial value is 1000. @end table @@ -21589,8 +21635,8 @@ level). The initial value is 1000. @table @asis @item @code{GL_TEXTURE_BASE_LEVEL} -Specifies the index of the lowest defined mipmap level. This is an -integer value. The initial value is 0. +Specifies the index of the lowest defined mipmap level. This is an +integer value. The initial value is 0. @end table @@ -21598,8 +21644,8 @@ integer value. The initial value is 0. @table @asis @item @code{GL_TEXTURE_MAX_LEVEL} -Sets the index of the highest defined mipmap level. This is an integer -value. The initial value is 1000. +Sets the index of the highest defined mipmap level. This is an integer +value. The initial value is 1000. @end table @@ -21609,10 +21655,10 @@ value. The initial value is 1000. @item @code{GL_TEXTURE_WRAP_S} Sets the wrap parameter for texture coordinate @r{@var{s}} to either @code{GL_CLAMP}, @code{GL_CLAMP_TO_BORDER}, @code{GL_CLAMP_TO_EDGE}, -@code{GL_MIRRORED_REPEAT}, or @code{GL_REPEAT}. @code{GL_CLAMP} causes +@code{GL_MIRRORED_REPEAT}, or @code{GL_REPEAT}. @code{GL_CLAMP} causes @r{@var{s}} coordinates to be clamped to the range [0,1] and is useful for preventing wrapping artifacts when mapping a single image onto an -object. @code{GL_CLAMP_TO_BORDER} causes the @r{@var{s}} coordinate to +object. @code{GL_CLAMP_TO_BORDER} causes the @r{@var{s}} coordinate to be clamped to the range @r{[-1/2@var{N},,1+1/2@var{N},]}, where @r{@var{N}} is the size of the texture in the direction of clamping.@code{GL_CLAMP_TO_EDGE} causes @r{@var{s}} coordinates to be @@ -21620,14 +21666,15 @@ clamped to the range @r{[1/2@var{N},,1-1/2@var{N},]}, where @r{@var{N}} is the size of the texture in the direction of clamping. @code{GL_REPEAT} causes the integer part of the @r{@var{s}} coordinate to be ignored; the GL uses only the fractional part, thereby creating a -repeating pattern. @code{GL_MIRRORED_REPEAT} causes the @r{@var{s}} +repeating pattern. @code{GL_MIRRORED_REPEAT} causes the @r{@var{s}} coordinate to be set to the fractional part of the texture coordinate if the integer part of @r{@var{s}} is even; if the integer part of @r{@var{s}} is odd, then the @r{@var{s}} texture coordinate is set to @r{1-@var{frac}⁡(@var{s},)}, where @r{@var{frac}⁡(@var{s},)} represents -the fractional part of @r{@var{s}}. Border texture elements are accessed -only if wrapping is set to @code{GL_CLAMP} or @code{GL_CLAMP_TO_BORDER}. -Initially, @code{GL_TEXTURE_WRAP_S} is set to @code{GL_REPEAT}. +the fractional part of @r{@var{s}}. Border texture elements are +accessed only if wrapping is set to @code{GL_CLAMP} or +@code{GL_CLAMP_TO_BORDER}. Initially, @code{GL_TEXTURE_WRAP_S} is set +to @code{GL_REPEAT}. @end table @@ -21637,34 +21684,34 @@ Initially, @code{GL_TEXTURE_WRAP_S} is set to @code{GL_REPEAT}. @item @code{GL_TEXTURE_WRAP_T} Sets the wrap parameter for texture coordinate @r{@var{t}} to either @code{GL_CLAMP}, @code{GL_CLAMP_TO_BORDER}, @code{GL_CLAMP_TO_EDGE}, -@code{GL_MIRRORED_REPEAT}, or @code{GL_REPEAT}. See the discussion under -@code{GL_TEXTURE_WRAP_S}. Initially, @code{GL_TEXTURE_WRAP_T} is set to -@code{GL_REPEAT}. +@code{GL_MIRRORED_REPEAT}, or @code{GL_REPEAT}. See the discussion +under @code{GL_TEXTURE_WRAP_S}. Initially, @code{GL_TEXTURE_WRAP_T} is +set to @code{GL_REPEAT}. @item @code{GL_TEXTURE_WRAP_R} Sets the wrap parameter for texture coordinate @r{@var{r}} to either @code{GL_CLAMP}, @code{GL_CLAMP_TO_BORDER}, @code{GL_CLAMP_TO_EDGE}, -@code{GL_MIRRORED_REPEAT}, or @code{GL_REPEAT}. See the discussion under -@code{GL_TEXTURE_WRAP_S}. Initially, @code{GL_TEXTURE_WRAP_R} is set to -@code{GL_REPEAT}. +@code{GL_MIRRORED_REPEAT}, or @code{GL_REPEAT}. See the discussion +under @code{GL_TEXTURE_WRAP_S}. Initially, @code{GL_TEXTURE_WRAP_R} is +set to @code{GL_REPEAT}. @item @code{GL_TEXTURE_BORDER_COLOR} -Sets a border color. @var{params} contains four values that comprise the -RGBA color of the texture border. Integer color components are +Sets a border color. @var{params} contains four values that comprise +the RGBA color of the texture border. Integer color components are interpreted linearly such that the most positive integer maps to 1.0, -and the most negative integer maps to -1.0. The values are clamped to -the range [0,1] when they are specified. Initially, the border color is +and the most negative integer maps to -1.0. The values are clamped to +the range [0,1] when they are specified. Initially, the border color is (0, 0, 0, 0). @item @code{GL_TEXTURE_PRIORITY} Specifies the texture residence priority of the currently bound texture. -Permissible values are in the range @r{[0,1]}. See +Permissible values are in the range @r{[0,1]}. See @code{glPrioritizeTextures} and @code{glBindTexture} for more information. @item @code{GL_TEXTURE_COMPARE_MODE} Specifies the texture comparison mode for currently bound depth -textures. That is, a texture whose internal format is +textures. That is, a texture whose internal format is @code{GL_DEPTH_COMPONENT_*}; see @code{glTexImage2D}) Permissible values are: @@ -21673,20 +21720,20 @@ Specifies the comparison operator used when @code{GL_TEXTURE_COMPARE_MODE} is set to @code{GL_COMPARE_R_TO_TEXTURE}. Permissible values are: where @r{@var{r}} is the current interpolated texture coordinate, and @r{@var{D}_@var{t}} is the depth texture value -sampled from the currently bound depth texture. @r{@var{result}} is +sampled from the currently bound depth texture. @r{@var{result}} is assigned to the either the luminance, intensity, or alpha (as specified by @code{GL_DEPTH_TEXTURE_MODE}.) @item @code{GL_DEPTH_TEXTURE_MODE} Specifies a single symbolic constant indicating how depth values should -be treated during filtering and texture application. Accepted values are -@code{GL_LUMINANCE}, @code{GL_INTENSITY}, and @code{GL_ALPHA}. The +be treated during filtering and texture application. Accepted values +are @code{GL_LUMINANCE}, @code{GL_INTENSITY}, and @code{GL_ALPHA}. The initial value is @code{GL_LUMINANCE}. @item @code{GL_GENERATE_MIPMAP} Specifies a boolean value that indicates if all levels of a mipmap array should be automatically updated when any modification to the base level -mipmap is done. The initial value is @code{GL_FALSE}. +mipmap is done. The initial value is @code{GL_FALSE}. @end table @@ -21694,10 +21741,10 @@ mipmap is done. The initial value is @code{GL_FALSE}. @item @code{GL_COMPARE_R_TO_TEXTURE} Specifies that the interpolated and clamped @r{@var{r}} texture coordinate should be compared to the value in the currently bound depth -texture. See the discussion of @code{GL_TEXTURE_COMPARE_FUNC} for -details of how the comparison is evaluated. The result of the comparison -is assigned to luminance, intensity, or alpha (as specified by -@code{GL_DEPTH_TEXTURE_MODE}). +texture. See the discussion of @code{GL_TEXTURE_COMPARE_FUNC} for +details of how the comparison is evaluated. The result of the +comparison is assigned to luminance, intensity, or alpha (as specified +by @code{GL_DEPTH_TEXTURE_MODE}). @item @code{GL_NONE} Specifies that the luminance, intensity, or alpha (as specified by @@ -21759,10 +21806,10 @@ Specify a one-dimensional texture subimage. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_1D}. +Specifies the target texture. Must be @code{GL_TEXTURE_1D}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{xoffset} @@ -21772,23 +21819,24 @@ Specifies a texel offset in the x direction within the texture array. Specifies the width of the texture subimage. @item @var{format} -Specifies the format of the pixel data. The following symbolic values +Specifies the format of the pixel data. The following symbolic values are accepted: @code{GL_COLOR_INDEX}, @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, and @code{GL_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type of the pixel data. The following symbolic values -are accepted: @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, -@code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, -@code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, -@code{GL_UNSIGNED_BYTE_2_3_3_REV}, @code{GL_UNSIGNED_SHORT_5_6_5}, -@code{GL_UNSIGNED_SHORT_5_6_5_REV}, @code{GL_UNSIGNED_SHORT_4_4_4_4}, -@code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, @code{GL_UNSIGNED_SHORT_5_5_5_1}, -@code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, @code{GL_UNSIGNED_INT_8_8_8_8}, -@code{GL_UNSIGNED_INT_8_8_8_8_REV}, @code{GL_UNSIGNED_INT_10_10_10_2}, -and @code{GL_UNSIGNED_INT_2_10_10_10_REV}. +Specifies the data type of the pixel data. The following symbolic +values are accepted: @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, +@code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, +@code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, +@code{GL_UNSIGNED_BYTE_3_3_2}, @code{GL_UNSIGNED_BYTE_2_3_3_REV}, +@code{GL_UNSIGNED_SHORT_5_6_5}, @code{GL_UNSIGNED_SHORT_5_6_5_REV}, +@code{GL_UNSIGNED_SHORT_4_4_4_4}, @code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, +@code{GL_UNSIGNED_SHORT_5_5_5_1}, @code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, +@code{GL_UNSIGNED_INT_8_8_8_8}, @code{GL_UNSIGNED_INT_8_8_8_8_REV}, +@code{GL_UNSIGNED_INT_10_10_10_2}, and +@code{GL_UNSIGNED_INT_2_10_10_10_REV}. @item @var{data} Specifies a pointer to the image data in memory. @@ -21796,16 +21844,16 @@ Specifies a pointer to the image data in memory. @end table Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable or disable -one-dimensional texturing, call @code{glEnable} and @code{glDisable} -with argument @code{GL_TEXTURE_1D}. +graphical primitive for which texturing is enabled. To enable or +disable one-dimensional texturing, call @code{glEnable} and +@code{glDisable} with argument @code{GL_TEXTURE_1D}. @code{glTexSubImage1D} redefines a contiguous subregion of an existing -one-dimensional texture image. The texels referenced by @var{data} +one-dimensional texture image. The texels referenced by @var{data} replace the portion of the existing texture array with x indices -@var{xoffset} and @r{@var{xoffset}+@var{width}-1}, inclusive. This +@var{xoffset} and @r{@var{xoffset}+@var{width}-1}, inclusive. This region may not include any texels outside the range of the texture array -as it was originally specified. It is not an error to specify a +as it was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect. If a non-zero named buffer object is bound to the @@ -21880,7 +21928,7 @@ Specify a two-dimensional texture subimage. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_2D}, +Specifies the target texture. Must be @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_X}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_X}, @code{GL_TEXTURE_CUBE_MAP_POSITIVE_Y}, @@ -21889,7 +21937,7 @@ Specifies the target texture. Must be @code{GL_TEXTURE_2D}, @code{GL_TEXTURE_CUBE_MAP_NEGATIVE_Z}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{xoffset} @@ -21905,23 +21953,24 @@ Specifies the width of the texture subimage. Specifies the height of the texture subimage. @item @var{format} -Specifies the format of the pixel data. The following symbolic values +Specifies the format of the pixel data. The following symbolic values are accepted: @code{GL_COLOR_INDEX}, @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, and @code{GL_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type of the pixel data. The following symbolic values -are accepted: @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, -@code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, -@code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, -@code{GL_UNSIGNED_BYTE_2_3_3_REV}, @code{GL_UNSIGNED_SHORT_5_6_5}, -@code{GL_UNSIGNED_SHORT_5_6_5_REV}, @code{GL_UNSIGNED_SHORT_4_4_4_4}, -@code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, @code{GL_UNSIGNED_SHORT_5_5_5_1}, -@code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, @code{GL_UNSIGNED_INT_8_8_8_8}, -@code{GL_UNSIGNED_INT_8_8_8_8_REV}, @code{GL_UNSIGNED_INT_10_10_10_2}, -and @code{GL_UNSIGNED_INT_2_10_10_10_REV}. +Specifies the data type of the pixel data. The following symbolic +values are accepted: @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, +@code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, +@code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, +@code{GL_UNSIGNED_BYTE_3_3_2}, @code{GL_UNSIGNED_BYTE_2_3_3_REV}, +@code{GL_UNSIGNED_SHORT_5_6_5}, @code{GL_UNSIGNED_SHORT_5_6_5_REV}, +@code{GL_UNSIGNED_SHORT_4_4_4_4}, @code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, +@code{GL_UNSIGNED_SHORT_5_5_5_1}, @code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, +@code{GL_UNSIGNED_INT_8_8_8_8}, @code{GL_UNSIGNED_INT_8_8_8_8_REV}, +@code{GL_UNSIGNED_INT_10_10_10_2}, and +@code{GL_UNSIGNED_INT_2_10_10_10_REV}. @item @var{data} Specifies a pointer to the image data in memory. @@ -21929,17 +21978,17 @@ Specifies a pointer to the image data in memory. @end table Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable two-dimensional texturing, call @code{glEnable} and @code{glDisable} with argument @code{GL_TEXTURE_2D}. @code{glTexSubImage2D} redefines a contiguous subregion of an existing -two-dimensional texture image. The texels referenced by @var{data} +two-dimensional texture image. The texels referenced by @var{data} replace the portion of the existing texture array with x indices @var{xoffset} and @r{@var{xoffset}+@var{width}-1}, inclusive, and y indices @var{yoffset} and @r{@var{yoffset}+@var{height}-1}, inclusive. This region may not include any texels outside the range of the texture -array as it was originally specified. It is not an error to specify a +array as it was originally specified. It is not an error to specify a subtexture with zero width or height, but such a specification has no effect. @@ -21977,7 +22026,7 @@ and @var{format} is not @code{GL_COLOR_INDEX}. @r{(@var{yoffset}+@var{height},)>(@var{h}-@var{b},)}, where @r{@var{w}} is the @code{GL_TEXTURE_WIDTH}, @r{@var{h}} is the @code{GL_TEXTURE_HEIGHT}, and @r{@var{b}} is the border width of the -texture image being modified. Note that @r{@var{w}} and @r{@var{h}} +texture image being modified. Note that @r{@var{w}} and @r{@var{h}} include twice the border width. @code{GL_INVALID_VALUE} is generated if @var{width} or @var{height} is @@ -22024,10 +22073,10 @@ Specify a three-dimensional texture subimage. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GL_TEXTURE_3D}. +Specifies the target texture. Must be @code{GL_TEXTURE_3D}. @item @var{level} -Specifies the level-of-detail number. Level 0 is the base image level. +Specifies the level-of-detail number. Level 0 is the base image level. Level @var{n} is the @var{n}th mipmap reduction image. @item @var{xoffset} @@ -22049,23 +22098,24 @@ Specifies the height of the texture subimage. Specifies the depth of the texture subimage. @item @var{format} -Specifies the format of the pixel data. The following symbolic values +Specifies the format of the pixel data. The following symbolic values are accepted: @code{GL_COLOR_INDEX}, @code{GL_RED}, @code{GL_GREEN}, @code{GL_BLUE}, @code{GL_ALPHA}, @code{GL_RGB}, @code{GL_BGR}, @code{GL_RGBA}, @code{GL_BGRA}, @code{GL_LUMINANCE}, and @code{GL_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type of the pixel data. The following symbolic values -are accepted: @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, @code{GL_BITMAP}, -@code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, @code{GL_UNSIGNED_INT}, -@code{GL_INT}, @code{GL_FLOAT}, @code{GL_UNSIGNED_BYTE_3_3_2}, -@code{GL_UNSIGNED_BYTE_2_3_3_REV}, @code{GL_UNSIGNED_SHORT_5_6_5}, -@code{GL_UNSIGNED_SHORT_5_6_5_REV}, @code{GL_UNSIGNED_SHORT_4_4_4_4}, -@code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, @code{GL_UNSIGNED_SHORT_5_5_5_1}, -@code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, @code{GL_UNSIGNED_INT_8_8_8_8}, -@code{GL_UNSIGNED_INT_8_8_8_8_REV}, @code{GL_UNSIGNED_INT_10_10_10_2}, -and @code{GL_UNSIGNED_INT_2_10_10_10_REV}. +Specifies the data type of the pixel data. The following symbolic +values are accepted: @code{GL_UNSIGNED_BYTE}, @code{GL_BYTE}, +@code{GL_BITMAP}, @code{GL_UNSIGNED_SHORT}, @code{GL_SHORT}, +@code{GL_UNSIGNED_INT}, @code{GL_INT}, @code{GL_FLOAT}, +@code{GL_UNSIGNED_BYTE_3_3_2}, @code{GL_UNSIGNED_BYTE_2_3_3_REV}, +@code{GL_UNSIGNED_SHORT_5_6_5}, @code{GL_UNSIGNED_SHORT_5_6_5_REV}, +@code{GL_UNSIGNED_SHORT_4_4_4_4}, @code{GL_UNSIGNED_SHORT_4_4_4_4_REV}, +@code{GL_UNSIGNED_SHORT_5_5_5_1}, @code{GL_UNSIGNED_SHORT_1_5_5_5_REV}, +@code{GL_UNSIGNED_INT_8_8_8_8}, @code{GL_UNSIGNED_INT_8_8_8_8_REV}, +@code{GL_UNSIGNED_INT_10_10_10_2}, and +@code{GL_UNSIGNED_INT_2_10_10_10_REV}. @item @var{data} Specifies a pointer to the image data in memory. @@ -22073,18 +22123,18 @@ Specifies a pointer to the image data in memory. @end table Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable three-dimensional texturing, call @code{glEnable} and @code{glDisable} with argument @code{GL_TEXTURE_3D}. @code{glTexSubImage3D} redefines a contiguous subregion of an existing -three-dimensional texture image. The texels referenced by @var{data} +three-dimensional texture image. The texels referenced by @var{data} replace the portion of the existing texture array with x indices @var{xoffset} and @r{@var{xoffset}+@var{width}-1}, inclusive, y indices @var{yoffset} and @r{@var{yoffset}+@var{height}-1}, inclusive, and z indices @var{zoffset} and @r{@var{zoffset}+@var{depth}-1}, inclusive. This region may not include any texels outside the range of the texture -array as it was originally specified. It is not an error to specify a +array as it was originally specified. It is not an error to specify a subtexture with zero width, height, or depth but such a specification has no effect. @@ -22176,7 +22226,7 @@ vector. @end table @code{glTranslate} produces a translation by -@r{(@var{x},@var{y}@var{z})}. The current matrix (see +@r{(@var{x},@var{y}@var{z})}. The current matrix (see @code{glMatrixMode}) is multiplied by this translation matrix, with the product replacing the current matrix, as if @code{glMultMatrix} were called with the following matrix for its argument: @@ -22235,75 +22285,75 @@ Specifies the new values to be used for the specified uniform variable. @end table @code{glUniform} modifies the value of a uniform variable or a uniform -variable array. The location of the uniform variable to be modified is +variable array. The location of the uniform variable to be modified is specified by @var{location}, which should be a value returned by -@code{glGetUniformLocation}. @code{glUniform} operates on the program +@code{glGetUniformLocation}. @code{glUniform} operates on the program object that was made part of current state by calling @code{glUseProgram}. The commands @code{glUniform@{1|2|3|4@}@{f|i@}} are used to change the value of the uniform variable specified by @var{location} using the -values passed as arguments. The number specified in the command should +values passed as arguments. The number specified in the command should match the number of components in the data type of the specified uniform variable (e.g., @code{1} for float, int, bool; @code{2} for vec2, ivec2, -bvec2, etc.). The suffix @code{f} indicates that floating-point values +bvec2, etc.). The suffix @code{f} indicates that floating-point values are being passed; the suffix @code{i} indicates that integer values are being passed, and this type should also match the data type of the -specified uniform variable. The @code{i} variants of this function +specified uniform variable. The @code{i} variants of this function should be used to provide values for uniform variables defined as int, -ivec2, ivec3, ivec4, or arrays of these. The @code{f} variants should be -used to provide values for uniform variables of type float, vec2, vec3, -vec4, or arrays of these. Either the @code{i} or the @code{f} variants -may be used to provide values for uniform variables of type bool, bvec2, -bvec3, bvec4, or arrays of these. The uniform variable will be set to -false if the input value is 0 or 0.0f, and it will be set to true -otherwise. +ivec2, ivec3, ivec4, or arrays of these. The @code{f} variants should +be used to provide values for uniform variables of type float, vec2, +vec3, vec4, or arrays of these. Either the @code{i} or the @code{f} +variants may be used to provide values for uniform variables of type +bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable +will be set to false if the input value is 0 or 0.0f, and it will be set +to true otherwise. All active uniform variables defined in a program object are initialized -to 0 when the program object is linked successfully. They retain the +to 0 when the program object is linked successfully. They retain the values assigned to them by a call to @code{glUniform } until the next successful link operation occurs on the program object, when they are once again initialized to 0. The commands @code{glUniform@{1|2|3|4@}@{f|i@}v} can be used to modify a -single uniform variable or a uniform variable array. These commands pass -a count and a pointer to the values to be loaded into a uniform variable -or a uniform variable array. A count of 1 should be used if modifying -the value of a single uniform variable, and a count of 1 or greater can -be used to modify an entire array or part of an array. When loading -@var{n} elements starting at an arbitrary position @var{m} in a uniform -variable array, elements @var{m} + @var{n} - 1 in the array will be -replaced with the new values. If @var{m} + @var{n} - 1 is larger than -the size of the uniform variable array, values for all array elements -beyond the end of the array will be ignored. The number specified in the -name of the command indicates the number of components for each element -in @var{value}, and it should match the number of components in the data -type of the specified uniform variable (e.g., @code{1} for float, int, -bool; @code{2} for vec2, ivec2, bvec2, etc.). The data type specified in -the name of the command must match the data type for the specified -uniform variable as described previously for +single uniform variable or a uniform variable array. These commands +pass a count and a pointer to the values to be loaded into a uniform +variable or a uniform variable array. A count of 1 should be used if +modifying the value of a single uniform variable, and a count of 1 or +greater can be used to modify an entire array or part of an array. When +loading @var{n} elements starting at an arbitrary position @var{m} in a +uniform variable array, elements @var{m} + @var{n} - 1 in the array will +be replaced with the new values. If @var{m} + @var{n} - 1 is larger +than the size of the uniform variable array, values for all array +elements beyond the end of the array will be ignored. The number +specified in the name of the command indicates the number of components +for each element in @var{value}, and it should match the number of +components in the data type of the specified uniform variable (e.g., +@code{1} for float, int, bool; @code{2} for vec2, ivec2, bvec2, etc.). +The data type specified in the name of the command must match the data +type for the specified uniform variable as described previously for @code{glUniform@{1|2|3|4@}@{f|i@}}. For uniform variable arrays, each element of the array is considered to be of the type indicated in the name of the command (e.g., @code{glUniform3f} or @code{glUniform3fv} can be used to load a uniform -variable array of type vec3). The number of elements of the uniform +variable array of type vec3). The number of elements of the uniform variable array to be modified is specified by @var{count} The commands @code{glUniformMatrix@{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3@}fv} -are used to modify a matrix or an array of matrices. The numbers in the -command name are interpreted as the dimensionality of the matrix. The +are used to modify a matrix or an array of matrices. The numbers in the +command name are interpreted as the dimensionality of the matrix. The number @code{2} indicates a 2 × 2 matrix (i.e., 4 values), the number @code{3} indicates a 3 × 3 matrix (i.e., 9 values), and the number -@code{4} indicates a 4 × 4 matrix (i.e., 16 values). Non-square matrix +@code{4} indicates a 4 × 4 matrix (i.e., 16 values). Non-square matrix dimensionality is explicit, with the first number representing the number of columns and the second number representing the number of rows. For example, @code{2x4} indicates a 2 × 4 matrix with 2 columns and 4 -rows (i.e., 8 values). If @var{transpose} is @code{GL_FALSE}, each -matrix is assumed to be supplied in column major order. If +rows (i.e., 8 values). If @var{transpose} is @code{GL_FALSE}, each +matrix is assumed to be supplied in column major order. If @var{transpose} is @code{GL_TRUE}, each matrix is assumed to be supplied -in row major order. The @var{count} argument indicates the number of -matrices to be passed. A count of 1 should be used if modifying the +in row major order. The @var{count} argument indicates the number of +matrices to be passed. A count of 1 should be used if modifying the value of a single matrix, and a count greater than 1 can be used to modify an array of matrices. @@ -22349,7 +22399,7 @@ used as part of current rendering state. @end table @code{glUseProgram} installs the program object specified by -@var{program} as part of current rendering state. One or more +@var{program} as part of current rendering state. One or more executables are created in a program object by successfully attaching shader objects to it with @code{glAttachShader}, successfully compiling the shader objects with @code{glCompileShader}, and successfully linking @@ -22407,7 +22457,7 @@ This list also applies when setting the current raster position. The executable that is installed on the vertex processor is expected to implement any or all of the desired functionality from the preceding -list. Similarly, if an executable is installed on the fragment +list. Similarly, if an executable is installed on the fragment processor, the OpenGL fixed functionality will be disabled as follows. @itemize @@ -22430,15 +22480,15 @@ any or all of the desired functionality from the preceding list. While a program object is in use, applications are free to modify attached shader objects, compile attached shader objects, attach -additional shader objects, and detach or delete shader objects. None of +additional shader objects, and detach or delete shader objects. None of these operations will affect the executables that are part of the -current state. However, relinking the program object that is currently +current state. However, relinking the program object that is currently in use will install the program object as part of the current rendering state if the link operation was successful (see @code{glLinkProgram} ). If the program object currently in use is relinked unsuccessfully, its link status will be set to @code{GL_FALSE}, but the executables and associated state will remain part of the current state until a -subsequent call to @code{glUseProgram} removes it from use. After it is +subsequent call to @code{glUseProgram} removes it from use. After it is removed from use, it cannot be made part of current state until it has been successfully relinked. @@ -22479,22 +22529,22 @@ Specifies the handle of the program object to be validated. @end table @code{glValidateProgram} checks to see whether the executables contained -in @var{program} can execute given the current OpenGL state. The +in @var{program} can execute given the current OpenGL state. The information generated by the validation process will be stored in -@var{program}'s information log. The validation information may consist +@var{program}'s information log. The validation information may consist of an empty string, or it may be a string containing information about how the current program object interacts with the rest of current OpenGL -state. This provides a way for OpenGL implementers to convey more +state. This provides a way for OpenGL implementers to convey more information about why the current program is inefficient, suboptimal, failing to execute, and so on. The status of the validation operation will be stored as part of the -program object's state. This value will be set to @code{GL_TRUE} if the -validation succeeded, and @code{GL_FALSE} otherwise. It can be queried +program object's state. This value will be set to @code{GL_TRUE} if the +validation succeeded, and @code{GL_FALSE} otherwise. It can be queried by calling @code{glGetProgram} with arguments @var{program} and -@code{GL_VALIDATE_STATUS}. If validation is successful, @var{program} is -guaranteed to execute given the current state. Otherwise, @var{program} -is guaranteed to not execute. +@code{GL_VALIDATE_STATUS}. If validation is successful, @var{program} +is guaranteed to execute given the current state. Otherwise, +@var{program} is guaranteed to not execute. This function is typically useful only during application development. The informational string stored in the information log is completely @@ -22522,14 +22572,14 @@ Define an array of generic vertex attribute data. Specifies the index of the generic vertex attribute to be modified. @item @var{size} -Specifies the number of components per generic vertex attribute. Must be -1, 2, 3, or 4. The initial value is 4. +Specifies the number of components per generic vertex attribute. Must +be 1, 2, 3, or 4. The initial value is 4. @item @var{type} -Specifies the data type of each component in the array. Symbolic +Specifies the data type of each component in the array. Symbolic constants @code{GL_BYTE}, @code{GL_UNSIGNED_BYTE}, @code{GL_SHORT}, @code{GL_UNSIGNED_SHORT}, @code{GL_INT}, @code{GL_UNSIGNED_INT}, -@code{GL_FLOAT}, or @code{GL_DOUBLE} are accepted. The initial value is +@code{GL_FLOAT}, or @code{GL_DOUBLE} are accepted. The initial value is @code{GL_FLOAT}. @item @var{normalized} @@ -22540,21 +22590,21 @@ Specifies whether fixed-point data values should be normalized @item @var{stride} Specifies the byte offset between consecutive generic vertex attributes. If @var{stride} is 0, the generic vertex attributes are understood to be -tightly packed in the array. The initial value is 0. +tightly packed in the array. The initial value is 0. @item @var{pointer} Specifies a pointer to the first component of the first generic vertex -attribute in the array. The initial value is 0. +attribute in the array. The initial value is 0. @end table @code{glVertexAttribPointer} specifies the location and data format of the array of generic vertex attributes at index @var{index} to use when -rendering. @var{size} specifies the number of components per attribute -and must be 1, 2, 3, or 4. @var{type} specifies the data type of each +rendering. @var{size} specifies the number of components per attribute +and must be 1, 2, 3, or 4. @var{type} specifies the data type of each component, and @var{stride} specifies the byte stride from one attribute to the next, allowing vertices and attributes to be packed into a single -array or stored in separate arrays. If set to @code{GL_TRUE}, +array or stored in separate arrays. If set to @code{GL_TRUE}, @var{normalized} indicates that values stored in an integer format are to be mapped to the range [-1,1] (for signed values) or [0,1] (for unsigned values) when they are accessed and converted to floating point. @@ -22564,7 +22614,7 @@ normalization. If a non-zero named buffer object is bound to the @code{GL_ARRAY_BUFFER} target (see @code{glBindBuffer}) while a generic vertex attribute array is specified, @var{pointer} is treated as a byte offset into the buffer -object's data store. Also, the buffer object binding +object's data store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) is saved as generic vertex attribute array client-side state (@code{GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING}) for index @var{index}. @@ -22576,8 +22626,8 @@ object binding. To enable and disable a generic vertex attribute array, call @code{glEnableVertexAttribArray} and @code{glDisableVertexAttribArray} -with @var{index}. If enabled, the generic vertex attribute array is used -when @code{glArrayElement}, @code{glDrawArrays}, +with @var{index}. If enabled, the generic vertex attribute array is +used when @code{glArrayElement}, @code{glDrawArrays}, @code{glMultiDrawArrays}, @code{glDrawElements}, @code{glMultiDrawElements}, or @code{glDrawRangeElements} is called. @@ -22642,26 +22692,26 @@ Specifies the new values to be used for the specified vertex attribute. OpenGL defines a number of standard vertex attributes that applications can modify with standard API entry points (color, normal, texture -coordinates, etc.). The @code{glVertexAttrib} family of entry points +coordinates, etc.). The @code{glVertexAttrib} family of entry points allows an application to pass generic vertex attributes in numbered locations. Generic attributes are defined as four-component values that are -organized into an array. The first entry of this array is numbered 0, +organized into an array. The first entry of this array is numbered 0, and the size of the array is specified by the implementation-dependent -constant @code{GL_MAX_VERTEX_ATTRIBS}. Individual elements of this array -can be modified with a @code{glVertexAttrib} call that specifies the -index of the element to be modified and a value for that element. +constant @code{GL_MAX_VERTEX_ATTRIBS}. Individual elements of this +array can be modified with a @code{glVertexAttrib} call that specifies +the index of the element to be modified and a value for that element. These commands can be used to specify one, two, three, or all four -components of the generic vertex attribute specified by @var{index}. A +components of the generic vertex attribute specified by @var{index}. A @code{1} in the name of the command indicates that only one value is passed, and it will be used to modify the first component of the generic -vertex attribute. The second and third components will be set to 0, and -the fourth component will be set to 1. Similarly, a @code{2} in the name -of the command indicates that values are provided for the first two +vertex attribute. The second and third components will be set to 0, and +the fourth component will be set to 1. Similarly, a @code{2} in the +name of the command indicates that values are provided for the first two components, the third component will be set to 0, and the fourth -component will be set to 1. A @code{3} in the name of the command +component will be set to 1. A @code{3} in the name of the command indicates that values are provided for the first three components and the fourth component will be set to 1, whereas a @code{4} in the name indicates that values are provided for all four components. @@ -22669,24 +22719,24 @@ indicates that values are provided for all four components. The letters @code{s}, @code{f}, @code{i}, @code{d}, @code{ub}, @code{us}, and @code{ui} indicate whether the arguments are of type short, float, int, double, unsigned byte, unsigned short, or unsigned -int. When @code{v} is appended to the name, the commands can take a -pointer to an array of such values. The commands containing @code{N} +int. When @code{v} is appended to the name, the commands can take a +pointer to an array of such values. The commands containing @code{N} indicate that the arguments will be passed as fixed-point values that are scaled to a normalized range according to the component conversion -rules defined by the OpenGL specification. Signed values are understood +rules defined by the OpenGL specification. Signed values are understood to represent fixed-point values in the range [-1,1], and unsigned values are understood to represent fixed-point values in the range [0,1]. OpenGL Shading Language attribute variables are allowed to be of type -mat2, mat3, or mat4. Attributes of these types may be loaded using the -@code{glVertexAttrib} entry points. Matrices must be loaded into +mat2, mat3, or mat4. Attributes of these types may be loaded using the +@code{glVertexAttrib} entry points. Matrices must be loaded into successive generic attribute slots in column major order, with one column of the matrix in each generic attribute slot. A user-defined attribute variable declared in a vertex shader can be bound to a generic attribute index by calling -@code{glBindAttribLocation}. This allows an application to use more -descriptive variable names in a vertex shader. A subsequent change to +@code{glBindAttribLocation}. This allows an application to use more +descriptive variable names in a vertex shader. A subsequent change to the specified generic vertex attribute will be immediately reflected as a change to the corresponding attribute variable in the vertex shader. @@ -22698,20 +22748,20 @@ just like standard vertex attributes, and it is maintained even if a different program object is used. An application may freely modify generic vertex attributes that are not -bound to a named vertex shader attribute variable. These values are +bound to a named vertex shader attribute variable. These values are simply maintained as part of current state and will not be accessed by -the vertex shader. If a generic vertex attribute bound to an attribute +the vertex shader. If a generic vertex attribute bound to an attribute variable in a vertex shader is not updated while the vertex shader is executing, the vertex shader will repeatedly use the current value for the generic vertex attribute. The generic vertex attribute with index 0 is the same as the vertex -position attribute previously defined by OpenGL. A @code{glVertex2}, +position attribute previously defined by OpenGL. A @code{glVertex2}, @code{glVertex3}, or @code{glVertex4} command is completely equivalent to the corresponding @code{glVertexAttrib} command with an index -argument of 0. A vertex shader can access generic vertex attribute 0 by -using the built-in attribute variable @var{gl_Vertex}. There are no -current values for generic vertex attribute 0. This is the only generic +argument of 0. A vertex shader can access generic vertex attribute 0 by +using the built-in attribute variable @var{gl_Vertex}. There are no +current values for generic vertex attribute 0. This is the only generic vertex attribute with this property; calls to set other standard vertex attributes can be freely mixed with calls to set any of the other generic vertex attributes. @@ -22726,38 +22776,38 @@ Define an array of vertex data. @table @asis @item @var{size} -Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The +Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. @item @var{type} -Specifies the data type of each coordinate in the array. Symbolic +Specifies the data type of each coordinate in the array. Symbolic constants @code{GL_SHORT}, @code{GL_INT}, @code{GL_FLOAT}, or -@code{GL_DOUBLE} are accepted. The initial value is @code{GL_FLOAT}. +@code{GL_DOUBLE} are accepted. The initial value is @code{GL_FLOAT}. @item @var{stride} -Specifies the byte offset between consecutive vertices. If @var{stride} -is 0, the vertices are understood to be tightly packed in the array. The +Specifies the byte offset between consecutive vertices. If @var{stride} +is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. @item @var{pointer} Specifies a pointer to the first coordinate of the first vertex in the -array. The initial value is 0. +array. The initial value is 0. @end table @code{glVertexPointer} specifies the location and data format of an -array of vertex coordinates to use when rendering. @var{size} specifies -the number of coordinates per vertex, and must be 2, 3, or 4. @var{type} +array of vertex coordinates to use when rendering. @var{size} specifies +the number of coordinates per vertex, and must be 2, 3, or 4. @var{type} specifies the data type of each coordinate, and @var{stride} specifies the byte stride from one vertex to the next, allowing vertices and attributes to be packed into a single array or stored in separate -arrays. (Single-array storage may be more efficient on some +arrays. (Single-array storage may be more efficient on some implementations; see @code{glInterleavedArrays}.) If a non-zero named buffer object is bound to the @code{GL_ARRAY_BUFFER} target (see @code{glBindBuffer}) while a vertex array is specified, @var{pointer} is treated as a byte offset into the buffer object's data -store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) +store. Also, the buffer object binding (@code{GL_ARRAY_BUFFER_BINDING}) is saved as vertex array client-side state (@code{GL_VERTEX_ARRAY_BUFFER_BINDING}). @@ -22767,7 +22817,7 @@ current vertex array buffer object binding. To enable and disable the vertex array, call @code{glEnableClientState} and @code{glDisableClientState} with the argument -@code{GL_VERTEX_ARRAY}. If enabled, the vertex array is used when +@code{GL_VERTEX_ARRAY}. If enabled, the vertex array is used when @code{glArrayElement}, @code{glDrawArrays}, @code{glMultiDrawArrays}, @code{glDrawElements}, @code{glMultiDrawElements}, or @code{glDrawRangeElements} is called. @@ -22818,12 +22868,12 @@ Not all parameters are present in all forms of the command. @end table @code{glVertex} commands are used within @code{glBegin}/@code{glEnd} -pairs to specify point, line, and polygon vertices. The current color, +pairs to specify point, line, and polygon vertices. The current color, normal, texture coordinates, and fog coordinate are associated with the vertex when @code{glVertex} is called. When only @r{@var{x}} and @r{@var{y}} are specified, @r{@var{z}} -defaults to 0 and @r{@var{w}} defaults to 1. When @r{@var{x}}, +defaults to 0 and @r{@var{w}} defaults to 1. When @r{@var{x}}, @r{@var{y}}, and @r{@var{z}} are specified, @r{@var{w}} defaults to 1. @end deftypefun @@ -22834,13 +22884,13 @@ Set the viewport. @table @asis @item @var{x} @itemx @var{y} -Specify the lower left corner of the viewport rectangle, in pixels. The +Specify the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0). @item @var{width} @itemx @var{height} -Specify the width and height of the viewport. When a GL context is first -attached to a window, @var{width} and @var{height} are set to the +Specify the width and height of the viewport. When a GL context is +first attached to a window, @var{width} and @var{height} are set to the dimensions of that window. @end table @@ -22848,7 +22898,7 @@ dimensions of that window. @code{glViewport} specifies the affine transformation of @r{@var{x}} and @r{@var{y}} from normalized device coordinates to window coordinates. Let @r{(@var{x}_@var{nd},@var{y}_@var{nd})} be normalized device -coordinates. Then the window coordinates +coordinates. Then the window coordinates @r{(@var{x}_@var{w},@var{y}_@var{w})} are computed as follows: @r{@var{x}_@var{w}=(@var{x}_@var{nd}+1,)⁢(@var{width}/2,)+@var{x}} @@ -22856,7 +22906,7 @@ coordinates. Then the window coordinates @r{@var{y}_@var{w}=(@var{y}_@var{nd}+1,)⁢(@var{height}/2,)+@var{y}} Viewport width and height are silently clamped to a range that depends -on the implementation. To query this range, call @code{glGet} with +on the implementation. To query this range, call @code{glGet} with argument @code{GL_MAX_VIEWPORT_DIMS}. @code{GL_INVALID_VALUE} is generated if either @var{width} or @@ -22895,20 +22945,20 @@ raster position. @end table -The GL maintains a 3D position in window coordinates. This position, +The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write -operations. It is maintained with subpixel accuracy. See +operations. It is maintained with subpixel accuracy. See @code{glBitmap}, @code{glDrawPixels}, and @code{glCopyPixels}. @code{glWindowPos2} specifies the @r{@var{x}} and @r{@var{y}} coordinates, while @r{@var{z}} is implicitly set to 0. -@code{glWindowPos3} specifies all three coordinates. The @r{@var{w}} +@code{glWindowPos3} specifies all three coordinates. The @r{@var{w}} coordinate of the current raster position is always set to 1.0. @code{glWindowPos} directly updates the @r{@var{x}} and @r{@var{y}} coordinates of the current raster position with the values specified. That is, the values are neither transformed by the current modelview and -projection matrices, nor by the viewport-to-window transform. The +projection matrices, nor by the viewport-to-window transform. The @r{@var{z}} coordinate of the current raster position is updated in the following manner: @@ -22919,17 +22969,17 @@ following manner: where @r{@var{n}} is @code{GL_DEPTH_RANGE}'s near value, and @r{@var{f}} -is @code{GL_DEPTH_RANGE}'s far value. See @code{glDepthRange}. +is @code{GL_DEPTH_RANGE}'s far value. See @code{glDepthRange}. The specified coordinates are not clip-tested, causing the raster position to always be valid. The current raster position also includes some associated color data and -texture coordinates. If lighting is enabled, then +texture coordinates. If lighting is enabled, then @code{GL_CURRENT_RASTER_COLOR} (in RGBA mode) or @code{GL_CURRENT_RASTER_INDEX} (in color index mode) is set to the color produced by the lighting calculation (see @code{glLight}, -@code{glLightModel}, and @code{glShadeModel}). If lighting is disabled, +@code{glLightModel}, and @code{glShadeModel}). If lighting is disabled, current color (in RGBA mode, state variable @code{GL_CURRENT_COLOR}) or color index (in color index mode, state variable @code{GL_CURRENT_INDEX}) is used to update the current raster color. @@ -22938,7 +22988,7 @@ updated. Likewise, @code{GL_CURRENT_RASTER_TEXTURE_COORDS} is updated as a function of @code{GL_CURRENT_TEXTURE_COORDS}, based on the texture -matrix and the texture generation functions (see @code{glTexGen}). The +matrix and the texture generation functions (see @code{glTexGen}). The @code{GL_CURRENT_RASTER_DISTANCE} is set to the @code{GL_CURRENT_FOG_COORD}. diff --git a/doc/low-level-glu.texi b/doc/low-level-glu.texi index d6d4f7b..46a3412 100644 --- a/doc/low-level-glu.texi +++ b/doc/low-level-glu.texi @@ -9,12 +9,12 @@ The functions from this section may be had by loading the module: @copying This section of the manual was derived from the upstream OpenGL -documentation. Each function's documentation has its own copyright -statement; for full details, see the upstream documentation. The +documentation. Each function's documentation has its own copyright +statement; for full details, see the upstream documentation. The copyright notices and licenses present in this section are as follows. -Copyright @copyright{} 1991-2006 Silicon Graphics, Inc. This document is -licensed under the SGI Free Software B License. For details, see +Copyright @copyright{} 1991-2006 Silicon Graphics, Inc. This document +is licensed under the SGI Free Software B License. For details, see @uref{http://oss.sgi.com/projects/FreeB/,http://oss.sgi.com/projects/FreeB/}. @end copying @@ -30,15 +30,15 @@ Specifies the NURBS object (created with @code{gluNewNurbsRenderer}). @end table Use @code{gluBeginCurve} to mark the beginning of a NURBS curve -definition. After calling @code{gluBeginCurve}, make one or more calls -to @code{gluNurbsCurve} to define the attributes of the curve. Exactly +definition. After calling @code{gluBeginCurve}, make one or more calls +to @code{gluNurbsCurve} to define the attributes of the curve. Exactly one of the calls to @code{gluNurbsCurve} must have a curve type of -@code{GLU_MAP1_VERTEX_3} or @code{GLU_MAP1_VERTEX_4}. To mark the end of -the NURBS curve definition, call @code{gluEndCurve}. +@code{GLU_MAP1_VERTEX_3} or @code{GLU_MAP1_VERTEX_4}. To mark the end +of the NURBS curve definition, call @code{gluEndCurve}. GL evaluators are used to render the NURBS curve as a series of line -segments. Evaluator state is preserved during rendering with -@code{glPushAttrib}(@code{GLU_EVAL_BIT}) and @code{glPopAttrib}(). See +segments. Evaluator state is preserved during rendering with +@code{glPushAttrib}(@code{GLU_EVAL_BIT}) and @code{glPopAttrib}(). See the @code{glPushAttrib} reference page for details on exactly what state these calls preserve. @@ -55,15 +55,15 @@ Specifies the tessellation object (created with @code{gluNewTess}). @end table @code{gluBeginPolygon} and @code{gluEndPolygon} delimit the definition -of a nonconvex polygon. To define such a polygon, first call -@code{gluBeginPolygon}. Then define the contours of the polygon by +of a nonconvex polygon. To define such a polygon, first call +@code{gluBeginPolygon}. Then define the contours of the polygon by calling @code{gluTessVertex} for each vertex and @code{gluNextContour} -to start each new contour. Finally, call @code{gluEndPolygon} to signal -the end of the definition. See the @code{gluTessVertex} and +to start each new contour. Finally, call @code{gluEndPolygon} to signal +the end of the definition. See the @code{gluTessVertex} and @code{gluNextContour} reference pages for more details. Once @code{gluEndPolygon} is called, the polygon is tessellated, and the -resulting triangles are described through callbacks. See +resulting triangles are described through callbacks. See @code{gluTessCallback} for descriptions of the callback functions. @end deftypefun @@ -79,20 +79,20 @@ Specifies the NURBS object (created with @code{gluNewNurbsRenderer}). @end table Use @code{gluBeginSurface} to mark the beginning of a NURBS surface -definition. After calling @code{gluBeginSurface}, make one or more calls -to @code{gluNurbsSurface} to define the attributes of the surface. +definition. After calling @code{gluBeginSurface}, make one or more +calls to @code{gluNurbsSurface} to define the attributes of the surface. Exactly one of these calls to @code{gluNurbsSurface} must have a surface -type of @code{GLU_MAP2_VERTEX_3} or @code{GLU_MAP2_VERTEX_4}. To mark +type of @code{GLU_MAP2_VERTEX_3} or @code{GLU_MAP2_VERTEX_4}. To mark the end of the NURBS surface definition, call @code{gluEndSurface}. Trimming of NURBS surfaces is supported with @code{gluBeginTrim}, -@code{gluPwlCurve}, @code{gluNurbsCurve}, and @code{gluEndTrim}. See the -@code{gluBeginTrim} reference page for details. +@code{gluPwlCurve}, @code{gluNurbsCurve}, and @code{gluEndTrim}. See +the @code{gluBeginTrim} reference page for details. GL evaluators are used to render the NURBS surface as a set of polygons. Evaluator state is preserved during rendering with -@code{glPushAttrib}(@code{GLU_EVAL_BIT}) and @code{glPopAttrib}. See the -@code{glPushAttrib} reference page for details on exactly what state +@code{glPushAttrib}(@code{GLU_EVAL_BIT}) and @code{glPopAttrib}. See +the @code{glPushAttrib} reference page for details on exactly what state these calls preserve. @end deftypefun @@ -108,31 +108,31 @@ Specifies the NURBS object (created with @code{gluNewNurbsRenderer}). @end table Use @code{gluBeginTrim} to mark the beginning of a trimming loop and -@code{gluEndTrim} to mark the end of a trimming loop. A trimming loop is -a set of oriented curve segments (forming a closed curve) that define -boundaries of a NURBS surface. You include these trimming loops in the +@code{gluEndTrim} to mark the end of a trimming loop. A trimming loop +is a set of oriented curve segments (forming a closed curve) that define +boundaries of a NURBS surface. You include these trimming loops in the definition of a NURBS surface, between calls to @code{gluBeginSurface} and @code{gluEndSurface}. -The definition for a NURBS surface can contain many trimming loops. For +The definition for a NURBS surface can contain many trimming loops. For example, if you wrote a definition for a NURBS surface that resembled a rectangle with a hole punched out, the definition would contain two -trimming loops. One loop would define the outer edge of the rectangle; -the other would define the hole punched out of the rectangle. The +trimming loops. One loop would define the outer edge of the rectangle; +the other would define the hole punched out of the rectangle. The definitions of each of these trimming loops would be bracketed by a @code{gluBeginTrim}/@code{gluEndTrim} pair. The definition of a single closed trimming loop can consist of multiple curve segments, each described as a piecewise linear curve (see @code{gluPwlCurve}) or as a single NURBS curve (see -@code{gluNurbsCurve}), or as a combination of both in any order. The +@code{gluNurbsCurve}), or as a combination of both in any order. The only library calls that can appear in a trimming loop definition (between the calls to @code{gluBeginTrim} and @code{gluEndTrim}) are @code{gluPwlCurve} and @code{gluNurbsCurve}. The area of the NURBS surface that is displayed is the region in the domain to the left of the trimming curve as the curve parameter -increases. Thus, the retained region of the NURBS surface is inside a +increases. Thus, the retained region of the NURBS surface is inside a counterclockwise trimming loop and outside a clockwise trimming loop. For the rectangle mentioned earlier, the trimming loop for the outer edge of the rectangle runs counterclockwise, while the trimming loop for @@ -141,15 +141,15 @@ the punched-out hole runs clockwise. If you use more than one curve to define a single trimming loop, the curve segments must form a closed loop (that is, the endpoint of each curve must be the starting point of the next curve, and the endpoint of -the final curve must be the starting point of the first curve). If the +the final curve must be the starting point of the first curve). If the endpoints of the curve are sufficiently close together but not exactly -coincident, they will be coerced to match. If the endpoints are not +coincident, they will be coerced to match. If the endpoints are not sufficiently close, an error results (see @code{gluNurbsCallback}). If a trimming loop definition contains multiple curves, the direction of the curves must be consistent (that is, the inside must be to the left -of all of the curves). Nested trimming loops are legal as long as the -curve orientations alternate correctly. If trimming curves are +of all of the curves). Nested trimming loops are legal as long as the +curve orientations alternate correctly. If trimming curves are self-intersecting, or intersect one another, an error results. If no trimming information is given for a NURBS surface, the entire @@ -162,17 +162,17 @@ Builds a subset of one-dimensional mipmap levels. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GLU_TEXTURE_1D}. +Specifies the target texture. Must be @code{GLU_TEXTURE_1D}. @item @var{internalFormat} -Requests the internal storage format of the texture image. The most +Requests the internal storage format of the texture image. The most current version of the SGI implementation of GLU does not check this value for validity before passing it on to the underlying OpenGL -implementation. A value that is not accepted by the OpenGL -implementation will lead to an OpenGL error. The benefit of not checking -this value at the GLU level is that OpenGL extensions can add new -internal texture formats without requiring a revision of the GLU -implementation. Older implementations of GLU check this value and raise +implementation. A value that is not accepted by the OpenGL +implementation will lead to an OpenGL error. The benefit of not +checking this value at the GLU level is that OpenGL extensions can add +new internal texture formats without requiring a revision of the GLU +implementation. Older implementations of GLU check this value and raise a GLU error if it is not 1, 2, 3, or 4 or one of the following symbolic constants: @code{GLU_ALPHA}, @code{GLU_ALPHA4}, @code{GLU_ALPHA8}, @code{GLU_ALPHA12}, @code{GLU_ALPHA16}, @code{GLU_LUMINANCE}, @@ -190,18 +190,18 @@ constants: @code{GLU_ALPHA}, @code{GLU_ALPHA4}, @code{GLU_ALPHA8}, @code{GLU_RGBA16}. @item @var{width} -Specifies the width in pixels of the texture image. This should be a +Specifies the width in pixels of the texture image. This should be a power of 2. @item @var{format} -Specifies the format of the pixel data. Must be one of: +Specifies the format of the pixel data. Must be one of: @code{GLU_COLOR_INDEX}, @code{GLU_DEPTH_COMPONENT}, @code{GLU_RED}, @code{GLU_GREEN}, @code{GLU_BLUE}, @code{GLU_ALPHA}, @code{GLU_RGB}, @code{GLU_RGBA}, @code{GLU_BGR}, @code{GLU_BGRA}, @code{GLU_LUMINANCE}, or @code{GLU_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type for @var{data}. Must be one of: +Specifies the data type for @var{data}. Must be one of: @code{GLU_UNSIGNED_BYTE}, @code{GLU_BYTE}, @code{GLU_BITMAP}, @code{GLU_UNSIGNED_SHORT}, @code{GLU_SHORT}, @code{GLU_UNSIGNED_INT}, @code{GLU_INT}, @code{GLU_FLOAT}, @code{GLU_UNSIGNED_BYTE_3_3_2}, @@ -235,19 +235,19 @@ A return value of zero indicates success, otherwise a GLU error code is returned (see @code{gluErrorString}). A series of mipmap levels from @var{base} to @var{max} is built by -decimating @var{data} in half until size @r{1×1} is reached. At each +decimating @var{data} in half until size @r{1×1} is reached. At each level, each texel in the halved mipmap level is an average of the -corresponding two texels in the larger mipmap level. @code{glTexImage1D} -is called to load these mipmap levels from @var{base} to @var{max}. If +corresponding two texels in the larger mipmap level. @code{glTexImage1D} +is called to load these mipmap levels from @var{base} to @var{max}. If @var{max} is larger than the highest mipmap level for the texture of the specified size, then a GLU error code is returned (see @code{gluErrorString}) and nothing is loaded. For example, if @var{level} is 2 and @var{width} is 16, the following -levels are possible: @r{16×1}, @r{8×1}, @r{4×1}, @r{2×1}, @r{1×1}. These -correspond to levels 2 through 6 respectively. If @var{base} is 3 and +levels are possible: @r{16×1}, @r{8×1}, @r{4×1}, @r{2×1}, @r{1×1}. These +correspond to levels 2 through 6 respectively. If @var{base} is 3 and @var{max} is 5, then only mipmap levels @r{8×1}, @r{4×1} and @r{2×1} are -loaded. However, if @var{max} is 7, then an error is returned and +loaded. However, if @var{max} is 7, then an error is returned and nothing is loaded since @var{max} is larger than the highest mipmap level which is, in this case, 6. @@ -255,7 +255,7 @@ The highest mipmap level can be derived from the formula @r{@var{log}_2⁡(@var{width}×2^@var{level},)}. See the @code{glTexImage1D} reference page for a description of the -acceptable values for @var{type} parameter. See the @code{glDrawPixels} +acceptable values for @var{type} parameter. See the @code{glDrawPixels} reference page for a description of the acceptable values for @var{level} parameter. @@ -302,17 +302,17 @@ Builds a one-dimensional mipmap. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GLU_TEXTURE_1D}. +Specifies the target texture. Must be @code{GLU_TEXTURE_1D}. @item @var{internalFormat} -Requests the internal storage format of the texture image. The most +Requests the internal storage format of the texture image. The most current version of the SGI implementation of GLU does not check this value for validity before passing it on to the underlying OpenGL -implementation. A value that is not accepted by the OpenGL -implementation will lead to an OpenGL error. The benefit of not checking -this value at the GLU level is that OpenGL extensions can add new -internal texture formats without requiring a revision of the GLU -implementation. Older implementations of GLU check this value and raise +implementation. A value that is not accepted by the OpenGL +implementation will lead to an OpenGL error. The benefit of not +checking this value at the GLU level is that OpenGL extensions can add +new internal texture formats without requiring a revision of the GLU +implementation. Older implementations of GLU check this value and raise a GLU error if it is not 1, 2, 3, or 4 or one of the following symbolic constants: @code{GLU_ALPHA}, @code{GLU_ALPHA4}, @code{GLU_ALPHA8}, @code{GLU_ALPHA12}, @code{GLU_ALPHA16}, @code{GLU_LUMINANCE}, @@ -333,14 +333,14 @@ constants: @code{GLU_ALPHA}, @code{GLU_ALPHA4}, @code{GLU_ALPHA8}, Specifies the width, in pixels, of the texture image. @item @var{format} -Specifies the format of the pixel data. Must be one of +Specifies the format of the pixel data. Must be one of @code{GLU_COLOR_INDEX}, @code{GLU_DEPTH_COMPONENT}, @code{GLU_RED}, @code{GLU_GREEN}, @code{GLU_BLUE}, @code{GLU_ALPHA}, @code{GLU_RGB}, @code{GLU_RGBA}, @code{GLU_BGR}, @code{GLU_BGRA}, @code{GLU_LUMINANCE}, or @code{GLU_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type for @var{data}. Must be one of +Specifies the data type for @var{data}. Must be one of @code{GLU_UNSIGNED_BYTE}, @code{GLU_BYTE}, @code{GLU_BITMAP}, @code{GLU_UNSIGNED_SHORT}, @code{GLU_SHORT}, @code{GLU_UNSIGNED_INT}, @code{GLU_INT}, @code{GLU_FLOAT}, @code{GLU_UNSIGNED_BYTE_3_3_2}, @@ -358,39 +358,39 @@ Specifies a pointer to the image data in memory. @end table @code{gluBuild1DMipmaps} builds a series of prefiltered one-dimensional -texture maps of decreasing resolutions called a mipmap. This is used for -the antialiasing of texture mapped primitives. +texture maps of decreasing resolutions called a mipmap. This is used +for the antialiasing of texture mapped primitives. A return value of zero indicates success, otherwise a GLU error code is returned (see @code{gluErrorString}). Initially, the @var{width} of @var{data} is checked to see if it is a -power of 2. If not, a copy of @var{data} is scaled up or down to the -nearest power of 2. (If @var{width} is exactly between powers of 2, then -the copy of @var{data} will scale upwards.) This copy will be used for -subsequent mipmapping operations described below. For example, if +power of 2. If not, a copy of @var{data} is scaled up or down to the +nearest power of 2. (If @var{width} is exactly between powers of 2, +then the copy of @var{data} will scale upwards.) This copy will be used +for subsequent mipmapping operations described below. For example, if @var{width} is 57, then a copy of @var{data} will scale up to 64 before mipmapping takes place. Then, proxy textures (see @code{glTexImage1D}) are used to determine if -the implementation can fit the requested texture. If not, @var{width} is -continually halved until it fits. +the implementation can fit the requested texture. If not, @var{width} +is continually halved until it fits. Next, a series of mipmap levels is built by decimating a copy of -@var{data} in half until size @r{1×1} is reached. At each level, each +@var{data} in half until size @r{1×1} is reached. At each level, each texel in the halved mipmap level is an average of the corresponding two texels in the larger mipmap level. -@code{glTexImage1D} is called to load each of these mipmap levels. Level -0 is a copy of @var{data}. The highest level is -@r{@var{log}_2,⁡(@var{width},)}. For example, if @var{width} is 64 and +@code{glTexImage1D} is called to load each of these mipmap levels. Level +0 is a copy of @var{data}. The highest level is +@r{@var{log}_2,⁡(@var{width},)}. For example, if @var{width} is 64 and the implementation can store a texture of this size, the following mipmap levels are built: @r{64×1}, @r{32×1}, @r{16×1}, @r{8×1}, @r{4×1}, -@r{2×1}, and @r{1×1}. These correspond to levels 0 through 6, +@r{2×1}, and @r{1×1}. These correspond to levels 0 through 6, respectively. See the @code{glTexImage1D} reference page for a description of the -acceptable values for the @var{type} parameter. See the +acceptable values for the @var{type} parameter. See the @code{glDrawPixels} reference page for a description of the acceptable values for the @var{data} parameter. @@ -433,17 +433,17 @@ Builds a subset of two-dimensional mipmap levels. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GLU_TEXTURE_2D}. +Specifies the target texture. Must be @code{GLU_TEXTURE_2D}. @item @var{internalFormat} -Requests the internal storage format of the texture image. The most +Requests the internal storage format of the texture image. The most current version of the SGI implementation of GLU does not check this value for validity before passing it on to the underlying OpenGL -implementation. A value that is not accepted by the OpenGL -implementation will lead to an OpenGL error. The benefit of not checking -this value at the GLU level is that OpenGL extensions can add new -internal texture formats without requiring a revision of the GLU -implementation. Older implementations of GLU check this value and raise +implementation. A value that is not accepted by the OpenGL +implementation will lead to an OpenGL error. The benefit of not +checking this value at the GLU level is that OpenGL extensions can add +new internal texture formats without requiring a revision of the GLU +implementation. Older implementations of GLU check this value and raise a GLU error if it is not 1, 2, 3, or 4 or one of the following symbolic constants: @code{GLU_ALPHA}, @code{GLU_ALPHA4}, @code{GLU_ALPHA8}, @code{GLU_ALPHA12}, @code{GLU_ALPHA16}, @code{GLU_LUMINANCE}, @@ -463,17 +463,17 @@ constants: @code{GLU_ALPHA}, @code{GLU_ALPHA4}, @code{GLU_ALPHA8}, @item @var{width} @itemx @var{height} Specifies the width and height, respectively, in pixels of the texture -image. These should be a power of 2. +image. These should be a power of 2. @item @var{format} -Specifies the format of the pixel data. Must be one of +Specifies the format of the pixel data. Must be one of @code{GLU_COLOR_INDEX}, @code{GLU_DEPTH_COMPONENT}, @code{GLU_RED}, @code{GLU_GREEN}, @code{GLU_BLUE}, @code{GLU_ALPHA}, @code{GLU_RGB}, @code{GLU_RGBA}, @code{GLU_BGR}, @code{GLU_BGRA}, @code{GLU_LUMINANCE}, or @code{GLU_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type for @var{data}. Must be one of +Specifies the data type for @var{data}. Must be one of @code{GLU_UNSIGNED_BYTE}, @code{GLU_BYTE}, @code{GLU_BITMAP}, @code{GLU_UNSIGNED_SHORT}, @code{GLU_SHORT}, @code{GLU_UNSIGNED_INT}, @code{GLU_INT}, @code{GLU_FLOAT}, @code{GLU_UNSIGNED_BYTE_3_3_2}, @@ -508,21 +508,21 @@ returned (see @code{gluErrorString}). A series of mipmap levels from @var{base} to @var{max} is built by decimating @var{data} in half along both dimensions until size @r{1×1} -is reached. At each level, each texel in the halved mipmap level is an -average of the corresponding four texels in the larger mipmap level. (In +is reached. At each level, each texel in the halved mipmap level is an +average of the corresponding four texels in the larger mipmap level. (In the case of rectangular images, the decimation will ultimately reach an -@r{@var{N}×1} or @r{1×@var{N}} configuration. Here, two texels are +@r{@var{N}×1} or @r{1×@var{N}} configuration. Here, two texels are averaged instead.) @code{glTexImage2D} is called to load these mipmap -levels from @var{base} to @var{max}. If @var{max} is larger than the +levels from @var{base} to @var{max}. If @var{max} is larger than the highest mipmap level for the texture of the specified size, then a GLU error code is returned (see @code{gluErrorString}) and nothing is loaded. For example, if @var{level} is 2 and @var{width} is 16 and @var{height} is 8, the following levels are possible: @r{16×8}, @r{8×4}, @r{4×2}, -@r{2×1}, @r{1×1}. These correspond to levels 2 through 6 respectively. +@r{2×1}, @r{1×1}. These correspond to levels 2 through 6 respectively. If @var{base} is 3 and @var{max} is 5, then only mipmap levels @r{8×4}, -@r{4×2}, and @r{2×1} are loaded. However, if @var{max} is 7, then an +@r{4×2}, and @r{2×1} are loaded. However, if @var{max} is 7, then an error is returned and nothing is loaded since @var{max} is larger than the highest mipmap level which is, in this case, 6. @@ -530,7 +530,7 @@ The highest mipmap level can be derived from the formula @r{@var{log}_2⁡(@var{max}⁡(@var{width},@var{height})×2^@var{level},)}. See the @code{glTexImage1D} reference page for a description of the -acceptable values for @var{format} parameter. See the +acceptable values for @var{format} parameter. See the @code{glDrawPixels} reference page for a description of the acceptable values for @var{type} parameter. @@ -578,17 +578,17 @@ Builds a two-dimensional mipmap. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GLU_TEXTURE_2D}. +Specifies the target texture. Must be @code{GLU_TEXTURE_2D}. @item @var{internalFormat} -Requests the internal storage format of the texture image. The most +Requests the internal storage format of the texture image. The most current version of the SGI implementation of GLU does not check this value for validity before passing it on to the underlying OpenGL -implementation. A value that is not accepted by the OpenGL -implementation will lead to an OpenGL error. The benefit of not checking -this value at the GLU level is that OpenGL extensions can add new -internal texture formats without requiring a revision of the GLU -implementation. Older implementations of GLU check this value and raise +implementation. A value that is not accepted by the OpenGL +implementation will lead to an OpenGL error. The benefit of not +checking this value at the GLU level is that OpenGL extensions can add +new internal texture formats without requiring a revision of the GLU +implementation. Older implementations of GLU check this value and raise a GLU error if it is not 1, 2, 3, or 4 or one of the following symbolic constants: @code{GLU_ALPHA}, @code{GLU_ALPHA4}, @code{GLU_ALPHA8}, @code{GLU_ALPHA12}, @code{GLU_ALPHA16}, @code{GLU_LUMINANCE}, @@ -611,14 +611,14 @@ Specifies in pixels the width and height, respectively, of the texture image. @item @var{format} -Specifies the format of the pixel data. Must be one of +Specifies the format of the pixel data. Must be one of @code{GLU_COLOR_INDEX}, @code{GLU_DEPTH_COMPONENT}, @code{GLU_RED}, @code{GLU_GREEN}, @code{GLU_BLUE}, @code{GLU_ALPHA}, @code{GLU_RGB}, @code{GLU_RGBA}, @code{GLU_BGR}, @code{GLU_BGRA}, @code{GLU_LUMINANCE}, or @code{GLU_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type for @var{data}. Must be one of +Specifies the data type for @var{data}. Must be one of @code{GLU_UNSIGNED_BYTE}, @code{GLU_BYTE}, @code{GLU_BITMAP}, @code{GLU_UNSIGNED_SHORT}, @code{GLU_SHORT}, @code{GLU_UNSIGNED_INT}, @code{GLU_INT}, @code{GLU_FLOAT}, @code{GLU_UNSIGNED_BYTE_3_3_2}, @@ -636,24 +636,24 @@ Specifies a pointer to the image data in memory. @end table @code{gluBuild2DMipmaps} builds a series of prefiltered two-dimensional -texture maps of decreasing resolutions called a mipmap. This is used for -the antialiasing of texture-mapped primitives. +texture maps of decreasing resolutions called a mipmap. This is used +for the antialiasing of texture-mapped primitives. A return value of zero indicates success, otherwise a GLU error code is returned (see @code{gluErrorString}). Initially, the @var{width} and @var{height} of @var{data} are checked to -see if they are a power of 2. If not, a copy of @var{data} (not -@var{data}), is scaled up or down to the nearest power of 2. This copy -will be used for subsequent mipmapping operations described below. (If +see if they are a power of 2. If not, a copy of @var{data} (not +@var{data}), is scaled up or down to the nearest power of 2. This copy +will be used for subsequent mipmapping operations described below. (If @var{width} or @var{height} is exactly between powers of 2, then the copy of @var{data} will scale upwards.) For example, if @var{width} is 57 and @var{height} is 23, then a copy of @var{data} will scale up to 64 in @var{width} and down to 16 in depth, before mipmapping takes place. Then, proxy textures (see @code{glTexImage2D}) are used to determine if -the implementation can fit the requested texture. If not, both -dimensions are continually halved until it fits. (If the OpenGL version +the implementation can fit the requested texture. If not, both +dimensions are continually halved until it fits. (If the OpenGL version is \(<= 1.0, both maximum texture dimensions are clamped to the value returned by @code{glGetIntegerv} with the argument @code{GLU_MAX_TEXTURE_SIZE}.) @@ -661,21 +661,21 @@ returned by @code{glGetIntegerv} with the argument Next, a series of mipmap levels is built by decimating a copy of @var{data} in half along both dimensions until size @r{1×1} is reached. At each level, each texel in the halved mipmap level is an average of -the corresponding four texels in the larger mipmap level. (In the case +the corresponding four texels in the larger mipmap level. (In the case of rectangular images, the decimation will ultimately reach an -@r{@var{N}×1} or @r{1×@var{N}} configuration. Here, two texels are +@r{@var{N}×1} or @r{1×@var{N}} configuration. Here, two texels are averaged instead.) -@code{glTexImage2D} is called to load each of these mipmap levels. Level -0 is a copy of @var{data}. The highest level is -@r{@var{log}_2,⁡(@var{max}⁡(@var{width},@var{height}),)}. For example, +@code{glTexImage2D} is called to load each of these mipmap levels. Level +0 is a copy of @var{data}. The highest level is +@r{@var{log}_2,⁡(@var{max}⁡(@var{width},@var{height}),)}. For example, if @var{width} is 64 and @var{height} is 16 and the implementation can store a texture of this size, the following mipmap levels are built: @r{64×16}, @r{32×8}, @r{16×4}, @r{8×2}, @r{4×1}, @r{2×1}, and @r{1×1} These correspond to levels 0 through 6, respectively. See the @code{glTexImage1D} reference page for a description of the -acceptable values for @var{format} parameter. See the +acceptable values for @var{format} parameter. See the @code{glDrawPixels} reference page for a description of the acceptable values for @var{type} parameter. @@ -719,17 +719,17 @@ Builds a subset of three-dimensional mipmap levels. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GLU_TEXTURE_3D}. +Specifies the target texture. Must be @code{GLU_TEXTURE_3D}. @item @var{internalFormat} -Requests the internal storage format of the texture image. The most +Requests the internal storage format of the texture image. The most current version of the SGI implementation of GLU does not check this value for validity before passing it on to the underlying OpenGL -implementation. A value that is not accepted by the OpenGL -implementation will lead to an OpenGL error. The benefit of not checking -this value at the GLU level is that OpenGL extensions can add new -internal texture formats without requiring a revision of the GLU -implementation. Older implementations of GLU check this value and raise +implementation. A value that is not accepted by the OpenGL +implementation will lead to an OpenGL error. The benefit of not +checking this value at the GLU level is that OpenGL extensions can add +new internal texture formats without requiring a revision of the GLU +implementation. Older implementations of GLU check this value and raise a GLU error if it is not 1, 2, 3, or 4 or one of the following symbolic constants: @code{GLU_ALPHA}, @code{GLU_ALPHA4}, @code{GLU_ALPHA8}, @code{GLU_ALPHA12}, @code{GLU_ALPHA16}, @code{GLU_LUMINANCE}, @@ -750,17 +750,17 @@ constants: @code{GLU_ALPHA}, @code{GLU_ALPHA4}, @code{GLU_ALPHA8}, @itemx @var{height} @itemx @var{depth} Specifies in pixels the width, height and depth respectively, of the -texture image. These should be a power of 2. +texture image. These should be a power of 2. @item @var{format} -Specifies the format of the pixel data. Must be one of +Specifies the format of the pixel data. Must be one of @code{GLU_COLOR_INDEX}, @code{GLU_DEPTH_COMPONENT}, @code{GLU_RED}, @code{GLU_GREEN}, @code{GLU_BLUE}, @code{GLU_ALPHA}, @code{GLU_RGB}, @code{GLU_RGBA}, @code{GLU_BGR}, @code{GLU_BGRA}, @code{GLU_LUMINANCE}, or @code{GLU_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type for @var{data}. Must be one of +Specifies the data type for @var{data}. Must be one of @code{GLU_UNSIGNED_BYTE}, @code{GLU_BYTE}, @code{GLU_BITMAP}, @code{GLU_UNSIGNED_SHORT}, @code{GLU_SHORT}, @code{GLU_UNSIGNED_INT}, @code{GLU_INT}, @code{GLU_FLOAT}, @code{GLU_UNSIGNED_BYTE_3_3_2}, @@ -788,36 +788,36 @@ Specifies a pointer to the image data in memory. @code{gluBuild3DMipmapLevels} builds a subset of prefiltered three-dimensional texture maps of decreasing resolutions called a -mipmap. This is used for the antialiasing of texture mapped primitives. +mipmap. This is used for the antialiasing of texture mapped primitives. A return value of zero indicates success, otherwise a GLU error code is returned (see @code{gluErrorString}). A series of mipmap levels from @var{base} to @var{max} is built by decimating @var{data} in half along both dimensions until size @r{1×1×1} -is reached. At each level, each texel in the halved mipmap level is an +is reached. At each level, each texel in the halved mipmap level is an average of the corresponding eight texels in the larger mipmap level. -(If exactly one of the dimensions is 1, four texels are averaged. If +(If exactly one of the dimensions is 1, four texels are averaged. If exactly two of the dimensions are 1, two texels are averaged.) @code{glTexImage3D} is called to load these mipmap levels from -@var{base} to @var{max}. If @var{max} is larger than the highest mipmap +@var{base} to @var{max}. If @var{max} is larger than the highest mipmap level for the texture of the specified size, then a GLU error code is returned (see @code{gluErrorString}) and nothing is loaded. For example, if @var{level} is 2 and @var{width} is 16, @var{height} is 8 and @var{depth} is 4, the following levels are possible: @r{16×8×4}, -@r{8×4×2}, @r{4×2×1}, @r{2×1×1}, @r{1×1×1}. These correspond to levels 2 -through 6 respectively. If @var{base} is 3 and @var{max} is 5, then only -mipmap levels @r{8×4×2}, @r{4×2×1}, and @r{2×1×1} are loaded. However, -if @var{max} is 7, then an error is returned and nothing is loaded, -since @var{max} is larger than the highest mipmap level which is, in -this case, 6. +@r{8×4×2}, @r{4×2×1}, @r{2×1×1}, @r{1×1×1}. These correspond to levels +2 through 6 respectively. If @var{base} is 3 and @var{max} is 5, then +only mipmap levels @r{8×4×2}, @r{4×2×1}, and @r{2×1×1} are loaded. +However, if @var{max} is 7, then an error is returned and nothing is +loaded, since @var{max} is larger than the highest mipmap level which +is, in this case, 6. The highest mipmap level can be derived from the formula @r{@var{log}_2⁡(@var{max}⁡(@var{width},@var{height}@var{depth})×2^@var{level},)}. See the @code{glTexImage1D} reference page for a description of the -acceptable values for @var{format} parameter. See the +acceptable values for @var{format} parameter. See the @code{glDrawPixels} reference page for a description of the acceptable values for @var{type} parameter. @@ -865,17 +865,17 @@ Builds a three-dimensional mipmap. @table @asis @item @var{target} -Specifies the target texture. Must be @code{GLU_TEXTURE_3D}. +Specifies the target texture. Must be @code{GLU_TEXTURE_3D}. @item @var{internalFormat} -Requests the internal storage format of the texture image. The most +Requests the internal storage format of the texture image. The most current version of the SGI implementation of GLU does not check this value for validity before passing it on to the underlying OpenGL -implementation. A value that is not accepted by the OpenGL -implementation will lead to an OpenGL error. The benefit of not checking -this value at the GLU level is that OpenGL extensions can add new -internal texture formats without requiring a revision of the GLU -implementation. Older implementations of GLU check this value and raise +implementation. A value that is not accepted by the OpenGL +implementation will lead to an OpenGL error. The benefit of not +checking this value at the GLU level is that OpenGL extensions can add +new internal texture formats without requiring a revision of the GLU +implementation. Older implementations of GLU check this value and raise a GLU error if it is not 1, 2, 3, or 4 or one of the following symbolic constants: @code{GLU_ALPHA}, @code{GLU_ALPHA4}, @code{GLU_ALPHA8}, @code{GLU_ALPHA12}, @code{GLU_ALPHA16}, @code{GLU_LUMINANCE}, @@ -899,14 +899,14 @@ Specifies in pixels the width, height and depth respectively, in pixels of the texture image. @item @var{format} -Specifies the format of the pixel data. Must be one of +Specifies the format of the pixel data. Must be one of @code{GLU_COLOR_INDEX}, @code{GLU_DEPTH_COMPONENT}, @code{GLU_RED}, @code{GLU_GREEN}, @code{GLU_BLUE}, @code{GLU_ALPHA}, @code{GLU_RGB}, @code{GLU_RGBA}, @code{GLU_BGR}, @code{GLU_BGRA}, @code{GLU_LUMINANCE}, or @code{GLU_LUMINANCE_ALPHA}. @item @var{type} -Specifies the data type for @var{data}. Must be one of: +Specifies the data type for @var{data}. Must be one of: @code{GLU_UNSIGNED_BYTE}, @code{GLU_BYTE}, @code{GLU_BITMAP}, @code{GLU_UNSIGNED_SHORT}, @code{GLU_SHORT}, @code{GLU_UNSIGNED_INT}, @code{GLU_INT}, @code{GLU_FLOAT}, @code{GLU_UNSIGNED_BYTE_3_3_2}, @@ -925,43 +925,43 @@ Specifies a pointer to the image data in memory. @code{gluBuild3DMipmaps} builds a series of prefiltered three-dimensional texture maps of decreasing resolutions called a -mipmap. This is used for the antialiasing of texture-mapped primitives. +mipmap. This is used for the antialiasing of texture-mapped primitives. A return value of zero indicates success, otherwise a GLU error code is returned (see @code{gluErrorString}). Initially, the @var{width}, @var{height} and @var{depth} of @var{data} -are checked to see if they are a power of 2. If not, a copy of -@var{data} is made and scaled up or down to the nearest power of 2. (If +are checked to see if they are a power of 2. If not, a copy of +@var{data} is made and scaled up or down to the nearest power of 2. (If @var{width}, @var{height}, or @var{depth} is exactly between powers of 2, then the copy of @var{data} will scale upwards.) This copy will be -used for subsequent mipmapping operations described below. For example, +used for subsequent mipmapping operations described below. For example, if @var{width} is 57, @var{height} is 23, and @var{depth} is 24, then a copy of @var{data} will scale up to 64 in width, down to 16 in height, and up to 32 in depth before mipmapping takes place. Then, proxy textures (see @code{glTexImage3D}) are used to determine if -the implementation can fit the requested texture. If not, all three +the implementation can fit the requested texture. If not, all three dimensions are continually halved until it fits. Next, a series of mipmap levels is built by decimating a copy of @var{data} in half along all three dimensions until size @r{1×1×1} is -reached. At each level, each texel in the halved mipmap level is an +reached. At each level, each texel in the halved mipmap level is an average of the corresponding eight texels in the larger mipmap level. -(If exactly one of the dimensions is 1, four texels are averaged. If +(If exactly one of the dimensions is 1, four texels are averaged. If exactly two of the dimensions are 1, two texels are averaged.) -@code{glTexImage3D} is called to load each of these mipmap levels. Level -0 is a copy of @var{data}. The highest level is -@r{@var{log}_2,⁡(@var{max}⁡(@var{width},@var{height}@var{depth}),)}. For +@code{glTexImage3D} is called to load each of these mipmap levels. Level +0 is a copy of @var{data}. The highest level is +@r{@var{log}_2,⁡(@var{max}⁡(@var{width},@var{height}@var{depth}),)}. For example, if @var{width} is 64, @var{height} is 16, and @var{depth} is 32, and the implementation can store a texture of this size, the following mipmap levels are built: @r{64×16×32}, @r{32×8×16}, -@r{16×4×8}, @r{8×2×4}, @r{4×1×2}, @r{2×1×1}, and @r{1×1×1}. These +@r{16×4×8}, @r{8×2×4}, @r{4×1×2}, @r{2×1×1}, and @r{1×1×1}. These correspond to levels 0 through 6, respectively. See the @code{glTexImage1D} reference page for a description of the -acceptable values for @var{format} parameter. See the +acceptable values for @var{format} parameter. See the @code{glDrawPixels} reference page for a description of the acceptable values for @var{type} parameter. @@ -1047,16 +1047,17 @@ Specifies the number of subdivisions along the @var{z} axis. @end table -@code{gluCylinder} draws a cylinder oriented along the @var{z} axis. The +@code{gluCylinder} draws a cylinder oriented along the @var{z} axis. The base of the cylinder is placed at @var{z} = 0 and the top at -@r{@var{z}=@var{height}}. Like a sphere, a cylinder is subdivided around -the @var{z} axis into slices and along the @var{z} axis into stacks. +@r{@var{z}=@var{height}}. Like a sphere, a cylinder is subdivided +around the @var{z} axis into slices and along the @var{z} axis into +stacks. Note that if @var{top} is set to 0.0, this routine generates a cone. If the orientation is set to @code{GLU_OUTSIDE} (with @code{gluQuadricOrientation}), then any generated normals point away -from the @var{z} axis. Otherwise, they point toward the @var{z} axis. +from the @var{z} axis. Otherwise, they point toward the @var{z} axis. If texturing is turned on (with @code{gluQuadricTexture}), then texture coordinates are generated so that @var{t} ranges linearly from 0.0 at @@ -1093,7 +1094,7 @@ Specifies the quadrics object to be destroyed. @end table @code{gluDeleteQuadric} destroys the quadrics object (created with -@code{gluNewQuadric}) and frees any memory it uses. Once +@code{gluNewQuadric}) and frees any memory it uses. Once @code{gluDeleteQuadric} has been called, @var{quad} cannot be used again. @@ -1135,18 +1136,18 @@ disk is subdivided. @end table -@code{gluDisk} renders a disk on the @var{z} = 0 plane. The disk has a +@code{gluDisk} renders a disk on the @var{z} = 0 plane. The disk has a radius of @var{outer} and contains a concentric circular hole with a -radius of @var{inner}. If @var{inner} is 0, then no hole is generated. +radius of @var{inner}. If @var{inner} is 0, then no hole is generated. The disk is subdivided around the @var{z} axis into slices (like pizza slices) and also about the @var{z} axis into rings (as specified by @var{slices} and @var{loops}, respectively). With respect to orientation, the +@var{z} side of the disk is considered -to be ``outside'' (see @code{gluQuadricOrientation}). This means that if -the orientation is set to @code{GLU_OUTSIDE}, then any normals generated -point along the +@var{z} axis. Otherwise, they point along the \-@var{z} -axis. +to be ``outside'' (see @code{gluQuadricOrientation}). This means that +if the orientation is set to @code{GLU_OUTSIDE}, then any normals +generated point along the +@var{z} axis. Otherwise, they point along +the \-@var{z} axis. If texturing has been turned on (with @code{gluQuadricTexture}), texture coordinates are generated linearly such that where @@ -1166,13 +1167,13 @@ Specifies a GL or GLU error code. @end table @code{gluErrorString} produces an error string from a GL or GLU error -code. The string is in ISO Latin 1 format. For example, +code. The string is in ISO Latin 1 format. For example, @code{gluErrorString}(@code{GLU_OUT_OF_MEMORY}) returns the string @var{out of memory}. The standard GLU error codes are @code{GLU_INVALID_ENUM}, -@code{GLU_INVALID_VALUE}, and @code{GLU_OUT_OF_MEMORY}. Certain other -GLU functions can return specialized error codes through callbacks. See +@code{GLU_INVALID_VALUE}, and @code{GLU_OUT_OF_MEMORY}. Certain other +GLU functions can return specialized error codes through callbacks. See the @code{glGetError} reference page for the list of GL error codes. @code{NULL} is returned if @var{error} is not a valid GL or GLU error @@ -1188,7 +1189,7 @@ Get a NURBS property. Specifies the NURBS object (created with @code{gluNewNurbsRenderer}). @item @var{property} -Specifies the property whose value is to be fetched. Valid values are +Specifies the property whose value is to be fetched. Valid values are @code{GLU_CULLING}, @code{GLU_SAMPLING_TOLERANCE}, @code{GLU_DISPLAY_MODE}, @code{GLU_AUTO_LOAD_MATRIX}, @code{GLU_PARAMETRIC_TOLERANCE}, @code{GLU_SAMPLING_METHOD}, @@ -1201,8 +1202,8 @@ property is written. @end table @code{gluGetNurbsProperty} retrieves properties stored in a NURBS -object. These properties affect the way that NURBS curves and surfaces -are rendered. See the @code{gluNurbsProperty} reference page for +object. These properties affect the way that NURBS curves and surfaces +are rendered. See the @code{gluNurbsProperty} reference page for information about what the properties are and what they do. @end deftypefun @@ -1228,14 +1229,14 @@ The version string is of the following form: @var{version numbervendor-specific information} -Vendor-specific information is optional. Its format and contents depend +Vendor-specific information is optional. Its format and contents depend on the implementation. -The standard GLU contains a basic set of features and capabilities. If a -company or group of companies wish to support other features, these may -be included as extensions to the GLU. If @var{name} is +The standard GLU contains a basic set of features and capabilities. If +a company or group of companies wish to support other features, these +may be included as extensions to the GLU. If @var{name} is @code{GLU_EXTENSIONS}, then @code{gluGetString} returns a -space-separated list of names of supported GLU extensions. (Extension +space-separated list of names of supported GLU extensions. (Extension names never contain spaces.) All strings are null-terminated. @@ -1255,7 +1256,7 @@ Get a tessellation object property. Specifies the tessellation object (created with @code{gluNewTess}). @item @var{which} -Specifies the property whose value is to be fetched. Valid values are +Specifies the property whose value is to be fetched. Valid values are @code{GLU_TESS_WINDING_RULE}, @code{GLU_TESS_BOUNDARY_ONLY}, and @code{GLU_TESS_TOLERANCE}. @@ -1266,8 +1267,8 @@ property is written. @end table @code{gluGetTessProperty} retrieves properties stored in a tessellation -object. These properties affect the way that tessellation objects are -interpreted and rendered. See the @code{gluTessProperty} reference page +object. These properties affect the way that tessellation objects are +interpreted and rendered. See the @code{gluTessProperty} reference page for information about the properties and what they do. @end deftypefun @@ -1292,17 +1293,17 @@ Specifies a viewport (as from a @code{glGetIntegerv} call). @code{gluLoadSamplingMatrices} uses @var{model}, @var{perspective}, and @var{view} to recompute the sampling and culling matrices stored in -@var{nurb}. The sampling matrix determines how finely a NURBS curve or +@var{nurb}. The sampling matrix determines how finely a NURBS curve or surface must be tessellated to satisfy the sampling tolerance (as -determined by the @code{GLU_SAMPLING_TOLERANCE} property). The culling +determined by the @code{GLU_SAMPLING_TOLERANCE} property). The culling matrix is used in deciding if a NURBS curve or surface should be culled before rendering (when the @code{GLU_CULLING} property is turned on). @code{gluLoadSamplingMatrices} is necessary only if the @code{GLU_AUTO_LOAD_MATRIX} property is turned off (see -@code{gluNurbsProperty}). Although it can be convenient to leave the +@code{gluNurbsProperty}). Although it can be convenient to leave the @code{GLU_AUTO_LOAD_MATRIX} property turned on, there can be a -performance penalty for doing so. (A round trip to the GL server is +performance penalty for doing so. (A round trip to the GL server is needed to fetch the current values of the modelview matrix, projection matrix, and viewport.) @@ -1334,11 +1335,11 @@ reference point indicating the center of the scene, and an @var{UP} vector. The matrix maps the reference point to the negative @var{z} axis and the -eye point to the origin. When a typical projection matrix is used, the +eye point to the origin. When a typical projection matrix is used, the center of the scene therefore maps to the center of the viewport. Similarly, the direction described by the @var{UP} vector projected onto the viewing plane is mapped to the positive @var{y} axis so that it -points upward in the viewport. The @var{UP} vector must not be parallel +points upward in the viewport. The @var{UP} vector must not be parallel to the line of sight from the eye point to the reference point. Let @@ -1379,9 +1380,9 @@ glTranslated(-eyex, -eyey, -eyez); Create a NURBS object. @code{gluNewNurbsRenderer} creates and returns a pointer to a new NURBS -object. This object must be referred to when calling NURBS rendering and -control functions. A return value of 0 means that there is not enough -memory to allocate the object. +object. This object must be referred to when calling NURBS rendering +and control functions. A return value of 0 means that there is not +enough memory to allocate the object. @end deftypefun @@ -1389,8 +1390,8 @@ memory to allocate the object. Create a quadrics object. @code{gluNewQuadric} creates and returns a pointer to a new quadrics -object. This object must be referred to when calling quadrics rendering -and control functions. A return value of 0 means that there is not +object. This object must be referred to when calling quadrics rendering +and control functions. A return value of 0 means that there is not enough memory to allocate the object. @end deftypefun @@ -1399,8 +1400,8 @@ enough memory to allocate the object. Create a tessellation object. @code{gluNewTess} creates and returns a pointer to a new tessellation -object. This object must be referred to when calling tessellation -functions. A return value of 0 means that there is not enough memory to +object. This object must be referred to when calling tessellation +functions. A return value of 0 means that there is not enough memory to allocate the object. @end deftypefun @@ -1413,22 +1414,22 @@ Mark the beginning of another contour. Specifies the tessellation object (created with @code{gluNewTess}). @item @var{type} -Specifies the type of the contour being defined. Valid values are +Specifies the type of the contour being defined. Valid values are @code{GLU_EXTERIOR}, @code{GLU_INTERIOR}, @code{GLU_UNKNOWN}, @code{GLU_CCW}, and @code{GLU_CW}. @end table @code{gluNextContour} is used in describing polygons with multiple -contours. After the first contour has been described through a series of -@code{gluTessVertex} calls, a @code{gluNextContour} call indicates that -the previous contour is complete and that the next contour is about to -begin. Another series of @code{gluTessVertex} calls is then used to -describe the new contour. This process can be repeated until all +contours. After the first contour has been described through a series +of @code{gluTessVertex} calls, a @code{gluNextContour} call indicates +that the previous contour is complete and that the next contour is about +to begin. Another series of @code{gluTessVertex} calls is then used to +describe the new contour. This process can be repeated until all contours have been described. -@var{type} defines what type of contour follows. The legal contour types -are as follows: +@var{type} defines what type of contour follows. The legal contour +types are as follows: @table @asis @item @code{GLU_EXTERIOR} @@ -1445,9 +1446,9 @@ interior or exterior. @item @code{GLU_CCW}, @item @code{GLU_CW} The first @code{GLU_CCW} or @code{GLU_CW} contour defined is considered -to be exterior. All other contours are considered to be exterior if they -are oriented in the same direction (clockwise or counterclockwise) as -the first contour, and interior if they are not. +to be exterior. All other contours are considered to be exterior if +they are oriented in the same direction (clockwise or counterclockwise) +as the first contour, and interior if they are not. @end table @@ -1460,12 +1461,12 @@ Note that there is no real difference between the @code{GLU_CCW} and @code{GLU_CW} contour types. Before the first contour is described, @code{gluNextContour} can be -called to define the type of the first contour. If @code{gluNextContour} -is not called before the first contour, then the first contour is marked -@code{GLU_EXTERIOR}. +called to define the type of the first contour. If +@code{gluNextContour} is not called before the first contour, then the +first contour is marked @code{GLU_EXTERIOR}. This command is obsolete and is provided for backward compatibility -only. Calls to @code{gluNextContour} are mapped to +only. Calls to @code{gluNextContour} are mapped to @code{gluTessEndContour} followed by @code{gluTessBeginContour}. @end deftypefun @@ -1483,7 +1484,7 @@ Specifies a pointer to the user's data. @end table @code{gluNurbsCallbackDataEXT} is used to pass a pointer to the -application's data to NURBS tessellator. A copy of this pointer will be +application's data to NURBS tessellator. A copy of this pointer will be passed by the tessellator in the NURBS callback functions (set by @code{gluNurbsCallback}). @@ -1502,7 +1503,7 @@ Specifies a pointer to the user's data. @end table @code{gluNurbsCallbackData} is used to pass a pointer to the -application's data to NURBS tessellator. A copy of this pointer will be +application's data to NURBS tessellator. A copy of this pointer will be passed by the tessellator in the NURBS callback functions (set by @code{gluNurbsCallback}). @@ -1516,7 +1517,7 @@ Define a callback for a NURBS object. Specifies the NURBS object (created with @code{gluNewNurbsRenderer}). @item @var{which} -Specifies the callback being defined. Valid values are +Specifies the callback being defined. Valid values are @code{GLU_NURBS_BEGIN}, @code{GLU_NURBS_VERTEX}, @code{GLU_NURBS_NORMAL}, @code{GLU_NURBS_COLOR}, @code{GLU_NURBS_TEXTURE_COORD}, @code{GLU_NURBS_END}, @@ -1531,21 +1532,21 @@ Specifies the function that the callback calls. @end table @code{gluNurbsCallback} is used to define a callback to be used by a -NURBS object. If the specified callback is already defined, then it is -replaced. If @var{CallBackFunc} is NULL, then this callback will not get -invoked and the related data, if any, will be lost. +NURBS object. If the specified callback is already defined, then it is +replaced. If @var{CallBackFunc} is NULL, then this callback will not +get invoked and the related data, if any, will be lost. Except the error callback, these callbacks are used by NURBS tessellator (when @code{GLU_NURBS_MODE} is set to be @code{GLU_NURBS_TESSELLATOR}) to return back the OpenGL polygon primitives resulting from the -tessellation. Note that there are two versions of each callback: one -with a user data pointer and one without. If both versions for a +tessellation. Note that there are two versions of each callback: one +with a user data pointer and one without. If both versions for a particular callback are specified then the callback with the user data -pointer will be used. Note that ``userData'' is a copy of the pointer +pointer will be used. Note that ``userData'' is a copy of the pointer that was specified at the last call to @code{gluNurbsCallbackData}. The error callback function is effective no matter which value that -@code{GLU_NURBS_MODE} is set to. All other callback functions are +@code{GLU_NURBS_MODE} is set to. All other callback functions are effective only when @code{GLU_NURBS_MODE} is set to @code{GLU_NURBS_TESSELLATOR}. @@ -1555,130 +1556,130 @@ The legal callbacks are as follows: @item @code{GLU_NURBS_BEGIN} -The begin callback indicates the start of a primitive. The function +The begin callback indicates the start of a primitive. The function takes a single argument of type GLenum, which can be one of @code{GLU_LINES}, @code{GLU_LINE_STRIP}, @code{GLU_TRIANGLE_FAN}, @code{GLU_TRIANGLE_STRIP}, @code{GLU_TRIANGLES}, or -@code{GLU_QUAD_STRIP}. The default begin callback function is NULL. The +@code{GLU_QUAD_STRIP}. The default begin callback function is NULL. The function prototype for this callback looks like: @item @code{GLU_NURBS_BEGIN_DATA} The same as the @code{GLU_NURBS_BEGIN} callback except that it takes an -additional pointer argument. This pointer is a copy of the pointer that -was specified at the last call to @code{gluNurbsCallbackData}. The -default callback function is NULL. The function prototype for this +additional pointer argument. This pointer is a copy of the pointer that +was specified at the last call to @code{gluNurbsCallbackData}. The +default callback function is NULL. The function prototype for this callback function looks like: @item @code{GLU_NURBS_VERTEX} -The vertex callback indicates a vertex of the primitive. The coordinates -of the vertex are stored in the parameter ``vertex''. All the generated -vertices have dimension 3; that is, homogeneous coordinates have been -transformed into affine coordinates. The default vertex callback -function is NULL. The function prototype for this callback function -looks like: +The vertex callback indicates a vertex of the primitive. The +coordinates of the vertex are stored in the parameter ``vertex''. All +the generated vertices have dimension 3; that is, homogeneous +coordinates have been transformed into affine coordinates. The default +vertex callback function is NULL. The function prototype for this +callback function looks like: @item @code{GLU_NURBS_VERTEX_DATA} This is the same as the @code{GLU_NURBS_VERTEX} callback, except that it -takes an additional pointer argument. This pointer is a copy of the +takes an additional pointer argument. This pointer is a copy of the pointer that was specified at the last call to -@code{gluNurbsCallbackData}. The default callback function is NULL. The +@code{gluNurbsCallbackData}. The default callback function is NULL. The function prototype for this callback function looks like: @item @code{GLU_NURBS_NORMAL} -The normal callback is invoked as the vertex normal is generated. The +The normal callback is invoked as the vertex normal is generated. The components of the normal are stored in the parameter ``normal.'' In the case of a NURBS curve, the callback function is effective only when the -user provides a normal map (@code{GLU_MAP1_NORMAL}). In the case of a +user provides a normal map (@code{GLU_MAP1_NORMAL}). In the case of a NURBS surface, if a normal map (@code{GLU_MAP2_NORMAL}) is provided, -then the generated normal is computed from the normal map. If a normal +then the generated normal is computed from the normal map. If a normal map is not provided, then a surface normal is computed in a manner similar to that described for evaluators when @code{GLU_AUTO_NORMAL} is -enabled. The default normal callback function is NULL. The function +enabled. The default normal callback function is NULL. The function prototype for this callback function looks like: @item @code{GLU_NURBS_NORMAL_DATA} The same as the @code{GLU_NURBS_NORMAL} callback except that it takes an -additional pointer argument. This pointer is a copy of the pointer that -was specified at the last call to @code{gluNurbsCallbackData}. The -default callback function is NULL. The function prototype for this +additional pointer argument. This pointer is a copy of the pointer that +was specified at the last call to @code{gluNurbsCallbackData}. The +default callback function is NULL. The function prototype for this callback function looks like: @item @code{GLU_NURBS_COLOR} -The color callback is invoked as the color of a vertex is generated. The +The color callback is invoked as the color of a vertex is generated. The components of the color are stored in the parameter ``color.'' This callback is effective only when the user provides a color map -(@code{GLU_MAP1_COLOR_4} or @code{GLU_MAP2_COLOR_4}). ``color'' contains -four components: R, G, B, A. The default color callback function is -NULL. The prototype for this callback function looks like: +(@code{GLU_MAP1_COLOR_4} or @code{GLU_MAP2_COLOR_4}). ``color'' +contains four components: R, G, B, A. The default color callback +function is NULL. The prototype for this callback function looks like: @item @code{GLU_NURBS_COLOR_DATA} The same as the @code{GLU_NURBS_COLOR} callback except that it takes an -additional pointer argument. This pointer is a copy of the pointer that -was specified at the last call to @code{gluNurbsCallbackData}. The -default callback function is NULL. The function prototype for this +additional pointer argument. This pointer is a copy of the pointer that +was specified at the last call to @code{gluNurbsCallbackData}. The +default callback function is NULL. The function prototype for this callback function looks like: @item @code{GLU_NURBS_TEXTURE_COORD} The texture callback is invoked as the texture coordinates of a vertex -are generated. These coordinates are stored in the parameter +are generated. These coordinates are stored in the parameter ``texCoord.'' The number of texture coordinates can be 1, 2, 3, or 4 depending on which type of texture map is specified (@code{GLU_MAP1_TEXTURE_COORD_1}, @code{GLU_MAP1_TEXTURE_COORD_2}, @code{GLU_MAP1_TEXTURE_COORD_3}, @code{GLU_MAP1_TEXTURE_COORD_4}, @code{GLU_MAP2_TEXTURE_COORD_1}, @code{GLU_MAP2_TEXTURE_COORD_2}, -@code{GLU_MAP2_TEXTURE_COORD_3}, @code{GLU_MAP2_TEXTURE_COORD_4}). If no -texture map is specified, this callback function will not be called. The -default texture callback function is NULL. The function prototype for -this callback function looks like: +@code{GLU_MAP2_TEXTURE_COORD_3}, @code{GLU_MAP2_TEXTURE_COORD_4}). If +no texture map is specified, this callback function will not be called. +The default texture callback function is NULL. The function prototype +for this callback function looks like: @item @code{GLU_NURBS_TEXTURE_COORD_DATA} This is the same as the @code{GLU_NURBS_TEXTURE_COORD} callback, except -that it takes an additional pointer argument. This pointer is a copy of +that it takes an additional pointer argument. This pointer is a copy of the pointer that was specified at the last call to -@code{gluNurbsCallbackData}. The default callback function is NULL. The +@code{gluNurbsCallbackData}. The default callback function is NULL. The function prototype for this callback function looks like: @item @code{GLU_NURBS_END} -The end callback is invoked at the end of a primitive. The default end -callback function is NULL. The function prototype for this callback +The end callback is invoked at the end of a primitive. The default end +callback function is NULL. The function prototype for this callback function looks like: @item @code{GLU_NURBS_END_DATA} This is the same as the @code{GLU_NURBS_END} callback, except that it -takes an additional pointer argument. This pointer is a copy of the +takes an additional pointer argument. This pointer is a copy of the pointer that was specified at the last call to -@code{gluNurbsCallbackData}. The default callback function is NULL. The +@code{gluNurbsCallbackData}. The default callback function is NULL. The function prototype for this callback function looks like: @item @code{GLU_NURBS_ERROR} -The error function is called when an error is encountered. Its single +The error function is called when an error is encountered. Its single argument is of type GLenum, and it indicates the specific error that -occurred. There are 37 errors unique to NURBS, named -@code{GLU_NURBS_ERROR1} through @code{GLU_NURBS_ERROR37}. Character +occurred. There are 37 errors unique to NURBS, named +@code{GLU_NURBS_ERROR1} through @code{GLU_NURBS_ERROR37}. Character strings describing these errors can be retrieved with @code{gluErrorString}. @@ -1754,8 +1755,8 @@ Define the shape of a NURBS curve. Specifies the NURBS object (created with @code{gluNewNurbsRenderer}). @item @var{knotCount} -Specifies the number of knots in @var{knots}. @var{knotCount} equals the -number of control points plus the order. +Specifies the number of knots in @var{knots}. @var{knotCount} equals +the number of control points plus the order. @item @var{knots} Specifies an array of @var{knotCount} nondecreasing knot values. @@ -1765,18 +1766,18 @@ Specifies the offset (as a number of single-precision floating-point values) between successive curve control points. @item @var{control} -Specifies a pointer to an array of control points. The coordinates must +Specifies a pointer to an array of control points. The coordinates must agree with @var{type}, specified below. @item @var{order} -Specifies the order of the NURBS curve. @var{order} equals degree + 1, +Specifies the order of the NURBS curve. @var{order} equals degree + 1, hence a cubic curve has an order of 4. @item @var{type} -Specifies the type of the curve. If this curve is defined within a +Specifies the type of the curve. If this curve is defined within a @code{gluBeginCurve}/@code{gluEndCurve} pair, then the type can be any of the valid one-dimensional evaluator types (such as -@code{GLU_MAP1_VERTEX_3} or @code{GLU_MAP1_COLOR_4}). Between a +@code{GLU_MAP1_VERTEX_3} or @code{GLU_MAP1_COLOR_4}). Between a @code{gluBeginTrim}/@code{gluEndTrim} pair, the only valid types are @code{GLU_MAP1_TRIM_2} and @code{GLU_MAP1_TRIM_3}. @@ -1786,21 +1787,22 @@ Use @code{gluNurbsCurve} to describe a NURBS curve. When @code{gluNurbsCurve} appears between a @code{gluBeginCurve}/@code{gluEndCurve} pair, it is used to describe a -curve to be rendered. Positional, texture, and color coordinates are +curve to be rendered. Positional, texture, and color coordinates are associated by presenting each as a separate @code{gluNurbsCurve} between -a @code{gluBeginCurve}/@code{gluEndCurve} pair. No more than one call to -@code{gluNurbsCurve} for each of color, position, and texture data can -be made within a single @code{gluBeginCurve}/@code{gluEndCurve} pair. -Exactly one call must be made to describe the position of the curve (a -@var{type} of @code{GLU_MAP1_VERTEX_3} or @code{GLU_MAP1_VERTEX_4}). +a @code{gluBeginCurve}/@code{gluEndCurve} pair. No more than one call +to @code{gluNurbsCurve} for each of color, position, and texture data +can be made within a single @code{gluBeginCurve}/@code{gluEndCurve} +pair. Exactly one call must be made to describe the position of the +curve (a @var{type} of @code{GLU_MAP1_VERTEX_3} or +@code{GLU_MAP1_VERTEX_4}). When @code{gluNurbsCurve} appears between a @code{gluBeginTrim}/@code{gluEndTrim} pair, it is used to describe a -trimming curve on a NURBS surface. If @var{type} is +trimming curve on a NURBS surface. If @var{type} is @code{GLU_MAP1_TRIM_2}, then it describes a curve in two-dimensional -(@var{u} and @var{v}) parameter space. If it is @code{GLU_MAP1_TRIM_3}, +(@var{u} and @var{v}) parameter space. If it is @code{GLU_MAP1_TRIM_3}, then it describes a curve in two-dimensional homogeneous (@var{u}, -@var{v}, and @var{w}) parameter space. See the @code{gluBeginTrim} +@var{v}, and @var{w}) parameter space. See the @code{gluBeginTrim} reference page for more discussion about trimming curves. @end deftypefun @@ -1813,15 +1815,15 @@ Set a NURBS property. Specifies the NURBS object (created with @code{gluNewNurbsRenderer}). @item @var{property} -Specifies the property to be set. Valid values are +Specifies the property to be set. Valid values are @code{GLU_SAMPLING_TOLERANCE}, @code{GLU_DISPLAY_MODE}, @code{GLU_CULLING}, @code{GLU_AUTO_LOAD_MATRIX}, @code{GLU_PARAMETRIC_TOLERANCE}, @code{GLU_SAMPLING_METHOD}, @code{GLU_U_STEP}, @code{GLU_V_STEP}, or @code{GLU_NURBS_MODE}. @item @var{value} -Specifies the value of the indicated property. It may be a numeric value -or one of @code{GLU_OUTLINE_POLYGON}, @code{GLU_FILL}, +Specifies the value of the indicated property. It may be a numeric +value or one of @code{GLU_OUTLINE_POLYGON}, @code{GLU_FILL}, @code{GLU_OUTLINE_PATCH}, @code{GLU_TRUE}, @code{GLU_FALSE}, @code{GLU_PATH_LENGTH}, @code{GLU_PARAMETRIC_ERROR}, @code{GLU_DOMAIN_DISTANCE}, @code{GLU_NURBS_RENDERER}, or @@ -1830,26 +1832,26 @@ or one of @code{GLU_OUTLINE_POLYGON}, @code{GLU_FILL}, @end table @code{gluNurbsProperty} is used to control properties stored in a NURBS -object. These properties affect the way that a NURBS curve is rendered. +object. These properties affect the way that a NURBS curve is rendered. The accepted values for @var{property} are as follows: @table @asis @item @code{GLU_NURBS_MODE} @var{value} should be set to be either @code{GLU_NURBS_RENDERER} or -@code{GLU_NURBS_TESSELLATOR}. When set to @code{GLU_NURBS_RENDERER}, +@code{GLU_NURBS_TESSELLATOR}. When set to @code{GLU_NURBS_RENDERER}, NURBS objects are tessellated into OpenGL primitives and sent to the -pipeline for rendering. When set to @code{GLU_NURBS_TESSELLATOR}, NURBS +pipeline for rendering. When set to @code{GLU_NURBS_TESSELLATOR}, NURBS objects are tessellated into OpenGL primitives but the vertices, normals, colors, and/or textures are retrieved back through a callback -interface (see @code{gluNurbsCallback}). This allows the user to cache -the tessellated results for further processing. The initial value is +interface (see @code{gluNurbsCallback}). This allows the user to cache +the tessellated results for further processing. The initial value is @code{GLU_NURBS_RENDERER}. @item @code{GLU_SAMPLING_METHOD} -Specifies how a NURBS surface should be tessellated. @var{value} may be +Specifies how a NURBS surface should be tessellated. @var{value} may be one of @code{GLU_PATH_LENGTH}, @code{GLU_PARAMETRIC_ERROR}, @code{GLU_DOMAIN_DISTANCE}, @code{GLU_OBJECT_PATH_LENGTH}, or -@code{GLU_OBJECT_PARAMETRIC_ERROR}. When set to @code{GLU_PATH_LENGTH}, +@code{GLU_OBJECT_PARAMETRIC_ERROR}. When set to @code{GLU_PATH_LENGTH}, the surface is rendered so that the maximum length, in pixels, of the edges of the tessellation polygons is no greater than what is specified by @code{GLU_SAMPLING_TOLERANCE}. @@ -1882,44 +1884,44 @@ The initial value of @code{GLU_SAMPLING_METHOD} is @item @code{GLU_SAMPLING_TOLERANCE} Specifies the maximum length, in pixels or in object space length unit, to use when the sampling method is set to @code{GLU_PATH_LENGTH} or -@code{GLU_OBJECT_PATH_LENGTH}. The NURBS code is conservative when +@code{GLU_OBJECT_PATH_LENGTH}. The NURBS code is conservative when rendering a curve or surface, so the actual length can be somewhat -shorter. The initial value is 50.0 pixels. +shorter. The initial value is 50.0 pixels. @item @code{GLU_PARAMETRIC_TOLERANCE} Specifies the maximum distance, in pixels or in object space length unit, to use when the sampling method is @code{GLU_PARAMETRIC_ERROR} or -@code{GLU_OBJECT_PARAMETRIC_ERROR}. The initial value is 0.5. +@code{GLU_OBJECT_PARAMETRIC_ERROR}. The initial value is 0.5. @item @code{GLU_U_STEP} Specifies the number of sample points per unit length taken along the -@var{u} axis in parametric coordinates. It is needed when -@code{GLU_SAMPLING_METHOD} is set to @code{GLU_DOMAIN_DISTANCE}. The +@var{u} axis in parametric coordinates. It is needed when +@code{GLU_SAMPLING_METHOD} is set to @code{GLU_DOMAIN_DISTANCE}. The initial value is 100. @item @code{GLU_V_STEP} Specifies the number of sample points per unit length taken along the -@var{v} axis in parametric coordinate. It is needed when -@code{GLU_SAMPLING_METHOD} is set to @code{GLU_DOMAIN_DISTANCE}. The +@var{v} axis in parametric coordinate. It is needed when +@code{GLU_SAMPLING_METHOD} is set to @code{GLU_DOMAIN_DISTANCE}. The initial value is 100. @item @code{GLU_DISPLAY_MODE} @var{value} can be set to @code{GLU_OUTLINE_POLYGON}, @code{GLU_FILL}, -or @code{GLU_OUTLINE_PATCH}. When @code{GLU_NURBS_MODE} is set to be +or @code{GLU_OUTLINE_PATCH}. When @code{GLU_NURBS_MODE} is set to be @code{GLU_NURBS_RENDERER}, @var{value} defines how a NURBS surface -should be rendered. When @var{value} is set to @code{GLU_FILL}, the -surface is rendered as a set of polygons. When @var{value} is set to +should be rendered. When @var{value} is set to @code{GLU_FILL}, the +surface is rendered as a set of polygons. When @var{value} is set to @code{GLU_OUTLINE_POLYGON}, the NURBS library draws only the outlines of -the polygons created by tessellation. When @var{value} is set to +the polygons created by tessellation. When @var{value} is set to @code{GLU_OUTLINE_PATCH} just the outlines of patches and trim curves defined by the user are drawn. When @code{GLU_NURBS_MODE} is set to be @code{GLU_NURBS_TESSELLATOR}, -@var{value} defines how a NURBS surface should be tessellated. When +@var{value} defines how a NURBS surface should be tessellated. When @code{GLU_DISPLAY_MODE} is set to @code{GLU_FILL} or @code{GLU_OUTLINE_POLYGON}, the NURBS surface is tessellated into OpenGL triangle primitives that can be retrieved back through callback -functions. If @code{GLU_DISPLAY_MODE} is set to +functions. If @code{GLU_DISPLAY_MODE} is set to @code{GLU_OUTLINE_PATCH}, only the outlines of the patches and trim curves are generated as a sequence of line strips that can be retrieved back through callback functions. @@ -1929,25 +1931,25 @@ The initial value is @code{GLU_FILL}. @item @code{GLU_CULLING} @var{value} is a boolean value that, when set to @code{GLU_TRUE}, indicates that a NURBS curve should be discarded prior to tessellation -if its control points lie outside the current viewport. The initial +if its control points lie outside the current viewport. The initial value is @code{GLU_FALSE}. @item @code{GLU_AUTO_LOAD_MATRIX} -@var{value} is a boolean value. When set to @code{GLU_TRUE}, the NURBS +@var{value} is a boolean value. When set to @code{GLU_TRUE}, the NURBS code downloads the projection matrix, the modelview matrix, and the viewport from the GL server to compute sampling and culling matrices for -each NURBS curve that is rendered. Sampling and culling matrices are +each NURBS curve that is rendered. Sampling and culling matrices are required to determine the tessellation of a NURBS surface into line segments or polygons and to cull a NURBS surface if it lies outside the viewport. If this mode is set to @code{GLU_FALSE}, then the program needs to provide a projection matrix, a modelview matrix, and a viewport for the -NURBS renderer to use to construct sampling and culling matrices. This -can be done with the @code{gluLoadSamplingMatrices} function. This mode -is initially set to @code{GLU_TRUE}. Changing it from @code{GLU_TRUE} to -@code{GLU_FALSE} does not affect the sampling and culling matrices until -@code{gluLoadSamplingMatrices} is called. +NURBS renderer to use to construct sampling and culling matrices. This +can be done with the @code{gluLoadSamplingMatrices} function. This mode +is initially set to @code{GLU_TRUE}. Changing it from @code{GLU_TRUE} +to @code{GLU_FALSE} does not affect the sampling and culling matrices +until @code{gluLoadSamplingMatrices} is called. @end table @@ -1985,22 +1987,22 @@ successive control points in the parametric @var{v} direction in @var{control}. @item @var{control} -Specifies an array containing control points for the NURBS surface. The +Specifies an array containing control points for the NURBS surface. The offsets between successive control points in the parametric @var{u} and @var{v} directions are given by @var{sStride} and @var{tStride}. @item @var{sOrder} Specifies the order of the NURBS surface in the parametric @var{u} -direction. The order is one more than the degree, hence a surface that +direction. The order is one more than the degree, hence a surface that is cubic in @var{u} has a @var{u} order of 4. @item @var{tOrder} Specifies the order of the NURBS surface in the parametric @var{v} -direction. The order is one more than the degree, hence a surface that +direction. The order is one more than the degree, hence a surface that is cubic in @var{v} has a @var{v} order of 4. @item @var{type} -Specifies type of the surface. @var{type} can be any of the valid +Specifies type of the surface. @var{type} can be any of the valid two-dimensional evaluator types (such as @code{GLU_MAP2_VERTEX_3} or @code{GLU_MAP2_COLOR_4}). @@ -2008,17 +2010,17 @@ two-dimensional evaluator types (such as @code{GLU_MAP2_VERTEX_3} or Use @code{gluNurbsSurface} within a NURBS (Non-Uniform Rational B-Spline) surface definition to describe the shape of a NURBS surface -(before any trimming). To mark the beginning of a NURBS surface -definition, use the @code{gluBeginSurface} command. To mark the end of a -NURBS surface definition, use the @code{gluEndSurface} command. Call +(before any trimming). To mark the beginning of a NURBS surface +definition, use the @code{gluBeginSurface} command. To mark the end of +a NURBS surface definition, use the @code{gluEndSurface} command. Call @code{gluNurbsSurface} within a NURBS surface definition only. Positional, texture, and color coordinates are associated with a surface by presenting each as a separate @code{gluNurbsSurface} between a -@code{gluBeginSurface}/@code{gluEndSurface} pair. No more than one call +@code{gluBeginSurface}/@code{gluEndSurface} pair. No more than one call to @code{gluNurbsSurface} for each of color, position, and texture data can be made within a single @code{gluBeginSurface}/@code{gluEndSurface} -pair. Exactly one call must be made to describe the position of the +pair. Exactly one call must be made to describe the position of the surface (a @var{type} of @code{GLU_MAP2_VERTEX_3} or @code{GLU_MAP2_VERTEX_4}). @@ -2091,16 +2093,16 @@ the disk from @var{start} through @var{start} + @var{sweep} is included along the \-@var{x} axis). The partial disk has a radius of @var{outer} and contains a concentric -circular hole with a radius of @var{inner}. If @var{inner} is 0, then no -hole is generated. The partial disk is subdivided around the @var{z} +circular hole with a radius of @var{inner}. If @var{inner} is 0, then +no hole is generated. The partial disk is subdivided around the @var{z} axis into slices (like pizza slices) and also about the @var{z} axis into rings (as specified by @var{slices} and @var{loops}, respectively). With respect to orientation, the +@var{z} side of the partial disk is -considered to be outside (see @code{gluQuadricOrientation}). This means +considered to be outside (see @code{gluQuadricOrientation}). This means that if the orientation is set to @code{GLU_OUTSIDE}, then any normals -generated point along the +@var{z} axis. Otherwise, they point along the -\-@var{z} axis. +generated point along the +@var{z} axis. Otherwise, they point along +the \-@var{z} axis. If texturing is turned on (with @code{gluQuadricTexture}), texture coordinates are generated linearly such that where @@ -2119,7 +2121,7 @@ Specifies the field of view angle, in degrees, in the @var{y} direction. @item @var{aspect} Specifies the aspect ratio that determines the field of view in the -@var{x} direction. The aspect ratio is the ratio of @var{x} (width) to +@var{x} direction. The aspect ratio is the ratio of @var{x} (width) to @var{y} (height). @item @var{zNear} @@ -2133,17 +2135,18 @@ positive). @end table @code{gluPerspective} specifies a viewing frustum into the world -coordinate system. In general, the aspect ratio in @code{gluPerspective} -should match the aspect ratio of the associated viewport. For example, -@r{@var{aspect}=2.0} means the viewer's angle of view is twice as wide -in @var{x} as it is in @var{y}. If the viewport is twice as wide as it -is tall, it displays the image without distortion. +coordinate system. In general, the aspect ratio in +@code{gluPerspective} should match the aspect ratio of the associated +viewport. For example, @r{@var{aspect}=2.0} means the viewer's angle of +view is twice as wide in @var{x} as it is in @var{y}. If the viewport +is twice as wide as it is tall, it displays the image without +distortion. The matrix generated by @code{gluPerspective} is multipled by the current matrix, just as if @code{glMultMatrix} were called with the -generated matrix. To load the perspective matrix onto the current matrix -stack instead, precede the call to @code{gluPerspective} with a call to -@code{glLoadIdentity}. +generated matrix. To load the perspective matrix onto the current +matrix stack instead, precede the call to @code{gluPerspective} with a +call to @code{glLoadIdentity}. Given @var{f} defined as follows: @@ -2174,23 +2177,23 @@ Specifies the current viewport (as from a @code{glGetIntegerv} call). @end table @code{gluPickMatrix} creates a projection matrix that can be used to -restrict drawing to a small region of the viewport. This is typically -useful to determine what objects are being drawn near the cursor. Use +restrict drawing to a small region of the viewport. This is typically +useful to determine what objects are being drawn near the cursor. Use @code{gluPickMatrix} to restrict drawing to a small region around the -cursor. Then, enter selection mode (with @code{glRenderMode}) and -rerender the scene. All primitives that would have been drawn near the +cursor. Then, enter selection mode (with @code{glRenderMode}) and +rerender the scene. All primitives that would have been drawn near the cursor are identified and stored in the selection buffer. The matrix created by @code{gluPickMatrix} is multiplied by the current matrix just as if @code{glMultMatrix} is called with the generated -matrix. To effectively use the generated pick matrix for picking, first +matrix. To effectively use the generated pick matrix for picking, first call @code{glLoadIdentity} to load an identity matrix onto the -perspective matrix stack. Then call @code{gluPickMatrix}, and, finally, +perspective matrix stack. Then call @code{gluPickMatrix}, and, finally, call a command (such as @code{gluPerspective}) to multiply the perspective matrix by the pick matrix. When using @code{gluPickMatrix} to pick NURBS, be careful to turn off -the NURBS property @code{GLU_AUTO_LOAD_MATRIX}. If +the NURBS property @code{GLU_AUTO_LOAD_MATRIX}. If @code{GLU_AUTO_LOAD_MATRIX} is not turned off, then any NURBS surface rendered is subdivided differently with the pick matrix than the way it was subdivided without the pick matrix. @@ -2225,14 +2228,14 @@ Return the computed window coordinates. @end table @code{gluProject} transforms the specified object coordinates into -window coordinates using @var{model}, @var{proj}, and @var{view}. The -result is stored in @var{winX}, @var{winY}, and @var{winZ}. A return +window coordinates using @var{model}, @var{proj}, and @var{view}. The +result is stored in @var{winX}, @var{winY}, and @var{winZ}. A return value of @code{GLU_TRUE} indicates success, a return value of @code{GLU_FALSE} indicates failure. To compute the coordinates, let @r{@var{v}=(@var{objX},@var{objY}@var{objZ}1.0)} represented as a matrix -with 4 rows and 1 column. Then @code{gluProject} computes @r{@var{v}^″} +with 4 rows and 1 column. Then @code{gluProject} computes @r{@var{v}^″} as follows: @r{@var{v}^″=@var{P}×@var{M}×@var{v}} @@ -2268,23 +2271,23 @@ Specifies the offset (a number of single-precision floating-point values) between points on the curve. @item @var{type} -Specifies the type of curve. Must be either @code{GLU_MAP1_TRIM_2} or +Specifies the type of curve. Must be either @code{GLU_MAP1_TRIM_2} or @code{GLU_MAP1_TRIM_3}. @end table @code{gluPwlCurve} describes a piecewise linear trimming curve for a -NURBS surface. A piecewise linear curve consists of a list of +NURBS surface. A piecewise linear curve consists of a list of coordinates of points in the parameter space for the NURBS surface to be -trimmed. These points are connected with line segments to form a curve. +trimmed. These points are connected with line segments to form a curve. If the curve is an approximation to a curve that is not piecewise linear, the points should be close enough in parameter space that the resulting path appears curved at the resolution used in the application. If @var{type} is @code{GLU_MAP1_TRIM_2}, then it describes a curve in -two-dimensional (@var{u} and @var{v}) parameter space. If it is +two-dimensional (@var{u} and @var{v}) parameter space. If it is @code{GLU_MAP1_TRIM_3}, then it describes a curve in two-dimensional -homogeneous (@var{u}, @var{v}, and @var{w}) parameter space. See the +homogeneous (@var{u}, @var{v}, and @var{w}) parameter space. See the @code{gluBeginTrim} reference page for more information about trimming curves. @@ -2298,7 +2301,7 @@ Define a callback for a quadrics object. Specifies the quadrics object (created with @code{gluNewQuadric}). @item @var{which} -Specifies the callback being defined. The only valid value is +Specifies the callback being defined. The only valid value is @code{GLU_ERROR}. @item @var{CallBackFunc} @@ -2307,18 +2310,18 @@ Specifies the function to be called. @end table @code{gluQuadricCallback} is used to define a new callback to be used by -a quadrics object. If the specified callback is already defined, then it -is replaced. If @var{CallBackFunc} is NULL, then any existing callback -is erased. +a quadrics object. If the specified callback is already defined, then +it is replaced. If @var{CallBackFunc} is NULL, then any existing +callback is erased. The one legal callback is @code{GLU_ERROR}: @table @asis @item @code{GLU_ERROR} -The function is called when an error is encountered. Its single argument -is of type GLenum, and it indicates the specific error that occurred. -Character strings describing these errors can be retrieved with the -@code{gluErrorString} call. +The function is called when an error is encountered. Its single +argument is of type GLenum, and it indicates the specific error that +occurred. Character strings describing these errors can be retrieved +with the @code{gluErrorString} call. @end table @@ -2332,18 +2335,18 @@ Specify the draw style desired for quadrics. Specifies the quadrics object (created with @code{gluNewQuadric}). @item @var{draw} -Specifies the desired draw style. Valid values are @code{GLU_FILL}, +Specifies the desired draw style. Valid values are @code{GLU_FILL}, @code{GLU_LINE}, @code{GLU_SILHOUETTE}, and @code{GLU_POINT}. @end table @code{gluQuadricDrawStyle} specifies the draw style for quadrics -rendered with @var{quad}. The legal values are as follows: +rendered with @var{quad}. The legal values are as follows: @table @asis @item @code{GLU_FILL} -Quadrics are rendered with polygon primitives. The polygons are drawn in -a counterclockwise fashion with respect to their normals (as defined +Quadrics are rendered with polygon primitives. The polygons are drawn +in a counterclockwise fashion with respect to their normals (as defined with @code{gluQuadricOrientation}). @item @code{GLU_LINE} @@ -2368,13 +2371,13 @@ Specify what kind of normals are desired for quadrics. Specifies the quadrics object (created with @code{gluNewQuadric}). @item @var{normal} -Specifies the desired type of normals. Valid values are @code{GLU_NONE}, -@code{GLU_FLAT}, and @code{GLU_SMOOTH}. +Specifies the desired type of normals. Valid values are +@code{GLU_NONE}, @code{GLU_FLAT}, and @code{GLU_SMOOTH}. @end table @code{gluQuadricNormals} specifies what kind of normals are desired for -quadrics rendered with @var{quad}. The legal values are as follows: +quadrics rendered with @var{quad}. The legal values are as follows: @table @asis @item @code{GLU_NONE} @@ -2384,7 +2387,7 @@ No normals are generated. One normal is generated for every facet of a quadric. @item @code{GLU_SMOOTH} -One normal is generated for every vertex of a quadric. This is the +One normal is generated for every vertex of a quadric. This is the initial value. @end table @@ -2399,13 +2402,13 @@ Specify inside/outside orientation for quadrics. Specifies the quadrics object (created with @code{gluNewQuadric}). @item @var{orientation} -Specifies the desired orientation. Valid values are @code{GLU_OUTSIDE} +Specifies the desired orientation. Valid values are @code{GLU_OUTSIDE} and @code{GLU_INSIDE}. @end table @code{gluQuadricOrientation} specifies what kind of orientation is -desired for quadrics rendered with @var{quad}. The @var{orientation} +desired for quadrics rendered with @var{quad}. The @var{orientation} values are as follows: @table @asis @@ -2435,9 +2438,9 @@ Specifies a flag indicating if texture coordinates should be generated. @end table @code{gluQuadricTexture} specifies if texture coordinates should be -generated for quadrics rendered with @var{quad}. If the value of +generated for quadrics rendered with @var{quad}. If the value of @var{texture} is @code{GLU_TRUE}, then texture coordinates are -generated, and if @var{texture} is @code{GLU_FALSE}, they are not. The +generated, and if @var{texture} is @code{GLU_FALSE}, they are not. The initial value is @code{GLU_FALSE}. The manner in which texture coordinates are generated depends upon the @@ -2450,7 +2453,7 @@ Scale an image to an arbitrary size. @table @asis @item @var{format} -Specifies the format of the pixel data. The following symbolic values +Specifies the format of the pixel data. The following symbolic values are valid: @code{GLU_COLOR_INDEX}, @code{GLU_STENCIL_INDEX}, @code{GLU_DEPTH_COMPONENT}, @code{GLU_RED}, @code{GLU_GREEN}, @code{GLU_BLUE}, @code{GLU_ALPHA}, @code{GLU_RGB}, @code{GLU_RGBA}, @@ -2463,7 +2466,7 @@ Specify in pixels the width and height, respectively, of the source image. @item @var{typeIn} -Specifies the data type for @var{dataIn}. Must be one of +Specifies the data type for @var{dataIn}. Must be one of @code{GLU_UNSIGNED_BYTE}, @code{GLU_BYTE}, @code{GLU_BITMAP}, @code{GLU_UNSIGNED_SHORT}, @code{GLU_SHORT}, @code{GLU_UNSIGNED_INT}, @code{GLU_INT}, @code{GLU_FLOAT}, @code{GLU_UNSIGNED_BYTE_3_3_2}, @@ -2484,7 +2487,7 @@ Specify the width and height, respectively, in pixels of the destination image. @item @var{typeOut} -Specifies the data type for @var{dataOut}. Must be one of +Specifies the data type for @var{dataOut}. Must be one of @code{GLU_UNSIGNED_BYTE}, @code{GLU_BYTE}, @code{GLU_BITMAP}, @code{GLU_UNSIGNED_SHORT}, @code{GLU_SHORT}, @code{GLU_UNSIGNED_INT}, @code{GLU_INT}, @code{GLU_FLOAT}, @code{GLU_UNSIGNED_BYTE_3_3_2}, @@ -2576,13 +2579,13 @@ lines of latitude). @end table @code{gluSphere} draws a sphere of the given radius centered around the -origin. The sphere is subdivided around the @var{z} axis into slices and -along the @var{z} axis into stacks (similar to lines of longitude and -latitude). +origin. The sphere is subdivided around the @var{z} axis into slices +and along the @var{z} axis into stacks (similar to lines of longitude +and latitude). If the orientation is set to @code{GLU_OUTSIDE} (with @code{gluQuadricOrientation}), then any normals generated point away -from the center of the sphere. Otherwise, they point toward the center +from the center of the sphere. Otherwise, they point toward the center of the sphere. If texturing is turned on (with @code{gluQuadricTexture}), then texture @@ -2606,12 +2609,12 @@ Specifies the tessellation object (created with @code{gluNewTess}). @end table @code{gluTessBeginContour} and @code{gluTessEndContour} delimit the -definition of a polygon contour. Within each +definition of a polygon contour. Within each @code{gluTessBeginContour}/@code{gluTessEndContour} pair, there can be -zero or more calls to @code{gluTessVertex}. The vertices specify a +zero or more calls to @code{gluTessVertex}. The vertices specify a closed contour (the last vertex of each contour is automatically linked -to the first). See the @code{gluTessVertex} reference page for more -details. @code{gluTessBeginContour} can only be called between +to the first). See the @code{gluTessVertex} reference page for more +details. @code{gluTessBeginContour} can only be called between @code{gluTessBeginPolygon} and @code{gluTessEndPolygon}. @end deftypefun @@ -2629,23 +2632,23 @@ Specifies a pointer to user polygon data. @end table @code{gluTessBeginPolygon} and @code{gluTessEndPolygon} delimit the -definition of a convex, concave or self-intersecting polygon. Within +definition of a convex, concave or self-intersecting polygon. Within each @code{gluTessBeginPolygon}/@code{gluTessEndPolygon} pair, there must be one or more calls to -@code{gluTessBeginContour}/@code{gluTessEndContour}. Within each -contour, there are zero or more calls to @code{gluTessVertex}. The +@code{gluTessBeginContour}/@code{gluTessEndContour}. Within each +contour, there are zero or more calls to @code{gluTessVertex}. The vertices specify a closed contour (the last vertex of each contour is -automatically linked to the first). See the @code{gluTessVertex}, +automatically linked to the first). See the @code{gluTessVertex}, @code{gluTessBeginContour}, and @code{gluTessEndContour} reference pages for more details. -@var{data} is a pointer to a user-defined data structure. If the +@var{data} is a pointer to a user-defined data structure. If the appropriate callback(s) are specified (see @code{gluTessCallback}), then -this pointer is returned to the callback function(s). Thus, it is a +this pointer is returned to the callback function(s). Thus, it is a convenient way to store per-polygon information. Once @code{gluTessEndPolygon} is called, the polygon is tessellated, and -the resulting triangles are described through callbacks. See +the resulting triangles are described through callbacks. See @code{gluTessCallback} for descriptions of the callback functions. @end deftypefun @@ -2658,7 +2661,7 @@ Define a callback for a tessellation object. Specifies the tessellation object (created with @code{gluNewTess}). @item @var{which} -Specifies the callback being defined. The following values are valid: +Specifies the callback being defined. The following values are valid: @code{GLU_TESS_BEGIN}, @code{GLU_TESS_BEGIN_DATA}, @code{GLU_TESS_EDGE_FLAG}, @code{GLU_TESS_EDGE_FLAG_DATA}, @code{GLU_TESS_VERTEX}, @code{GLU_TESS_VERTEX_DATA}, @@ -2672,101 +2675,101 @@ Specifies the function to be called. @end table @code{gluTessCallback} is used to indicate a callback to be used by a -tessellation object. If the specified callback is already defined, then -it is replaced. If @var{CallBackFunc} is NULL, then the existing +tessellation object. If the specified callback is already defined, then +it is replaced. If @var{CallBackFunc} is NULL, then the existing callback becomes undefined. These callbacks are used by the tessellation object to describe how a -polygon specified by the user is broken into triangles. Note that there +polygon specified by the user is broken into triangles. Note that there are two versions of each callback: one with user-specified polygon data -and one without. If both versions of a particular callback are +and one without. If both versions of a particular callback are specified, then the callback with user-specified polygon data will be -used. Note that the @var{polygon_data} parameter used by some of the +used. Note that the @var{polygon_data} parameter used by some of the functions is a copy of the pointer that was specified when -@code{gluTessBeginPolygon} was called. The legal callbacks are as +@code{gluTessBeginPolygon} was called. The legal callbacks are as follows: @table @asis @item @code{GLU_TESS_BEGIN} The begin callback is invoked like @code{glBegin} to indicate the start -of a (triangle) primitive. The function takes a single argument of type -GLenum. If the @code{GLU_TESS_BOUNDARY_ONLY} property is set to +of a (triangle) primitive. The function takes a single argument of type +GLenum. If the @code{GLU_TESS_BOUNDARY_ONLY} property is set to @code{GLU_FALSE}, then the argument is set to either @code{GLU_TRIANGLE_FAN}, @code{GLU_TRIANGLE_STRIP}, or -@code{GLU_TRIANGLES}. If the @code{GLU_TESS_BOUNDARY_ONLY} property is +@code{GLU_TRIANGLES}. If the @code{GLU_TESS_BOUNDARY_ONLY} property is set to @code{GLU_TRUE}, then the argument will be set to -@code{GLU_LINE_LOOP}. The function prototype for this callback is: +@code{GLU_LINE_LOOP}. The function prototype for this callback is: @item @code{GLU_TESS_BEGIN_DATA} The same as the @code{GLU_TESS_BEGIN} callback except that it takes an -additional pointer argument. This pointer is identical to the opaque -pointer provided when @code{gluTessBeginPolygon} was called. The +additional pointer argument. This pointer is identical to the opaque +pointer provided when @code{gluTessBeginPolygon} was called. The function prototype for this callback is: @item @code{GLU_TESS_EDGE_FLAG} -The edge flag callback is similar to @code{glEdgeFlag}. The function +The edge flag callback is similar to @code{glEdgeFlag}. The function takes a single boolean flag that indicates which edges lie on the -polygon boundary. If the flag is @code{GLU_TRUE}, then each vertex that +polygon boundary. If the flag is @code{GLU_TRUE}, then each vertex that follows begins an edge that lies on the polygon boundary, that is, an -edge that separates an interior region from an exterior one. If the flag -is @code{GLU_FALSE}, then each vertex that follows begins an edge that -lies in the polygon interior. The edge flag callback (if defined) is -invoked before the first vertex callback. +edge that separates an interior region from an exterior one. If the +flag is @code{GLU_FALSE}, then each vertex that follows begins an edge +that lies in the polygon interior. The edge flag callback (if defined) +is invoked before the first vertex callback. Since triangle fans and triangle strips do not support edge flags, the begin callback is not called with @code{GLU_TRIANGLE_FAN} or @code{GLU_TRIANGLE_STRIP} if a non-NULL edge flag callback is provided. (If the callback is initialized to NULL, there is no impact on -performance). Instead, the fans and strips are converted to independent -triangles. The function prototype for this callback is: +performance). Instead, the fans and strips are converted to independent +triangles. The function prototype for this callback is: @item @code{GLU_TESS_EDGE_FLAG_DATA} The same as the @code{GLU_TESS_EDGE_FLAG} callback except that it takes -an additional pointer argument. This pointer is identical to the opaque -pointer provided when @code{gluTessBeginPolygon} was called. The +an additional pointer argument. This pointer is identical to the opaque +pointer provided when @code{gluTessBeginPolygon} was called. The function prototype for this callback is: @item @code{GLU_TESS_VERTEX} -The vertex callback is invoked between the begin and end callbacks. It +The vertex callback is invoked between the begin and end callbacks. It is similar to @code{glVertex}, and it defines the vertices of the -triangles created by the tessellation process. The function takes a -pointer as its only argument. This pointer is identical to the opaque +triangles created by the tessellation process. The function takes a +pointer as its only argument. This pointer is identical to the opaque pointer provided by the user when the vertex was described (see -@code{gluTessVertex}). The function prototype for this callback is: +@code{gluTessVertex}). The function prototype for this callback is: @item @code{GLU_TESS_VERTEX_DATA} The same as the @code{GLU_TESS_VERTEX} callback except that it takes an -additional pointer argument. This pointer is identical to the opaque -pointer provided when @code{gluTessBeginPolygon} was called. The +additional pointer argument. This pointer is identical to the opaque +pointer provided when @code{gluTessBeginPolygon} was called. The function prototype for this callback is: @item @code{GLU_TESS_END} -The end callback serves the same purpose as @code{glEnd}. It indicates -the end of a primitive and it takes no arguments. The function prototype -for this callback is: +The end callback serves the same purpose as @code{glEnd}. It indicates +the end of a primitive and it takes no arguments. The function +prototype for this callback is: @item @code{GLU_TESS_END_DATA} The same as the @code{GLU_TESS_END} callback except that it takes an -additional pointer argument. This pointer is identical to the opaque -pointer provided when @code{gluTessBeginPolygon} was called. The +additional pointer argument. This pointer is identical to the opaque +pointer provided when @code{gluTessBeginPolygon} was called. The function prototype for this callback is: @item @code{GLU_TESS_COMBINE} The combine callback is called to create a new vertex when the -tessellation detects an intersection or wishes to merge features. The +tessellation detects an intersection or wishes to merge features. The function takes four arguments: an array of three elements each of type GLdouble, an array of four pointers, an array of four elements each of -type GLfloat, and a pointer to a pointer. The prototype is: +type GLfloat, and a pointer to a pointer. The prototype is: The vertex is defined as a linear combination of up to four existing -vertices, stored in @var{vertex_data}. The coefficients of the linear +vertices, stored in @var{vertex_data}. The coefficients of the linear combination are given by @var{weight}; these weights always add up to 1. All vertex pointers are valid even when some of the weights are 0. @var{coords} gives the location of the new vertex. The user must allocate another vertex, interpolate parameters using @var{vertex_data} and @var{weight}, and return the new vertex pointer in -@var{outData}. This handle is supplied during rendering callbacks. The +@var{outData}. This handle is supplied during rendering callbacks. The user is responsible for freeing the memory some time after @code{gluTessEndPolygon} is called. @@ -2777,17 +2780,17 @@ callback might look like this: If the tessellation detects an intersection, then the @code{GLU_TESS_COMBINE} or @code{GLU_TESS_COMBINE_DATA} callback (see below) must be defined, and it must write a non-NULL pointer into -@var{dataOut}. Otherwise the @code{GLU_TESS_NEED_COMBINE_CALLBACK} error -occurs, and no output is generated. +@var{dataOut}. Otherwise the @code{GLU_TESS_NEED_COMBINE_CALLBACK} +error occurs, and no output is generated. @item @code{GLU_TESS_COMBINE_DATA} The same as the @code{GLU_TESS_COMBINE} callback except that it takes an -additional pointer argument. This pointer is identical to the opaque -pointer provided when @code{gluTessBeginPolygon} was called. The +additional pointer argument. This pointer is identical to the opaque +pointer provided when @code{gluTessBeginPolygon} was called. The function prototype for this callback is: @item @code{GLU_TESS_ERROR} -The error callback is called when an error is encountered. The one +The error callback is called when an error is encountered. The one argument is of type GLenum; it indicates the specific error that occurred and will be set to one of @code{GLU_TESS_MISSING_BEGIN_POLYGON}, @@ -2796,24 +2799,25 @@ occurred and will be set to one of @code{GLU_TESS_MISSING_END_CONTOUR}, @code{GLU_TESS_COORD_TOO_LARGE}, @code{GLU_TESS_NEED_COMBINE_CALLBACK}, or @code{GLU_OUT_OF_MEMORY}. Character strings describing these errors can be retrieved with the -@code{gluErrorString} call. The function prototype for this callback is: +@code{gluErrorString} call. The function prototype for this callback +is: The GLU library will recover from the first four errors by inserting the -missing call(s). @code{GLU_TESS_COORD_TOO_LARGE} indicates that some +missing call(s). @code{GLU_TESS_COORD_TOO_LARGE} indicates that some vertex coordinate exceeded the predefined constant @code{GLU_TESS_MAX_COORD} in absolute value, and that the value has been -clamped. (Coordinate values must be small enough so that two can be +clamped. (Coordinate values must be small enough so that two can be multiplied together without overflow.) @code{GLU_TESS_NEED_COMBINE_CALLBACK} indicates that the tessellation detected an intersection between two edges in the input data, and the @code{GLU_TESS_COMBINE} or @code{GLU_TESS_COMBINE_DATA} callback was not -provided. No output is generated. @code{GLU_OUT_OF_MEMORY} indicates +provided. No output is generated. @code{GLU_OUT_OF_MEMORY} indicates that there is not enough memory so no output is generated. @item @code{GLU_TESS_ERROR_DATA} The same as the @code{GLU_TESS_ERROR} callback except that it takes an -additional pointer argument. This pointer is identical to the opaque -pointer provided when @code{gluTessBeginPolygon} was called. The +additional pointer argument. This pointer is identical to the opaque +pointer provided when @code{gluTessBeginPolygon} was called. The function prototype for this callback is: @end table @@ -2911,18 +2915,18 @@ Specifies the tessellation object (created with @code{gluNewTess}). @end table @code{gluTessBeginPolygon} and @code{gluTessEndPolygon} delimit the -definition of a convex, concave, or self-intersecting polygon. Within +definition of a convex, concave, or self-intersecting polygon. Within each @code{gluTessBeginPolygon}/@code{gluTessEndPolygon} pair, there must be one or more calls to -@code{gluTessBeginContour}/@code{gluTessEndContour}. Within each -contour, there are zero or more calls to @code{gluTessVertex}. The +@code{gluTessBeginContour}/@code{gluTessEndContour}. Within each +contour, there are zero or more calls to @code{gluTessVertex}. The vertices specify a closed contour (the last vertex of each contour is -automatically linked to the first). See the @code{gluTessVertex}, +automatically linked to the first). See the @code{gluTessVertex}, @code{gluTessBeginContour}, and @code{gluTessEndContour} reference pages for more details. Once @code{gluTessEndPolygon} is called, the polygon is tessellated, and -the resulting triangles are described through callbacks. See +the resulting triangles are described through callbacks. See @code{gluTessCallback} for descriptions of the callback functions. @end deftypefun @@ -2946,20 +2950,20 @@ Specifies the third component of the normal. @end table @code{gluTessNormal} describes a normal for a polygon that the program -is defining. All input data will be projected onto a plane perpendicular -to one of the three coordinate axes before tessellation and all output -triangles will be oriented CCW with respect to the normal (CW -orientation can be obtained by reversing the sign of the supplied -normal). For example, if you know that all polygons lie in the x-y +is defining. All input data will be projected onto a plane +perpendicular to one of the three coordinate axes before tessellation +and all output triangles will be oriented CCW with respect to the normal +(CW orientation can be obtained by reversing the sign of the supplied +normal). For example, if you know that all polygons lie in the x-y plane, call @code{gluTessNormal}(tess, 0.0, 0.0, 1.0) before rendering any polygons. If the supplied normal is (0.0, 0.0, 0.0) (the initial value), the -normal is determined as follows. The direction of the normal, up to its +normal is determined as follows. The direction of the normal, up to its sign, is found by fitting a plane to the vertices, without regard to how -the vertices are connected. It is expected that the input data lies +the vertices are connected. It is expected that the input data lies approximately in the plane; otherwise, projection perpendicular to one -of the three coordinate axes may substantially change the geometry. The +of the three coordinate axes may substantially change the geometry. The sign of the normal is chosen so that the sum of the signed areas of all input contours is nonnegative (where a CCW contour has positive area). @@ -2976,7 +2980,7 @@ Set a tessellation object property. Specifies the tessellation object (created with @code{gluNewTess}). @item @var{which} -Specifies the property to be set. Valid values are +Specifies the property to be set. Valid values are @code{GLU_TESS_WINDING_RULE}, @code{GLU_TESS_BOUNDARY_ONLY}, and @code{GLU_TESS_TOLERANCE}. @@ -2986,8 +2990,8 @@ Specifies the value of the indicated property. @end table @code{gluTessProperty} is used to control properties stored in a -tessellation object. These properties affect the way that the polygons -are interpreted and rendered. The legal values for @var{which} are as +tessellation object. These properties affect the way that the polygons +are interpreted and rendered. The legal values for @var{which} are as follows: @table @asis @@ -2999,50 +3003,50 @@ Determines which parts of the polygon are on the ``interior''. @code{GLU_TESS_WINDING_ABS_GEQ_TWO}. To understand how the winding rule works, consider that the input -contours partition the plane into regions. The winding rule determines +contours partition the plane into regions. The winding rule determines which of these regions are inside the polygon. For a single contour C, the winding number of a point x is simply the signed number of revolutions we make around x as we travel once around C -(where CCW is positive). When there are several contours, the individual -winding numbers are summed. This procedure associates a signed integer -value with each point x in the plane. Note that the winding number is -the same for all points in a single region. +(where CCW is positive). When there are several contours, the +individual winding numbers are summed. This procedure associates a +signed integer value with each point x in the plane. Note that the +winding number is the same for all points in a single region. The winding rule classifies a region as ``inside'' if its winding number belongs to the chosen category (odd, nonzero, positive, negative, or -absolute value of at least two). The previous GLU tessellator (prior to -GLU 1.2) used the ``odd'' rule. The ``nonzero'' rule is another common -way to define the interior. The other three rules are useful for polygon -CSG operations. +absolute value of at least two). The previous GLU tessellator (prior to +GLU 1.2) used the ``odd'' rule. The ``nonzero'' rule is another common +way to define the interior. The other three rules are useful for +polygon CSG operations. @item @code{GLU_TESS_BOUNDARY_ONLY} Is a boolean value (``value'' should be set to GL_TRUE or GL_FALSE). When set to GL_TRUE, a set of closed contours separating the polygon -interior and exterior are returned instead of a tessellation. Exterior +interior and exterior are returned instead of a tessellation. Exterior contours are oriented CCW with respect to the normal; interior contours -are oriented CW. The @code{GLU_TESS_BEGIN} and +are oriented CW. The @code{GLU_TESS_BEGIN} and @code{GLU_TESS_BEGIN_DATA} callbacks use the type GL_LINE_LOOP for each contour. @item @code{GLU_TESS_TOLERANCE} Specifies a tolerance for merging features to reduce the size of the -output. For example, two vertices that are very close to each other -might be replaced by a single vertex. The tolerance is multiplied by the -largest coordinate magnitude of any input vertex; this specifies the +output. For example, two vertices that are very close to each other +might be replaced by a single vertex. The tolerance is multiplied by +the largest coordinate magnitude of any input vertex; this specifies the maximum distance that any feature can move as the result of a single -merge operation. If a single feature takes part in several merge +merge operation. If a single feature takes part in several merge operations, the total distance moved could be larger. Feature merging is completely optional; the tolerance is only a hint. The implementation is free to merge in some cases and not in others, or -to never merge features at all. The initial tolerance is 0. +to never merge features at all. The initial tolerance is 0. The current implementation merges vertices only if they are exactly -coincident, regardless of the current tolerance. A vertex is spliced +coincident, regardless of the current tolerance. A vertex is spliced into an edge only if the implementation is unable to distinguish which -side of the edge the vertex lies on. Two edges are merged only when both -endpoints are identical. +side of the edge the vertex lies on. Two edges are merged only when +both endpoints are identical. @end table @@ -3065,14 +3069,14 @@ callback (as specified by @code{gluTessCallback}). @end table @code{gluTessVertex} describes a vertex on a polygon that the program -defines. Successive @code{gluTessVertex} calls describe a closed -contour. For example, to describe a quadrilateral, @code{gluTessVertex} -should be called four times. @code{gluTessVertex} can only be called +defines. Successive @code{gluTessVertex} calls describe a closed +contour. For example, to describe a quadrilateral, @code{gluTessVertex} +should be called four times. @code{gluTessVertex} can only be called between @code{gluTessBeginContour} and @code{gluTessEndContour}. @var{data} normally points to a structure containing the vertex location, as well as other per-vertex attributes such as color and -normal. This pointer is passed back to the user through the +normal. This pointer is passed back to the user through the @code{GLU_TESS_VERTEX} or @code{GLU_TESS_VERTEX_DATA} callback after tessellation (see the @code{gluTessCallback} reference page). @@ -3114,11 +3118,11 @@ Returns the computed object coordinates. @code{gluUnProject4} maps the specified window coordinatesi: @var{winX}, @var{winY}, and @var{winZ} and its clip w coordinate @var{clipW} into object coordinates @r{(@var{objX},@var{objY}@var{objZ}@var{objW})} using -@var{model}, @var{proj}, and @var{view}. @var{clipW} can be other than 1 -as for vertices in @code{glFeedbackBuffer} when data type -@code{GLU_4D_COLOR_TEXTURE} is returned. This also handles the case +@var{model}, @var{proj}, and @var{view}. @var{clipW} can be other than +1 as for vertices in @code{glFeedbackBuffer} when data type +@code{GLU_4D_COLOR_TEXTURE} is returned. This also handles the case where the @var{nearVal} and @var{farVal} planes are different from the -default, 0 and 1, respectively. A return value of @code{GLU_TRUE} +default, 0 and 1, respectively. A return value of @code{GLU_TRUE} indicates success; a return value of @code{GLU_FALSE} indicates failure. To compute the coordinates @@ -3165,8 +3169,8 @@ Returns the computed object coordinates. @end table @code{gluUnProject} maps the specified window coordinates into object -coordinates using @var{model}, @var{proj}, and @var{view}. The result is -stored in @var{objX}, @var{objY}, and @var{objZ}. A return value of +coordinates using @var{model}, @var{proj}, and @var{view}. The result +is stored in @var{objX}, @var{objY}, and @var{objZ}. A return value of @code{GLU_TRUE} indicates success; a return value of @code{GLU_FALSE} indicates failure. @@ -3177,7 +3181,7 @@ inverse of @var{model} * @var{proj} as follows: @r{((@var{objX}), (@var{objY}), (@var{objZ}), (@var{W}),)=@var{INV}⁡(@var{P}⁢@var{M},)⁢((2⁡(@var{winX}-@var{view}⁡[0,],),/@var{view}⁡[2,],-1), (2⁡(@var{winY}-@var{view}⁡[1,],),/@var{view}⁡[3,],-1), -(2⁡(@var{winZ},)-1), (1),)}@r{@var{INV}} denotes matrix inversion. W is +(2⁡(@var{winZ},)-1), (1),)}@r{@var{INV}} denotes matrix inversion. W is an unused variable, included for consistent matrix notation. @end deftypefun diff --git a/doc/low-level-glx-enums.texi b/doc/low-level-glx-enums.texi index 7a1d04e..b21055d 100644 --- a/doc/low-level-glx-enums.texi +++ b/doc/low-level-glx-enums.texi @@ -11,8 +11,8 @@ The functions from this section may be had by loading the module: @end example @defmac glx-string-name enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{vendor}, @code{version}, @code{extensions}. @@ -20,8 +20,8 @@ known to this enumerated value form are: @end defmac @defmac glx-error-code enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{bad-screen}, @code{bad-attribute}, @code{no-extension}, @@ -32,8 +32,8 @@ known to this enumerated value form are: @end defmac @defmac glx-drawable-type-mask enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{window-bit}, @code{pixmap-bit}, @code{pbuffer-bit}, @@ -42,8 +42,8 @@ known to this enumerated value form are: @end defmac @defmac glx-render-type-mask enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{rgba-bit}, @code{color-index-bit}, @code{rgba-bit-sgix}, @@ -53,8 +53,8 @@ known to this enumerated value form are: @end defmac @defmac glx-sync-type enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{sync-frame-sgix}, @code{sync-swap-sgix}. @@ -62,8 +62,8 @@ known to this enumerated value form are: @end defmac @defmac glx-event-mask enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pbuffer-clobber-mask}, @code{buffer-clobber-mask-sgix}, @@ -72,8 +72,8 @@ known to this enumerated value form are: @end defmac @defmac glx-pbuffer-clobber-mask enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{front-left-buffer-bit}, @code{front-right-buffer-bit}, @@ -89,8 +89,8 @@ known to this enumerated value form are: @end defmac @defmac glx-hyperpipe-type-mask enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{hyperpipe-display-pipe-sgix}, @code{hyperpipe-render-pipe-sgix}. @@ -98,8 +98,8 @@ known to this enumerated value form are: @end defmac @defmac glx-hyperpipe-attrib enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{pipe-rect-sgix}, @code{pipe-rect-limits-sgix}, @@ -108,8 +108,8 @@ known to this enumerated value form are: @end defmac @defmac glx-hyperpipe-misc enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{hyperpipe-pipe-name-length-sgix}. @@ -117,8 +117,8 @@ known to this enumerated value form are: @end defmac @defmac glx-bind-to-texture-target-mask enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{texture-1d-bit-ext}, @code{texture-2d-bit-ext}, @@ -127,8 +127,8 @@ known to this enumerated value form are: @end defmac @defmac glx-context-flags enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{context-debug-bit-arb}, @code{context-forward-compatible-bit-arb}, @@ -138,8 +138,8 @@ known to this enumerated value form are: @end defmac @defmac glx-context-profile-mask enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{context-core-profile-bit-arb}, @@ -149,8 +149,8 @@ known to this enumerated value form are: @end defmac @defmac glx-attribute enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{use-gl}, @code{buffer-size}, @code{level}, @code{rgba}, @@ -229,8 +229,8 @@ known to this enumerated value form are: @end defmac @defmac nv-present-video enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{num-video-slots-nv}. @@ -238,8 +238,8 @@ known to this enumerated value form are: @end defmac @defmac ext-swap-control enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{swap-interval-ext}, @code{max-swap-interval-ext}. @@ -247,8 +247,8 @@ known to this enumerated value form are: @end defmac @defmac ext-swap-control-tear enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{late-swaps-tear-ext}. @@ -256,8 +256,8 @@ known to this enumerated value form are: @end defmac @defmac ext-buffer-age enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{back-buffer-age-ext}. @@ -265,8 +265,8 @@ known to this enumerated value form are: @end defmac @defmac glx-amd-gpu-association enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{gpu-vendor-amd}, @code{gpu-renderer-string-amd}, @@ -278,8 +278,8 @@ known to this enumerated value form are: @end defmac @defmac glx-arb-create-context-robustness enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{lose-context-on-reset-arb}, @@ -289,8 +289,8 @@ known to this enumerated value form are: @end defmac @defmac arb-create-context-profile enum -Enumerated value. The symbolic @var{enum} argument is replaced with its -corresponding numeric value at compile-time. The symbolic arguments +Enumerated value. The symbolic @var{enum} argument is replaced with its +corresponding numeric value at compile-time. The symbolic arguments known to this enumerated value form are: @code{context-profile-mask-arb}. diff --git a/doc/low-level-glx.texi b/doc/low-level-glx.texi index 44abb12..91ba6ef 100644 --- a/doc/low-level-glx.texi +++ b/doc/low-level-glx.texi @@ -9,12 +9,12 @@ The functions from this section may be had by loading the module: @copying This section of the manual was derived from the upstream OpenGL -documentation. Each function's documentation has its own copyright -statement; for full details, see the upstream documentation. The +documentation. Each function's documentation has its own copyright +statement; for full details, see the upstream documentation. The copyright notices and licenses present in this section are as follows. -Copyright @copyright{} 1991-2006 Silicon Graphics, Inc. This document is -licensed under the SGI Free Software B License. For details, see +Copyright @copyright{} 1991-2006 Silicon Graphics, Inc. This document +is licensed under the SGI Free Software B License. For details, see @uref{http://oss.sgi.com/projects/FreeB/,http://oss.sgi.com/projects/FreeB/}. @end copying @@ -31,7 +31,7 @@ Specifies the connection to the X server. Specifies the screen number. @item @var{attrib_list} -Specifies a list of attribute/value pairs. The last attribute must be +Specifies a list of attribute/value pairs. The last attribute must be @code{None}. @item @var{nelements} @@ -42,31 +42,31 @@ Returns the number of elements in the list returned by @code{glXChooseFBConfig} returns GLX frame buffer configurations that match the attributes specified in @var{attrib_list}, or @code{NULL} if -no matches are found. If @var{attrib_list} is @code{NULL}, then +no matches are found. If @var{attrib_list} is @code{NULL}, then @code{glXChooseFBConfig} returns an array of GLX frame buffer -configurations that are available on the specified screen. If an error +configurations that are available on the specified screen. If an error occurs, no frame buffer configurations exist on the specified screen, or if no frame buffer configurations match the specified attributes, then -@code{NULL} is returned. Use @code{XFree} to free the memory returned by -@code{glXChooseFBConfig}. +@code{NULL} is returned. Use @code{XFree} to free the memory returned +by @code{glXChooseFBConfig}. All attributes in @var{attrib_list}, including boolean attributes, are -immediately followed by the corresponding desired value. The list is -terminated with @code{None}. If an attribute is not specified in +immediately followed by the corresponding desired value. The list is +terminated with @code{None}. If an attribute is not specified in @var{attrib_list}, then the default value (see below) is used (and the -attribute is said to be specified implicitly). For example, if +attribute is said to be specified implicitly). For example, if @code{GLX_STEREO} is not specified, then it is assumed to be -@code{False}. For some attributes, the default is @code{GLX_DONT_CARE}, +@code{False}. For some attributes, the default is @code{GLX_DONT_CARE}, meaning that any value is OK for this attribute, so the attribute will not be checked. -Attributes are matched in an attribute-specific manner. Some of the +Attributes are matched in an attribute-specific manner. Some of the attributes, such as @code{GLX_LEVEL}, must match the specified value exactly; others, such as, @code{GLX_RED_SIZE} must meet or exceed the -specified minimum values. If more than one GLX frame buffer +specified minimum values. If more than one GLX frame buffer configuration is found, then a list of configurations, sorted according -to the ``best'' match criteria, is returned. The match criteria for each -attribute and the exact sorting order is defined below. +to the ``best'' match criteria, is returned. The match criteria for +each attribute and the exact sorting order is defined below. The interpretations of the various GLX visual attributes are as follows: @@ -75,146 +75,147 @@ The interpretations of the various GLX visual attributes are as follows: Must be followed by a valid XID that indicates the desired GLX frame -buffer configuration. When a @code{GLX_FBCONFIG_ID} is specified, all -attributes are ignored. The default value is @code{GLX_DONT_CARE}. +buffer configuration. When a @code{GLX_FBCONFIG_ID} is specified, all +attributes are ignored. The default value is @code{GLX_DONT_CARE}. @item @code{GLX_BUFFER_SIZE} Must be followed by a nonnegative integer that indicates the desired -color index buffer size. The smallest index buffer of at least the -specified size is preferred. This attribute is ignored if -@code{GLX_COLOR_INDEX_BIT} is not set in @code{GLX_RENDER_TYPE}. The +color index buffer size. The smallest index buffer of at least the +specified size is preferred. This attribute is ignored if +@code{GLX_COLOR_INDEX_BIT} is not set in @code{GLX_RENDER_TYPE}. The default value is 0. @item @code{GLX_LEVEL} -Must be followed by an integer buffer-level specification. This -specification is honored exactly. Buffer level 0 corresponds to the -default frame buffer of the display. Buffer level 1 is the first overlay -frame buffer, level two the second overlay frame buffer, and so on. -Negative buffer levels correspond to underlay frame buffers. The default -value is 0. +Must be followed by an integer buffer-level specification. This +specification is honored exactly. Buffer level 0 corresponds to the +default frame buffer of the display. Buffer level 1 is the first +overlay frame buffer, level two the second overlay frame buffer, and so +on. Negative buffer levels correspond to underlay frame buffers. The +default value is 0. @item @code{GLX_DOUBLEBUFFER} -Must be followed by @code{True} or @code{False}. If @code{True} is +Must be followed by @code{True} or @code{False}. If @code{True} is specified, then only double-buffered frame buffer configurations are considered; if @code{False} is specified, then only single-buffered -frame buffer configurations are considered. The default value is +frame buffer configurations are considered. The default value is @code{GLX_DONT_CARE}. @item @code{GLX_STEREO} -Must be followed by @code{True} or @code{False}. If @code{True} is +Must be followed by @code{True} or @code{False}. If @code{True} is specified, then only stereo frame buffer configurations are considered; if @code{False} is specified, then only monoscopic frame buffer -configurations are considered. The default value is @code{False}. +configurations are considered. The default value is @code{False}. @item @code{GLX_AUX_BUFFERS} Must be followed by a nonnegative integer that indicates the desired -number of auxiliary buffers. Configurations with the smallest number of +number of auxiliary buffers. Configurations with the smallest number of auxiliary buffers that meet or exceed the specified number are -preferred. The default value is 0. +preferred. The default value is 0. @item @code{GLX_RED_SIZE}, @code{GLX_GREEN_SIZE}, @code{GLX_BLUE_SIZE}, @code{GLX_ALPHA_SIZE} Each attribute, if present, must be followed by a nonnegative minimum -size specification or @code{GLX_DONT_CARE}. The largest available total +size specification or @code{GLX_DONT_CARE}. The largest available total RGBA color buffer size (sum of @code{GLX_RED_SIZE}, @code{GLX_GREEN_SIZE}, @code{GLX_BLUE_SIZE}, and @code{GLX_ALPHA_SIZE}) of at least the minimum size specified for each color component is -preferred. If the requested number of bits for a color component is 0 or -@code{GLX_DONT_CARE}, it is not considered. The default value for each -color component is 0. +preferred. If the requested number of bits for a color component is 0 +or @code{GLX_DONT_CARE}, it is not considered. The default value for +each color component is 0. @item @code{GLX_DEPTH_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, frame buffer configurations with no depth buffer are -preferred. Otherwise, the largest available depth buffer of at least the -minimum size is preferred. The default value is 0. +preferred. Otherwise, the largest available depth buffer of at least +the minimum size is preferred. The default value is 0. @item @code{GLX_STENCIL_SIZE} Must be followed by a nonnegative integer that indicates the desired -number of stencil bitplanes. The smallest stencil buffer of at least the -specified size is preferred. If the desired value is zero, frame buffer -configurations with no stencil buffer are preferred. The default value -is 0. +number of stencil bitplanes. The smallest stencil buffer of at least +the specified size is preferred. If the desired value is zero, frame +buffer configurations with no stencil buffer are preferred. The default +value is 0. @item @code{GLX_ACCUM_RED_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, frame buffer configurations with no red accumulation -buffer are preferred. Otherwise, the largest possible red accumulation -buffer of at least the minimum size is preferred. The default value is +buffer are preferred. Otherwise, the largest possible red accumulation +buffer of at least the minimum size is preferred. The default value is 0. @item @code{GLX_ACCUM_GREEN_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, frame buffer configurations with no green accumulation -buffer are preferred. Otherwise, the largest possible green accumulation -buffer of at least the minimum size is preferred. The default value is -0. +buffer are preferred. Otherwise, the largest possible green +accumulation buffer of at least the minimum size is preferred. The +default value is 0. @item @code{GLX_ACCUM_BLUE_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, frame buffer configurations with no blue accumulation -buffer are preferred. Otherwise, the largest possible blue accumulation -buffer of at least the minimum size is preferred. The default value is +buffer are preferred. Otherwise, the largest possible blue accumulation +buffer of at least the minimum size is preferred. The default value is 0. @item @code{GLX_ACCUM_ALPHA_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, frame buffer configurations with no alpha accumulation -buffer are preferred. Otherwise, the largest possible alpha accumulation -buffer of at least the minimum size is preferred. The default value is -0. +buffer are preferred. Otherwise, the largest possible alpha +accumulation buffer of at least the minimum size is preferred. The +default value is 0. @item @code{GLX_RENDER_TYPE} Must be followed by a mask indicating which OpenGL rendering modes the -frame buffer configuration must support. Valid bits are -@code{GLX_RGBA_BIT} and @code{GLX_COLOR_INDEX_BIT}. If the mask is set +frame buffer configuration must support. Valid bits are +@code{GLX_RGBA_BIT} and @code{GLX_COLOR_INDEX_BIT}. If the mask is set to @code{GLX_RGBA_BIT} | @code{GLX_COLOR_INDEX_BIT}, then only frame buffer configurations that can be bound to both RGBA contexts and color -index contexts will be considered. The default value is +index contexts will be considered. The default value is @code{GLX_RGBA_BIT}. @item @code{GLX_DRAWABLE_TYPE} Must be followed by a mask indicating which GLX drawable types the frame -buffer configuration must support. Valid bits are @code{GLX_WINDOW_BIT}, -@code{GLX_PIXMAP_BIT}, and @code{GLX_PBUFFER_BIT}. For example, if mask -is set to @code{GLX_WINDOW_BIT} | @code{GLX_PIXMAP_BIT}, only frame -buffer configurations that support both windows and GLX pixmaps will be -considered. The default value is @code{GLX_WINDOW_BIT}. +buffer configuration must support. Valid bits are +@code{GLX_WINDOW_BIT}, @code{GLX_PIXMAP_BIT}, and +@code{GLX_PBUFFER_BIT}. For example, if mask is set to +@code{GLX_WINDOW_BIT} | @code{GLX_PIXMAP_BIT}, only frame buffer +configurations that support both windows and GLX pixmaps will be +considered. The default value is @code{GLX_WINDOW_BIT}. @item @code{GLX_X_RENDERABLE} -Must be followed by @code{True} or @code{False}. If @code{True} is +Must be followed by @code{True} or @code{False}. If @code{True} is specified, then only frame buffer configurations that have associated X visuals (and can be used to render to Windows and/or GLX pixmaps) will -be considered. The default value is @code{GLX_DONT_CARE}. +be considered. The default value is @code{GLX_DONT_CARE}. @item @code{GLX_X_VISUAL_TYPE} @@ -222,51 +223,51 @@ be considered. The default value is @code{GLX_DONT_CARE}. Must be followed by one of @code{GLX_TRUE_COLOR}, @code{GLX_DIRECT_COLOR}, @code{GLX_PSEUDO_COLOR}, @code{GLX_STATIC_COLOR}, @code{GLX_GRAY_SCALE}, or -@code{GLX_STATIC_GRAY}, indicating the desired X visual type. Not all -frame buffer configurations have an associated X visual. If +@code{GLX_STATIC_GRAY}, indicating the desired X visual type. Not all +frame buffer configurations have an associated X visual. If @code{GLX_DRAWABLE_TYPE} is specified in @var{attrib_list} and the mask that follows does not have @code{GLX_WINDOW_BIT} set, then this value is -ignored. It is also ignored if @code{GLX_X_RENDERABLE} is specified as -@code{False}. RGBA rendering may be supported for visuals of type +ignored. It is also ignored if @code{GLX_X_RENDERABLE} is specified as +@code{False}. RGBA rendering may be supported for visuals of type @code{GLX_TRUE_COLOR}, @code{GLX_DIRECT_COLOR}, @code{GLX_PSEUDO_COLOR}, or @code{GLX_STATIC_COLOR}, but color index rendering is only supported for visuals of type @code{GLX_PSEUDO_COLOR} or @code{GLX_STATIC_COLOR} -(i.e., single-channel visuals). The tokens @code{GLX_GRAY_SCALE} and +(i.e., single-channel visuals). The tokens @code{GLX_GRAY_SCALE} and @code{GLX_STATIC_GRAY} will not match current OpenGL enabled visuals, -but are included for future use. The default value for +but are included for future use. The default value for @code{GLX_X_VISUAL_TYPE} is @code{GLX_DONT_CARE}. @item @code{GLX_CONFIG_CAVEAT} Must be followed by one of @code{GLX_NONE}, @code{GLX_SLOW_CONFIG}, -@code{GLX_NON_CONFORMANT_CONFIG}. If @code{GLX_NONE} is specified, then +@code{GLX_NON_CONFORMANT_CONFIG}. If @code{GLX_NONE} is specified, then only frame buffer configurations with no caveats will be considered; if @code{GLX_SLOW_CONFIG} is specified, then only slow frame buffer configurations will be considered; if @code{GLX_NON_CONFORMANT_CONFIG} is specified, then only nonconformant frame buffer configurations will -be considered. The default value is @code{GLX_DONT_CARE}. +be considered. The default value is @code{GLX_DONT_CARE}. @item @code{GLX_TRANSPARENT_TYPE} Must be followed by one of @code{GLX_NONE}, @code{GLX_TRANSPARENT_RGB}, -@code{GLX_TRANSPARENT_INDEX}. If @code{GLX_NONE} is specified, then only -opaque frame buffer configurations will be considered; if +@code{GLX_TRANSPARENT_INDEX}. If @code{GLX_NONE} is specified, then +only opaque frame buffer configurations will be considered; if @code{GLX_TRANSPARENT_RGB} is specified, then only transparent frame buffer configurations that support RGBA rendering will be considered; if @code{GLX_TRANSPARENT_INDEX} is specified, then only transparent frame buffer configurations that support color index rendering will be -considered. The default value is @code{GLX_NONE}. +considered. The default value is @code{GLX_NONE}. @item @code{GLX_TRANSPARENT_INDEX_VALUE} Must be followed by an integer value indicating the transparent index value; the value must be between 0 and the maximum frame buffer value -for indices. Only frame buffer configurations that use the specified -transparent index value will be considered. The default value is -@code{GLX_DONT_CARE}. This attribute is ignored unless +for indices. Only frame buffer configurations that use the specified +transparent index value will be considered. The default value is +@code{GLX_DONT_CARE}. This attribute is ignored unless @code{GLX_TRANSPARENT_TYPE} is included in @var{attrib_list} and specified as @code{GLX_TRANSPARENT_INDEX}. @@ -275,9 +276,9 @@ specified as @code{GLX_TRANSPARENT_INDEX}. Must be followed by an integer value indicating the transparent red value; the value must be between 0 and the maximum frame buffer value -for red. Only frame buffer configurations that use the specified -transparent red value will be considered. The default value is -@code{GLX_DONT_CARE}. This attribute is ignored unless +for red. Only frame buffer configurations that use the specified +transparent red value will be considered. The default value is +@code{GLX_DONT_CARE}. This attribute is ignored unless @code{GLX_TRANSPARENT_TYPE} is included in @var{attrib_list} and specified as @code{GLX_TRANSPARENT_RGB}. @@ -286,9 +287,9 @@ specified as @code{GLX_TRANSPARENT_RGB}. Must be followed by an integer value indicating the transparent green value; the value must be between 0 and the maximum frame buffer value -for green. Only frame buffer configurations that use the specified -transparent green value will be considered. The default value is -@code{GLX_DONT_CARE}. This attribute is ignored unless +for green. Only frame buffer configurations that use the specified +transparent green value will be considered. The default value is +@code{GLX_DONT_CARE}. This attribute is ignored unless @code{GLX_TRANSPARENT_TYPE} is included in @var{attrib_list} and specified as @code{GLX_TRANSPARENT_RGB}. @@ -297,9 +298,9 @@ specified as @code{GLX_TRANSPARENT_RGB}. Must be followed by an integer value indicating the transparent blue value; the value must be between 0 and the maximum frame buffer value -for blue. Only frame buffer configurations that use the specified -transparent blue value will be considered. The default value is -@code{GLX_DONT_CARE}. This attribute is ignored unless +for blue. Only frame buffer configurations that use the specified +transparent blue value will be considered. The default value is +@code{GLX_DONT_CARE}. This attribute is ignored unless @code{GLX_TRANSPARENT_TYPE} is included in @var{attrib_list} and specified as @code{GLX_TRANSPARENT_RGB}. @@ -308,14 +309,14 @@ specified as @code{GLX_TRANSPARENT_RGB}. Must be followed by an integer value indicating the transparent alpha value; the value must be between 0 and the maximum frame buffer value -for alpha. Only frame buffer configurations that use the specified -transparent alpha value will be considered. The default value is +for alpha. Only frame buffer configurations that use the specified +transparent alpha value will be considered. The default value is @code{GLX_DONT_CARE}. @end table When more than one GLX frame buffer configuration matches the specified -attributes, a list of matching configurations is returned. The list is +attributes, a list of matching configurations is returned. The list is sorted according to the following precedence rules, which are applied in ascending order (i.e., configurations that are considered equal by a lower numbered rule are sorted by the higher numbered rule): @@ -328,7 +329,7 @@ By @code{GLX_CONFIG_CAVEAT} where the precedence is @code{GLX_NONE}, @item 2. Larger total number of RGBA color components (@code{GLX_RED_SIZE}, @code{GLX_GREEN_SIZE}, @code{GLX_BLUE_SIZE}, plus @code{GLX_ALPHA_SIZE}) -that have higher number of bits. If the requested number of bits in +that have higher number of bits. If the requested number of bits in @var{attrib_list} is zero or @code{GLX_DONT_CARE} for a particular color component, then the number of bits for that component is not considered. @@ -352,7 +353,7 @@ Smaller @code{GLX_STENCIL_SIZE}. Larger total number of accumulation buffer color components (@code{GLX_ACCUM_RED_SIZE}, @code{GLX_ACCUM_GREEN_SIZE}, @code{GLX_ACCUM_BLUE_SIZE}, plus @code{GLX_ACCUM_ALPHA_SIZE}) that have -higher number of bits. If the requested number of bits in +higher number of bits. If the requested number of bits in @var{attrib_list} is zero or @code{GLX_DONT_CARE} for a particular color component, then the number of bits for that component is not considered. @@ -381,44 +382,44 @@ Specifies the screen number. @item @var{attribList} Specifies a list of boolean attributes and integer attribute/value -pairs. The last attribute must be @code{None}. +pairs. The last attribute must be @code{None}. @end table @code{glXChooseVisual} returns a pointer to an XVisualInfo structure -describing the visual that best meets a minimum specification. The +describing the visual that best meets a minimum specification. The boolean GLX attributes of the visual that is returned will match the specified values, and the integer GLX attributes will meet or exceed the -specified minimum values. If all other attributes are equivalent, then +specified minimum values. If all other attributes are equivalent, then TrueColor and PseudoColor visuals have priority over DirectColor and -StaticColor visuals, respectively. If no conforming visual exists, -@code{NULL} is returned. To free the data returned by this function, use -@code{XFree}. +StaticColor visuals, respectively. If no conforming visual exists, +@code{NULL} is returned. To free the data returned by this function, +use @code{XFree}. All boolean GLX attributes default to @code{False} except -@code{GLX_USE_GL}, which defaults to @code{True}. All integer GLX -attributes default to zero. Default specifications are superseded by -attributes included in @var{attribList}. Boolean attributes included in -@var{attribList} are understood to be @code{True}. Integer attributes +@code{GLX_USE_GL}, which defaults to @code{True}. All integer GLX +attributes default to zero. Default specifications are superseded by +attributes included in @var{attribList}. Boolean attributes included in +@var{attribList} are understood to be @code{True}. Integer attributes and enumerated type attributes are followed immediately by the -corresponding desired or minimum value. The list must be terminated with -@code{None}. +corresponding desired or minimum value. The list must be terminated +with @code{None}. The interpretations of the various GLX visual attributes are as follows: @table @asis @item @code{GLX_USE_GL} -Ignored. Only visuals that can be rendered with GLX are considered. +Ignored. Only visuals that can be rendered with GLX are considered. @item @code{GLX_BUFFER_SIZE} Must be followed by a nonnegative integer that indicates the desired -color index buffer size. The smallest index buffer of at least the -specified size is preferred. Ignored if @code{GLX_RGBA} is asserted. +color index buffer size. The smallest index buffer of at least the +specified size is preferred. Ignored if @code{GLX_RGBA} is asserted. @item @code{GLX_LEVEL} -Must be followed by an integer buffer-level specification. This -specification is honored exactly. Buffer level zero corresponds to the -main frame buffer of the display. Buffer level one is the first overlay +Must be followed by an integer buffer-level specification. This +specification is honored exactly. Buffer level zero corresponds to the +main frame buffer of the display. Buffer level one is the first overlay frame buffer, level two the second overlay frame buffer, and so on. Negative buffer levels correspond to underlay frame buffers. @@ -427,75 +428,75 @@ If present, only TrueColor and DirectColor visuals are considered. Otherwise, only PseudoColor and StaticColor visuals are considered. @item @code{GLX_DOUBLEBUFFER} -If present, only double-buffered visuals are considered. Otherwise, only -single-buffered visuals are considered. +If present, only double-buffered visuals are considered. Otherwise, +only single-buffered visuals are considered. @item @code{GLX_STEREO} -If present, only stereo visuals are considered. Otherwise, only +If present, only stereo visuals are considered. Otherwise, only monoscopic visuals are considered. @item @code{GLX_AUX_BUFFERS} Must be followed by a nonnegative integer that indicates the desired -number of auxiliary buffers. Visuals with the smallest number of +number of auxiliary buffers. Visuals with the smallest number of auxiliary buffers that meets or exceeds the specified number are preferred. @item @code{GLX_RED_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, the smallest available red buffer is preferred. Otherwise, the largest available red buffer of at least the minimum size is preferred. @item @code{GLX_GREEN_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, the smallest available green buffer is preferred. Otherwise, the largest available green buffer of at least the minimum size is preferred. @item @code{GLX_BLUE_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, the smallest available blue buffer is preferred. Otherwise, the largest available blue buffer of at least the minimum size is preferred. @item @code{GLX_ALPHA_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, the smallest available alpha buffer is preferred. Otherwise, the largest available alpha buffer of at least the minimum size is preferred. @item @code{GLX_DEPTH_SIZE} -Must be followed by a nonnegative minimum size specification. If this -value is zero, visuals with no depth buffer are preferred. Otherwise, +Must be followed by a nonnegative minimum size specification. If this +value is zero, visuals with no depth buffer are preferred. Otherwise, the largest available depth buffer of at least the minimum size is preferred. @item @code{GLX_STENCIL_SIZE} Must be followed by a nonnegative integer that indicates the desired -number of stencil bitplanes. The smallest stencil buffer of at least the -specified size is preferred. If the desired value is zero, visuals with -no stencil buffer are preferred. +number of stencil bitplanes. The smallest stencil buffer of at least +the specified size is preferred. If the desired value is zero, visuals +with no stencil buffer are preferred. @item @code{GLX_ACCUM_RED_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, visuals with no red accumulation buffer are preferred. Otherwise, the largest possible red accumulation buffer of at least the minimum size is preferred. @item @code{GLX_ACCUM_GREEN_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, visuals with no green accumulation buffer are preferred. Otherwise, the largest possible green accumulation buffer of at least the minimum size is preferred. @item @code{GLX_ACCUM_BLUE_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, visuals with no blue accumulation buffer are preferred. Otherwise, the largest possible blue accumulation buffer of at least the minimum size is preferred. @item @code{GLX_ACCUM_ALPHA_SIZE} -Must be followed by a nonnegative minimum size specification. If this +Must be followed by a nonnegative minimum size specification. If this value is zero, visuals with no alpha accumulation buffer are preferred. Otherwise, the largest possible alpha accumulation buffer of at least the minimum size is preferred. @@ -527,24 +528,24 @@ Specifies which portions of @var{src} state are to be copied to @end table @code{glXCopyContext} copies selected groups of state variables from -@var{src} to @var{dst}. @var{mask} indicates which groups of state -variables are to be copied. @var{mask} contains the bitwise OR of the +@var{src} to @var{dst}. @var{mask} indicates which groups of state +variables are to be copied. @var{mask} contains the bitwise OR of the same symbolic names that are passed to the GL command -@code{glPushAttrib}. The single symbolic constant +@code{glPushAttrib}. The single symbolic constant @code{GLX_ALL_ATTRIB_BITS} can be used to copy the maximum possible portion of rendering state. The copy can be done only if the renderers named by @var{src} and -@var{dst} share an address space. Two rendering contexts share an +@var{dst} share an address space. Two rendering contexts share an address space if both are nondirect using the same server, or if both -are direct and owned by a single process. Note that in the nondirect +are direct and owned by a single process. Note that in the nondirect case it is not necessary for the calling threads to share an address space, only for their related rendering contexts to share an address space. -Not all values for GL state can be copied. For example, pixel pack and +Not all values for GL state can be copied. For example, pixel pack and unpack state, render mode state, and select and feedback state are not -copied. The state that can be copied is exactly the state that is +copied. The state that can be copied is exactly the state that is manipulated by the GL command @code{glPushAttrib}. An implicit @code{glFlush} is done by @code{glXCopyContext} if @var{src} @@ -575,11 +576,11 @@ Specifies the connection to the X server. @item @var{vis} Specifies the visual that defines the frame buffer resources available -to the rendering context. It is a pointer to an @code{XVisualInfo} +to the rendering context. It is a pointer to an @code{XVisualInfo} structure, not a visual ID or a pointer to a @code{Visual}. @item @var{shareList} -Specifies the context with which to share display lists. @code{NULL} +Specifies the context with which to share display lists. @code{NULL} indicates that no sharing is to take place. @item @var{direct} @@ -590,26 +591,26 @@ the graphics system if possible (@code{True}) or through the X server @end table @code{glXCreateContext} creates a GLX rendering context and returns its -handle. This context can be used to render into both windows and GLX -pixmaps. If @code{glXCreateContext} fails to create a rendering context, -@code{NULL} is returned. +handle. This context can be used to render into both windows and GLX +pixmaps. If @code{glXCreateContext} fails to create a rendering +context, @code{NULL} is returned. If @var{direct} is @code{True}, then a direct rendering context is created if the implementation supports direct rendering, if the connection is to an X server that is local, and if a direct rendering -context is available. (An implementation may return an indirect context +context is available. (An implementation may return an indirect context when @var{direct} is @code{True}.) If @var{direct} is @code{False}, then a rendering context that renders through the X server is always created. Direct rendering provides a performance advantage in some -implementations. However, direct rendering contexts cannot be shared +implementations. However, direct rendering contexts cannot be shared outside a single process, and they may be unable to render to GLX pixmaps. If @var{shareList} is not @code{NULL}, then all display-list indexes and definitions are shared by context @var{shareList} and by the newly -created context. An arbitrary number of contexts can share a single -display-list space. However, all rendering contexts that share a single -display-list space must themselves exist in the same address space. Two +created context. An arbitrary number of contexts can share a single +display-list space. However, all rendering contexts that share a single +display-list space must themselves exist in the same address space. Two rendering contexts share an address space if both are nondirect using the same server, or if both are direct and owned by a single process. Note that in the nondirect case, it is not necessary for the calling @@ -655,16 +656,16 @@ of the off-screen rendering area. @end table @code{glXCreateGLXPixmap} creates an off-screen rendering area and -returns its XID. Any GLX rendering context that was created with respect -to @var{vis} can be used to render into this off-screen area. Use -@code{glXMakeCurrent} to associate the rendering area with a GLX +returns its XID. Any GLX rendering context that was created with +respect to @var{vis} can be used to render into this off-screen area. +Use @code{glXMakeCurrent} to associate the rendering area with a GLX rendering context. The X pixmap identified by @var{pixmap} is used as the front left buffer -of the resulting off-screen rendering area. All other buffers specified +of the resulting off-screen rendering area. All other buffers specified by @var{vis}, including color buffers other than the front left buffer, -are created without externally visible names. GLX pixmaps with -double-buffering are supported. However, @code{glXSwapBuffers} is +are created without externally visible names. GLX pixmaps with +double-buffering are supported. However, @code{glXSwapBuffers} is ignored by these pixmaps. Some implementations may not support GLX pixmaps with direct rendering @@ -697,11 +698,11 @@ Specifies the GLXFBConfig structure with the desired attributes for the context. @item @var{render_type} -Specifies the type of the context to be created. Must be one of +Specifies the type of the context to be created. Must be one of @code{GLX_RGBA_TYPE} or @code{GLX_COLOR_INDEX_TYPE}. @item @var{share_list} -Specifies the context with which to share display lists. @code{NULL} +Specifies the context with which to share display lists. @code{NULL} indicates that no sharing is to take place. @item @var{share_list} @@ -712,20 +713,20 @@ the graphics system if possible (@code{True}) or through the X server @end table @code{glXCreateNewContext} creates a GLX rendering context and returns -its handle. This context can be used to render into GLX windows, -pixmaps, or pixel buffers. If @code{glXCreateNewContext} fails to create -a rendering context, @code{NULL} is returned. +its handle. This context can be used to render into GLX windows, +pixmaps, or pixel buffers. If @code{glXCreateNewContext} fails to +create a rendering context, @code{NULL} is returned. If @var{render_type} is @code{GLX_RGBA_TYPE}, then a context that -supports RGBA rendering is created. If @var{config} is +supports RGBA rendering is created. If @var{config} is @code{GLX_COLOR_INDEX_TYPE}, then context supporting color-index rendering is created. If @var{render_type} is not @code{NULL}, then all display-list indexes and definitions are shared by context @var{render_type} and by the newly -created context. An arbitrary number of contexts can share a single -display-list space. However, all rendering contexts that share a single -display-list space must themselves exist in the same address space. Two +created context. An arbitrary number of contexts can share a single +display-list space. However, all rendering contexts that share a single +display-list space must themselves exist in the same address space. Two rendering contexts share an address space if both are nondirect using the same server, or if both are direct and owned by a single process. Note that in the nondirect case, it is not necessary for the calling @@ -735,11 +736,11 @@ contexts to share an address space. If @var{share_list} is @code{True}, then a direct-rendering context is created if the implementation supports direct rendering, if the connection is to an X server that is local, and if a direct-rendering -context is available. (An implementation may return an indirect context +context is available. (An implementation may return an indirect context when @var{share_list} is @code{True}.) If @var{share_list} is @code{False}, then a rendering context that renders through the X server -is always created. Direct rendering provides a performance advantage in -some implementations. However, direct-rendering contexts cannot be +is always created. Direct rendering provides a performance advantage in +some implementations. However, direct-rendering contexts cannot be shared outside a single process, and they may be unable to render to GLX pixmaps. @@ -776,15 +777,15 @@ window. @item @var{attrib_list} Specifies a list of attribute value pairs, which must be terminated with -@code{None} or @code{NULL}. Accepted attributes are +@code{None} or @code{NULL}. Accepted attributes are @code{GLX_PBUFFER_WIDTH}, @code{GLX_PBUFFER_HEIGHT}, @code{GLX_PRESERVED_CONTENTS}, and @code{GLX_LARGEST_PBUFFER}. @end table @code{glXCreatePbuffer} creates an off-screen rendering area and returns -its XID. Any GLX rendering context that was created with respect to -@var{config} can be used to render into this window. Use +its XID. Any GLX rendering context that was created with respect to +@var{config} can be used to render into this window. Use @code{glXMakeContextCurrent} to associate the rendering area with a GLX rendering context. @@ -792,28 +793,28 @@ The accepted attributes for a GLXPbuffer are: @table @asis @item @code{GLX_PBUFFER_WIDTH} -Specify the pixel width of the requested GLXPbuffer. The default value +Specify the pixel width of the requested GLXPbuffer. The default value is 0. @item @code{GLX_PBUFFER_HEIGHT} -Specify the pixel height of the requested GLXPbuffer. The default value +Specify the pixel height of the requested GLXPbuffer. The default value is 0. @item @code{GLX_LARGEST_PBUFFER} Specify to obtain the largest available pixel buffer, if the requested -allocation would have failed. The width and height of the allocated +allocation would have failed. The width and height of the allocated pixel buffer will never exceed the specified @code{GLX_PBUFFER_WIDTH} or -@code{GLX_PBUFFER_HEIGHT}, respectively. Use @code{glXQueryDrawable} to -retrieve the dimensions of the allocated pixel buffer. The default value -is @code{False}. +@code{GLX_PBUFFER_HEIGHT}, respectively. Use @code{glXQueryDrawable} to +retrieve the dimensions of the allocated pixel buffer. The default +value is @code{False}. @item @code{GLX_PRESERVED_CONTENTS} Specify if the contents of the pixel buffer should be preserved when a -resource conflict occurs. If set to @code{False}, the contents of the -pixel buffer may be lost at any time. If set to @code{True}, or not +resource conflict occurs. If set to @code{False}, the contents of the +pixel buffer may be lost at any time. If set to @code{True}, or not specified in @var{attrib_list}, then the contents of the pixel buffer will be preserved (most likely by copying the contents into main system -memory from the frame buffer). In either case, the client can register +memory from the frame buffer). In either case, the client can register (using @code{glXSelectEvent}, to receive pixel buffer clobber events that are generated when the pbuffer contents have been preserved or damaged. @@ -821,7 +822,7 @@ damaged. @end table GLXPbuffers contain the color and ancillary buffers specified by -@var{config}. It is possible to create a pixel buffer with back buffers +@var{config}. It is possible to create a pixel buffer with back buffers and to swap those buffers using @code{glXSwapBuffers}. @code{BadAlloc} is generated if there are insufficient resources to @@ -851,14 +852,14 @@ window. Specifies the X pixmap to be used as the rendering area. @item @var{attrib_list} -Currently unused. This must be set to @code{NULL} or be an empty list +Currently unused. This must be set to @code{NULL} or be an empty list (i.e., one in which the first element is @code{None}). @end table @code{glXCreatePixmap} creates an off-screen rendering area and returns -its XID. Any GLX rendering context that was created with respect to -@var{config} can be used to render into this window. Use +its XID. Any GLX rendering context that was created with respect to +@var{config} can be used to render into this window. Use @code{glXMakeCurrent} to associate the rendering area with a GLX rendering context. @@ -898,17 +899,17 @@ window. Specifies the X window to be used as the rendering area. @item @var{attrib_list} -Currently unused. This must be set to @code{NULL} or be an empty list +Currently unused. This must be set to @code{NULL} or be an empty list (i.e., one in which the first element is @code{None}). @end table @code{glXCreateWindow} creates an on-screen rendering area from an existing X window that was created with a visual matching @var{config}. -The XID of the GLXWindow is returned. Any GLX rendering context that was -created with respect to @var{config} can be used to render into this -window. Use @code{glXMakeContextCurrent} to associate the rendering area -with a GLX rendering context. +The XID of the GLXWindow is returned. Any GLX rendering context that +was created with respect to @var{config} can be used to render into this +window. Use @code{glXMakeContextCurrent} to associate the rendering +area with a GLX rendering context. @code{BadMatch} is generated if @var{win} was not created with a visual that corresponds to @var{config}. @@ -945,8 +946,8 @@ Specifies the GLX context to be destroyed. @end table If the GLX rendering context @var{ctx} is not current to any thread, -@code{glXDestroyContext} destroys it immediately. Otherwise, @var{ctx} -is destroyed when it becomes not current to any thread. In either case, +@code{glXDestroyContext} destroys it immediately. Otherwise, @var{ctx} +is destroyed when it becomes not current to any thread. In either case, the resource ID referenced by @var{ctx} is freed immediately. @code{GLXBadContext} is generated if @var{ctx} is not a valid GLX @@ -967,9 +968,9 @@ Specifies the GLX pixmap to be destroyed. @end table If the GLX pixmap @var{pix} is not current to any client, -@code{glXDestroyGLXPixmap} destroys it immediately. Otherwise, @var{pix} -is destroyed when it becomes not current to any client. In either case, -the resource ID is freed immediately. +@code{glXDestroyGLXPixmap} destroys it immediately. Otherwise, +@var{pix} is destroyed when it becomes not current to any client. In +either case, the resource ID is freed immediately. @code{GLXBadPixmap} is generated if @var{pix} is not a valid GLX pixmap. @@ -1047,12 +1048,12 @@ Specifies a GLX rendering context. @end table @code{glXFreeContextEXT} frees the client-side part of a GLXContext that -was created with @code{glXImportContextEXT}. @code{glXFreeContextEXT} +was created with @code{glXImportContextEXT}. @code{glXFreeContextEXT} does not free the server-side context information or the XID associated with the server-side context. @code{glXFreeContextEXT} is part of the @code{EXT_import_context} -extension, not part of the core GLX command set. If +extension, not part of the core GLX command set. If _glxextstring(EXT_import_context) is included in the string returned by @code{glXQueryExtensionsString}, when called with argument @code{GLX_EXTENSIONS}, extension @code{EXT_vertex_array} is supported. @@ -1070,21 +1071,21 @@ Return a string describing the client. Specifies the connection to the X server. @item @var{name} -Specifies which string is returned. The symbolic constants +Specifies which string is returned. The symbolic constants @code{GLX_VENDOR}, @code{GLX_VERSION}, and @code{GLX_EXTENSIONS} are accepted. @end table @code{glXGetClientString} returns a string describing some aspect of the -client library. The possible values for @var{name} are -@code{GLX_VENDOR}, @code{GLX_VERSION}, and @code{GLX_EXTENSIONS}. If +client library. The possible values for @var{name} are +@code{GLX_VENDOR}, @code{GLX_VERSION}, and @code{GLX_EXTENSIONS}. If @var{name} is not set to one of these values, @code{glXGetClientString} -returns @code{NULL}. The format and contents of the vendor string is +returns @code{NULL}. The format and contents of the vendor string is implementation dependent. The extensions string is null-terminated and contains a space-separated -list of extension names. (The extension names never contain spaces.) If +list of extension names. (The extension names never contain spaces.) If there are no extensions to GLX, then the empty string is returned. The version string is laid out as follows: @@ -1092,7 +1093,7 @@ The version string is laid out as follows: Both the major and minor portions of the version number are of arbitrary -length. The vendor-specific information is optional. However, if it is +length. The vendor-specific information is optional. However, if it is present, the format and contents are implementation specific. @end deftypefun @@ -1105,7 +1106,7 @@ Return information about GLX visuals. Specifies the connection to the X server. @item @var{vis} -Specifies the visual to be queried. It is a pointer to an +Specifies the visual to be queried. It is a pointer to an @code{XVisualInfo} structure, not a visual ID or a pointer to a @code{Visual}. @@ -1132,15 +1133,15 @@ Otherwise, zero is returned. @code{False} otherwise. @item @code{GLX_BUFFER_SIZE} -Number of bits per color buffer. For RGBA visuals, +Number of bits per color buffer. For RGBA visuals, @code{GLX_BUFFER_SIZE} is the sum of @code{GLX_RED_SIZE}, @code{GLX_GREEN_SIZE}, @code{GLX_BLUE_SIZE}, and @code{GLX_ALPHA_SIZE}. For color index visuals, @code{GLX_BUFFER_SIZE} is the size of the color indexes. @item @code{GLX_LEVEL} -Frame buffer level of the visual. Level zero is the default frame -buffer. Positive levels correspond to frame buffers that overlay the +Frame buffer level of the visual. Level zero is the default frame +buffer. Positive levels correspond to frame buffers that overlay the default buffer, and negative levels correspond to frame buffers that underlay the default buffer. @@ -1157,23 +1158,23 @@ swapped, @code{False} otherwise. otherwise. @item @code{GLX_AUX_BUFFERS} -Number of auxiliary color buffers that are available. Zero indicates +Number of auxiliary color buffers that are available. Zero indicates that no auxiliary color buffers exist. @item @code{GLX_RED_SIZE} -Number of bits of red stored in each color buffer. Undefined if +Number of bits of red stored in each color buffer. Undefined if @code{GLX_RGBA} is @code{False}. @item @code{GLX_GREEN_SIZE} -Number of bits of green stored in each color buffer. Undefined if +Number of bits of green stored in each color buffer. Undefined if @code{GLX_RGBA} is @code{False}. @item @code{GLX_BLUE_SIZE} -Number of bits of blue stored in each color buffer. Undefined if +Number of bits of blue stored in each color buffer. Undefined if @code{GLX_RGBA} is @code{False}. @item @code{GLX_ALPHA_SIZE} -Number of bits of alpha stored in each color buffer. Undefined if +Number of bits of alpha stored in each color buffer. Undefined if @code{GLX_RGBA} is @code{False}. @item @code{GLX_DEPTH_SIZE} @@ -1197,15 +1198,15 @@ Number of bits of alpha stored in the accumulation buffer. @end table The X protocol allows a single visual ID to be instantiated with -different numbers of bits per pixel. Windows or GLX pixmaps that will be -rendered with OpenGL, however, must be instantiated with a color buffer -depth of @code{GLX_BUFFER_SIZE}. +different numbers of bits per pixel. Windows or GLX pixmaps that will +be rendered with OpenGL, however, must be instantiated with a color +buffer depth of @code{GLX_BUFFER_SIZE}. Although a GLX implementation can export many visuals that support GL -rendering, it must support at least one RGBA visual. This visual must +rendering, it must support at least one RGBA visual. This visual must have at least one color buffer, a stencil buffer of at least 1 bit, a -depth buffer of at least 12 bits, and an accumulation buffer. Alpha -bitplanes are optional in this visual. However, its color buffer size +depth buffer of at least 12 bits, and an accumulation buffer. Alpha +bitplanes are optional in this visual. However, its color buffer size must be as great as that of the deepest @code{TrueColor}, @code{DirectColor}, @code{PseudoColor}, or @code{StaticColor} visual supported on level zero, and it must itself be made available on level @@ -1213,13 +1214,13 @@ zero. In addition, if the X server exports a @code{PseudoColor} or @code{StaticColor} visual on framebuffer level 0, a color index visual -is also required on that level. It must have at least one color buffer, +is also required on that level. It must have at least one color buffer, a stencil buffer of at least 1 bit, and a depth buffer of at least 12 -bits. This visual must have as many color bitplanes as the deepest +bits. This visual must have as many color bitplanes as the deepest @code{PseudoColor} or @code{StaticColor} visual supported on level 0. Applications are best written to select the visual that most closely -meets their requirements. Creating windows or GLX pixmaps with +meets their requirements. Creating windows or GLX pixmaps with unnecessary buffers can result in reduced rendering performance as well as poor resource allocation. @@ -1252,7 +1253,7 @@ No round trip is forced to the server; unlike most X calls that return a value, @code{glXGetContextIDEXT} does not flush any pending events. @code{glXGetContextIDEXT} is part of the @code{EXT_import_context} -extension, not part of the core GLX command set. If +extension, not part of the core GLX command set. If _glxextstring(EXT_import_context) is included in the string returned by @code{glXQueryExtensionsString}, when called with argument @code{GLX_EXTENSIONS}, extension @code{EXT_import_context} is supported. @@ -1266,11 +1267,11 @@ context. Return the current context. @code{glXGetCurrentContext} returns the current context, as specified by -@code{glXMakeCurrent}. If there is no current context, @code{NULL} is +@code{glXMakeCurrent}. If there is no current context, @code{NULL} is returned. -@code{glXGetCurrentContext} returns client-side information. It does not -make a round trip to the server. +@code{glXGetCurrentContext} returns client-side information. It does +not make a round trip to the server. @@ -1282,8 +1283,8 @@ Get display for current context. @code{glXGetCurrentDisplay} returns the display for the current context. If no context is current, @code{NULL} is returned. -@code{glXGetCurrentDisplay} returns client-side information. It does not -make a round-trip to the server, and therefore does not flush any +@code{glXGetCurrentDisplay} returns client-side information. It does +not make a round-trip to the server, and therefore does not flush any pending events. @end deftypefun @@ -1292,10 +1293,10 @@ pending events. Return the current drawable. @code{glXGetCurrentDrawable} returns the current drawable, as specified -by @code{glXMakeCurrent}. If there is no current drawable, @code{None} +by @code{glXMakeCurrent}. If there is no current drawable, @code{None} is returned. -@code{glXGetCurrentDrawable} returns client-side information. It does +@code{glXGetCurrentDrawable} returns client-side information. It does not make a round trip to the server. @end deftypefun @@ -1304,10 +1305,10 @@ not make a round trip to the server. Return the current drawable. @code{glXGetCurrentReadDrawable} returns the current read drawable, as -specified by @code{read} parameter of @code{glXMakeContextCurrent}. If +specified by @code{read} parameter of @code{glXMakeContextCurrent}. If there is no current drawable, @code{None} is returned. -@code{glXGetCurrentReadDrawable} returns client-side information. It +@code{glXGetCurrentReadDrawable} returns client-side information. It does not make a round-trip to the server. @end deftypefun @@ -1333,7 +1334,7 @@ Returns the requested value. @code{glXGetFBConfigAttrib} sets @var{value} to the @var{attribute} value of GLX drawables created with respect to @var{config}. @code{glXGetFBConfigAttrib} returns an error code if it fails for any -reason. Otherwise, @code{Success} is returned. +reason. Otherwise, @code{Success} is returned. @var{attribute} is one of the following: @@ -1346,19 +1347,19 @@ XID of the given GLXFBConfig. @item @code{GLX_BUFFER_SIZE} -Number of bits per color buffer. If the frame buffer configuration +Number of bits per color buffer. If the frame buffer configuration supports RGBA contexts, then @code{GLX_BUFFER_SIZE} is the sum of @code{GLX_RED_SIZE}, @code{GLX_GREEN_SIZE}, @code{GLX_BLUE_SIZE}, and -@code{GLX_ALPHA_SIZE}. If the frame buffer configuration supports only +@code{GLX_ALPHA_SIZE}. If the frame buffer configuration supports only color index contexts, @code{GLX_BUFFER_SIZE} is the size of the color indexes. @item @code{GLX_LEVEL} -Frame buffer level of the configuration. Level zero is the default frame -buffer. Positive levels correspond to frame buffers that overlay the -default buffer, and negative levels correspond to frame buffers that +Frame buffer level of the configuration. Level zero is the default +frame buffer. Positive levels correspond to frame buffers that overlay +the default buffer, and negative levels correspond to frame buffers that underlie the default buffer. @item @code{GLX_DOUBLEBUFFER} @@ -1376,31 +1377,31 @@ otherwise. @item @code{GLX_AUX_BUFFERS} -Number of auxiliary color buffers that are available. Zero indicates +Number of auxiliary color buffers that are available. Zero indicates that no auxiliary color buffers exist. @item @code{GLX_RED_SIZE} -Number of bits of red stored in each color buffer. Undefined if RGBA +Number of bits of red stored in each color buffer. Undefined if RGBA contexts are not supported by the frame buffer configuration. @item @code{GLX_GREEN_SIZE} -Number of bits of green stored in each color buffer. Undefined if RGBA +Number of bits of green stored in each color buffer. Undefined if RGBA contexts are not supported by the frame buffer configuration. @item @code{GLX_BLUE_SIZE} -Number of bits of blue stored in each color buffer. Undefined if RGBA +Number of bits of blue stored in each color buffer. Undefined if RGBA contexts are not supported by the frame buffer configuration. @item @code{GLX_ALPHA_SIZE} -Number of bits of alpha stored in each color buffer. Undefined if RGBA +Number of bits of alpha stored in each color buffer. Undefined if RGBA contexts are not supported by the frame buffer configuration. @item @code{GLX_DEPTH_SIZE} @@ -1437,14 +1438,14 @@ Number of bits of alpha stored in the accumulation buffer. Mask indicating what type of GLX contexts can be made current to the -frame buffer configuration. Valid bits are @code{GLX_RGBA_BIT} and +frame buffer configuration. Valid bits are @code{GLX_RGBA_BIT} and @code{GLX_COLOR_INDEX_BIT}. @item @code{GLX_DRAWABLE_TYPE} Mask indicating what drawable types the frame buffer configuration -supports. Valid bits are @code{GLX_WINDOW_BIT}, @code{GLX_PIXMAP_BIT}, +supports. Valid bits are @code{GLX_WINDOW_BIT}, @code{GLX_PIXMAP_BIT}, and @code{GLX_PBUFFER_BIT}. @item @code{GLX_X_RENDERABLE} @@ -1464,7 +1465,7 @@ set). @item @code{GLX_X_VISUAL_TYPE} -Visual type of associated visual. The returned value will be one of: +Visual type of associated visual. The returned value will be one of: @code{GLX_TRUE_COLOR}, @code{GLX_DIRECT_COLOR}, @code{GLX_PSEUDO_COLOR}, @code{GLX_STATIC_COLOR}, @code{GLX_GRAY_SCALE}, @code{GLX_STATIC_GRAY}, or @code{GLX_NONE}, if there is no associated visual (i.e., if @@ -1495,7 +1496,7 @@ respectively. Integer value between 0 and the maximum frame buffer value for indices, indicating the transparent index value for the frame buffer -configuration. Undefined if @code{GLX_TRANSPARENT_TYPE} is not +configuration. Undefined if @code{GLX_TRANSPARENT_TYPE} is not @code{GLX_TRANSPARENT_INDEX}. @item @code{GLX_TRANSPARENT_RED_VALUE} @@ -1511,7 +1512,7 @@ Undefined if @code{GLX_TRANSPARENT_TYPE} is not Integer value between 0 and the maximum frame buffer value for green, indicating the transparent green value for the frame buffer -configuration. Undefined if @code{GLX_TRANSPARENT_TYPE} is not +configuration. Undefined if @code{GLX_TRANSPARENT_TYPE} is not @code{GLX_TRANSPARENT_RGB}. @item @code{GLX_TRANSPARENT_BLUE_VALUE} @@ -1519,7 +1520,7 @@ configuration. Undefined if @code{GLX_TRANSPARENT_TYPE} is not Integer value between 0 and the maximum frame buffer value for blue, indicating the transparent blue value for the frame buffer -configuration. Undefined if @code{GLX_TRANSPARENT_TYPE} is not +configuration. Undefined if @code{GLX_TRANSPARENT_TYPE} is not @code{GLX_TRANSPARENT_RGB}. @item @code{GLX_TRANSPARENT_ALPHA_VALUE} @@ -1527,7 +1528,7 @@ configuration. Undefined if @code{GLX_TRANSPARENT_TYPE} is not Integer value between 0 and the maximum frame buffer value for alpha, indicating the transparent blue value for the frame buffer -configuration. Undefined if @code{GLX_TRANSPARENT_TYPE} is not +configuration. Undefined if @code{GLX_TRANSPARENT_TYPE} is not @code{GLX_TRANSPARENT_RGB}. @item @code{GLX_MAX_PBUFFER_WIDTH} @@ -1545,20 +1546,20 @@ The maximum height that can be specified to @code{glXCreatePbuffer}. The maximum number of pixels (width times height) for a pixel buffer. Note that this value may be less than @code{GLX_MAX_PBUFFER_WIDTH} times -@code{GLX_MAX_PBUFFER_HEIGHT}. Also, this value is static and assumes +@code{GLX_MAX_PBUFFER_HEIGHT}. Also, this value is static and assumes that no other pixel buffers or X resources are contending for the frame -buffer memory. As a result, it may not be possible to allocate a pixel +buffer memory. As a result, it may not be possible to allocate a pixel buffer of the size given by @code{GLX_MAX_PBUFFER_PIXELS}. @end table Applications should choose the frame buffer configuration that most -closely meets their requirements. Creating windows, GLX pixmaps, or GLX +closely meets their requirements. Creating windows, GLX pixmaps, or GLX pixel buffers with unnecessary buffers can result in reduced rendering performance as well as poor resource allocation. @code{GLX_NO_EXTENSION} is returned if @var{dpy} does not support the -GLX extension. @code{GLX_BAD_ATTRIBUTE} is returned if @var{attribute} +GLX extension. @code{GLX_BAD_ATTRIBUTE} is returned if @var{attribute} is not a valid GLX attribute. @end deftypefun @@ -1579,8 +1580,8 @@ Returns the number of GLXFBConfigs returned. @end table @code{glXGetFBConfigs} returns a list of all GLXFBConfigs available on -the screen specified by @var{screen}. Use @code{glXGetFBConfigAttrib} to -obtain attribute values from a specific GLXFBConfig. +the screen specified by @var{screen}. Use @code{glXGetFBConfigAttrib} +to obtain attribute values from a specific GLXFBConfig. @end deftypefun @@ -1595,7 +1596,7 @@ returned. @end table @code{glXGetProcAddress} returns the address of the function specified -in @var{procName}. This is necessary in environments where the OpenGL +in @var{procName}. This is necessary in environments where the OpenGL link library exports a different set of functions than the runtime library. @@ -1609,7 +1610,7 @@ Returns GLX events that are selected for a window or a GLX pixel buffer. Specifies the connection to the X server. @item @var{draw} -Specifies a GLX drawable. Must be a GLX pixel buffer or a window. +Specifies a GLX drawable. Must be a GLX pixel buffer or a window. @item @var{event_mask} Returns the events that are selected for @var{draw}. @@ -1638,7 +1639,7 @@ Specifies the GLX frame buffer configuration. If @var{config} is a valid GLX frame buffer configuration and it has an associated X Visual, then information describing that visual is -returned; otherwise @code{NULL} is returned. Use @code{XFree} to free +returned; otherwise @code{NULL} is returned. Use @code{XFree} to free the data returned. Returns @code{NULL} if @var{config} is not a valid GLXFBConfig. @@ -1658,27 +1659,28 @@ Specifies a GLX rendering context. @end table @code{glXImportContextEXT} creates a GLXContext given the XID of an -existing GLXContext. It may be used in place of @code{glXCreateContext}, -to share another process's indirect rendering context. +existing GLXContext. It may be used in place of +@code{glXCreateContext}, to share another process's indirect rendering +context. Only the server-side context information can be shared between X clients; client-side state, such as pixel storage modes, cannot be -shared. Thus, @code{glXImportContextEXT} must allocate memory to store -client-side information. This memory is freed by calling +shared. Thus, @code{glXImportContextEXT} must allocate memory to store +client-side information. This memory is freed by calling @code{glXFreeContextEXT}. -This call does not create a new XID. It merely makes an existing object -available to the importing client (Display *). Like any XID, it goes +This call does not create a new XID. It merely makes an existing object +available to the importing client (Display *). Like any XID, it goes away when the creating client drops its connection or the ID is -explicitly deleted. Note that this is when the XID goes away. The object -goes away when the XID goes away AND the context is not current to any -thread. +explicitly deleted. Note that this is when the XID goes away. The +object goes away when the XID goes away AND the context is not current +to any thread. If @var{contextID} refers to a direct rendering context then no error is generated but @code{glXImportContextEXT} returns NULL. @code{glXImportContextEXT} is part of the @code{EXT_import_context} -extension, not part of the core GLX command set. If +extension, not part of the core GLX command set. If _glxextstring(EXT_import_context) is included in the string returned by @code{glXQueryExtensionsString}, when called with argument @code{GLX_EXTENSIONS}, extension @code{EXT_import_context} is supported. @@ -1701,9 +1703,9 @@ Specifies the GLX context that is being queried. @end table @code{glXIsDirect} returns @code{True} if @var{ctx} is a direct -rendering context, @code{False} otherwise. Direct rendering contexts +rendering context, @code{False} otherwise. Direct rendering contexts pass rendering commands directly from the calling process's address -space to the rendering system, bypassing the X server. Nondirect +space to the rendering system, bypassing the X server. Nondirect rendering contexts pass all rendering commands to the X server. @code{GLXBadContext} is generated if @var{ctx} is not a valid GLX @@ -1719,11 +1721,11 @@ Attach a GLX context to a GLX drawable. Specifies the connection to the X server. @item @var{draw} -Specifies a GLX drawable to render into. Must be an XID representing a +Specifies a GLX drawable to render into. Must be an XID representing a GLXWindow, GLXPixmap, or GLXPbuffer. @item @var{read} -Specifies a GLX drawable to read from. Must be an XID representing a +Specifies a GLX drawable to read from. Must be an XID representing a GLXWindow, GLXPixmap, or GLXPbuffer. @item @var{ctx} @@ -1732,13 +1734,13 @@ Specifies the GLX context to be bound to @var{read} and @var{ctx}. @end table @code{glXMakeContextCurrent} binds @var{ctx} to the current rendering -thread and to the @var{draw} and @var{read} GLX drawables. @var{draw} +thread and to the @var{draw} and @var{read} GLX drawables. @var{draw} and @var{read} may be the same. @var{draw} is used for all OpenGL operations except: Any pixel data that are read based on the value of -@code{GLX_READ_BUFFER}. Note that accumulation operations use the value +@code{GLX_READ_BUFFER}. Note that accumulation operations use the value of @code{GLX_READ_BUFFER}, but are not allowed unless @var{draw} is identical to @var{read}. @@ -1754,7 +1756,7 @@ If the current rendering thread has a current rendering context, that context is flushed and replaced by @var{ctx}. The first time that @var{ctx} is made current, the viewport and scissor -dimensions are set to the size of the @var{draw} drawable. The viewport +dimensions are set to the size of the @var{draw} drawable. The viewport and scissor are not modified when @var{ctx} is subsequently made current. @@ -1763,7 +1765,7 @@ To release the current context without assigning a new one, call @code{None} and @var{ctx} set to @code{NULL}. @code{glXMakeContextCurrent} returns @code{True} if it is successful, -@code{False} otherwise. If @code{False} is returned, the previously +@code{False} otherwise. If @code{False} is returned, the previously current rendering context and drawable (if any) remain unchanged. @code{BadMatch} is generated if @var{draw} and @var{read} are not @@ -1816,7 +1818,7 @@ Attach a GLX context to a window or a GLX pixmap. Specifies the connection to the X server. @item @var{drawable} -Specifies a GLX drawable. Must be either an X window ID or a GLX pixmap +Specifies a GLX drawable. Must be either an X window ID or a GLX pixmap ID. @item @var{ctx} @@ -1828,9 +1830,9 @@ Specifies a GLX rendering context that is to be attached to @code{glXMakeCurrent} does two things: It makes @var{ctx} the current GLX rendering context of the calling thread, replacing the previously current context if there was one, and it attaches @var{ctx} to a GLX -drawable, either a window or a GLX pixmap. As a result of these two +drawable, either a window or a GLX pixmap. As a result of these two actions, subsequent GL rendering calls use rendering context @var{ctx} -to modify GLX drawable @var{drawable} (for reading and writing). Because +to modify GLX drawable @var{drawable} (for reading and writing). Because @code{glXMakeCurrent} always replaces the current rendering context with @var{ctx}, there can be only one current context per thread. @@ -1838,7 +1840,7 @@ Pending commands to the previous context, if any, are flushed before it is released. The first time @var{ctx} is made current to any thread, its viewport is -set to the full size of @var{drawable}. Subsequent calls by any thread +set to the full size of @var{drawable}. Subsequent calls by any thread to @code{glXMakeCurrent} with @var{ctx} have no effect on its viewport. To release the current context without assigning a new one, call @@ -1846,11 +1848,11 @@ To release the current context without assigning a new one, call @var{ctx} set to @code{NULL}. @code{glXMakeCurrent} returns @code{True} if it is successful, -@code{False} otherwise. If @code{False} is returned, the previously +@code{False} otherwise. If @code{False} is returned, the previously current rendering context and drawable (if any) remain unchanged. @code{BadMatch} is generated if @var{drawable} was not created with the -same X screen and visual as @var{ctx}. It is also generated if +same X screen and visual as @var{ctx}. It is also generated if @var{drawable} is @code{None} and @var{ctx} is not @code{NULL}. @code{BadAccess} is generated if @var{ctx} was current to another thread @@ -1891,7 +1893,7 @@ Specifies the connection to the X server. Specifies a GLX rendering context. @item @var{attribute} -Specifies that a context parameter should be retrieved. Must be one of +Specifies that a context parameter should be retrieved. Must be one of @code{GLX_SHARED_CONTEXT_EXT}, @code{GLX_VISUAL_ID_EXT}, or @code{GLX_SCREEN_EXT}. @@ -1901,8 +1903,8 @@ Contains the return value for @var{attribute}. @end table @code{glXQueryContextInfoEXT} sets @var{value} to the value of -@var{attribute} with respect to @var{ctx}. @code{glXQueryContextInfoEXT} -returns an error code if it fails for any reason. Otherwise, +@var{attribute} with respect to @var{ctx}. @code{glXQueryContextInfoEXT} +returns an error code if it fails for any reason. Otherwise, @code{Success} is returned. @var{attribute} may be one of the following: @@ -1923,7 +1925,7 @@ Returns the screen number associated with @var{ctx}. This call may cause a round-trip to the server. @code{glXQueryContextInfoEXT} is part of the @code{EXT_import_context} -extension, not part of the core GLX command set. If +extension, not part of the core GLX command set. If _glxextstring(EXT_import_context) is included in the string returned by @code{glXQueryExtensionsString}, when called with argument @code{GLX_EXTENSIONS}, extension @code{EXT_import_context} is supported. @@ -1950,7 +1952,7 @@ Specifies the connection to the X server. Specifies a GLX rendering context. @item @var{attribute} -Specifies that a context parameter should be retrieved. Must be one of +Specifies that a context parameter should be retrieved. Must be one of @code{GLX_FBCONFIG_ID}, @code{GLX_RENDER_TYPE}, or @code{GLX_SCREEN}. @item @var{value} @@ -1959,7 +1961,7 @@ Contains the return value for @var{attribute}. @end table @code{glXQueryContext} sets @var{value} to the value of @var{attribute} -with respect to @var{ctx}. @var{attribute} may be one of the following: +with respect to @var{ctx}. @var{attribute} may be one of the following: @table @asis @item @code{GLX_FBCONFIG_ID} @@ -1994,8 +1996,8 @@ Specifies the connection to the X server. Specifies the GLX drawable to be queried. @item @var{attribute} -Specifies the attribute to be returned. Must be one of @code{GLX_WIDTH}, -@code{GLX_HEIGHT}, @code{GLX_PRESERVED_CONTENTS}, +Specifies the attribute to be returned. Must be one of +@code{GLX_WIDTH}, @code{GLX_HEIGHT}, @code{GLX_PRESERVED_CONTENTS}, @code{GLX_LARGEST_PBUFFER}, or @code{GLX_FBCONFIG_ID}. @item @var{value} @@ -2021,10 +2023,10 @@ resource conflict occurs; @code{False} otherwise. @item @code{GLX_LARGEST_PBUFFER} Returns the value set when @code{glXCreatePbuffer} was called to create -the GLXPbuffer. If @code{False} is returned, then the call to +the GLXPbuffer. If @code{False} is returned, then the call to @code{glXCreatePbuffer} will fail to create a GLXPbuffer if the requested size is larger than the implementation maximum or available -resources. If @code{True} is returned, a GLXPbuffer of the maximum +resources. If @code{True} is returned, a GLXPbuffer of the maximum availble size (if less than the requested width and height) is created. @item @code{GLX_FBCONFIG_ID} @@ -2034,7 +2036,7 @@ Returns the XID for @var{draw}. If @var{draw} is a GLXWindow or GLXPixmap and @var{attribute} is set to @code{GLX_PRESERVED_CONTENTS} or @code{GLX_LARGETST_PBUFFER}, the -contents of @var{value} are undefined. If @var{attribute} is not one of +contents of @var{value} are undefined. If @var{attribute} is not one of the attributes listed above, the contents of @var{value} are unedfined. A @code{GLXBadDrawable} is generated if @var{draw} is not a valid @@ -2055,7 +2057,7 @@ Specifies the screen number. @end table @code{glXQueryExtensionsString} returns a pointer to a string describing -which GLX extensions are supported on the connection. The string is +which GLX extensions are supported on the connection. The string is null-terminated and contains a space-separated list of extension names. (The extension names themselves never contain spaces.) If there are no extensions to GLX, then the empty string is returned. @@ -2080,9 +2082,9 @@ Returns the base event code of the GLX server extension. @code{glXQueryExtension} returns @code{True} if the X server of connection @var{dpy} supports the GLX extension, @code{False} otherwise. If @code{True} is returned, then @var{errorBase} and @var{eventBase} -return the error base and event base of the GLX extension. These values +return the error base and event base of the GLX extension. These values should be added to the constant error and event values to determine the -actual event or error values. Otherwise, @var{errorBase} and +actual event or error values. Otherwise, @var{errorBase} and @var{eventBase} are unchanged. @var{errorBase} and @var{eventBase} do not return values if they are @@ -2108,8 +2110,8 @@ Specifies which string is returned: one of @code{GLX_VENDOR}, @code{glXQueryServerString} returns a pointer to a static, null-terminated string describing some aspect of the server's GLX -extension. The possible values for @var{name} and the format of the -strings is the same as for @code{glXGetClientString}. If @var{name} is +extension. The possible values for @var{name} and the format of the +strings is the same as for @code{glXGetClientString}. If @var{name} is not set to a recognized value, @code{NULL} is returned. @end deftypefun @@ -2131,9 +2133,9 @@ Returns the minor version number of the GLX server extension. @code{glXQueryVersion} returns the major and minor version numbers of the GLX extension implemented by the server associated with connection -@var{dpy}. Implementations with the same major version number are upward -compatible, meaning that the implementation with the higher minor number -is a superset of the version with the lower minor number. +@var{dpy}. Implementations with the same major version number are +upward compatible, meaning that the implementation with the higher minor +number is a superset of the version with the lower minor number. @var{major} and @var{minor} do not return values if they are specified as @code{NULL}. @@ -2154,7 +2156,7 @@ Select GLX events for a window or a GLX pixel buffer. Specifies the connection to the X server. @item @var{draw} -Specifies a GLX drawable. Must be a GLX pixel buffer or a window. +Specifies a GLX drawable. Must be a GLX pixel buffer or a window. @item @var{event_mask} Specifies the events to be returned for @var{draw}. @@ -2162,14 +2164,14 @@ Specifies the events to be returned for @var{draw}. @end table @code{glXSelectEvent} sets the GLX event mask for a GLX pixel buffer or -a window. Calling @code{glXSelectEvent} overrides any previous event -mask that was set by the client for @var{draw}. Note that it does not +a window. Calling @code{glXSelectEvent} overrides any previous event +mask that was set by the client for @var{draw}. Note that it does not affect the event masks that other clients may have specified for @var{draw} since each client rendering to @var{draw} has a separate event mask for it. Currently, only one GLX event, @code{GLX_PBUFFER_CLOBBER_MASK}, can be -selected. The following data is returned to the client when a +selected. The following data is returned to the client when a @code{GLX_PBUFFER_CLOBBER_MASK} event occurs: typedef struct @{ @@ -2197,7 +2199,7 @@ Display @var{*display}; @item GLXDrawable @var{drawable}; -/* i.d. of Drawable */ +/* i.d. of Drawable */ @item unsigned int @var{buffer_mask}; @@ -2253,41 +2255,41 @@ Accumulation buffer @end table A single X server operation can cause several buffer clobber events to -be sent. (e.g., a single GLX pixel buffer may be damaged and cause -multiple buffer clobber events to be generated). Each event specifies +be sent. (e.g., a single GLX pixel buffer may be damaged and cause +multiple buffer clobber events to be generated). Each event specifies one region of the GLX drawable that was affected by the X Server -operation. The @var{buffer_mask} field indicates which color buffers and -ancillary buffers were affected. All the buffer clobber events generated -by a single X server action are guaranteed to be contiguous in the event -queue. The conditions under which this event is generated and the -@var{event_type} varies, depending on the type of the GLX drawable. +operation. The @var{buffer_mask} field indicates which color buffers +and ancillary buffers were affected. All the buffer clobber events +generated by a single X server action are guaranteed to be contiguous in +the event queue. The conditions under which this event is generated and +the @var{event_type} varies, depending on the type of the GLX drawable. When the @code{GLX_AUX_BUFFERS_BIT} is set in @var{buffer_mask}, then -@var{aux_buffer} is set to indicate which buffer was affected. If more +@var{aux_buffer} is set to indicate which buffer was affected. If more than one aux buffer was affected, then additional events are generated -as part of the same contiguous event group. Each additional event will +as part of the same contiguous event group. Each additional event will have only the @code{GLX_AUX_BUFFERS_BIT} set in @var{buffer_mask}, and -the @var{aux_buffer} field will be set appropriately. For nonstereo +the @var{aux_buffer} field will be set appropriately. For nonstereo drawables, @code{GLX_FRONT_LEFT_BUFFER_BIT} and @code{GLX_BACK_LEFT_BUFFER_BIT} are used to specify the front and back color buffers. For preserved GLX pixel buffers, a buffer clobber event with type @code{GLX_SAVED} is generated whenever the contents of the GLX pixel -buffer is moved out of offscreen memory. The event(s) describes which -portions of the GLX pixel buffer were affected. Clients who receive many -buffer clobber events, referring to different save actions, should +buffer is moved out of offscreen memory. The event(s) describes which +portions of the GLX pixel buffer were affected. Clients who receive +many buffer clobber events, referring to different save actions, should consider freeing the GLX pixel buffer resource in order to prevent the system from thrashing due to insufficient resources. For an unpreserved GLXPbuffer, a buffer clobber event, with type @code{GLX_DAMAGED}, is generated whenever a portion of the GLX pixel -buffer becomes invalid. The client may wish to regenerate the invalid +buffer becomes invalid. The client may wish to regenerate the invalid portions of the GLX pixel buffer. For Windows, buffer clobber events, with type @code{GLX_SAVED}, occur whenever an ancillary buffer, associated with the window, gets clobbered -or moved out of off-screen memory. The event contains information +or moved out of off-screen memory. The event contains information indicating which color buffers and ancillary buffers\(emand which portions of those buffers\(emwere affected. @@ -2310,12 +2312,12 @@ Specifies the drawable whose buffers are to be swapped. @code{glXSwapBuffers} promotes the contents of the back buffer of @var{drawable} to become the contents of the front buffer of -@var{drawable}. The contents of the back buffer then become undefined. +@var{drawable}. The contents of the back buffer then become undefined. The update typically takes place during the vertical retrace of the monitor, rather than immediately after @code{glXSwapBuffers} is called. @code{glXSwapBuffers} performs an implicit @code{glFlush} before it -returns. Subsequent OpenGL commands may be issued immediately after +returns. Subsequent OpenGL commands may be issued immediately after calling @code{glXSwapBuffers}, but are not executed until the buffer exchange is completed. @@ -2352,14 +2354,14 @@ Specifies the index of the first display list to be generated. @code{glXUseXFont} generates @var{count} display lists, named @var{listBase} through @r{@var{listBase}+@var{count}-1}, each containing -a single @code{glBitmap} command. The parameters of the @code{glBitmap} +a single @code{glBitmap} command. The parameters of the @code{glBitmap} command of display list @r{@var{listBase}+@var{i}} are derived from -glyph @r{@var{first}+@var{i}}. Bitmap parameters @r{@var{xorig}}, +glyph @r{@var{first}+@var{i}}. Bitmap parameters @r{@var{xorig}}, @r{@var{yorig}}, @r{@var{width}}, and @r{@var{height}} are computed from font metrics as @r{@var{descent}-1}, @r{-@var{lbearing}}, @r{@var{rbearing}-@var{lbearing}}, and @r{@var{ascent}+@var{descent}}, -respectively. @r{@var{xmove}} is taken from the glyph's @r{@var{width}} -metric, and @r{@var{ymove}} is set to zero. Finally, the glyph's image +respectively. @r{@var{xmove}} is taken from the glyph's @r{@var{width}} +metric, and @r{@var{ymove}} is set to zero. Finally, the glyph's image is converted to the appropriate format for @code{glBitmap}. Using @code{glXUseXFont} may be more efficient than accessing the X font @@ -2369,8 +2371,8 @@ glyph data, and because the server may choose to delay the creation of each bitmap until it is accessed. Empty display lists are created for all glyphs that are requested and -are not defined in @var{font}. @code{glXUseXFont} is ignored if there is -no current GLX context. +are not defined in @var{font}. @code{glXUseXFont} is ignored if there +is no current GLX context. @code{BadFont} is generated if @var{font} is not a valid font. @@ -2387,7 +2389,7 @@ is no longer valid. Complete GL execution prior to subsequent X calls. GL rendering calls made prior to @code{glXWaitGL} are guaranteed to be -executed before X rendering calls made after @code{glXWaitGL}. Although +executed before X rendering calls made after @code{glXWaitGL}. Although this same result can be achieved using @code{glFinish}, @code{glXWaitGL} does not require a round trip to the server, and it is therefore more efficient in cases where client and server are on separate machines. @@ -2404,7 +2406,7 @@ is no longer valid. Complete X execution prior to subsequent GL calls. X rendering calls made prior to @code{glXWaitX} are guaranteed to be -executed before GL rendering calls made after @code{glXWaitX}. Although +executed before GL rendering calls made after @code{glXWaitX}. Although the same result can be achieved using @code{XSync}, @code{glXWaitX} does not require a round trip to the server, and it is therefore more efficient in cases where client and server are on separate machines. diff --git a/figl/gl/enums.scm b/figl/gl/enums.scm index e218e7f..04f3097 100644 --- a/figl/gl/enums.scm +++ b/figl/gl/enums.scm @@ -48,7 +48,7 @@ arb-shader-storage-buffer-object intel-map-texture boolean - begin-mode + primitive-type version-3-2 arb-geometry-shader-4 nv-geometry-program-4 @@ -91,6 +91,7 @@ get-pixel-map get-pointerv-p-name get-p-name + ext-vertex-weighting qcom-alpha-test ext-unpack-subimage ext-multiview-draw-buffers @@ -189,6 +190,7 @@ ext-polygon-offset ext-rescale-normal ext-texture + arm-rgba-8 ext-texture-object ext-texture-3d oes-texture-3d @@ -196,11 +198,11 @@ sgix-interlace sgis-detail-texture sgis-multisample - nv-multisample-coverage sgis-sharpen-texture sgi-color-matrix sgi-texture-color-table sgix-texture-add-env + arb-shadow-ambient sgix-shadow-ambient version-1-4 ext-blend-func-separate @@ -209,6 +211,11 @@ sgi-color-table arb-vertex-array-bgra ext-bgra + ext-paletted-texture + ext-draw-range-elements + win-phong-shading + win-specular-fog + ext-clip-volume-hint sgis-texture-select arb-point-parameters ext-point-parameters @@ -225,6 +232,9 @@ sgis-texture-filter-4 sgix-sprite hp-convolution-border-modes + hp-image-transform + hp-occlusion-test + hp-texture-lighting sgix-clipmap sgix-texture-scale-bias sgix-reference-plane @@ -294,12 +304,12 @@ intel-parallel-arrays sgix-fragment-lighting sgix-resample + ext-coordinate-frame version-1-5 ext-fog-coord ext-secondary-color arb-vertex-program version-2-1 - sgix-icc-texture rend-screen-coordinates arb-multitexture oes-texture-env-crossbar @@ -315,7 +325,7 @@ oes-packed-depth-stencil ext-texture-lod-bias ext-texture-filter-anisotropic - ext-vertex-weighting + nv-texture-env-combine-4 nv-light-max-exponent ext-stencil-wrap oes-stencil-wrap @@ -332,7 +342,6 @@ ingr-color-clamp ingr-interlace-read ext-texture-env-combine - nv-texture-env-combine-4 sgix-subsample ext-texture-perturb-normal apple-specular-vector @@ -506,6 +515,7 @@ arb-shader-subroutine oes-vertex-type-10-10-10-2 nv-conditional-render + nv-multisample-coverage arb-transform-feedback-2 nv-transform-feedback-2 nv-present-video @@ -518,6 +528,7 @@ arb-texture-multisample nv-explicit-multisample nv-gpu-program-5 + version-4-0 arb-texture-gather arb-transform-feedback-3 arb-texture-compression-bptc @@ -528,10 +539,11 @@ arb-draw-indirect arb-gpu-shader-fp-64 arm-mali-shader-binary + arm-mali-program-binary qcom-driver-control qcom-binning-control viv-shader-binary - amd-vertex-shader-tesselator + amd-vertex-shader-tessellator arb-texture-cube-map-array ext-texture-snorm amd-blend-minmax-factor @@ -568,7 +580,12 @@ angle-texture-usage angle-pack-reverse-row-order angle-depth-texture - gl-khr-texture-compression-astc-ldr)) + gl-khr-texture-compression-astc-ldr + ibm-rasterpos-clip + ibm-cull-vertex + ibm-static-data + pgi-misc-hints + pgi-vertex-hints)) (define-bitfield attrib-mask @@ -1233,7 +1250,6 @@ (fragment-shader-bit-ext 2) (all-shader-bits-ext 4294967295) (program-separable-ext 33368) - (active-program-ext 33369) (program-pipeline-binding-ext 33370) (active-program-ext 35725)) @@ -1396,7 +1412,7 @@ (define-enumeration boolean (false 0) (true 1)) (define-enumeration - begin-mode + primitive-type (points 0) (lines 1) (line-loop 2) @@ -2856,6 +2872,22 @@ (post-color-matrix-color-table-sgi 32978) (texture-color-table-sgi 32956)) +(define-enumeration + ext-vertex-weighting + (modelview0-stack-depth-ext 2979) + (modelview0-matrix-ext 2982) + (modelview0-ext 5888) + (modelview1-stack-depth-ext 34050) + (modelview1-matrix-ext 34054) + (vertex-weighting-ext 34057) + (modelview1-ext 34058) + (current-vertex-weight-ext 34059) + (vertex-weight-array-ext 34060) + (vertex-weight-array-size-ext 34061) + (vertex-weight-array-type-ext 34062) + (vertex-weight-array-stride-ext 34063) + (vertex-weight-array-pointer-ext 34064)) + (define-enumeration qcom-alpha-test (alpha-test-qcom 3008) @@ -3224,24 +3256,7 @@ (depth-ext 6145) (stencil-ext 6146)) -(define-enumeration - pixel-format - (color-index 6400) - (stencil-index 6401) - (depth-component 6402) - (red 6403) - (green 6404) - (blue 6405) - (alpha 6406) - (rgb 6407) - (rgba 6408) - (luminance 6409) - (luminance-alpha 6410) - (abgr-ext 32768) - (cmyk-ext 32780) - (cmyka-ext 32781) - (ycrcb-422-sgix 33211) - (ycrcb-444-sgix 33212)) +(define-enumeration pixel-format (red-ext 6403)) (define-enumeration oes-depth-texture @@ -3315,10 +3330,6 @@ (define-enumeration pixel-tex-gen-mode (none 0) - (rgb 6407) - (rgba 6408) - (luminance 6409) - (luminance-alpha 6410) (pixel-tex-gen-alpha-replace-sgix 33159) (pixel-tex-gen-alpha-no-replace-sgix 33160) (pixel-tex-gen-alpha-ms-sgix 33162) @@ -4167,6 +4178,8 @@ (proxy-texture-2d-ext 32868) (texture-too-large-ext 32869)) +(define-enumeration arm-rgba-8 (rgba8-oes 32856)) + (define-enumeration ext-texture-object (texture-priority-ext 32870) @@ -4266,11 +4279,6 @@ (sample-mask-invert-sgis 32939) (sample-pattern-sgis 32940)) -(define-enumeration - nv-multisample-coverage - (coverage-samples-nv 32937) - (color-samples-nv 36384)) - (define-enumeration sgis-sharpen-texture (linear-sharpen-sgis 32941) @@ -4301,6 +4309,10 @@ sgix-texture-add-env (texture-env-bias-sgix 32958)) +(define-enumeration + arb-shadow-ambient + (texture-compare-fail-value-arb 32959)) + (define-enumeration sgix-shadow-ambient (shadow-ambient-sgix 32959)) @@ -4397,6 +4409,34 @@ (bgr-ext 32992) (bgra-ext 32993)) +(define-enumeration + ext-paletted-texture + (color-index1-ext 32994) + (color-index2-ext 32995) + (color-index4-ext 32996) + (color-index8-ext 32997) + (color-index12-ext 32998) + (color-index16-ext 32999) + (texture-index-size-ext 33005)) + +(define-enumeration + ext-draw-range-elements + (max-elements-vertices-ext 33000) + (max-elements-indices-ext 33001)) + +(define-enumeration + win-phong-shading + (phong-win 33002) + (phong-hint-win 33003)) + +(define-enumeration + win-specular-fog + (fog-specular-texture-win 33004)) + +(define-enumeration + ext-clip-volume-hint + (clip-volume-clipping-hint-ext 33008)) + (define-enumeration sgis-texture-select (dual-alpha4-sgis 33040) @@ -4523,6 +4563,35 @@ (replicate-border-hp 33107) (convolution-border-color-hp 33108)) +(define-enumeration + hp-image-transform + (image-scale-x-hp 33109) + (image-scale-y-hp 33110) + (image-translate-x-hp 33111) + (image-translate-y-hp 33112) + (image-rotate-angle-hp 33113) + (image-rotate-origin-x-hp 33114) + (image-rotate-origin-y-hp 33115) + (image-mag-filter-hp 33116) + (image-min-filter-hp 33117) + (image-cubic-weight-hp 33118) + (cubic-hp 33119) + (average-hp 33120) + (image-transform-2d-hp 33121) + (post-image-transform-color-table-hp 33122) + (proxy-post-image-transform-color-table-hp 33123)) + +(define-enumeration + hp-occlusion-test + (occlusion-test-hp 33125) + (occlusion-test-result-hp 33126)) + +(define-enumeration + hp-texture-lighting + (texture-lighting-mode-hp 33127) + (texture-post-specular-hp 33128) + (texture-pre-specular-hp 33129)) + (define-enumeration sgix-clipmap (linear-clipmap-linear-sgix 33136) @@ -5042,8 +5111,7 @@ sgix-texture-coordinate-clamp (texture-max-clamp-s-sgix 33641) (texture-max-clamp-t-sgix 33642) - (texture-max-clamp-r-sgix 33643) - (fog-factor-to-alpha-sgix 33647)) + (texture-max-clamp-r-sgix 33643)) (define-enumeration arb-texture-mirrored-repeat @@ -5127,6 +5195,23 @@ (resample-zero-fill-sgix 33839) (resample-decimate-sgix 33840)) +(define-enumeration + ext-coordinate-frame + (tangent-array-ext 33849) + (binormal-array-ext 33850) + (current-tangent-ext 33851) + (current-binormal-ext 33852) + (tangent-array-type-ext 33854) + (tangent-array-stride-ext 33855) + (binormal-array-type-ext 33856) + (binormal-array-stride-ext 33857) + (tangent-array-pointer-ext 33858) + (binormal-array-pointer-ext 33859) + (map1-tangent-ext 33860) + (map2-tangent-ext 33861) + (map1-binormal-ext 33862) + (map2-binormal-ext 33863)) + (define-enumeration version-1-5 (fog-coord-src 33872) @@ -5305,15 +5390,6 @@ (compressed-sluminance 35914) (compressed-sluminance-alpha 35915)) -(define-enumeration - sgix-icc-texture - (smooth-point-size-range 2834) - (smooth-point-size-granularity 2835) - (smooth-line-width-range 2850) - (smooth-line-width-granularity 2851) - (aliased-point-size-range 33901) - (aliased-line-width-range 33902)) - (define-enumeration rend-screen-coordinates (screen-coordinates-rend 33936) @@ -5401,6 +5477,28 @@ (define-enumeration arb-texture-env-combine + (subtract-arb 34023) + (combine-arb 34160) + (combine-rgb-arb 34161) + (combine-alpha-arb 34162) + (rgb-scale-arb 34163) + (add-signed-arb 34164) + (interpolate-arb 34165) + (constant-arb 34166) + (primary-color-arb 34167) + (previous-arb 34168) + (source0-rgb-arb 34176) + (source1-rgb-arb 34177) + (source2-rgb-arb 34178) + (source0-alpha-arb 34184) + (source1-alpha-arb 34185) + (source2-alpha-arb 34186) + (operand0-rgb-arb 34192) + (operand1-rgb-arb 34193) + (operand2-rgb-arb 34194) + (operand0-alpha-arb 34200) + (operand1-alpha-arb 34201) + (operand2-alpha-arb 34202) (subtract-arb 34023)) (define-enumeration @@ -5537,17 +5635,12 @@ (max-texture-max-anisotropy-ext 34047)) (define-enumeration - ext-vertex-weighting - (modelview1-stack-depth-ext 34050) - (modelview-matrix1-ext 34054) - (vertex-weighting-ext 34057) - (modelview1-ext 34058) - (current-vertex-weight-ext 34059) - (vertex-weight-array-ext 34060) - (vertex-weight-array-size-ext 34061) - (vertex-weight-array-type-ext 34062) - (vertex-weight-array-stride-ext 34063) - (vertex-weight-array-pointer-ext 34064)) + nv-texture-env-combine-4 + (combine4-nv 34051) + (source3-rgb-nv 34179) + (source3-alpha-nv 34187) + (operand3-rgb-nv 34195) + (operand3-alpha-nv 34203)) (define-enumeration nv-light-max-exponent @@ -5581,8 +5674,8 @@ (define-enumeration nv-texgen-reflection - (normal-map 34065) - (reflection-map 34066)) + (normal-map-nv 34065) + (reflection-map-nv 34066)) (define-enumeration arb-texture-cube-map @@ -5645,7 +5738,7 @@ (half-bias-normal-nv 34106) (half-bias-negate-nv 34107) (signed-identity-nv 34108) - (unsigned-negate-nv 34109) + (signed-negate-nv 34109) (scale-by-two-nv 34110) (scale-by-four-nv 34111) (scale-by-one-half-nv 34112) @@ -5684,7 +5777,7 @@ (define-enumeration nv-fog-distance - (fog-gen-mode-nv 34138) + (fog-distance-mode-nv 34138) (eye-radial-nv 34139) (eye-plane-absolute-nv 34140)) @@ -5733,14 +5826,6 @@ (operand1-alpha-ext 34201) (operand2-alpha-ext 34202)) -(define-enumeration - nv-texture-env-combine-4 - (combine4-nv 34051) - (source3-rgb-nv 34179) - (source3-alpha-nv 34187) - (operand3-rgb-nv 34195) - (operand3-alpha-nv 34203)) - (define-enumeration sgix-subsample (pack-subsample-rate-sgix 34208) @@ -6093,22 +6178,22 @@ (map-attrib-u-order-nv 34499) (map-attrib-v-order-nv 34500) (eval-fractional-tessellation-nv 34501) - (eval-vertex-atrrib0-nv 34502) - (eval-vertex-atrrib1-nv 34503) - (eval-vertex-atrrib2-nv 34504) - (eval-vertex-atrrib3-nv 34505) - (eval-vertex-atrrib4-nv 34506) - (eval-vertex-atrrib5-nv 34507) - (eval-vertex-atrrib6-nv 34508) - (eval-vertex-atrrib7-nv 34509) - (eval-vertex-atrrib8-nv 34510) - (eval-vertex-atrrib9-nv 34511) - (eval-vertex-atrrib10-nv 34512) - (eval-vertex-atrrib11-nv 34513) - (eval-vertex-atrrib12-nv 34514) - (eval-vertex-atrrib13-nv 34515) - (eval-vertex-atrrib14-nv 34516) - (eval-vertex-atrrib15-nv 34517) + (eval-vertex-attrib0-nv 34502) + (eval-vertex-attrib1-nv 34503) + (eval-vertex-attrib2-nv 34504) + (eval-vertex-attrib3-nv 34505) + (eval-vertex-attrib4-nv 34506) + (eval-vertex-attrib5-nv 34507) + (eval-vertex-attrib6-nv 34508) + (eval-vertex-attrib7-nv 34509) + (eval-vertex-attrib8-nv 34510) + (eval-vertex-attrib9-nv 34511) + (eval-vertex-attrib10-nv 34512) + (eval-vertex-attrib11-nv 34513) + (eval-vertex-attrib12-nv 34514) + (eval-vertex-attrib13-nv 34515) + (eval-vertex-attrib14-nv 34516) + (eval-vertex-attrib15-nv 34517) (max-map-tessellation-nv 34518) (max-rational-eval-order-nv 34519)) @@ -6135,10 +6220,10 @@ (shader-operation-nv 34527) (cull-modes-nv 34528) (offset-texture-matrix-nv 34529) - (offset-texture-scale-nv 34530) - (offset-texture-bias-nv 34531) (offset-texture-2d-matrix-nv 34529) + (offset-texture-scale-nv 34530) (offset-texture-2d-scale-nv 34530) + (offset-texture-bias-nv 34531) (offset-texture-2d-bias-nv 34531) (previous-texture-input-nv 34532) (const-eye-nv 34533) @@ -6560,7 +6645,7 @@ (define-enumeration ati-pixel-format-float - (type-rgba-float-ati 34848) + (rgba-float-mode-ati 34848) (color-clear-unclamped-value-ati 34869)) (define-enumeration @@ -8136,6 +8221,10 @@ (query-by-region-wait-nv 36373) (query-by-region-no-wait-nv 36374)) +(define-enumeration + nv-multisample-coverage + (color-samples-nv 36384)) + (define-enumeration arb-transform-feedback-2 (transform-feedback 36386) @@ -8253,11 +8342,22 @@ (max-program-subroutine-num-nv 36677)) (define-enumeration - arb-texture-gather + version-4-0 (min-program-texture-gather-offset 36446) (max-program-texture-gather-offset 36447) - (max-program-texture-gather-components-arb 36767) - (max-program-texture-gather-components 36767)) + (texture-cube-map-array 36873) + (texture-binding-cube-map-array 36874) + (proxy-texture-cube-map-array 36875) + (sampler-cube-map-array 36876) + (sampler-cube-map-array-shadow 36877) + (int-sampler-cube-map-array 36878) + (unsigned-int-sampler-cube-map-array 36879)) + +(define-enumeration + arb-texture-gather + (min-program-texture-gather-offset-arb 36446) + (max-program-texture-gather-offset-arb 36447) + (max-program-texture-gather-components-arb 36767)) (define-enumeration arb-transform-feedback-3 @@ -8348,6 +8448,10 @@ arm-mali-shader-binary (mali-shader-binary-arm 36704)) +(define-enumeration + arm-mali-program-binary + (mali-program-binary-arm 36705)) + (define-enumeration qcom-driver-control (perfmon-global-mode-qcom 36768)) @@ -8364,7 +8468,7 @@ (shader-binary-viv 36804)) (define-enumeration - amd-vertex-shader-tesselator + amd-vertex-shader-tessellator (sampler-buffer-amd 36865) (int-sampler-buffer-amd 36866) (unsigned-int-sampler-buffer-amd 36867) @@ -8751,10 +8855,10 @@ (max-fragment-atomic-counters 37590) (max-combined-atomic-counters 37591) (max-atomic-counter-buffer-size 37592) - (max-atomic-counter-buffer-bindings 37596) (active-atomic-counter-buffers 37593) (uniform-atomic-counter-buffer-index 37594) - (unsigned-int-atomic-counter 37595)) + (unsigned-int-atomic-counter 37595) + (max-atomic-counter-buffer-bindings 37596)) (define-enumeration arb-program-interface-query @@ -8872,3 +8976,80 @@ (compressed-srgb8-alpha8-astc-12x10-khr 37852) (compressed-srgb8-alpha8-astc-12x12-khr 37853)) +(define-enumeration + ibm-rasterpos-clip + (raster-position-unclipped-ibm 103010)) + +(define-enumeration + ibm-cull-vertex + (cull-vertex-ibm 103050)) + +(define-enumeration + ibm-static-data + (all-static-data-ibm 103060) + (static-vertex-array-ibm 103061) + (vertex-array-list-ibm 103070) + (normal-array-list-ibm 103071) + (color-array-list-ibm 103072) + (index-array-list-ibm 103073) + (texture-coord-array-list-ibm 103074) + (edge-flag-array-list-ibm 103075) + (fog-coordinate-array-list-ibm 103076) + (secondary-color-array-list-ibm 103077) + (vertex-array-list-stride-ibm 103080) + (normal-array-list-stride-ibm 103081) + (color-array-list-stride-ibm 103082) + (index-array-list-stride-ibm 103083) + (texture-coord-array-list-stride-ibm 103084) + (edge-flag-array-list-stride-ibm 103085) + (fog-coordinate-array-list-stride-ibm 103086) + (secondary-color-array-list-stride-ibm 103087)) + +(define-enumeration + pgi-misc-hints + (prefer-doublebuffer-hint-pgi 107000) + (conserve-memory-hint-pgi 107005) + (reclaim-memory-hint-pgi 107006) + (native-graphics-handle-pgi 107010) + (native-graphics-begin-hint-pgi 107011) + (native-graphics-end-hint-pgi 107012) + (always-fast-hint-pgi 107020) + (always-soft-hint-pgi 107021) + (allow-draw-obj-hint-pgi 107022) + (allow-draw-win-hint-pgi 107023) + (allow-draw-frg-hint-pgi 107024) + (allow-draw-mem-hint-pgi 107025) + (strict-depthfunc-hint-pgi 107030) + (strict-lighting-hint-pgi 107031) + (strict-scissor-hint-pgi 107032) + (full-stipple-hint-pgi 107033) + (clip-near-hint-pgi 107040) + (clip-far-hint-pgi 107041) + (wide-line-hint-pgi 107042) + (back-normals-hint-pgi 107043)) + +(define-enumeration + pgi-vertex-hints + (vertex-data-hint-pgi 107050) + (vertex-consistent-hint-pgi 107051) + (material-side-hint-pgi 107052) + (max-vertex-hint-pgi 107053) + (vertex23-bit-pgi 4) + (vertex4-bit-pgi 8) + (color3-bit-pgi 65536) + (color4-bit-pgi 131072) + (edgeflag-bit-pgi 262144) + (index-bit-pgi 524288) + (mat-ambient-bit-pgi 1048576) + (mat-ambient-and-diffuse-bit-pgi 2097152) + (mat-diffuse-bit-pgi 4194304) + (mat-emission-bit-pgi 8388608) + (mat-color-indexes-bit-pgi 16777216) + (mat-shininess-bit-pgi 33554432) + (mat-specular-bit-pgi 67108864) + (normal-bit-pgi 134217728) + (texcoord1-bit-pgi 268435456) + (texcoord2-bit-pgi 536870912) + (texcoord3-bit-pgi 1073741824) + (texcoord4-bit-pgi 2147483648)) + diff --git a/figl/gl/low-level.scm b/figl/gl/low-level.scm index 20ab891..fb98427 100644 --- a/figl/gl/low-level.scm +++ b/figl/gl/low-level.scm @@ -17,23 +17,23 @@ ;;; ;;; Derived from upstream OpenGL documentation. ;;; -;;; Copyright (C) 1991-2006 Silicon Graphics, Inc. This document is licensed -;;; under the SGI Free Software B License. For details, see +;;; Copyright (C) 1991-2006 Silicon Graphics, Inc. This document is +;;; licensed under the SGI Free Software B License. For details, see ;;; http://oss.sgi.com/projects/FreeB/ (http://oss.sgi.com/projects/FreeB/). ;;; -;;; Copyright (C) 2003-2005 3Dlabs Inc. Ltd. This material may be +;;; Copyright (C) 2003-2005 3Dlabs Inc. Ltd. This material may be ;;; distributed subject to the terms and conditions set forth in the Open -;;; Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/ +;;; Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/ ;;; (http://opencontent.org/openpub/). ;;; -;;; Copyright (C) 2005 Addison-Wesley. This material may be distributed +;;; Copyright (C) 2005 Addison-Wesley. This material may be distributed ;;; subject to the terms and conditions set forth in the Open Publication -;;; License, v 1.0, 8 June 1999. http://opencontent.org/openpub/ +;;; License, v 1.0, 8 June 1999. http://opencontent.org/openpub/ ;;; (http://opencontent.org/openpub/). ;;; -;;; Copyright (C) 2006 Khronos Group. This material may be distributed +;;; Copyright (C) 2006 Khronos Group. This material may be distributed ;;; subject to the terms and conditions set forth in the Open Publication -;;; License, v 1.0, 8 June 1999. http://opencontent.org/openpub/ +;;; License, v 1.0, 8 June 1999. http://opencontent.org/openpub/ ;;; (http://opencontent.org/openpub/). ;;; ;;; Automatically generated; you probably don't want to edit this. To @@ -636,39 +636,39 @@ "Operate on the accumulation buffer. OP - Specifies the accumulation buffer operation. Symbolic constants + Specifies the accumulation buffer operation. Symbolic constants `GL_ACCUM', `GL_LOAD', `GL_ADD', `GL_MULT', and `GL_RETURN' are accepted. VALUE Specifies a floating-point value used in the accumulation buffer - operation. OP determines how VALUE is used. + operation. OP determines how VALUE is used. -The accumulation buffer is an extended-range color buffer. Images are -not rendered into it. Rather, images rendered into one of the color +The accumulation buffer is an extended-range color buffer. Images are +not rendered into it. Rather, images rendered into one of the color buffers are added to the contents of the accumulation buffer after -rendering. Effects such as antialiasing (of points, lines, and +rendering. Effects such as antialiasing (of points, lines, and polygons), motion blur, and depth of field can be created by accumulating images generated with different transformation matrices. Each pixel in the accumulation buffer consists of red, green, blue, and -alpha values. The number of bits per component in the accumulation -buffer depends on the implementation. You can examine this number by +alpha values. The number of bits per component in the accumulation +buffer depends on the implementation. You can examine this number by calling `glGetIntegerv' four times, with arguments `GL_ACCUM_RED_BITS', `GL_ACCUM_GREEN_BITS', `GL_ACCUM_BLUE_BITS', and `GL_ACCUM_ALPHA_BITS'. Regardless of the number of bits per component, the range of values -stored by each component is [-1,1] . The accumulation buffer pixels are +stored by each component is [-1,1] . The accumulation buffer pixels are mapped one-to-one with frame buffer pixels. -`glAccum' operates on the accumulation buffer. The first argument, OP, +`glAccum' operates on the accumulation buffer. The first argument, OP, is a symbolic constant that selects an accumulation buffer operation. The second argument, VALUE, is a floating-point value to be used in that -operation. Five operations are specified: `GL_ACCUM', `GL_LOAD', +operation. Five operations are specified: `GL_ACCUM', `GL_LOAD', `GL_ADD', `GL_MULT', and `GL_RETURN'. All accumulation buffer operations are limited to the area of the current scissor box and applied identically to the red, green, blue, and -alpha components of each pixel. If a `glAccum' operation results in a +alpha components of each pixel. If a `glAccum' operation results in a value outside the range [-1,1] , the contents of an accumulation buffer pixel component are undefined. @@ -676,9 +676,9 @@ The operations are as follows: `GL_ACCUM' Obtains R, G, B, and A values from the buffer currently selected - for reading (see `glReadBuffer'). Each component value is divided + for reading (see `glReadBuffer'). Each component value is divided by 2^N-1 , where N is the number of bits allocated to each color - component in the currently selected buffer. The result is a + component in the currently selected buffer. The result is a floating-point value in the range [0,1] , which is multiplied by VALUE and added to the corresponding pixel component in the accumulation buffer, thereby updating the accumulation buffer. @@ -686,7 +686,7 @@ The operations are as follows: `GL_LOAD' Similar to `GL_ACCUM', except that the current value in the accumulation buffer is not used in the calculation of the new - value. That is, the R, G, B, and A values from the currently + value. That is, the R, G, B, and A values from the currently selected buffer are divided by 2^N-1 , multiplied by VALUE, and then stored in the corresponding accumulation buffer cell, overwriting the current value. @@ -701,10 +701,10 @@ The operations are as follows: `GL_RETURN' Transfers accumulation buffer values to the color buffer or buffers - currently selected for writing. Each R, G, B, and A component is + currently selected for writing. Each R, G, B, and A component is multiplied by VALUE, then multiplied by 2^N-1 , clamped to the range [0,2^N-1] , and stored in the corresponding display buffer - cell. The only fragment operations that are applied to this + cell. The only fragment operations that are applied to this transfer are pixel ownership, scissor, dithering, and color writemasks. @@ -724,15 +724,15 @@ execution of `glBegin' and the corresponding execution of `glEnd'.") "Select active texture unit. TEXTURE - Specifies which texture unit to make active. The number of texture + Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. TEXTURE must be one of `GL_TEXTURE' I , where i ranges from 0 to the larger of (`GL_MAX_TEXTURE_COORDS' - 1) and - (`GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS' - 1). The initial value is + (`GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS' - 1). The initial value is `GL_TEXTURE0'. `glActiveTexture' selects which texture unit subsequent texture state -calls will affect. The number of texture units an implementation +calls will affect. The number of texture units an implementation supports is implementation dependent, but must be at least 2. Vertex arrays are client-side GL resources, which are selected by the @@ -751,30 +751,30 @@ where i ranges from 0 to the larger of (`GL_MAX_TEXTURE_COORDS' - 1) and "Specify the alpha test function. FUNC - Specifies the alpha comparison function. Symbolic constants + Specifies the alpha comparison function. Symbolic constants `GL_NEVER', `GL_LESS', `GL_EQUAL', `GL_LEQUAL', `GL_GREATER', - `GL_NOTEQUAL', `GL_GEQUAL', and `GL_ALWAYS' are accepted. The + `GL_NOTEQUAL', `GL_GEQUAL', and `GL_ALWAYS' are accepted. The initial value is `GL_ALWAYS'. REF Specifies the reference value that incoming alpha values are - compared to. This value is clamped to the range [0,1] , where 0 + compared to. This value is clamped to the range [0,1] , where 0 represents the lowest possible alpha value and 1 the highest - possible value. The initial reference value is 0. + possible value. The initial reference value is 0. The alpha test discards fragments depending on the outcome of a comparison between an incoming fragment's alpha value and a constant -reference value. `glAlphaFunc' specifies the reference value and the -comparison function. The comparison is performed only if alpha testing -is enabled. By default, it is not enabled. (See `glEnable' and +reference value. `glAlphaFunc' specifies the reference value and the +comparison function. The comparison is performed only if alpha testing +is enabled. By default, it is not enabled. (See `glEnable' and `glDisable' of `GL_ALPHA_TEST'.) -FUNC and REF specify the conditions under which the pixel is drawn. The +FUNC and REF specify the conditions under which the pixel is drawn. The incoming alpha value is compared to REF using the function specified by -FUNC. If the value passes the comparison, the incoming fragment is drawn -if it also passes subsequent stencil and depth buffer tests. If the -value fails the comparison, no change is made to the frame buffer at -that pixel location. The comparison functions are as follows: +FUNC. If the value passes the comparison, the incoming fragment is +drawn if it also passes subsequent stencil and depth buffer tests. If +the value fails the comparison, no change is made to the frame buffer at +that pixel location. The comparison functions are as follows: `GL_NEVER' Never passes. @@ -807,8 +807,8 @@ that pixel location. The comparison functions are as follows: `glAlphaFunc' operates on all pixel write operations, including those resulting from the scan conversion of points, lines, polygons, and -bitmaps, and from pixel draw and copy operations. `glAlphaFunc' does not -affect screen clear operations. +bitmaps, and from pixel draw and copy operations. `glAlphaFunc' does +not affect screen clear operations. `GL_INVALID_ENUM' is generated if FUNC is not an accepted value. @@ -833,32 +833,32 @@ TEXTURES RESIDENCES Specifies an array in which the texture residence status is - returned. The residence status of a texture named by an element of + returned. The residence status of a texture named by an element of TEXTURES is returned in the corresponding element of RESIDENCES. GL establishes a ``working set'' of textures that are resident in -texture memory. These textures can be bound to a texture target much +texture memory. These textures can be bound to a texture target much more efficiently than textures that are not resident. `glAreTexturesResident' queries the texture residence status of the N -textures named by the elements of TEXTURES. If all the named textures +textures named by the elements of TEXTURES. If all the named textures are resident, `glAreTexturesResident' returns `GL_TRUE', and the -contents of RESIDENCES are undisturbed. If not all the named textures +contents of RESIDENCES are undisturbed. If not all the named textures are resident, `glAreTexturesResident' returns `GL_FALSE', and detailed -status is returned in the N elements of RESIDENCES. If an element of +status is returned in the N elements of RESIDENCES. If an element of RESIDENCES is `GL_TRUE', then the texture named by the corresponding element of TEXTURES is resident. The residence status of a single bound texture may also be queried by calling `glGetTexParameter' with the TARGET argument set to the target to which the texture is bound, and the PNAME argument set to -`GL_TEXTURE_RESIDENT'. This is the only way that the residence status of -a default texture can be queried. +`GL_TEXTURE_RESIDENT'. This is the only way that the residence status +of a default texture can be queried. `GL_INVALID_VALUE' is generated if N is negative. `GL_INVALID_VALUE' is generated if any element in TEXTURES is 0 or does -not name a texture. In that case, the function returns `GL_FALSE' and +not name a texture. In that case, the function returns `GL_FALSE' and the contents of RESIDENCES is indeterminate. `GL_INVALID_OPERATION' is generated if `glAreTexturesResident' is @@ -874,9 +874,9 @@ I `glArrayElement' commands are used within `glBegin'/`glEnd' pairs to specify vertex and attribute data for point, line, and polygon -primitives. If `GL_VERTEX_ARRAY' is enabled when `glArrayElement' is +primitives. If `GL_VERTEX_ARRAY' is enabled when `glArrayElement' is called, a single vertex is drawn, using vertex and attribute data taken -from location I of the enabled arrays. If `GL_VERTEX_ARRAY' is not +from location I of the enabled arrays. If `GL_VERTEX_ARRAY' is not enabled, no drawing occurs but the attributes corresponding to the enabled arrays are modified. @@ -889,7 +889,7 @@ each triangle. Changes made to array data between the execution of `glBegin' and the corresponding execution of `glEnd' may affect calls to `glArrayElement' that are made within the same `glBegin'/`glEnd' period in nonsequential -ways. That is, a call to `glArrayElement' that precedes a change to +ways. That is, a call to `glArrayElement' that precedes a change to array data may access the changed data, and a call that follows a change to array data may access original data. @@ -915,21 +915,21 @@ SHADER Specifies the shader object that is to be attached. In order to create an executable, there must be a way to specify the -list of things that will be linked together. Program objects provide -this mechanism. Shaders that are to be linked together in a program -object must first be attached to that program object. `glAttachShader' +list of things that will be linked together. Program objects provide +this mechanism. Shaders that are to be linked together in a program +object must first be attached to that program object. `glAttachShader' attaches the shader object specified by SHADER to the program object -specified by PROGRAM. This indicates that SHADER will be included in +specified by PROGRAM. This indicates that SHADER will be included in link operations that will be performed on PROGRAM. All operations that can be performed on a shader object are valid -whether or not the shader object is attached to a program object. It is +whether or not the shader object is attached to a program object. It is permissible to attach a shader object to a program object before source code has been loaded into the shader object or before the shader object -has been compiled. It is permissible to attach multiple shader objects +has been compiled. It is permissible to attach multiple shader objects of the same type because each may contain a portion of the complete -shader. It is also permissible to attach a shader object to more than -one program object. If a shader object is deleted while it is attached +shader. It is also permissible to attach a shader object to more than +one program object. If a shader object is deleted while it is attached to a program object, it will be flagged for deletion, and deletion will not occur until `glDetachShader' is called to detach it from all program objects to which it is attached. @@ -959,26 +959,27 @@ between the execution of `glBegin' and the corresponding execution of TARGET Specifies the target type of query object established between - `glBeginQuery' and the subsequent `glEndQuery'. The symbolic + `glBeginQuery' and the subsequent `glEndQuery'. The symbolic constant must be `GL_SAMPLES_PASSED'. ID Specifies the name of a query object. `glBeginQuery' and `glEndQuery' delimit the boundaries of a query -object. If a query object with name ID does not yet exist it is created. +object. If a query object with name ID does not yet exist it is +created. When `glBeginQuery' is executed, the query object's samples-passed -counter is reset to 0. Subsequent rendering will increment the counter -once for every sample that passes the depth test. When `glEndQuery' is +counter is reset to 0. Subsequent rendering will increment the counter +once for every sample that passes the depth test. When `glEndQuery' is executed, the samples-passed counter is assigned to the query object's -result value. This value can be queried by calling `glGetQueryObject' +result value. This value can be queried by calling `glGetQueryObject' with PNAME`GL_QUERY_RESULT'. Querying the `GL_QUERY_RESULT' implicitly flushes the GL pipeline until the rendering delimited by the query object has completed and the result -is available. `GL_QUERY_RESULT_AVAILABLE' can be queried to determine if -the result is immediately available or if the rendering is not yet +is available. `GL_QUERY_RESULT_AVAILABLE' can be queried to determine +if the result is immediately available or if the rendering is not yet complete. `GL_INVALID_ENUM' is generated if TARGET is not `GL_SAMPLES_PASSED'. @@ -1011,45 +1012,45 @@ MODE `GL_QUAD_STRIP', and `GL_POLYGON'. `glBegin' and `glEnd' delimit the vertices that define a primitive or a -group of like primitives. `glBegin' accepts a single argument that -specifies in which of ten ways the vertices are interpreted. Taking N as -an integer count starting at one, and N as the total number of vertices -specified, the interpretations are as follows: +group of like primitives. `glBegin' accepts a single argument that +specifies in which of ten ways the vertices are interpreted. Taking N +as an integer count starting at one, and N as the total number of +vertices specified, the interpretations are as follows: `GL_POINTS' - Treats each vertex as a single point. Vertex N defines point N . N + Treats each vertex as a single point. Vertex N defines point N . N points are drawn. `GL_LINES' Treats each pair of vertices as an independent line segment. - Vertices 2\u2062N-1 and 2\u2062N define line N . N/2 lines are drawn. + Vertices 2\u2062N-1 and 2\u2062N define line N . N/2 lines are drawn. `GL_LINE_STRIP' Draws a connected group of line segments from the first vertex to - the last. Vertices N and N+1 define line N . N-1 lines are drawn. + the last. Vertices N and N+1 define line N . N-1 lines are drawn. `GL_LINE_LOOP' Draws a connected group of line segments from the first vertex to - the last, then back to the first. Vertices N and N+1 define line N - . The last line, however, is defined by vertices N and 1 . N lines - are drawn. + the last, then back to the first. Vertices N and N+1 define line N + . The last line, however, is defined by vertices N and 1 . N + lines are drawn. `GL_TRIANGLES' Treats each triplet of vertices as an independent triangle. - Vertices 3\u2062N-2 , 3\u2062N-1 , and 3\u2062N define triangle N . N/3 triangles + Vertices 3\u2062N-2 , 3\u2062N-1 , and 3\u2062N define triangle N . N/3 triangles are drawn. `GL_TRIANGLE_STRIP' - Draws a connected group of triangles. One triangle is defined for - each vertex presented after the first two vertices. For odd N , - vertices N , N+1 , and N+2 define triangle N . For even N , - vertices N+1 , N , and N+2 define triangle N . N-2 triangles are + Draws a connected group of triangles. One triangle is defined for + each vertex presented after the first two vertices. For odd N , + vertices N , N+1 , and N+2 define triangle N . For even N , + vertices N+1 , N , and N+2 define triangle N . N-2 triangles are drawn. `GL_TRIANGLE_FAN' - Draws a connected group of triangles. One triangle is defined for - each vertex presented after the first two vertices. Vertices 1 , - N+1 , and N+2 define triangle N . N-2 triangles are drawn. + Draws a connected group of triangles. One triangle is defined for + each vertex presented after the first two vertices. Vertices 1 , + N+1 , and N+2 define triangle N . N-2 triangles are drawn. `GL_QUADS' Treats each group of four vertices as an independent quadrilateral. @@ -1057,37 +1058,37 @@ specified, the interpretations are as follows: N/4 quadrilaterals are drawn. `GL_QUAD_STRIP' - Draws a connected group of quadrilaterals. One quadrilateral is + Draws a connected group of quadrilaterals. One quadrilateral is defined for each pair of vertices presented after the first pair. Vertices 2\u2062N-1 , 2\u2062N , 2\u2062N+2 , and 2\u2062N+1 define quadrilateral N . - N/2-1 quadrilaterals are drawn. Note that the order in which + N/2-1 quadrilaterals are drawn. Note that the order in which vertices are used to construct a quadrilateral from strip data is different from that used with independent data. `GL_POLYGON' - Draws a single, convex polygon. Vertices 1 through N define this + Draws a single, convex polygon. Vertices 1 through N define this polygon. Only a subset of GL commands can be used between `glBegin' and `glEnd'. The commands are `glVertex', `glColor', `glSecondaryColor', `glIndex', `glNormal', `glFogCoord', `glTexCoord', `glMultiTexCoord', `glVertexAttrib', `glEvalCoord', `glEvalPoint', `glArrayElement', -`glMaterial', and `glEdgeFlag'. Also, it is acceptable to use +`glMaterial', and `glEdgeFlag'. Also, it is acceptable to use `glCallList' or `glCallLists' to execute display lists that include only -the preceding commands. If any other GL command is executed between +the preceding commands. If any other GL command is executed between `glBegin' and `glEnd', the error flag is set and the command is ignored. Regardless of the value chosen for MODE, there is no limit to the number -of vertices that can be defined between `glBegin' and `glEnd'. Lines, +of vertices that can be defined between `glBegin' and `glEnd'. Lines, triangles, quadrilaterals, and polygons that are incompletely specified -are not drawn. Incomplete specification results when either too few +are not drawn. Incomplete specification results when either too few vertices are provided to specify even a single primitive or when an -incorrect multiple of vertices is specified. The incomplete primitive is -ignored; the rest are drawn. +incorrect multiple of vertices is specified. The incomplete primitive +is ignored; the rest are drawn. The minimum specification of vertices for each primitive is as follows: 1 for a point, 2 for a line, 3 for a triangle, 4 for a quadrilateral, -and 3 for a polygon. Modes that require a certain multiple of vertices +and 3 for a polygon. Modes that require a certain multiple of vertices are `GL_LINES' (2), `GL_TRIANGLES' (3), `GL_QUADS' (4), and `GL_QUAD_STRIP' (2). @@ -1137,24 +1138,24 @@ NAME `glBindAttribLocation' is used to associate a user-defined attribute variable in the program object specified by PROGRAM with a generic -vertex attribute index. The name of the user-defined attribute variable -is passed as a null terminated string in NAME. The generic vertex -attribute index to be bound to this variable is specified by INDEX. When +vertex attribute index. The name of the user-defined attribute variable +is passed as a null terminated string in NAME. The generic vertex +attribute index to be bound to this variable is specified by INDEX. When PROGRAM is made part of current state, values provided via the generic vertex attribute INDEX will modify the value of the user-defined attribute variable specified by NAME. If NAME refers to a matrix attribute variable, INDEX refers to the first -column of the matrix. Other matrix columns are then automatically bound +column of the matrix. Other matrix columns are then automatically bound to locations INDEX+1 for a matrix of type mat2; INDEX+1 and INDEX+2 for a matrix of type mat3; and INDEX+1, INDEX+2, and INDEX+3 for a matrix of type mat4. This command makes it possible for vertex shaders to use descriptive names for attribute variables rather than generic variables that are -numbered from 0 to `GL_MAX_VERTEX_ATTRIBS' -1. The values sent to each +numbered from 0 to `GL_MAX_VERTEX_ATTRIBS' -1. The values sent to each generic attribute index are part of current state, just like standard -vertex attributes such as color, normal, and vertex position. If a +vertex attributes such as color, normal, and vertex position. If a different program object is made current by calling `glUseProgram', the generic vertex attributes are tracked in such a way that the same values will be observed by attributes in the new program object that are also @@ -1162,14 +1163,14 @@ bound to INDEX. Attribute variable name-to-generic attribute index bindings for a program object can be explicitly assigned at any time by calling -`glBindAttribLocation'. Attribute bindings do not go into effect until -`glLinkProgram' is called. After a program object has been linked +`glBindAttribLocation'. Attribute bindings do not go into effect until +`glLinkProgram' is called. After a program object has been linked successfully, the index values for generic attributes remain fixed (and their values can be queried) until the next link command occurs. Applications are not allowed to bind any of the standard OpenGL vertex attributes using this command, as they are bound automatically when -needed. Any attribute binding that occurs after the program object has +needed. Any attribute binding that occurs after the program object has been linked will not take effect until the next time the program object is linked. @@ -1197,7 +1198,7 @@ execution of `glEnd'.") "Bind a named buffer object. TARGET - Specifies the target to which the buffer object is bound. The + Specifies the target to which the buffer object is bound. The symbolic constant must be `GL_ARRAY_BUFFER', `GL_ELEMENT_ARRAY_BUFFER', `GL_PIXEL_PACK_BUFFER', or `GL_PIXEL_UNPACK_BUFFER'. @@ -1205,19 +1206,19 @@ TARGET BUFFER Specifies the name of a buffer object. -`glBindBuffer' lets you create or use a named buffer object. Calling +`glBindBuffer' lets you create or use a named buffer object. Calling `glBindBuffer' with TARGET set to `GL_ARRAY_BUFFER', `GL_ELEMENT_ARRAY_BUFFER', `GL_PIXEL_PACK_BUFFER' or `GL_PIXEL_UNPACK_BUFFER' and BUFFER set to the name of the new buffer -object binds the buffer object name to the target. When a buffer object +object binds the buffer object name to the target. When a buffer object is bound to a target, the previous binding for that target is automatically broken. -Buffer object names are unsigned integers. The value zero is reserved, +Buffer object names are unsigned integers. The value zero is reserved, but there is no default buffer object for each buffer object target. Instead, BUFFER set to zero effectively unbinds any buffer object previously bound, and restores client memory usage for that buffer -object target. Buffer object names and the corresponding buffer object +object target. Buffer object names and the corresponding buffer object contents are local to the shared display-list space (see `glXCreateContext') of the current GL rendering context; two rendering contexts share buffer object names only if they also share display @@ -1232,15 +1233,15 @@ unmapped zero-sized memory buffer with `GL_READ_WRITE' access and While a non-zero buffer object name is bound, GL operations on the target to which it is bound affect the bound buffer object, and queries of the target to which it is bound return state from the bound buffer -object. While buffer object name zero is bound, as in the initial state, -attempts to modify or query state on the target to which it is bound -generates an `GL_INVALID_OPERATION' error. +object. While buffer object name zero is bound, as in the initial +state, attempts to modify or query state on the target to which it is +bound generates an `GL_INVALID_OPERATION' error. When vertex array pointer state is changed, for example by a call to `glNormalPointer', the current buffer object binding (`GL_ARRAY_BUFFER_BINDING') is copied into the corresponding client state for the vertex array type being changed, for example -`GL_NORMAL_ARRAY_BUFFER_BINDING'. While a non-zero buffer object is +`GL_NORMAL_ARRAY_BUFFER_BINDING'. While a non-zero buffer object is bound to the `GL_ARRAY_BUFFER' target, the vertex array pointer parameter that is traditionally interpreted as a pointer to client-side memory is instead interpreted as an offset within the buffer object @@ -1256,7 +1257,7 @@ While a non-zero buffer object is bound to the `GL_PIXEL_PACK_BUFFER' target, the following commands are affected: `glGetCompressedTexImage', `glGetConvolutionFilter', `glGetHistogram', `glGetMinmax', `glGetPixelMap', `glGetPolygonStipple', `glGetSeparableFilter', -`glGetTexImage', and `glReadPixels'. The pointer parameter that is +`glGetTexImage', and `glReadPixels'. The pointer parameter that is traditionally interpreted as a pointer to client-side memory where the pixels are to be packed is instead interpreted as an offset within the buffer object measured in basic machine units. @@ -1270,7 +1271,7 @@ target, the following commands are affected: `glBitmap', `glConvolutionFilter2D', `glDrawPixels', `glPixelMap', `glPolygonStipple', `glSeparableFilter2D', `glTexImage1D', `glTexImage2D', `glTexImage3D', `glTexSubImage1D', `glTexSubImage2D', -and `glTexSubImage3D'. The pointer parameter that is traditionally +and `glTexSubImage3D'. The pointer parameter that is traditionally interpreted as a pointer to client-side memory from which the pixels are to be unpacked is instead interpreted as an offset within the buffer object measured in basic machine units. @@ -1280,7 +1281,7 @@ a different buffer object name is bound to the same target, or until the bound buffer object is deleted with `glDeleteBuffers'. Once created, a named buffer object may be re-bound to any target as -often as needed. However, the GL implementation may make choices about +often as needed. However, the GL implementation may make choices about how to optimize the storage of a buffer object based on its initial binding target. @@ -1300,26 +1301,26 @@ between the execution of `glBegin' and the corresponding execution of "Bind a named texture to a texturing target. TARGET - Specifies the target to which the texture is bound. Must be either + Specifies the target to which the texture is bound. Must be either `GL_TEXTURE_1D', `GL_TEXTURE_2D', `GL_TEXTURE_3D', or `GL_TEXTURE_CUBE_MAP'. TEXTURE Specifies the name of a texture. -`glBindTexture' lets you create or use a named texture. Calling +`glBindTexture' lets you create or use a named texture. Calling `glBindTexture' with TARGET set to `GL_TEXTURE_1D', `GL_TEXTURE_2D', `GL_TEXTURE_3D' or `GL_TEXTURE_CUBE_MAP' and TEXTURE set to the name of -the new texture binds the texture name to the target. When a texture is +the new texture binds the texture name to the target. When a texture is bound to a target, the previous binding for that target is automatically broken. -Texture names are unsigned integers. The value zero is reserved to -represent the default texture for each texture target. Texture names and -the corresponding texture contents are local to the shared display-list -space (see `glXCreateContext') of the current GL rendering context; two -rendering contexts share texture names only if they also share display -lists. +Texture names are unsigned integers. The value zero is reserved to +represent the default texture for each texture target. Texture names +and the corresponding texture contents are local to the shared +display-list space (see `glXCreateContext') of the current GL rendering +context; two rendering contexts share texture names only if they also +share display lists. You may use `glGenTextures' to generate a set of new texture names. @@ -1328,7 +1329,7 @@ texture first bound to `GL_TEXTURE_1D' becomes one-dimensional texture, a texture first bound to `GL_TEXTURE_2D' becomes two-dimensional texture, a texture first bound to `GL_TEXTURE_3D' becomes three-dimensional texture, and a texture first bound to -`GL_TEXTURE_CUBE_MAP' becomes a cube-mapped texture. The state of a +`GL_TEXTURE_CUBE_MAP' becomes a cube-mapped texture. The state of a one-dimensional texture immediately after it is first bound is equivalent to the state of the default `GL_TEXTURE_1D' at GL initialization, and similarly for two- and three-dimensional textures @@ -1336,8 +1337,8 @@ and cube-mapped textures. While a texture is bound, GL operations on the target to which it is bound affect the bound texture, and queries of the target to which it is -bound return state from the bound texture. If texture mapping is active -on the target to which a texture is bound, the bound texture is used. In +bound return state from the bound texture. If texture mapping is active +on the target to which a texture is bound, the bound texture is used. In effect, the texture targets become aliases for the textures currently bound to them, and the texture name zero refers to the default textures that were bound to them at initialization. @@ -1347,10 +1348,10 @@ different texture is bound to the same target, or until the bound texture is deleted with `glDeleteTextures'. Once created, a named texture may be re-bound to its same original -target as often as needed. It is usually much faster to use +target as often as needed. It is usually much faster to use `glBindTexture' to bind an existing named texture to one of the texture targets than it is to reload the texture image using `glTexImage1D', -`glTexImage2D', or `glTexImage3D'. For additional control over +`glTexImage2D', or `glTexImage3D'. For additional control over performance, use `glPrioritizeTextures'. `glBindTexture' is included in display lists. @@ -1386,7 +1387,7 @@ WIDTH XORIG YORIG - Specify the location of the origin in the bitmap image. The origin + Specify the location of the origin in the bitmap image. The origin is measured from the lower left corner of the bitmap, with right and up being the positive axes. @@ -1399,18 +1400,18 @@ XMOVE BITMAP Specifies the address of the bitmap image. -A bitmap is a binary image. When drawn, the bitmap is positioned +A bitmap is a binary image. When drawn, the bitmap is positioned relative to the current raster position, and frame buffer pixels corresponding to 1's in the bitmap are written using the current raster -color or index. Frame buffer pixels corresponding to 0's in the bitmap +color or index. Frame buffer pixels corresponding to 0's in the bitmap are not modified. -`glBitmap' takes seven arguments. The first pair specifies the width and -height of the bitmap image. The second pair specifies the location of -the bitmap origin relative to the lower left corner of the bitmap image. -The third pair of arguments specifies X and Y offsets to be added to the -current raster position after the bitmap has been drawn. The final -argument is a pointer to the bitmap image itself. +`glBitmap' takes seven arguments. The first pair specifies the width +and height of the bitmap image. The second pair specifies the location +of the bitmap origin relative to the lower left corner of the bitmap +image. The third pair of arguments specifies X and Y offsets to be +added to the current raster position after the bitmap has been drawn. +The final argument is a pointer to the bitmap image itself. If a non-zero named buffer object is bound to the `GL_PIXEL_UNPACK_BUFFER' target (see `glBindBuffer') while a bitmap @@ -1420,8 +1421,8 @@ object's data store. The bitmap image is interpreted like image data for the `glDrawPixels' command, with WIDTH and HEIGHT corresponding to the width and height arguments of that command, and with TYPE set to `GL_BITMAP' and FORMAT -set to `GL_COLOR_INDEX'. Modes specified using `glPixelStore' affect the -interpretation of bitmap image data; modes specified using +set to `GL_COLOR_INDEX'. Modes specified using `glPixelStore' affect +the interpretation of bitmap image data; modes specified using `glPixelTransfer' do not. If the current raster position is invalid, `glBitmap' is ignored. @@ -1433,16 +1434,16 @@ X_W=⌊X_R-X_O,⌋ Y_W=⌊Y_R-Y_O,⌋ where (X_R,Y_R) is the raster position and (X_O,Y_O) is the bitmap -origin. Fragments are then generated for each pixel corresponding to a 1 -(one) in the bitmap image. These fragments are generated using the +origin. Fragments are then generated for each pixel corresponding to a +1 (one) in the bitmap image. These fragments are generated using the current raster Z coordinate, color or color index, and current raster -texture coordinates. They are then treated just as if they had been +texture coordinates. They are then treated just as if they had been generated by a point, line, or polygon, including texture mapping, fogging, and all per-fragment operations such as alpha and depth testing. After the bitmap has been drawn, the X and Y coordinates of the current -raster position are offset by XMOVE and YMOVE. No change is made to the +raster position are offset by XMOVE and YMOVE. No change is made to the Z coordinate of the current raster position, or to the current raster color, texture coordinates, or index. @@ -1480,10 +1481,10 @@ RED specify the components of `GL_BLEND_COLOR' The `GL_BLEND_COLOR' may be used to calculate the source and destination -blending factors. The color components are clamped to the range [0,1] -before being stored. See `glBlendFunc' for a complete description of the -blending operations. Initially the `GL_BLEND_COLOR' is set to (0, 0, 0, -0). +blending factors. The color components are clamped to the range [0,1] +before being stored. See `glBlendFunc' for a complete description of +the blending operations. Initially the `GL_BLEND_COLOR' is set to (0, +0, 0, 0). `GL_INVALID_OPERATION' is generated if `glBlendColor' is executed between the execution of `glBegin' and the corresponding execution of @@ -1499,32 +1500,32 @@ between the execution of `glBegin' and the corresponding execution of MODERGB specifies the RGB blend equation, how the red, green, and blue - components of the source and destination colors are combined. It + components of the source and destination colors are combined. It must be `GL_FUNC_ADD', `GL_FUNC_SUBTRACT', `GL_FUNC_REVERSE_SUBTRACT', `GL_MIN', `GL_MAX'. MODEALPHA specifies the alpha blend equation, how the alpha component of the - source and destination colors are combined. It must be + source and destination colors are combined. It must be `GL_FUNC_ADD', `GL_FUNC_SUBTRACT', `GL_FUNC_REVERSE_SUBTRACT', `GL_MIN', `GL_MAX'. The blend equations determines how a new pixel (the ''source'' color) is combined with a pixel already in the framebuffer (the ''destination'' -color). This function specifies one blend equation for the RGB-color +color). This function specifies one blend equation for the RGB-color components and one blend equation for the alpha component. The blend equations use the source and destination blend factors -specified by either `glBlendFunc' or `glBlendFuncSeparate'. See +specified by either `glBlendFunc' or `glBlendFuncSeparate'. See `glBlendFunc' or `glBlendFuncSeparate' for a description of the various blend factors. In the equations that follow, source and destination color components are referred to as (R_S,G_SB_SA_S) and (R_D,G_DB_DA_D) , respectively. -The result color is referred to as (R_R,G_RB_RA_R) . The source and +The result color is referred to as (R_R,G_RB_RA_R) . The source and destination blend factors are denoted (S_R,S_GS_BS_A) and -(D_R,D_GD_BD_A) , respectively. For these equations all color components -are understood to have values in the range [0,1] . +(D_R,D_GD_BD_A) , respectively. For these equations all color +components are understood to have values in the range [0,1] . *Mode* *RGB Components*, *Alpha Component* @@ -1553,7 +1554,7 @@ The results of these equations are clamped to the range [0,1] . The `GL_MIN' and `GL_MAX' equations are useful for applications that analyze image data (image thresholding against a constant color, for -example). The `GL_FUNC_ADD' equation is useful for antialiasing and +example). The `GL_FUNC_ADD' equation is useful for antialiasing and transparency, among other things. Initially, both the RGB blend equation and the alpha blend equation are @@ -1575,25 +1576,25 @@ execution of `glEnd'.") blend equation. MODE - specifies how source and destination colors are combined. It must + specifies how source and destination colors are combined. It must be `GL_FUNC_ADD', `GL_FUNC_SUBTRACT', `GL_FUNC_REVERSE_SUBTRACT', `GL_MIN', `GL_MAX'. The blend equations determine how a new pixel (the ''source'' color) is combined with a pixel already in the framebuffer (the ''destination'' -color). This function sets both the RGB blend equation and the alpha +color). This function sets both the RGB blend equation and the alpha blend equation to a single equation. These equations use the source and destination blend factors specified -by either `glBlendFunc' or `glBlendFuncSeparate'. See `glBlendFunc' or +by either `glBlendFunc' or `glBlendFuncSeparate'. See `glBlendFunc' or `glBlendFuncSeparate' for a description of the various blend factors. In the equations that follow, source and destination color components are referred to as (R_S,G_SB_SA_S) and (R_D,G_DB_DA_D) , respectively. -The result color is referred to as (R_R,G_RB_RA_R) . The source and +The result color is referred to as (R_R,G_RB_RA_R) . The source and destination blend factors are denoted (S_R,S_GS_BS_A) and -(D_R,D_GD_BD_A) , respectively. For these equations all color components -are understood to have values in the range [0,1] . +(D_R,D_GD_BD_A) , respectively. For these equations all color +components are understood to have values in the range [0,1] . *Mode* *RGB Components*, *Alpha Component* @@ -1622,7 +1623,7 @@ The results of these equations are clamped to the range [0,1] . The `GL_MIN' and `GL_MAX' equations are useful for applications that analyze image data (image thresholding against a constant color, for -example). The `GL_FUNC_ADD' equation is useful for antialiasing and +example). The `GL_FUNC_ADD' equation is useful for antialiasing and transparency, among other things. Initially, both the RGB blend equation and the alpha blend equation are @@ -1649,51 +1650,52 @@ between the execution of `glBegin' and the corresponding execution of SRCRGB Specifies how the red, green, and blue blending factors are - computed. The following symbolic constants are accepted: `GL_ZERO', - `GL_ONE', `GL_SRC_COLOR', `GL_ONE_MINUS_SRC_COLOR', `GL_DST_COLOR', - `GL_ONE_MINUS_DST_COLOR', `GL_SRC_ALPHA', `GL_ONE_MINUS_SRC_ALPHA', - `GL_DST_ALPHA', `GL_ONE_MINUS_DST_ALPHA', `GL_CONSTANT_COLOR', - `GL_ONE_MINUS_CONSTANT_COLOR', `GL_CONSTANT_ALPHA', - `GL_ONE_MINUS_CONSTANT_ALPHA', and `GL_SRC_ALPHA_SATURATE'. The - initial value is `GL_ONE'. + computed. The following symbolic constants are accepted: + `GL_ZERO', `GL_ONE', `GL_SRC_COLOR', `GL_ONE_MINUS_SRC_COLOR', + `GL_DST_COLOR', `GL_ONE_MINUS_DST_COLOR', `GL_SRC_ALPHA', + `GL_ONE_MINUS_SRC_ALPHA', `GL_DST_ALPHA', `GL_ONE_MINUS_DST_ALPHA', + `GL_CONSTANT_COLOR', `GL_ONE_MINUS_CONSTANT_COLOR', + `GL_CONSTANT_ALPHA', `GL_ONE_MINUS_CONSTANT_ALPHA', and + `GL_SRC_ALPHA_SATURATE'. The initial value is `GL_ONE'. DSTRGB Specifies how the red, green, and blue destination blending factors - are computed. The following symbolic constants are accepted: + are computed. The following symbolic constants are accepted: `GL_ZERO', `GL_ONE', `GL_SRC_COLOR', `GL_ONE_MINUS_SRC_COLOR', `GL_DST_COLOR', `GL_ONE_MINUS_DST_COLOR', `GL_SRC_ALPHA', `GL_ONE_MINUS_SRC_ALPHA', `GL_DST_ALPHA', `GL_ONE_MINUS_DST_ALPHA'. `GL_CONSTANT_COLOR', `GL_ONE_MINUS_CONSTANT_COLOR', - `GL_CONSTANT_ALPHA', and `GL_ONE_MINUS_CONSTANT_ALPHA'. The initial - value is `GL_ZERO'. + `GL_CONSTANT_ALPHA', and `GL_ONE_MINUS_CONSTANT_ALPHA'. The + initial value is `GL_ZERO'. SRCALPHA - Specified how the alpha source blending factor is computed. The - same symbolic constants are accepted as for SRCRGB. The initial + Specified how the alpha source blending factor is computed. The + same symbolic constants are accepted as for SRCRGB. The initial value is `GL_ONE'. DSTALPHA Specified how the alpha destination blending factor is computed. - The same symbolic constants are accepted as for DSTRGB. The initial - value is `GL_ZERO'. + The same symbolic constants are accepted as for DSTRGB. The + initial value is `GL_ZERO'. In RGBA mode, pixels can be drawn using a function that blends the incoming (source) RGBA values with the RGBA values that are already in -the frame buffer (the destination values). Blending is initially -disabled. Use `glEnable' and `glDisable' with argument `GL_BLEND' to +the frame buffer (the destination values). Blending is initially +disabled. Use `glEnable' and `glDisable' with argument `GL_BLEND' to enable and disable blending. `glBlendFuncSeparate' defines the operation of blending when it is -enabled. SRCRGB specifies which method is used to scale the source -RGB-color components. DSTRGB specifies which method is used to scale the -destination RGB-color components. Likewise, SRCALPHA specifies which -method is used to scale the source alpha color component, and DSTALPHA -specifies which method is used to scale the destination alpha component. -The possible methods are described in the following table. Each method -defines four scale factors, one each for red, green, blue, and alpha. +enabled. SRCRGB specifies which method is used to scale the source +RGB-color components. DSTRGB specifies which method is used to scale +the destination RGB-color components. Likewise, SRCALPHA specifies +which method is used to scale the source alpha color component, and +DSTALPHA specifies which method is used to scale the destination alpha +component. The possible methods are described in the following table. +Each method defines four scale factors, one each for red, green, blue, +and alpha. In the table and in subsequent equations, source and destination color -components are referred to as (R_S,G_SB_SA_S) and (R_D,G_DB_DA_D) . The +components are referred to as (R_S,G_SB_SA_S) and (R_D,G_DB_DA_D) . The color specified by `glBlendColor' is referred to as (R_C,G_CB_CA_C) . They are understood to have integer values between 0 and (K_R,K_GK_BK_A) , where @@ -1704,7 +1706,7 @@ and (M_R,M_GM_BM_A) is the number of red, green, blue, and alpha bitplanes. Source and destination scale factors are referred to as (S_R,S_GS_BS_A) -and (D_R,D_GD_BD_A) . All scale factors have range [0,1] . +and (D_R,D_GD_BD_A) . All scale factors have range [0,1] . @@ -1768,9 +1770,9 @@ B_D=MIN\u2061(K_B,B_S\u2062S_B+B_D\u2062D_B) A_D=MIN\u2061(K_A,A_S\u2062S_A+A_D\ Despite the apparent precision of the above equations, blending arithmetic is not exactly specified, because blending operates with -imprecise integer color values. However, a blend factor that should be +imprecise integer color values. However, a blend factor that should be equal to 1 is guaranteed not to modify its multiplicand, and a blend -factor equal to 0 reduces its multiplicand to 0. For example, when +factor equal to 0 reduces its multiplicand to 0. For example, when SRCRGB is `GL_SRC_ALPHA', DSTRGB is `GL_ONE_MINUS_SRC_ALPHA', and A_S is equal to K_A , the equations reduce to simple replacement: @@ -1795,40 +1797,40 @@ between the execution of `glBegin' and the corresponding execution of SFACTOR Specifies how the red, green, blue, and alpha source blending - factors are computed. The following symbolic constants are + factors are computed. The following symbolic constants are accepted: `GL_ZERO', `GL_ONE', `GL_SRC_COLOR', `GL_ONE_MINUS_SRC_COLOR', `GL_DST_COLOR', `GL_ONE_MINUS_DST_COLOR', `GL_SRC_ALPHA', `GL_ONE_MINUS_SRC_ALPHA', `GL_DST_ALPHA', `GL_ONE_MINUS_DST_ALPHA', `GL_CONSTANT_COLOR', `GL_ONE_MINUS_CONSTANT_COLOR', `GL_CONSTANT_ALPHA', - `GL_ONE_MINUS_CONSTANT_ALPHA', and `GL_SRC_ALPHA_SATURATE'. The + `GL_ONE_MINUS_CONSTANT_ALPHA', and `GL_SRC_ALPHA_SATURATE'. The initial value is `GL_ONE'. DFACTOR Specifies how the red, green, blue, and alpha destination blending - factors are computed. The following symbolic constants are + factors are computed. The following symbolic constants are accepted: `GL_ZERO', `GL_ONE', `GL_SRC_COLOR', `GL_ONE_MINUS_SRC_COLOR', `GL_DST_COLOR', `GL_ONE_MINUS_DST_COLOR', `GL_SRC_ALPHA', `GL_ONE_MINUS_SRC_ALPHA', `GL_DST_ALPHA', - `GL_ONE_MINUS_DST_ALPHA'. `GL_CONSTANT_COLOR', + `GL_ONE_MINUS_DST_ALPHA'. `GL_CONSTANT_COLOR', `GL_ONE_MINUS_CONSTANT_COLOR', `GL_CONSTANT_ALPHA', and - `GL_ONE_MINUS_CONSTANT_ALPHA'. The initial value is `GL_ZERO'. + `GL_ONE_MINUS_CONSTANT_ALPHA'. The initial value is `GL_ZERO'. In RGBA mode, pixels can be drawn using a function that blends the incoming (source) RGBA values with the RGBA values that are already in -the frame buffer (the destination values). Blending is initially -disabled. Use `glEnable' and `glDisable' with argument `GL_BLEND' to +the frame buffer (the destination values). Blending is initially +disabled. Use `glEnable' and `glDisable' with argument `GL_BLEND' to enable and disable blending. `glBlendFunc' defines the operation of blending when it is enabled. SFACTOR specifies which method is used to scale the source color -components. DFACTOR specifies which method is used to scale the -destination color components. The possible methods are described in the -following table. Each method defines four scale factors, one each for -red, green, blue, and alpha. In the table and in subsequent equations, +components. DFACTOR specifies which method is used to scale the +destination color components. The possible methods are described in the +following table. Each method defines four scale factors, one each for +red, green, blue, and alpha. In the table and in subsequent equations, source and destination color components are referred to as -(R_S,G_SB_SA_S) and (R_D,G_DB_DA_D) . The color specified by -`glBlendColor' is referred to as (R_C,G_CB_CA_C) . They are understood +(R_S,G_SB_SA_S) and (R_D,G_DB_DA_D) . The color specified by +`glBlendColor' is referred to as (R_C,G_CB_CA_C) . They are understood to have integer values between 0 and (K_R,K_GK_BK_A) , where K_C=2^M_C,-1 @@ -1837,8 +1839,8 @@ and (M_R,M_GM_BM_A) is the number of red, green, blue, and alpha bitplanes. Source and destination scale factors are referred to as (S_R,S_GS_BS_A) -and (D_R,D_GD_BD_A) . The scale factors described in the table, denoted -(F_R,F_GF_BF_A) , represent either source or destination factors. All +and (D_R,D_GD_BD_A) . The scale factors described in the table, denoted +(F_R,F_GF_BF_A) , represent either source or destination factors. All scale factors have range [0,1] . @@ -1903,9 +1905,9 @@ B_D=MIN\u2061(K_B,B_S\u2062S_B+B_D\u2062D_B) A_D=MIN\u2061(K_A,A_S\u2062S_A+A_D\ Despite the apparent precision of the above equations, blending arithmetic is not exactly specified, because blending operates with -imprecise integer color values. However, a blend factor that should be +imprecise integer color values. However, a blend factor that should be equal to 1 is guaranteed not to modify its multiplicand, and a blend -factor equal to 0 reduces its multiplicand to 0. For example, when +factor equal to 0 reduces its multiplicand to 0. For example, when SFACTOR is `GL_SRC_ALPHA', DFACTOR is `GL_ONE_MINUS_SRC_ALPHA', and A_S is equal to K_A , the equations reduce to simple replacement: @@ -1930,7 +1932,7 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Creates and initializes a buffer object's data store. TARGET - Specifies the target buffer object. The symbolic constant must be + Specifies the target buffer object. The symbolic constant must be `GL_ARRAY_BUFFER', `GL_ELEMENT_ARRAY_BUFFER', `GL_PIXEL_PACK_BUFFER', or `GL_PIXEL_UNPACK_BUFFER'. @@ -1942,26 +1944,26 @@ DATA for initialization, or `NULL' if no data is to be copied. USAGE - Specifies the expected usage pattern of the data store. The + Specifies the expected usage pattern of the data store. The symbolic constant must be `GL_STREAM_DRAW', `GL_STREAM_READ', `GL_STREAM_COPY', `GL_STATIC_DRAW', `GL_STATIC_READ', `GL_STATIC_COPY', `GL_DYNAMIC_DRAW', `GL_DYNAMIC_READ', or `GL_DYNAMIC_COPY'. `glBufferData' creates a new data store for the buffer object currently -bound to TARGET. Any pre-existing data store is deleted. The new data -store is created with the specified SIZE in bytes and USAGE. If DATA is +bound to TARGET. Any pre-existing data store is deleted. The new data +store is created with the specified SIZE in bytes and USAGE. If DATA is not `NULL', the data store is initialized with data from this pointer. In its initial state, the new data store is not mapped, it has a `NULL' mapped pointer, and its mapped access is `GL_READ_WRITE'. USAGE is a hint to the GL implementation as to how a buffer object's -data store will be accessed. This enables the GL implementation to make +data store will be accessed. This enables the GL implementation to make more intelligent decisions that may significantly impact buffer object -performance. It does not, however, constrain the actual usage of the -data store. USAGE can be broken down into two parts: first, the +performance. It does not, however, constrain the actual usage of the +data store. USAGE can be broken down into two parts: first, the frequency of access (modification and usage), and second, the nature of -that access. The frequency of access may be one of these: +that access. The frequency of access may be one of these: STREAM The data store contents will be modified once and used at most a @@ -2021,7 +2023,7 @@ between the execution of `glBegin' and the corresponding execution of "Updates a subset of a buffer object's data store. TARGET - Specifies the target buffer object. The symbolic constant must be + Specifies the target buffer object. The symbolic constant must be `GL_ARRAY_BUFFER', `GL_ELEMENT_ARRAY_BUFFER', `GL_PIXEL_PACK_BUFFER', or `GL_PIXEL_UNPACK_BUFFER'. @@ -2038,9 +2040,9 @@ DATA data store. `glBufferSubData' redefines some or all of the data store for the buffer -object currently bound to TARGET. Data starting at byte offset OFFSET +object currently bound to TARGET. Data starting at byte offset OFFSET and extending for SIZE bytes is copied to the data store from the memory -pointed to by DATA. An error is thrown if OFFSET and SIZE together +pointed to by DATA. An error is thrown if OFFSET and SIZE together define a range beyond the bounds of the buffer object's data store. `GL_INVALID_ENUM' is generated if TARGET is not `GL_ARRAY_BUFFER', @@ -2074,25 +2076,25 @@ N Specifies the number of display lists to be executed. TYPE - Specifies the type of values in LISTS. Symbolic constants + Specifies the type of values in LISTS. Symbolic constants `GL_BYTE', `GL_UNSIGNED_BYTE', `GL_SHORT', `GL_UNSIGNED_SHORT', `GL_INT', `GL_UNSIGNED_INT', `GL_FLOAT', `GL_2_BYTES', `GL_3_BYTES', and `GL_4_BYTES' are accepted. LISTS Specifies the address of an array of name offsets in the display - list. The pointer type is void because the offsets can be bytes, + list. The pointer type is void because the offsets can be bytes, shorts, ints, or floats, depending on the value of TYPE. `glCallLists' causes each display list in the list of names passed as -LISTS to be executed. As a result, the commands saved in each display +LISTS to be executed. As a result, the commands saved in each display list are executed in order, just as if they were called without using a -display list. Names of display lists that have not been defined are +display list. Names of display lists that have not been defined are ignored. `glCallLists' provides an efficient means for executing more than one -display list. TYPE allows lists with various name formats to be -accepted. The formats are as follows: +display list. TYPE allows lists with various name formats to be +accepted. The formats are as follows: `GL_BYTE' LISTS is treated as an array of signed bytes, each in the range @@ -2120,27 +2122,27 @@ accepted. The formats are as follows: LISTS is treated as an array of four-byte floating-point values. `GL_2_BYTES' - LISTS is treated as an array of unsigned bytes. Each pair of bytes - specifies a single display-list name. The value of the pair is + LISTS is treated as an array of unsigned bytes. Each pair of bytes + specifies a single display-list name. The value of the pair is computed as 256 times the unsigned value of the first byte plus the unsigned value of the second byte. `GL_3_BYTES' - LISTS is treated as an array of unsigned bytes. Each triplet of - bytes specifies a single display-list name. The value of the + LISTS is treated as an array of unsigned bytes. Each triplet of + bytes specifies a single display-list name. The value of the triplet is computed as 65536 times the unsigned value of the first byte, plus 256 times the unsigned value of the second byte, plus the unsigned value of the third byte. `GL_4_BYTES' - LISTS is treated as an array of unsigned bytes. Each quadruplet of - bytes specifies a single display-list name. The value of the + LISTS is treated as an array of unsigned bytes. Each quadruplet of + bytes specifies a single display-list name. The value of the quadruplet is computed as 16777216 times the unsigned value of the first byte, plus 65536 times the unsigned value of the second byte, plus 256 times the unsigned value of the third byte, plus the unsigned value of the fourth byte. -The list of display-list names is not null-terminated. Rather, N +The list of display-list names is not null-terminated. Rather, N specifies how many names are to be taken from LISTS. An additional level of indirection is made available with the @@ -2148,15 +2150,15 @@ An additional level of indirection is made available with the to each display-list name specified in LISTS before that display list is executed. -`glCallLists' can appear inside a display list. To avoid the possibility -of infinite recursion resulting from display lists calling one another, -a limit is placed on the nesting level of display lists during -display-list execution. This limit must be at least 64, and it depends -on the implementation. +`glCallLists' can appear inside a display list. To avoid the +possibility of infinite recursion resulting from display lists calling +one another, a limit is placed on the nesting level of display lists +during display-list execution. This limit must be at least 64, and it +depends on the implementation. -GL state is not saved and restored across a call to `glCallLists'. Thus, +GL state is not saved and restored across a call to `glCallLists'. Thus, changes made to GL state during the execution of the display lists -remain after execution is completed. Use `glPushAttrib', `glPopAttrib', +remain after execution is completed. Use `glPushAttrib', `glPopAttrib', `glPushMatrix', and `glPopMatrix' to preserve GL state across `glCallLists' calls. @@ -2173,20 +2175,20 @@ remain after execution is completed. Use `glPushAttrib', `glPopAttrib', LIST Specifies the integer name of the display list to be executed. -`glCallList' causes the named display list to be executed. The commands +`glCallList' causes the named display list to be executed. The commands saved in the display list are executed in order, just as if they were -called without using a display list. If LIST has not been defined as a +called without using a display list. If LIST has not been defined as a display list, `glCallList' is ignored. -`glCallList' can appear inside a display list. To avoid the possibility +`glCallList' can appear inside a display list. To avoid the possibility of infinite recursion resulting from display lists calling one another, a limit is placed on the nesting level of display lists during -display-list execution. This limit is at least 64, and it depends on the -implementation. +display-list execution. This limit is at least 64, and it depends on +the implementation. -GL state is not saved and restored across a call to `glCallList'. Thus, +GL state is not saved and restored across a call to `glCallList'. Thus, changes made to GL state during the execution of a display list remain -after execution of the display list is completed. Use `glPushAttrib', +after execution of the display list is completed. Use `glPushAttrib', `glPopAttrib', `glPushMatrix', and `glPopMatrix' to preserve GL state across `glCallList' calls.") @@ -2208,7 +2210,7 @@ RED ALPHA Specify the red, green, blue, and alpha values used when the - accumulation buffer is cleared. The initial values are all 0. + accumulation buffer is cleared. The initial values are all 0. `glClearAccum' specifies the red, green, blue, and alpha values used by `glClear' to clear the accumulation buffer. @@ -2237,11 +2239,11 @@ RED ALPHA Specify the red, green, blue, and alpha values used when the color - buffers are cleared. The initial values are all 0. + buffers are cleared. The initial values are all 0. `glClearColor' specifies the red, green, blue, and alpha values used by -`glClear' to clear the color buffers. Values specified by `glClearColor' -are clamped to the range [0,1] . +`glClear' to clear the color buffers. Values specified by +`glClearColor' are clamped to the range [0,1] . `GL_INVALID_OPERATION' is generated if `glClearColor' is executed between the execution of `glBegin' and the corresponding execution of @@ -2256,7 +2258,7 @@ DEPTH The initial value is 1. `glClearDepth' specifies the depth value used by `glClear' to clear the -depth buffer. Values specified by `glClearDepth' are clamped to the +depth buffer. Values specified by `glClearDepth' are clamped to the range [0,1] . `GL_INVALID_OPERATION' is generated if `glClearDepth' is executed @@ -2272,10 +2274,10 @@ C The initial value is 0. `glClearIndex' specifies the index used by `glClear' to clear the color -index buffers. C is not clamped. Rather, C is converted to a fixed-point -value with unspecified precision to the right of the binary point. The -integer part of this value is then masked with 2^M-1 , where M is the -number of bits in a color index stored in the frame buffer. +index buffers. C is not clamped. Rather, C is converted to a +fixed-point value with unspecified precision to the right of the binary +point. The integer part of this value is then masked with 2^M-1 , where +M is the number of bits in a color index stored in the frame buffer. `GL_INVALID_OPERATION' is generated if `glClearIndex' is executed between the execution of `glBegin' and the corresponding execution of @@ -2286,11 +2288,11 @@ between the execution of `glBegin' and the corresponding execution of "Specify the clear value for the stencil buffer. S - Specifies the index used when the stencil buffer is cleared. The + Specifies the index used when the stencil buffer is cleared. The initial value is 0. `glClearStencil' specifies the index used by `glClear' to clear the -stencil buffer. S is masked with 2^M-1 , where M is the number of bits +stencil buffer. S is masked with 2^M-1 , where M is the number of bits in the stencil buffer. `GL_INVALID_OPERATION' is generated if `glClearStencil' is executed @@ -2302,19 +2304,19 @@ between the execution of `glBegin' and the corresponding execution of "Clear buffers to preset values. MASK - Bitwise OR of masks that indicate the buffers to be cleared. The + Bitwise OR of masks that indicate the buffers to be cleared. The four masks are `GL_COLOR_BUFFER_BIT', `GL_DEPTH_BUFFER_BIT', `GL_ACCUM_BUFFER_BIT', and `GL_STENCIL_BUFFER_BIT'. `glClear' sets the bitplane area of the window to values previously selected by `glClearColor', `glClearIndex', `glClearDepth', -`glClearStencil', and `glClearAccum'. Multiple color buffers can be +`glClearStencil', and `glClearAccum'. Multiple color buffers can be cleared simultaneously by selecting more than one buffer at a time using `glDrawBuffer'. The pixel ownership test, the scissor test, dithering, and the buffer -writemasks affect the operation of `glClear'. The scissor box bounds the -cleared region. Alpha function, blend function, logical operation, +writemasks affect the operation of `glClear'. The scissor box bounds +the cleared region. Alpha function, blend function, logical operation, stenciling, texture mapping, and depth-buffering are ignored by `glClear'. @@ -2349,11 +2351,12 @@ execution of `glBegin' and the corresponding execution of `glEnd'.") "Select active texture unit. TEXTURE - Specifies which texture unit to make active. The number of texture + Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. TEXTURE must be one of `GL_TEXTURE' I , where i ranges from 0 to the value of `GL_MAX_TEXTURE_COORDS' - 1, which is an - implementation-dependent value. The initial value is `GL_TEXTURE0'. + implementation-dependent value. The initial value is + `GL_TEXTURE0'. `glClientActiveTexture' selects the vertex array client state parameters to be modified by `glTexCoordPointer', and enabled or disabled with @@ -2372,29 +2375,29 @@ where i ranges from 0 to the value of `GL_MAX_TEXTURE_COORDS' - 1.") "Specify a plane against which all geometry is clipped. PLANE - Specifies which clipping plane is being positioned. Symbolic names + Specifies which clipping plane is being positioned. Symbolic names of the form `GL_CLIP_PLANE'I, where I is an integer between 0 and `GL_MAX_CLIP_PLANES' -1 , are accepted. EQUATION Specifies the address of an array of four double-precision - floating-point values. These values are interpreted as a plane + floating-point values. These values are interpreted as a plane equation. Geometry is always clipped against the boundaries of a six-plane frustum -in X, Y, and Z. `glClipPlane' allows the specification of additional +in X, Y, and Z. `glClipPlane' allows the specification of additional planes, not necessarily perpendicular to the X, Y, or Z axis, against -which all geometry is clipped. To determine the maximum number of +which all geometry is clipped. To determine the maximum number of additional clipping planes, call `glGetIntegerv' with argument -`GL_MAX_CLIP_PLANES'. All implementations support at least six such -clipping planes. Because the resulting clipping region is the +`GL_MAX_CLIP_PLANES'. All implementations support at least six such +clipping planes. Because the resulting clipping region is the intersection of the defined half-spaces, it is always convex. `glClipPlane' specifies a half-space using a four-component plane -equation. When `glClipPlane' is called, EQUATION is transformed by the +equation. When `glClipPlane' is called, EQUATION is transformed by the inverse of the modelview matrix and stored in the resulting eye -coordinates. Subsequent changes to the modelview matrix have no effect -on the stored plane-equation components. If the dot product of the eye +coordinates. Subsequent changes to the modelview matrix have no effect +on the stored plane-equation components. If the dot product of the eye coordinates of a vertex with the stored plane equation components is positive or zero, the vertex is IN with respect to that clipping plane. Otherwise, it is OUT. @@ -2428,15 +2431,15 @@ RED ALPHA Specify whether red, green, blue, and alpha can or cannot be - written into the frame buffer. The initial values are all + written into the frame buffer. The initial values are all `GL_TRUE', indicating that the color components can be written. `glColorMask' specifies whether the individual color components in the -frame buffer can or cannot be written. If RED is `GL_FALSE', for +frame buffer can or cannot be written. If RED is `GL_FALSE', for example, no change is made to the red component of any pixel in any of the color buffers, regardless of the drawing operation attempted. -Changes to individual bits of components cannot be controlled. Rather, +Changes to individual bits of components cannot be controlled. Rather, changes are either enabled or disabled for entire color components. `GL_INVALID_OPERATION' is generated if `glColorMask' is executed between @@ -2452,23 +2455,23 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") FACE Specifies whether front, back, or both front and back material - parameters should track the current color. Accepted values are - `GL_FRONT', `GL_BACK', and `GL_FRONT_AND_BACK'. The initial value + parameters should track the current color. Accepted values are + `GL_FRONT', `GL_BACK', and `GL_FRONT_AND_BACK'. The initial value is `GL_FRONT_AND_BACK'. MODE Specifies which of several material parameters track the current - color. Accepted values are `GL_EMISSION', `GL_AMBIENT', - `GL_DIFFUSE', `GL_SPECULAR', and `GL_AMBIENT_AND_DIFFUSE'. The + color. Accepted values are `GL_EMISSION', `GL_AMBIENT', + `GL_DIFFUSE', `GL_SPECULAR', and `GL_AMBIENT_AND_DIFFUSE'. The initial value is `GL_AMBIENT_AND_DIFFUSE'. `glColorMaterial' specifies which material parameters track the current -color. When `GL_COLOR_MATERIAL' is enabled, the material parameter or +color. When `GL_COLOR_MATERIAL' is enabled, the material parameter or parameters specified by MODE, of the material or materials specified by FACE, track the current color at all times. To enable and disable `GL_COLOR_MATERIAL', call `glEnable' and -`glDisable' with argument `GL_COLOR_MATERIAL'. `GL_COLOR_MATERIAL' is +`glDisable' with argument `GL_COLOR_MATERIAL'. `GL_COLOR_MATERIAL' is initially disabled. `GL_INVALID_ENUM' is generated if FACE or MODE is not an accepted value. @@ -2488,35 +2491,35 @@ between the execution of `glBegin' and the corresponding execution of "Define an array of colors. SIZE - Specifies the number of components per color. Must be 3 or 4. The + Specifies the number of components per color. Must be 3 or 4. The initial value is 4. TYPE Specifies the data type of each color component in the array. Symbolic constants `GL_BYTE', `GL_UNSIGNED_BYTE', `GL_SHORT', `GL_UNSIGNED_SHORT', `GL_INT', `GL_UNSIGNED_INT', `GL_FLOAT', and - `GL_DOUBLE' are accepted. The initial value is `GL_FLOAT'. + `GL_DOUBLE' are accepted. The initial value is `GL_FLOAT'. STRIDE - Specifies the byte offset between consecutive colors. If STRIDE is - 0, the colors are understood to be tightly packed in the array. The + Specifies the byte offset between consecutive colors. If STRIDE is + 0, the colors are understood to be tightly packed in the array. The initial value is 0. POINTER Specifies a pointer to the first component of the first color - element in the array. The initial value is 0. + element in the array. The initial value is 0. `glColorPointer' specifies the location and data format of an array of -color components to use when rendering. SIZE specifies the number of -components per color, and must be 3 or 4. TYPE specifies the data type +color components to use when rendering. SIZE specifies the number of +components per color, and must be 3 or 4. TYPE specifies the data type of each color component, and STRIDE specifies the byte stride from one color to the next, allowing vertices and attributes to be packed into a -single array or stored in separate arrays. (Single-array storage may be +single array or stored in separate arrays. (Single-array storage may be more efficient on some implementations; see `glInterleavedArrays'.) If a non-zero named buffer object is bound to the `GL_ARRAY_BUFFER' target (see `glBindBuffer') while a color array is specified, POINTER is -treated as a byte offset into the buffer object's data store. Also, the +treated as a byte offset into the buffer object's data store. Also, the buffer object binding (`GL_ARRAY_BUFFER_BINDING') is saved as color vertex array client-side state (`GL_COLOR_ARRAY_BUFFER_BINDING'). @@ -2525,7 +2528,7 @@ saved as client-side state, in addition to the current vertex array buffer object binding. To enable and disable the color array, call `glEnableClientState' and -`glDisableClientState' with the argument `GL_COLOR_ARRAY'. If enabled, +`glDisableClientState' with the argument `GL_COLOR_ARRAY'. If enabled, the color array is used when `glDrawArrays', `glMultiDrawArrays', `glDrawElements', `glMultiDrawElements', `glDrawRangeElements', or `glArrayElement' is called. @@ -2560,12 +2563,12 @@ COUNT The number of table entries to replace. FORMAT - The format of the pixel data in DATA. The allowable values are + The format of the pixel data in DATA. The allowable values are `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_LUMINANCE', `GL_LUMINANCE_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', and `GL_BGRA'. TYPE - The type of the pixel data in DATA. The allowable values are + The type of the pixel data in DATA. The allowable values are `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', `GL_UNSIGNED_SHORT_5_6_5', @@ -2580,10 +2583,10 @@ DATA to replace the specified region of the color table. `glColorSubTable' is used to respecify a contiguous portion of a color -table previously defined using `glColorTable'. The pixels referenced by +table previously defined using `glColorTable'. The pixels referenced by DATA replace the portion of the existing table from indices START to -START+COUNT-1 , inclusive. This region may not include any entries -outside the range of the color table as it was originally specified. It +START+COUNT-1 , inclusive. This region may not include any entries +outside the range of the color table as it was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect. @@ -2637,12 +2640,12 @@ between the execution of `glBegin' and the corresponding execution of "Set color lookup table parameters. TARGET - The target color table. Must be `GL_COLOR_TABLE', + The target color table. Must be `GL_COLOR_TABLE', `GL_POST_CONVOLUTION_COLOR_TABLE', or `GL_POST_COLOR_MATRIX_COLOR_TABLE'. PNAME - The symbolic name of a texture color lookup table parameter. Must + The symbolic name of a texture color lookup table parameter. Must be one of `GL_COLOR_TABLE_SCALE' or `GL_COLOR_TABLE_BIAS'. PARAMS @@ -2651,18 +2654,18 @@ PARAMS `glColorTableParameter' is used to specify the scale factors and bias terms applied to color components when they are loaded into a color -table. TARGET indicates which color table the scale and bias terms apply -to; it must be set to `GL_COLOR_TABLE', +table. TARGET indicates which color table the scale and bias terms +apply to; it must be set to `GL_COLOR_TABLE', `GL_POST_CONVOLUTION_COLOR_TABLE', or `GL_POST_COLOR_MATRIX_COLOR_TABLE'. -PNAME must be `GL_COLOR_TABLE_SCALE' to set the scale factors. In this +PNAME must be `GL_COLOR_TABLE_SCALE' to set the scale factors. In this case, PARAMS points to an array of four values, which are the scale factors for red, green, blue, and alpha, in that order. -PNAME must be `GL_COLOR_TABLE_BIAS' to set the bias terms. In this case, -PARAMS points to an array of four values, which are the bias terms for -red, green, blue, and alpha, in that order. +PNAME must be `GL_COLOR_TABLE_BIAS' to set the bias terms. In this +case, PARAMS points to an array of four values, which are the bias terms +for red, green, blue, and alpha, in that order. The color tables themselves are specified by calling `glColorTable'. @@ -2692,7 +2695,7 @@ TARGET `GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE'. INTERNALFORMAT - The internal format of the color table. The allowable values are + The internal format of the color table. The allowable values are `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', `GL_ALPHA12', `GL_ALPHA16', `GL_LUMINANCE', `GL_LUMINANCE4', `GL_LUMINANCE8', `GL_LUMINANCE12', `GL_LUMINANCE16', `GL_LUMINANCE_ALPHA', `GL_LUMINANCE4_ALPHA4', @@ -2708,12 +2711,12 @@ WIDTH The number of entries in the color lookup table specified by DATA. FORMAT - The format of the pixel data in DATA. The allowable values are + The format of the pixel data in DATA. The allowable values are `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_LUMINANCE', `GL_LUMINANCE_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', and `GL_BGRA'. TYPE - The type of the pixel data in DATA. The allowable values are + The type of the pixel data in DATA. The allowable values are `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', `GL_UNSIGNED_SHORT_5_6_5', @@ -2729,7 +2732,7 @@ DATA `glColorTable' may be used in two ways: to test the actual size and color resolution of a lookup table given a particular set of parameters, -or to load the contents of a color lookup table. Use the targets +or to load the contents of a color lookup table. Use the targets `GL_PROXY_*' for the first case and the other targets for the second case. @@ -2740,21 +2743,21 @@ data store. If TARGET is `GL_COLOR_TABLE', `GL_POST_CONVOLUTION_COLOR_TABLE', or `GL_POST_COLOR_MATRIX_COLOR_TABLE', `glColorTable' builds a color lookup -table from an array of pixels. The pixel array specified by WIDTH, +table from an array of pixels. The pixel array specified by WIDTH, FORMAT, TYPE, and DATA is extracted from memory and processed just as if `glDrawPixels' were called, but processing stops after the final expansion to RGBA is completed. The four scale parameters and the four bias parameters that are defined for the table are then used to scale and bias the R, G, B, and A -components of each pixel. (Use `glColorTableParameter' to set these +components of each pixel. (Use `glColorTableParameter' to set these scale and bias parameters.) -Next, the R, G, B, and A values are clamped to the range [0,1] . Each +Next, the R, G, B, and A values are clamped to the range [0,1] . Each pixel is then converted to the internal format specified by -INTERNALFORMAT. This conversion simply maps the component values of the +INTERNALFORMAT. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal format -(red, green, blue, alpha, luminance, and intensity). The mapping is as +(red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @@ -2781,7 +2784,7 @@ follows: R , G , B , A , , Finally, the red, green, blue, alpha, luminance, and/or intensity -components of the resulting pixels are stored in the color table. They +components of the resulting pixels are stored in the color table. They form a one-dimensional table with indices in the range [0,WIDTH-1] . If TARGET is `GL_PROXY_*', `glColorTable' recomputes and stores the @@ -2790,15 +2793,15 @@ values of the proxy color table's state variables `GL_COLOR_TABLE_RED_SIZE', `GL_COLOR_TABLE_GREEN_SIZE', `GL_COLOR_TABLE_BLUE_SIZE', `GL_COLOR_TABLE_ALPHA_SIZE', `GL_COLOR_TABLE_LUMINANCE_SIZE', and `GL_COLOR_TABLE_INTENSITY_SIZE'. -There is no effect on the image or state of any actual color table. If +There is no effect on the image or state of any actual color table. If the specified color table is too large to be supported, then all the -proxy state variables listed above are set to zero. Otherwise, the color -table could be supported by `glColorTable' using the corresponding +proxy state variables listed above are set to zero. Otherwise, the +color table could be supported by `glColorTable' using the corresponding non-proxy target, and the proxy state variables are set as if that target were being defined. The proxy state variables can be retrieved by calling -`glGetColorTableParameter' with a target of `GL_PROXY_*'. This allows +`glGetColorTableParameter' with a target of `GL_PROXY_*'. This allows the application to decide if a particular `glColorTable' command would succeed, and to determine what the resulting color table attributes would be. @@ -2808,10 +2811,10 @@ contents are used to replace a subset of the components of each RGBA pixel group, based on the internal format of the table. Each pixel group has color components (R, G, B, A) that are in the range -[0.0,1.0] . The color components are rescaled to the size of the color -lookup table to form an index. Then a subset of the components based on +[0.0,1.0] . The color components are rescaled to the size of the color +lookup table to form an index. Then a subset of the components based on the internal format of the table are replaced by the table entry -selected by that index. If the color components and contents of the +selected by that index. If the color components and contents of the table are represented as follows: @@ -2879,7 +2882,7 @@ then the result of color table lookup is as follows: When `GL_COLOR_TABLE' is enabled, the colors resulting from the pixel map operation (if it is enabled) are mapped by the color lookup table -before being passed to the convolution operation. The colors resulting +before being passed to the convolution operation. The colors resulting from the convolution operation are modified by the post convolution color lookup table when `GL_POST_CONVOLUTION_COLOR_TABLE' is enabled. These modified colors are then sent to the color matrix operation. @@ -3056,33 +3059,33 @@ RED Specify new red, green, and blue values for the current color. ALPHA - Specifies a new alpha value for the current color. Included only in - the four-argument `glColor4' commands. + Specifies a new alpha value for the current color. Included only + in the four-argument `glColor4' commands. The GL stores both a current single-valued color index and a current -four-valued RGBA color. `glColor' sets a new four-valued RGBA color. -`glColor' has two major variants: `glColor3' and `glColor4'. `glColor3' +four-valued RGBA color. `glColor' sets a new four-valued RGBA color. +`glColor' has two major variants: `glColor3' and `glColor4'. `glColor3' variants specify new red, green, and blue values explicitly and set the -current alpha value to 1.0 (full intensity) implicitly. `glColor4' +current alpha value to 1.0 (full intensity) implicitly. `glColor4' variants specify all four color components explicitly. `glColor3b', `glColor4b', `glColor3s', `glColor4s', `glColor3i', and `glColor4i' take three or four signed byte, short, or long integers as -arguments. When *v* is appended to the name, the color commands can take -a pointer to an array of such values. +arguments. When *v* is appended to the name, the color commands can +take a pointer to an array of such values. Current color values are stored in floating-point format, with -unspecified mantissa and exponent sizes. Unsigned integer color +unspecified mantissa and exponent sizes. Unsigned integer color components, when specified, are linearly mapped to floating-point values such that the largest representable value maps to 1.0 (full intensity), -and 0 maps to 0.0 (zero intensity). Signed integer color components, +and 0 maps to 0.0 (zero intensity). Signed integer color components, when specified, are linearly mapped to floating-point values such that the most positive representable value maps to 1.0, and the most negative -representable value maps to -1.0 . (Note that this mapping does not +representable value maps to -1.0 . (Note that this mapping does not convert 0 precisely to 0.0.) Floating-point values are mapped directly. Neither floating-point nor signed integer values are clamped to the -range [0,1] before the current color is updated. However, color +range [0,1] before the current color is updated. However, color components are clamped to this range before they are interpolated or written into a color buffer.") @@ -3097,13 +3100,13 @@ SHADER in the shader object specified by SHADER. The compilation status will be stored as part of the shader object's -state. This value will be set to `GL_TRUE' if the shader was compiled -without errors and is ready for use, and `GL_FALSE' otherwise. It can be -queried by calling `glGetShader' with arguments SHADER and +state. This value will be set to `GL_TRUE' if the shader was compiled +without errors and is ready for use, and `GL_FALSE' otherwise. It can +be queried by calling `glGetShader' with arguments SHADER and `GL_COMPILE_STATUS'. Compilation of a shader can fail for a number of reasons as specified by -the OpenGL Shading Language Specification. Whether or not the +the OpenGL Shading Language Specification. Whether or not the compilation was successful, information about the compilation can be obtained from the shader object's information log by calling `glGetShaderInfoLog'. @@ -3131,12 +3134,12 @@ between the execution of `glBegin' and the corresponding execution of "Specify a one-dimensional texture image in a compressed format. TARGET - Specifies the target texture. Must be `GL_TEXTURE_1D' or + Specifies the target texture. Must be `GL_TEXTURE_1D' or `GL_PROXY_TEXTURE_1D'. LEVEL - Specifies the level-of-detail number. Level 0 is the base image - level. Level N is the Nth mipmap reduction image. + Specifies the level-of-detail number. Level 0 is the base image + level. Level N is the Nth mipmap reduction image. INTERNALFORMAT Specifies the format of the compressed image data stored at address @@ -3144,13 +3147,13 @@ INTERNALFORMAT WIDTH Specifies the width of the texture image including the border if - any. If the GL version does not support non-power-of-two sizes, - this value must be 2^N+2\u2061(BORDER,) for some integer N . All + any. If the GL version does not support non-power-of-two sizes, + this value must be 2^N+2\u2061(BORDER,) for some integer N . All implementations support texture images that are at least 64 texels - wide. The height of the 1D texture image is 1. + wide. The height of the 1D texture image is 1. BORDER - Specifies the width of the border. Must be either 0 or 1. + Specifies the width of the border. Must be either 0 or 1. IMAGESIZE Specifies the number of unsigned bytes of image data starting at @@ -3160,7 +3163,7 @@ DATA Specifies a pointer to the compressed image data in memory. Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable one-dimensional texturing, call `glEnable' and `glDisable' with argument `GL_TEXTURE_1D'. @@ -3170,16 +3173,16 @@ compressed one-dimensional texture image if TARGET is `GL_TEXTURE_1D' If TARGET is `GL_PROXY_TEXTURE_1D', no data is read from DATA, but all of the texture image state is recalculated, checked for consistency, and -checked against the implementation's capabilities. If the implementation -cannot handle a texture of the requested texture size, it sets all of -the image state to 0, but does not generate an error (see `glGetError'). -To query for an entire mipmap array, use an image array level greater -than or equal to 1. +checked against the implementation's capabilities. If the +implementation cannot handle a texture of the requested texture size, it +sets all of the image state to 0, but does not generate an error (see +`glGetError'). To query for an entire mipmap array, use an image array +level greater than or equal to 1. INTERNALFORMAT must be extension-specified compressed-texture format. When a texture is loaded with `glTexImage1D' using a generic compressed texture format (e.g., `GL_COMPRESSED_RGB') the GL selects from one of -its extensions supporting compressed textures. In order to load the +its extensions supporting compressed textures. In order to load the compressed texture image using `glCompressedTexImage1D', query the compressed texture image's size and format using `glGetTexLevelParameter'. @@ -3233,15 +3236,15 @@ specification defining the internal compression format.") "Specify a two-dimensional texture image in a compressed format. TARGET - Specifies the target texture. Must be `GL_TEXTURE_2D', + Specifies the target texture. Must be `GL_TEXTURE_2D', `GL_PROXY_TEXTURE_2D', `GL_TEXTURE_CUBE_MAP_POSITIVE_X', `GL_TEXTURE_CUBE_MAP_NEGATIVE_X', `GL_TEXTURE_CUBE_MAP_POSITIVE_Y', `GL_TEXTURE_CUBE_MAP_NEGATIVE_Y', `GL_TEXTURE_CUBE_MAP_POSITIVE_Z', `GL_TEXTURE_CUBE_MAP_NEGATIVE_Z', or `GL_PROXY_TEXTURE_CUBE_MAP'. LEVEL - Specifies the level-of-detail number. Level 0 is the base image - level. Level N is the Nth mipmap reduction image. + Specifies the level-of-detail number. Level 0 is the base image + level. Level N is the Nth mipmap reduction image. INTERNALFORMAT Specifies the format of the compressed image data stored at address @@ -3249,22 +3252,22 @@ INTERNALFORMAT WIDTH Specifies the width of the texture image including the border if - any. If the GL version does not support non-power-of-two sizes, - this value must be 2^N+2\u2061(BORDER,) for some integer N . All + any. If the GL version does not support non-power-of-two sizes, + this value must be 2^N+2\u2061(BORDER,) for some integer N . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. HEIGHT Specifies the height of the texture image including the border if - any. If the GL version does not support non-power-of-two sizes, - this value must be Must be 2^N+2\u2061(BORDER,) for some integer N . All + any. If the GL version does not support non-power-of-two sizes, + this value must be Must be 2^N+2\u2061(BORDER,) for some integer N . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. BORDER - Specifies the width of the border. Must be either 0 or 1. + Specifies the width of the border. Must be either 0 or 1. IMAGESIZE Specifies the number of unsigned bytes of image data starting at @@ -3274,9 +3277,9 @@ DATA Specifies a pointer to the compressed image data in memory. Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable two-dimensional texturing, call `glEnable' and `glDisable' with -argument `GL_TEXTURE_2D'. To enable and disable texturing using +argument `GL_TEXTURE_2D'. To enable and disable texturing using cube-mapped textures, call `glEnable' and `glDisable' with argument `GL_TEXTURE_CUBE_MAP'. @@ -3286,16 +3289,16 @@ compressed two-dimensional texture image if TARGET is `GL_TEXTURE_2D' If TARGET is `GL_PROXY_TEXTURE_2D', no data is read from DATA, but all of the texture image state is recalculated, checked for consistency, and -checked against the implementation's capabilities. If the implementation -cannot handle a texture of the requested texture size, it sets all of -the image state to 0, but does not generate an error (see `glGetError'). -To query for an entire mipmap array, use an image array level greater -than or equal to 1. +checked against the implementation's capabilities. If the +implementation cannot handle a texture of the requested texture size, it +sets all of the image state to 0, but does not generate an error (see +`glGetError'). To query for an entire mipmap array, use an image array +level greater than or equal to 1. INTERNALFORMAT must be an extension-specified compressed-texture format. When a texture is loaded with `glTexImage2D' using a generic compressed texture format (e.g., `GL_COMPRESSED_RGB'), the GL selects from one of -its extensions supporting compressed textures. In order to load the +its extensions supporting compressed textures. In order to load the compressed texture image using `glCompressedTexImage2D', query the compressed texture image's size and format using `glGetTexLevelParameter'. @@ -3350,12 +3353,12 @@ specification defining the internal compression format.") "Specify a three-dimensional texture image in a compressed format. TARGET - Specifies the target texture. Must be `GL_TEXTURE_3D' or + Specifies the target texture. Must be `GL_TEXTURE_3D' or `GL_PROXY_TEXTURE_3D'. LEVEL - Specifies the level-of-detail number. Level 0 is the base image - level. Level N is the Nth mipmap reduction image. + Specifies the level-of-detail number. Level 0 is the base image + level. Level N is the Nth mipmap reduction image. INTERNALFORMAT Specifies the format of the compressed image data stored at address @@ -3363,27 +3366,27 @@ INTERNALFORMAT WIDTH Specifies the width of the texture image including the border if - any. If the GL version does not support non-power-of-two sizes, - this value must be 2^N+2\u2061(BORDER,) for some integer N . All + any. If the GL version does not support non-power-of-two sizes, + this value must be 2^N+2\u2061(BORDER,) for some integer N . All implementations support 3D texture images that are at least 16 texels wide. HEIGHT Specifies the height of the texture image including the border if - any. If the GL version does not support non-power-of-two sizes, - this value must be 2^N+2\u2061(BORDER,) for some integer N . All + any. If the GL version does not support non-power-of-two sizes, + this value must be 2^N+2\u2061(BORDER,) for some integer N . All implementations support 3D texture images that are at least 16 texels high. DEPTH Specifies the depth of the texture image including the border if - any. If the GL version does not support non-power-of-two sizes, - this value must be 2^N+2\u2061(BORDER,) for some integer N . All + any. If the GL version does not support non-power-of-two sizes, + this value must be 2^N+2\u2061(BORDER,) for some integer N . All implementations support 3D texture images that are at least 16 texels deep. BORDER - Specifies the width of the border. Must be either 0 or 1. + Specifies the width of the border. Must be either 0 or 1. IMAGESIZE Specifies the number of unsigned bytes of image data starting at @@ -3393,7 +3396,7 @@ DATA Specifies a pointer to the compressed image data in memory. Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable three-dimensional texturing, call `glEnable' and `glDisable' with argument `GL_TEXTURE_3D'. @@ -3403,16 +3406,16 @@ compressed three-dimensional texture image if TARGET is `GL_TEXTURE_3D' If TARGET is `GL_PROXY_TEXTURE_3D', no data is read from DATA, but all of the texture image state is recalculated, checked for consistency, and -checked against the implementation's capabilities. If the implementation -cannot handle a texture of the requested texture size, it sets all of -the image state to 0, but does not generate an error (see `glGetError'). -To query for an entire mipmap array, use an image array level greater -than or equal to 1. +checked against the implementation's capabilities. If the +implementation cannot handle a texture of the requested texture size, it +sets all of the image state to 0, but does not generate an error (see +`glGetError'). To query for an entire mipmap array, use an image array +level greater than or equal to 1. INTERNALFORMAT must be an extension-specified compressed-texture format. When a texture is loaded with `glTexImage2D' using a generic compressed texture format (e.g., `GL_COMPRESSED_RGB'), the GL selects from one of -its extensions supporting compressed textures. In order to load the +its extensions supporting compressed textures. In order to load the compressed texture image using `glCompressedTexImage3D', query the compressed texture image's size and format using `glGetTexLevelParameter'. @@ -3465,11 +3468,11 @@ specification defining the internal compression format.") "Specify a one-dimensional texture subimage in a compressed format. TARGET - Specifies the target texture. Must be `GL_TEXTURE_1D'. + Specifies the target texture. Must be `GL_TEXTURE_1D'. LEVEL - Specifies the level-of-detail number. Level 0 is the base image - level. Level N is the Nth mipmap reduction image. + Specifies the level-of-detail number. Level 0 is the base image + level. Level N is the Nth mipmap reduction image. XOFFSET Specifies a texel offset in the x direction within the texture @@ -3490,19 +3493,19 @@ DATA Specifies a pointer to the compressed image data in memory. Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable one-dimensional texturing, call `glEnable' and `glDisable' with argument `GL_TEXTURE_1D'. `glCompressedTexSubImage1D' redefines a contiguous subregion of an -existing one-dimensional texture image. The texels referenced by DATA +existing one-dimensional texture image. The texels referenced by DATA replace the portion of the existing texture array with x indices XOFFSET -and XOFFSET+WIDTH-1 , inclusive. This region may not include any texels +and XOFFSET+WIDTH-1 , inclusive. This region may not include any texels outside the range of the texture array as it was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect. -FORMAT must be an extension-specified compressed-texture format. The +FORMAT must be an extension-specified compressed-texture format. The FORMAT of the compressed texture image is selected by the GL implementation that compressed it (see `glTexImage1D'), and should be queried at the time the texture was compressed with @@ -3561,15 +3564,15 @@ specification defining the internal compression format.") "Specify a two-dimensional texture subimage in a compressed format. TARGET - Specifies the target texture. Must be `GL_TEXTURE_2D', + Specifies the target texture. Must be `GL_TEXTURE_2D', `GL_TEXTURE_CUBE_MAP_POSITIVE_X', `GL_TEXTURE_CUBE_MAP_NEGATIVE_X', `GL_TEXTURE_CUBE_MAP_POSITIVE_Y', `GL_TEXTURE_CUBE_MAP_NEGATIVE_Y', `GL_TEXTURE_CUBE_MAP_POSITIVE_Z', or `GL_TEXTURE_CUBE_MAP_NEGATIVE_Z'. LEVEL - Specifies the level-of-detail number. Level 0 is the base image - level. Level N is the Nth mipmap reduction image. + Specifies the level-of-detail number. Level 0 is the base image + level. Level N is the Nth mipmap reduction image. XOFFSET Specifies a texel offset in the x direction within the texture @@ -3597,22 +3600,22 @@ DATA Specifies a pointer to the compressed image data in memory. Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable two-dimensional texturing, call `glEnable' and `glDisable' with -argument `GL_TEXTURE_2D'. To enable and disable texturing using +argument `GL_TEXTURE_2D'. To enable and disable texturing using cube-mapped texture, call `glEnable' and `glDisable' with argument `GL_TEXTURE_CUBE_MAP'. `glCompressedTexSubImage2D' redefines a contiguous subregion of an -existing two-dimensional texture image. The texels referenced by DATA +existing two-dimensional texture image. The texels referenced by DATA replace the portion of the existing texture array with x indices XOFFSET and XOFFSET+WIDTH-1 , and the y indices YOFFSET and YOFFSET+HEIGHT-1 , -inclusive. This region may not include any texels outside the range of -the texture array as it was originally specified. It is not an error to +inclusive. This region may not include any texels outside the range of +the texture array as it was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect. -FORMAT must be an extension-specified compressed-texture format. The +FORMAT must be an extension-specified compressed-texture format. The FORMAT of the compressed texture image is selected by the GL implementation that compressed it (see `glTexImage2D') and should be queried at the time the texture was compressed with @@ -3673,11 +3676,11 @@ specification defining the internal compression format.") "Specify a three-dimensional texture subimage in a compressed format. TARGET - Specifies the target texture. Must be `GL_TEXTURE_3D'. + Specifies the target texture. Must be `GL_TEXTURE_3D'. LEVEL - Specifies the level-of-detail number. Level 0 is the base image - level. Level N is the Nth mipmap reduction image. + Specifies the level-of-detail number. Level 0 is the base image + level. Level N is the Nth mipmap reduction image. XOFFSET Specifies a texel offset in the x direction within the texture @@ -3708,20 +3711,20 @@ DATA Specifies a pointer to the compressed image data in memory. Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable three-dimensional texturing, call `glEnable' and `glDisable' with argument `GL_TEXTURE_3D'. `glCompressedTexSubImage3D' redefines a contiguous subregion of an -existing three-dimensional texture image. The texels referenced by DATA +existing three-dimensional texture image. The texels referenced by DATA replace the portion of the existing texture array with x indices XOFFSET and XOFFSET+WIDTH-1 , and the y indices YOFFSET and YOFFSET+HEIGHT-1 , -and the z indices ZOFFSET and ZOFFSET+DEPTH-1 , inclusive. This region +and the z indices ZOFFSET and ZOFFSET+DEPTH-1 , inclusive. This region may not include any texels outside the range of the texture array as it -was originally specified. It is not an error to specify a subtexture +was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect. -FORMAT must be an extension-specified compressed-texture format. The +FORMAT must be an extension-specified compressed-texture format. The FORMAT of the compressed texture image is selected by the GL implementation that compressed it (see `glTexImage3D') and should be queried at the time the texture was compressed with @@ -3780,29 +3783,29 @@ TARGET Must be `GL_CONVOLUTION_1D'. INTERNALFORMAT - The internal format of the convolution filter kernel. The allowable - values are `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', `GL_ALPHA12', - `GL_ALPHA16', `GL_LUMINANCE', `GL_LUMINANCE4', `GL_LUMINANCE8', - `GL_LUMINANCE12', `GL_LUMINANCE16', `GL_LUMINANCE_ALPHA', - `GL_LUMINANCE4_ALPHA4', `GL_LUMINANCE6_ALPHA2', - `GL_LUMINANCE8_ALPHA8', `GL_LUMINANCE12_ALPHA4', - `GL_LUMINANCE12_ALPHA12', `GL_LUMINANCE16_ALPHA16', `GL_INTENSITY', - `GL_INTENSITY4', `GL_INTENSITY8', `GL_INTENSITY12', - `GL_INTENSITY16', `GL_R3_G3_B2', `GL_RGB', `GL_RGB4', `GL_RGB5', - `GL_RGB8', `GL_RGB10', `GL_RGB12', `GL_RGB16', `GL_RGBA', - `GL_RGBA2', `GL_RGBA4', `GL_RGB5_A1', `GL_RGBA8', `GL_RGB10_A2', - `GL_RGBA12', or `GL_RGBA16'. + The internal format of the convolution filter kernel. The + allowable values are `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', + `GL_ALPHA12', `GL_ALPHA16', `GL_LUMINANCE', `GL_LUMINANCE4', + `GL_LUMINANCE8', `GL_LUMINANCE12', `GL_LUMINANCE16', + `GL_LUMINANCE_ALPHA', `GL_LUMINANCE4_ALPHA4', + `GL_LUMINANCE6_ALPHA2', `GL_LUMINANCE8_ALPHA8', + `GL_LUMINANCE12_ALPHA4', `GL_LUMINANCE12_ALPHA12', + `GL_LUMINANCE16_ALPHA16', `GL_INTENSITY', `GL_INTENSITY4', + `GL_INTENSITY8', `GL_INTENSITY12', `GL_INTENSITY16', `GL_R3_G3_B2', + `GL_RGB', `GL_RGB4', `GL_RGB5', `GL_RGB8', `GL_RGB10', `GL_RGB12', + `GL_RGB16', `GL_RGBA', `GL_RGBA2', `GL_RGBA4', `GL_RGB5_A1', + `GL_RGBA8', `GL_RGB10_A2', `GL_RGBA12', or `GL_RGBA16'. WIDTH The width of the pixel array referenced by DATA. FORMAT - The format of the pixel data in DATA. The allowable values are + The format of the pixel data in DATA. The allowable values are `GL_ALPHA', `GL_LUMINANCE', `GL_LUMINANCE_ALPHA', `GL_INTENSITY', `GL_RGB', and `GL_RGBA'. TYPE - The type of the pixel data in DATA. Symbolic constants + The type of the pixel data in DATA. Symbolic constants `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -3831,18 +3834,18 @@ object's data store. The R, G, B, and A components of each pixel are next scaled by the four 1D `GL_CONVOLUTION_FILTER_SCALE' parameters and biased by the four 1D -`GL_CONVOLUTION_FILTER_BIAS' parameters. (The scale and bias parameters +`GL_CONVOLUTION_FILTER_BIAS' parameters. (The scale and bias parameters are set by `glConvolutionParameter' using the `GL_CONVOLUTION_1D' target and the names `GL_CONVOLUTION_FILTER_SCALE' and -`GL_CONVOLUTION_FILTER_BIAS'. The parameters themselves are vectors of +`GL_CONVOLUTION_FILTER_BIAS'. The parameters themselves are vectors of four values that are applied to red, green, blue, and alpha, in that order.) The R, G, B, and A values are not clamped to [0,1] at any time during this process. Each pixel is then converted to the internal format specified by -INTERNALFORMAT. This conversion simply maps the component values of the +INTERNALFORMAT. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal format -(red, green, blue, alpha, luminance, and intensity). The mapping is as +(red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @@ -3870,7 +3873,7 @@ follows: The red, green, blue, alpha, luminance, and/or intensity components of the resulting pixels are stored in floating-point rather than integer -format. They form a one-dimensional filter kernel image indexed with +format. They form a one-dimensional filter kernel image indexed with coordinate I such that I starts at 0 and increases from left to right. Kernel location I is derived from the Ith pixel, counting from 0. @@ -3878,7 +3881,7 @@ Note that after a convolution is performed, the resulting color components are also scaled by their corresponding `GL_POST_CONVOLUTION_c_SCALE' parameters and biased by their corresponding `GL_POST_CONVOLUTION_c_BIAS' parameters (where C takes on -the values *RED*, *GREEN*, *BLUE*, and *ALPHA*). These parameters are +the values *RED*, *GREEN*, *BLUE*, and *ALPHA*). These parameters are set by `glPixelTransfer'. `GL_INVALID_ENUM' is generated if TARGET is not `GL_CONVOLUTION_1D'. @@ -3893,7 +3896,7 @@ values. values. `GL_INVALID_VALUE' is generated if WIDTH is less than zero or greater -than the maximum supported value. This value may be queried with +than the maximum supported value. This value may be queried with `glGetConvolutionParameter' using target `GL_CONVOLUTION_1D' and name `GL_MAX_CONVOLUTION_WIDTH'. @@ -3944,18 +3947,18 @@ TARGET Must be `GL_CONVOLUTION_2D'. INTERNALFORMAT - The internal format of the convolution filter kernel. The allowable - values are `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', `GL_ALPHA12', - `GL_ALPHA16', `GL_LUMINANCE', `GL_LUMINANCE4', `GL_LUMINANCE8', - `GL_LUMINANCE12', `GL_LUMINANCE16', `GL_LUMINANCE_ALPHA', - `GL_LUMINANCE4_ALPHA4', `GL_LUMINANCE6_ALPHA2', - `GL_LUMINANCE8_ALPHA8', `GL_LUMINANCE12_ALPHA4', - `GL_LUMINANCE12_ALPHA12', `GL_LUMINANCE16_ALPHA16', `GL_INTENSITY', - `GL_INTENSITY4', `GL_INTENSITY8', `GL_INTENSITY12', - `GL_INTENSITY16', `GL_R3_G3_B2', `GL_RGB', `GL_RGB4', `GL_RGB5', - `GL_RGB8', `GL_RGB10', `GL_RGB12', `GL_RGB16', `GL_RGBA', - `GL_RGBA2', `GL_RGBA4', `GL_RGB5_A1', `GL_RGBA8', `GL_RGB10_A2', - `GL_RGBA12', or `GL_RGBA16'. + The internal format of the convolution filter kernel. The + allowable values are `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', + `GL_ALPHA12', `GL_ALPHA16', `GL_LUMINANCE', `GL_LUMINANCE4', + `GL_LUMINANCE8', `GL_LUMINANCE12', `GL_LUMINANCE16', + `GL_LUMINANCE_ALPHA', `GL_LUMINANCE4_ALPHA4', + `GL_LUMINANCE6_ALPHA2', `GL_LUMINANCE8_ALPHA8', + `GL_LUMINANCE12_ALPHA4', `GL_LUMINANCE12_ALPHA12', + `GL_LUMINANCE16_ALPHA16', `GL_INTENSITY', `GL_INTENSITY4', + `GL_INTENSITY8', `GL_INTENSITY12', `GL_INTENSITY16', `GL_R3_G3_B2', + `GL_RGB', `GL_RGB4', `GL_RGB5', `GL_RGB8', `GL_RGB10', `GL_RGB12', + `GL_RGB16', `GL_RGBA', `GL_RGBA2', `GL_RGBA4', `GL_RGB5_A1', + `GL_RGBA8', `GL_RGB10_A2', `GL_RGBA12', or `GL_RGBA16'. WIDTH The width of the pixel array referenced by DATA. @@ -3964,12 +3967,12 @@ HEIGHT The height of the pixel array referenced by DATA. FORMAT - The format of the pixel data in DATA. The allowable values are + The format of the pixel data in DATA. The allowable values are `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', `GL_BGRA', `GL_LUMINANCE', and `GL_LUMINANCE_ALPHA'. TYPE - The type of the pixel data in DATA. Symbolic constants + The type of the pixel data in DATA. Symbolic constants `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -3999,18 +4002,18 @@ object's data store. The R, G, B, and A components of each pixel are next scaled by the four 2D `GL_CONVOLUTION_FILTER_SCALE' parameters and biased by the four 2D -`GL_CONVOLUTION_FILTER_BIAS' parameters. (The scale and bias parameters +`GL_CONVOLUTION_FILTER_BIAS' parameters. (The scale and bias parameters are set by `glConvolutionParameter' using the `GL_CONVOLUTION_2D' target and the names `GL_CONVOLUTION_FILTER_SCALE' and -`GL_CONVOLUTION_FILTER_BIAS'. The parameters themselves are vectors of +`GL_CONVOLUTION_FILTER_BIAS'. The parameters themselves are vectors of four values that are applied to red, green, blue, and alpha, in that order.) The R, G, B, and A values are not clamped to [0,1] at any time during this process. Each pixel is then converted to the internal format specified by -INTERNALFORMAT. This conversion simply maps the component values of the +INTERNALFORMAT. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal format -(red, green, blue, alpha, luminance, and intensity). The mapping is as +(red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @@ -4038,16 +4041,16 @@ follows: The red, green, blue, alpha, luminance, and/or intensity components of the resulting pixels are stored in floating-point rather than integer -format. They form a two-dimensional filter kernel image indexed with +format. They form a two-dimensional filter kernel image indexed with coordinates I and J such that I starts at zero and increases from left -to right, and J starts at zero and increases from bottom to top. Kernel +to right, and J starts at zero and increases from bottom to top. Kernel location I,J is derived from the Nth pixel, where N is I+J*WIDTH. Note that after a convolution is performed, the resulting color components are also scaled by their corresponding `GL_POST_CONVOLUTION_c_SCALE' parameters and biased by their corresponding `GL_POST_CONVOLUTION_c_BIAS' parameters (where C takes on -the values *RED*, *GREEN*, *BLUE*, and *ALPHA*). These parameters are +the values *RED*, *GREEN*, *BLUE*, and *ALPHA*). These parameters are set by `glPixelTransfer'. `GL_INVALID_ENUM' is generated if TARGET is not `GL_CONVOLUTION_2D'. @@ -4062,12 +4065,12 @@ values. values. `GL_INVALID_VALUE' is generated if WIDTH is less than zero or greater -than the maximum supported value. This value may be queried with +than the maximum supported value. This value may be queried with `glGetConvolutionParameter' using target `GL_CONVOLUTION_2D' and name `GL_MAX_CONVOLUTION_WIDTH'. `GL_INVALID_VALUE' is generated if HEIGHT is less than zero or greater -than the maximum supported value. This value may be queried with +than the maximum supported value. This value may be queried with `glGetConvolutionParameter' using target `GL_CONVOLUTION_2D' and name `GL_MAX_CONVOLUTION_HEIGHT'. @@ -4129,14 +4132,14 @@ execution of `glEnd'.") "Set convolution parameters. TARGET - The target for the convolution parameter. Must be one of + The target for the convolution parameter. Must be one of `GL_CONVOLUTION_1D', `GL_CONVOLUTION_2D', or `GL_SEPARABLE_2D'. PNAME - The parameter to be set. Must be `GL_CONVOLUTION_BORDER_MODE'. + The parameter to be set. Must be `GL_CONVOLUTION_BORDER_MODE'. PARAMS - The parameter value. Must be one of `GL_REDUCE', + The parameter value. Must be one of `GL_REDUCE', `GL_CONSTANT_BORDER', `GL_REPLICATE_BORDER'. @@ -4147,23 +4150,23 @@ TARGET selects the convolution filter to be affected: `GL_CONVOLUTION_1D', `GL_CONVOLUTION_2D', or `GL_SEPARABLE_2D' for the 1D, 2D, or separable 2D filter, respectively. -PNAME selects the parameter to be changed. `GL_CONVOLUTION_FILTER_SCALE' +PNAME selects the parameter to be changed. `GL_CONVOLUTION_FILTER_SCALE' and `GL_CONVOLUTION_FILTER_BIAS' affect the definition of the convolution filter kernel; see `glConvolutionFilter1D', -`glConvolutionFilter2D', and `glSeparableFilter2D' for details. In these -cases, PARAMSv is an array of four values to be applied to red, green, -blue, and alpha values, respectively. The initial value for +`glConvolutionFilter2D', and `glSeparableFilter2D' for details. In +these cases, PARAMSv is an array of four values to be applied to red, +green, blue, and alpha values, respectively. The initial value for `GL_CONVOLUTION_FILTER_SCALE' is (1, 1, 1, 1), and the initial value for `GL_CONVOLUTION_FILTER_BIAS' is (0, 0, 0, 0). A PNAME value of `GL_CONVOLUTION_BORDER_MODE' controls the convolution -border mode. The accepted modes are: +border mode. The accepted modes are: `GL_REDUCE' The image resulting from convolution is smaller than the source - image. If the filter width is WF and height is HF , and the source + image. If the filter width is WF and height is HF , and the source image width is WS and height is HS , then the convolved image width - will be WS-WF+1 and height will be HS-HF+1 . (If this reduction + will be WS-WF+1 and height will be HS-HF+1 . (If this reduction would generate an image with zero or negative width and/or height, the output is simply null, with no error generated.) The coordinates of the image resulting from convolution are zero @@ -4223,11 +4226,11 @@ WIDTH The number of table entries to replace. `glCopyColorSubTable' is used to respecify a contiguous portion of a -color table previously defined using `glColorTable'. The pixels copied +color table previously defined using `glColorTable'. The pixels copied from the framebuffer replace the portion of the existing table from -indices START to START+X-1 , inclusive. This region may not include any +indices START to START+X-1 , inclusive. This region may not include any entries outside the range of the color table, as was originally -specified. It is not an error to specify a subtexture with width of 0, +specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect. `GL_INVALID_VALUE' is generated if TARGET is not a previously defined @@ -4254,12 +4257,12 @@ between the execution of `glBegin' and the corresponding execution of "Copy pixels into a color table. TARGET - The color table target. Must be `GL_COLOR_TABLE', + The color table target. Must be `GL_COLOR_TABLE', `GL_POST_CONVOLUTION_COLOR_TABLE', or `GL_POST_COLOR_MATRIX_COLOR_TABLE'. INTERNALFORMAT - The internal storage format of the texture image. Must be one of + The internal storage format of the texture image. Must be one of the following symbolic constants: `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', `GL_ALPHA12', `GL_ALPHA16', `GL_LUMINANCE', `GL_LUMINANCE4', `GL_LUMINANCE8', `GL_LUMINANCE12', @@ -4288,7 +4291,7 @@ WIDTH `glColorTable'). The screen-aligned pixel rectangle with lower-left corner at (X,\\ Y) -having width WIDTH and height 1 is loaded into the color table. If any +having width WIDTH and height 1 is loaded into the color table. If any pixels within this region are outside the window that is associated with the GL context, the values obtained for those pixels are undefined. @@ -4298,14 +4301,14 @@ final conversion to RGBA. The four scale parameters and the four bias parameters that are defined for the table are then used to scale and bias the R, G, B, and A -components of each pixel. The scale and bias parameters are set by +components of each pixel. The scale and bias parameters are set by calling `glColorTableParameter'. -Next, the R, G, B, and A values are clamped to the range [0,1] . Each +Next, the R, G, B, and A values are clamped to the range [0,1] . Each pixel is then converted to the internal format specified by -INTERNALFORMAT. This conversion simply maps the component values of the +INTERNALFORMAT. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal format -(red, green, blue, alpha, luminance, and intensity). The mapping is as +(red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @@ -4332,7 +4335,7 @@ follows: R , G , B , A , , Finally, the red, green, blue, alpha, luminance, and/or intensity -components of the resulting pixels are stored in the color table. They +components of the resulting pixels are stored in the color table. They form a one-dimensional table with indices in the range [0,WIDTH-1] . @@ -4367,18 +4370,18 @@ TARGET Must be `GL_CONVOLUTION_1D'. INTERNALFORMAT - The internal format of the convolution filter kernel. The allowable - values are `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', `GL_ALPHA12', - `GL_ALPHA16', `GL_LUMINANCE', `GL_LUMINANCE4', `GL_LUMINANCE8', - `GL_LUMINANCE12', `GL_LUMINANCE16', `GL_LUMINANCE_ALPHA', - `GL_LUMINANCE4_ALPHA4', `GL_LUMINANCE6_ALPHA2', - `GL_LUMINANCE8_ALPHA8', `GL_LUMINANCE12_ALPHA4', - `GL_LUMINANCE12_ALPHA12', `GL_LUMINANCE16_ALPHA16', `GL_INTENSITY', - `GL_INTENSITY4', `GL_INTENSITY8', `GL_INTENSITY12', - `GL_INTENSITY16', `GL_R3_G3_B2', `GL_RGB', `GL_RGB4', `GL_RGB5', - `GL_RGB8', `GL_RGB10', `GL_RGB12', `GL_RGB16', `GL_RGBA', - `GL_RGBA2', `GL_RGBA4', `GL_RGB5_A1', `GL_RGBA8', `GL_RGB10_A2', - `GL_RGBA12', or `GL_RGBA16'. + The internal format of the convolution filter kernel. The + allowable values are `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', + `GL_ALPHA12', `GL_ALPHA16', `GL_LUMINANCE', `GL_LUMINANCE4', + `GL_LUMINANCE8', `GL_LUMINANCE12', `GL_LUMINANCE16', + `GL_LUMINANCE_ALPHA', `GL_LUMINANCE4_ALPHA4', + `GL_LUMINANCE6_ALPHA2', `GL_LUMINANCE8_ALPHA8', + `GL_LUMINANCE12_ALPHA4', `GL_LUMINANCE12_ALPHA12', + `GL_LUMINANCE16_ALPHA16', `GL_INTENSITY', `GL_INTENSITY4', + `GL_INTENSITY8', `GL_INTENSITY12', `GL_INTENSITY16', `GL_R3_G3_B2', + `GL_RGB', `GL_RGB4', `GL_RGB5', `GL_RGB8', `GL_RGB10', `GL_RGB12', + `GL_RGB16', `GL_RGBA', `GL_RGBA2', `GL_RGBA4', `GL_RGB5_A1', + `GL_RGBA8', `GL_RGB10_A2', `GL_RGBA12', or `GL_RGBA16'. X Y @@ -4394,26 +4397,26 @@ kernel with pixels from the current `GL_READ_BUFFER' (rather than from main memory, as is the case for `glConvolutionFilter1D'). The screen-aligned pixel rectangle with lower-left corner at (X,\\ Y), -width WIDTH and height 1 is used to define the convolution filter. If +width WIDTH and height 1 is used to define the convolution filter. If any pixels within this region are outside the window that is associated with the GL context, the values obtained for those pixels are undefined. The pixels in the rectangle are processed exactly as if `glReadPixels' had been called with FORMAT set to RGBA, but the process stops just -before final conversion. The R, G, B, and A components of each pixel are -next scaled by the four 1D `GL_CONVOLUTION_FILTER_SCALE' parameters and -biased by the four 1D `GL_CONVOLUTION_FILTER_BIAS' parameters. (The +before final conversion. The R, G, B, and A components of each pixel +are next scaled by the four 1D `GL_CONVOLUTION_FILTER_SCALE' parameters +and biased by the four 1D `GL_CONVOLUTION_FILTER_BIAS' parameters. (The scale and bias parameters are set by `glConvolutionParameter' using the `GL_CONVOLUTION_1D' target and the names `GL_CONVOLUTION_FILTER_SCALE' -and `GL_CONVOLUTION_FILTER_BIAS'. The parameters themselves are vectors +and `GL_CONVOLUTION_FILTER_BIAS'. The parameters themselves are vectors of four values that are applied to red, green, blue, and alpha, in that order.) The R, G, B, and A values are not clamped to [0,1] at any time during this process. Each pixel is then converted to the internal format specified by -INTERNALFORMAT. This conversion simply maps the component values of the +INTERNALFORMAT. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal format -(red, green, blue, alpha, luminance, and intensity). The mapping is as +(red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @@ -4450,7 +4453,7 @@ Note that after a convolution is performed, the resulting color components are also scaled by their corresponding `GL_POST_CONVOLUTION_c_SCALE' parameters and biased by their corresponding `GL_POST_CONVOLUTION_c_BIAS' parameters (where C takes on -the values *RED*, *GREEN*, *BLUE*, and *ALPHA*). These parameters are +the values *RED*, *GREEN*, *BLUE*, and *ALPHA*). These parameters are set by `glPixelTransfer'. `GL_INVALID_ENUM' is generated if TARGET is not `GL_CONVOLUTION_1D'. @@ -4459,7 +4462,7 @@ set by `glPixelTransfer'. allowable values. `GL_INVALID_VALUE' is generated if WIDTH is less than zero or greater -than the maximum supported value. This value may be queried with +than the maximum supported value. This value may be queried with `glGetConvolutionParameter' using target `GL_CONVOLUTION_1D' and name `GL_MAX_CONVOLUTION_WIDTH'. @@ -4483,18 +4486,18 @@ TARGET Must be `GL_CONVOLUTION_2D'. INTERNALFORMAT - The internal format of the convolution filter kernel. The allowable - values are `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', `GL_ALPHA12', - `GL_ALPHA16', `GL_LUMINANCE', `GL_LUMINANCE4', `GL_LUMINANCE8', - `GL_LUMINANCE12', `GL_LUMINANCE16', `GL_LUMINANCE_ALPHA', - `GL_LUMINANCE4_ALPHA4', `GL_LUMINANCE6_ALPHA2', - `GL_LUMINANCE8_ALPHA8', `GL_LUMINANCE12_ALPHA4', - `GL_LUMINANCE12_ALPHA12', `GL_LUMINANCE16_ALPHA16', `GL_INTENSITY', - `GL_INTENSITY4', `GL_INTENSITY8', `GL_INTENSITY12', - `GL_INTENSITY16', `GL_R3_G3_B2', `GL_RGB', `GL_RGB4', `GL_RGB5', - `GL_RGB8', `GL_RGB10', `GL_RGB12', `GL_RGB16', `GL_RGBA', - `GL_RGBA2', `GL_RGBA4', `GL_RGB5_A1', `GL_RGBA8', `GL_RGB10_A2', - `GL_RGBA12', or `GL_RGBA16'. + The internal format of the convolution filter kernel. The + allowable values are `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', + `GL_ALPHA12', `GL_ALPHA16', `GL_LUMINANCE', `GL_LUMINANCE4', + `GL_LUMINANCE8', `GL_LUMINANCE12', `GL_LUMINANCE16', + `GL_LUMINANCE_ALPHA', `GL_LUMINANCE4_ALPHA4', + `GL_LUMINANCE6_ALPHA2', `GL_LUMINANCE8_ALPHA8', + `GL_LUMINANCE12_ALPHA4', `GL_LUMINANCE12_ALPHA12', + `GL_LUMINANCE16_ALPHA16', `GL_INTENSITY', `GL_INTENSITY4', + `GL_INTENSITY8', `GL_INTENSITY12', `GL_INTENSITY16', `GL_R3_G3_B2', + `GL_RGB', `GL_RGB4', `GL_RGB5', `GL_RGB8', `GL_RGB10', `GL_RGB12', + `GL_RGB16', `GL_RGBA', `GL_RGBA2', `GL_RGBA4', `GL_RGB5_A1', + `GL_RGBA8', `GL_RGB10_A2', `GL_RGBA12', or `GL_RGBA16'. X Y @@ -4520,20 +4523,20 @@ undefined. The pixels in the rectangle are processed exactly as if `glReadPixels' had been called with FORMAT set to RGBA, but the process stops just -before final conversion. The R, G, B, and A components of each pixel are -next scaled by the four 2D `GL_CONVOLUTION_FILTER_SCALE' parameters and -biased by the four 2D `GL_CONVOLUTION_FILTER_BIAS' parameters. (The +before final conversion. The R, G, B, and A components of each pixel +are next scaled by the four 2D `GL_CONVOLUTION_FILTER_SCALE' parameters +and biased by the four 2D `GL_CONVOLUTION_FILTER_BIAS' parameters. (The scale and bias parameters are set by `glConvolutionParameter' using the `GL_CONVOLUTION_2D' target and the names `GL_CONVOLUTION_FILTER_SCALE' -and `GL_CONVOLUTION_FILTER_BIAS'. The parameters themselves are vectors +and `GL_CONVOLUTION_FILTER_BIAS'. The parameters themselves are vectors of four values that are applied to red, green, blue, and alpha, in that order.) The R, G, B, and A values are not clamped to [0,1] at any time during this process. Each pixel is then converted to the internal format specified by -INTERNALFORMAT. This conversion simply maps the component values of the +INTERNALFORMAT. This conversion simply maps the component values of the pixel (R, G, B, and A) to the values included in the internal format -(red, green, blue, alpha, luminance, and intensity). The mapping is as +(red, green, blue, alpha, luminance, and intensity). The mapping is as follows: @@ -4571,7 +4574,7 @@ Note that after a convolution is performed, the resulting color components are also scaled by their corresponding `GL_POST_CONVOLUTION_c_SCALE' parameters and biased by their corresponding `GL_POST_CONVOLUTION_c_BIAS' parameters (where C takes on -the values *RED*, *GREEN*, *BLUE*, and *ALPHA*). These parameters are +the values *RED*, *GREEN*, *BLUE*, and *ALPHA*). These parameters are set by `glPixelTransfer'. `GL_INVALID_ENUM' is generated if TARGET is not `GL_CONVOLUTION_2D'. @@ -4580,12 +4583,12 @@ set by `glPixelTransfer'. allowable values. `GL_INVALID_VALUE' is generated if WIDTH is less than zero or greater -than the maximum supported value. This value may be queried with +than the maximum supported value. This value may be queried with `glGetConvolutionParameter' using target `GL_CONVOLUTION_2D' and name `GL_MAX_CONVOLUTION_WIDTH'. `GL_INVALID_VALUE' is generated if HEIGHT is less than zero or greater -than the maximum supported value. This value may be queried with +than the maximum supported value. This value may be queried with `glGetConvolutionParameter' using target `GL_CONVOLUTION_2D' and name `GL_MAX_CONVOLUTION_HEIGHT'. @@ -4614,34 +4617,34 @@ WIDTH HEIGHT Specify the dimensions of the rectangular region of pixels to be - copied. Both must be nonnegative. + copied. Both must be nonnegative. TYPE Specifies whether color values, depth values, or stencil values are - to be copied. Symbolic constants `GL_COLOR', `GL_DEPTH', and + to be copied. Symbolic constants `GL_COLOR', `GL_DEPTH', and `GL_STENCIL' are accepted. `glCopyPixels' copies a screen-aligned rectangle of pixels from the specified frame buffer location to a region relative to the current -raster position. Its operation is well defined only if the entire pixel -source region is within the exposed portion of the window. Results of +raster position. Its operation is well defined only if the entire pixel +source region is within the exposed portion of the window. Results of copies from outside the window, or from regions of the window that are not exposed, are hardware dependent and undefined. X and Y specify the window coordinates of the lower left corner of the -rectangular region to be copied. WIDTH and HEIGHT specify the dimensions -of the rectangular region to be copied. Both WIDTH and HEIGHT must not -be negative. +rectangular region to be copied. WIDTH and HEIGHT specify the +dimensions of the rectangular region to be copied. Both WIDTH and +HEIGHT must not be negative. Several parameters control the processing of the pixel data while it is -being copied. These parameters are set with three commands: -`glPixelTransfer', `glPixelMap', and `glPixelZoom'. This reference page +being copied. These parameters are set with three commands: +`glPixelTransfer', `glPixelMap', and `glPixelZoom'. This reference page describes the effects on `glCopyPixels' of most, but not all, of the parameters specified by these three commands. `glCopyPixels' copies values from each pixel with the lower left-hand -corner at (X+I,Y+J) for 0<=I(W-B,) , where W is the `GL_TEXTURE_WIDTH' and B is the -`GL_TEXTURE_BORDER' of the texture image being modified. Note that W +`GL_TEXTURE_BORDER' of the texture image being modified. Note that W includes twice the border width.") (define-gl-procedures @@ -5073,15 +5076,15 @@ includes twice the border width.") "Copy a two-dimensional texture subimage. TARGET - Specifies the target texture. Must be `GL_TEXTURE_2D', + Specifies the target texture. Must be `GL_TEXTURE_2D', `GL_TEXTURE_CUBE_MAP_POSITIVE_X', `GL_TEXTURE_CUBE_MAP_NEGATIVE_X', `GL_TEXTURE_CUBE_MAP_POSITIVE_Y', `GL_TEXTURE_CUBE_MAP_NEGATIVE_Y', `GL_TEXTURE_CUBE_MAP_POSITIVE_Z', or `GL_TEXTURE_CUBE_MAP_NEGATIVE_Z'. LEVEL - Specifies the level-of-detail number. Level 0 is the base image - level. Level N is the Nth mipmap reduction image. + Specifies the level-of-detail number. Level 0 is the base image + level. Level N is the Nth mipmap reduction image. XOFFSET Specifies a texel offset in the x direction within the texture @@ -5115,13 +5118,13 @@ indices YOFFSET through YOFFSET+HEIGHT-1 , inclusive, at the mipmap level specified by LEVEL. The pixels in the rectangle are processed exactly as if `glCopyPixels' -had been called, but the process stops just before final conversion. At +had been called, but the process stops just before final conversion. At this point, all pixel component values are clamped to the range [0,1] and then converted to the texture's internal format for storage in the texel array. The destination rectangle in the texture array may not include any -texels outside the texture array as it was originally specified. It is +texels outside the texture array as it was originally specified. It is not an error to specify a subtexture with zero width or height, but such a specification has no effect. @@ -5150,8 +5153,8 @@ the returned value of `GL_MAX_TEXTURE_SIZE'. `GL_INVALID_VALUE' is generated if XOFFSET<-B , (XOFFSET+WIDTH,)>(W-B,) , YOFFSET<-B , or (YOFFSET+HEIGHT,)>(H-B,) , where W is the `GL_TEXTURE_WIDTH', H is the `GL_TEXTURE_HEIGHT', and B is the -`GL_TEXTURE_BORDER' of the texture image being modified. Note that W and -H include twice the border width. +`GL_TEXTURE_BORDER' of the texture image being modified. Note that W +and H include twice the border width. `GL_INVALID_OPERATION' is generated if `glCopyTexSubImage2D' is executed between the execution of `glBegin' and the corresponding execution of @@ -5173,11 +5176,11 @@ between the execution of `glBegin' and the corresponding execution of "Copy a three-dimensional texture subimage. TARGET - Specifies the target texture. Must be `GL_TEXTURE_3D' + Specifies the target texture. Must be `GL_TEXTURE_3D' LEVEL - Specifies the level-of-detail number. Level 0 is the base image - level. Level N is the Nth mipmap reduction image. + Specifies the level-of-detail number. Level 0 is the base image + level. Level N is the Nth mipmap reduction image. XOFFSET Specifies a texel offset in the x direction within the texture @@ -5215,13 +5218,13 @@ indices YOFFSET through YOFFSET+HEIGHT-1 , inclusive, at z index ZOFFSET and at the mipmap level specified by LEVEL. The pixels in the rectangle are processed exactly as if `glCopyPixels' -had been called, but the process stops just before final conversion. At +had been called, but the process stops just before final conversion. At this point, all pixel component values are clamped to the range [0,1] and then converted to the texture's internal format for storage in the texel array. The destination rectangle in the texture array may not include any -texels outside the texture array as it was originally specified. It is +texels outside the texture array as it was originally specified. It is not an error to specify a subtexture with zero width or height, but such a specification has no effect. @@ -5248,8 +5251,8 @@ the returned value of `GL_MAX_3D_TEXTURE_SIZE'. , YOFFSET<-B , (YOFFSET+HEIGHT,)>(H-B,) , ZOFFSET<-B , or (ZOFFSET+1,)>(D-B,) , where W is the `GL_TEXTURE_WIDTH', H is the `GL_TEXTURE_HEIGHT', D is the `GL_TEXTURE_DEPTH', and B is the -`GL_TEXTURE_BORDER' of the texture image being modified. Note that W , H -, and D include twice the border width. +`GL_TEXTURE_BORDER' of the texture image being modified. Note that W , +H , and D include twice the border width. `GL_INVALID_OPERATION' is generated if `glCopyTexSubImage3D' is executed between the execution of `glBegin' and the corresponding execution of @@ -5260,21 +5263,21 @@ between the execution of `glBegin' and the corresponding execution of "Creates a program object. `glCreateProgram' creates an empty program object and returns a non-zero -value by which it can be referenced. A program object is an object to -which shader objects can be attached. This provides a mechanism to -specify the shader objects that will be linked to create a program. It +value by which it can be referenced. A program object is an object to +which shader objects can be attached. This provides a mechanism to +specify the shader objects that will be linked to create a program. It also provides a means for checking the compatibility of the shaders that will be used to create a program (for instance, checking the -compatibility between a vertex shader and a fragment shader). When no +compatibility between a vertex shader and a fragment shader). When no longer needed as part of a program object, shader objects can be detached. One or more executables are created in a program object by successfully attaching shader objects to it with `glAttachShader', successfully compiling the shader objects with `glCompileShader', and successfully -linking the program object with `glLinkProgram'. These executables are -made part of current state when `glUseProgram' is called. Program -objects can be deleted by calling `glDeleteProgram'. The memory +linking the program object with `glLinkProgram'. These executables are +made part of current state when `glUseProgram' is called. Program +objects can be deleted by calling `glDeleteProgram'. The memory associated with the program object will be deleted when it is no longer part of current rendering state for any context. @@ -5289,18 +5292,19 @@ between the execution of `glBegin' and the corresponding execution of "Creates a shader object. SHADERTYPE - Specifies the type of shader to be created. Must be either + Specifies the type of shader to be created. Must be either `GL_VERTEX_SHADER' or `GL_FRAGMENT_SHADER'. `glCreateShader' creates an empty shader object and returns a non-zero -value by which it can be referenced. A shader object is used to maintain -the source code strings that define a shader. SHADERTYPE indicates the -type of shader to be created. Two types of shaders are supported. A -shader of type `GL_VERTEX_SHADER' is a shader that is intended to run on -the programmable vertex processor and replace the fixed functionality -vertex processing in OpenGL. A shader of type `GL_FRAGMENT_SHADER' is a -shader that is intended to run on the programmable fragment processor -and replace the fixed functionality fragment processing in OpenGL. +value by which it can be referenced. A shader object is used to +maintain the source code strings that define a shader. SHADERTYPE +indicates the type of shader to be created. Two types of shaders are +supported. A shader of type `GL_VERTEX_SHADER' is a shader that is +intended to run on the programmable vertex processor and replace the +fixed functionality vertex processing in OpenGL. A shader of type +`GL_FRAGMENT_SHADER' is a shader that is intended to run on the +programmable fragment processor and replace the fixed functionality +fragment processing in OpenGL. When created, a shader object's `GL_SHADER_TYPE' parameter is set to either `GL_VERTEX_SHADER' or `GL_FRAGMENT_SHADER', depending on the @@ -5320,17 +5324,17 @@ between the execution of `glBegin' and the corresponding execution of MODE Specifies whether front- or back-facing facets are candidates for - culling. Symbolic constants `GL_FRONT', `GL_BACK', and - `GL_FRONT_AND_BACK' are accepted. The initial value is `GL_BACK'. + culling. Symbolic constants `GL_FRONT', `GL_BACK', and + `GL_FRONT_AND_BACK' are accepted. The initial value is `GL_BACK'. `glCullFace' specifies whether front- or back-facing facets are culled -(as specified by MODE) when facet culling is enabled. Facet culling is -initially disabled. To enable and disable facet culling, call the +(as specified by MODE) when facet culling is enabled. Facet culling is +initially disabled. To enable and disable facet culling, call the `glEnable' and `glDisable' commands with the argument `GL_CULL_FACE'. Facets include triangles, quadrilaterals, polygons, and rectangles. `glFrontFace' specifies which of the clockwise and counterclockwise -facets are front-facing and back-facing. See `glFrontFace'. +facets are front-facing and back-facing. See `glFrontFace'. `GL_INVALID_ENUM' is generated if MODE is not an accepted value. @@ -5352,10 +5356,11 @@ BUFFERS Specifies an array of buffer objects to be deleted. `glDeleteBuffers' deletes N buffer objects named by the elements of the -array BUFFERS. After a buffer object is deleted, it has no contents, and -its name is free for reuse (for example by `glGenBuffers'). If a buffer -object that is currently bound is deleted, the binding reverts to 0 (the -absence of any buffer object, which reverts to client memory usage). +array BUFFERS. After a buffer object is deleted, it has no contents, +and its name is free for reuse (for example by `glGenBuffers'). If a +buffer object that is currently bound is deleted, the binding reverts to +0 (the absence of any buffer object, which reverts to client memory +usage). `glDeleteBuffers' silently ignores 0's and names that do not correspond to existing buffer objects. @@ -5381,14 +5386,14 @@ RANGE Specifies the number of display lists to delete. `glDeleteLists' causes a contiguous group of display lists to be -deleted. LIST is the name of the first display list to be deleted, and -RANGE is the number of display lists to delete. All display lists D with -LIST<=D<=LIST+RANGE-1 are deleted. +deleted. LIST is the name of the first display list to be deleted, and +RANGE is the number of display lists to delete. All display lists D +with LIST<=D<=LIST+RANGE-1 are deleted. All storage locations allocated to the specified display lists are -freed, and the names are available for reuse at a later time. Names +freed, and the names are available for reuse at a later time. Names within the range that do not have an associated display list are -ignored. If RANGE is 0, nothing happens. +ignored. If RANGE is 0, nothing happens. `GL_INVALID_VALUE' is generated if RANGE is negative. @@ -5404,16 +5409,16 @@ PROGRAM Specifies the program object to be deleted. `glDeleteProgram' frees the memory and invalidates the name associated -with the program object specified by PROGRAM. This command effectively +with the program object specified by PROGRAM. This command effectively undoes the effects of a call to `glCreateProgram'. If a program object is in use as part of current rendering state, it will be flagged for deletion, but it will not be deleted until it is no -longer part of current state for any rendering context. If a program +longer part of current state for any rendering context. If a program object to be deleted has shader objects attached to it, those shader objects will be automatically detached but not deleted unless they have already been flagged for deletion by a previous call to -`glDeleteShader'. A value of 0 for PROGRAM will be silently ignored. +`glDeleteShader'. A value of 0 for PROGRAM will be silently ignored. To determine whether a program object has been flagged for deletion, call `glGetProgram' with arguments PROGRAM and `GL_DELETE_STATUS'. @@ -5440,7 +5445,7 @@ IDS Specifies an array of query objects to be deleted. `glDeleteQueries' deletes N query objects named by the elements of the -array IDS. After a query object is deleted, it has no contents, and its +array IDS. After a query object is deleted, it has no contents, and its name is free for reuse (for example by `glGenQueries'). `glDeleteQueries' silently ignores 0's and names that do not correspond @@ -5460,14 +5465,14 @@ SHADER Specifies the shader object to be deleted. `glDeleteShader' frees the memory and invalidates the name associated -with the shader object specified by SHADER. This command effectively +with the shader object specified by SHADER. This command effectively undoes the effects of a call to `glCreateShader'. If a shader object to be deleted is attached to a program object, it will be flagged for deletion, but it will not be deleted until it is no longer attached to any program object, for any rendering context (i.e., it must be detached from wherever it was attached before it will be -deleted). A value of 0 for SHADER will be silently ignored. +deleted). A value of 0 for SHADER will be silently ignored. To determine whether an object has been flagged for deletion, call `glGetShader' with arguments SHADER and `GL_DELETE_STATUS'. @@ -5494,9 +5499,9 @@ TEXTURES Specifies an array of textures to be deleted. `glDeleteTextures' deletes N textures named by the elements of the array -TEXTURES. After a texture is deleted, it has no contents or +TEXTURES. After a texture is deleted, it has no contents or dimensionality, and its name is free for reuse (for example by -`glGenTextures'). If a texture that is currently bound is deleted, the +`glGenTextures'). If a texture that is currently bound is deleted, the binding reverts to 0 (the default texture). `glDeleteTextures' silently ignores 0's and names that do not correspond @@ -5513,17 +5518,17 @@ between the execution of `glBegin' and the corresponding execution of "Specify the value used for depth buffer comparisons. FUNC - Specifies the depth comparison function. Symbolic constants + Specifies the depth comparison function. Symbolic constants `GL_NEVER', `GL_LESS', `GL_EQUAL', `GL_LEQUAL', `GL_GREATER', - `GL_NOTEQUAL', `GL_GEQUAL', and `GL_ALWAYS' are accepted. The + `GL_NOTEQUAL', `GL_GEQUAL', and `GL_ALWAYS' are accepted. The initial value is `GL_LESS'. `glDepthFunc' specifies the function used to compare each incoming pixel -depth value with the depth value present in the depth buffer. The -comparison is performed only if depth testing is enabled. (See +depth value with the depth value present in the depth buffer. The +comparison is performed only if depth testing is enabled. (See `glEnable' and `glDisable' of `GL_DEPTH_TEST'.) -FUNC specifies the conditions under which the pixel will be drawn. The +FUNC specifies the conditions under which the pixel will be drawn. The comparison functions are as follows: `GL_NEVER' @@ -5556,8 +5561,8 @@ comparison functions are as follows: `GL_ALWAYS' Always passes. -The initial value of FUNC is `GL_LESS'. Initially, depth testing is -disabled. If depth testing is disabled or if no depth buffer exists, it +The initial value of FUNC is `GL_LESS'. Initially, depth testing is +disabled. If depth testing is disabled or if no depth buffer exists, it is as if the depth test always passes. `GL_INVALID_ENUM' is generated if FUNC is not an accepted value. @@ -5570,13 +5575,13 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Enable or disable writing into the depth buffer. FLAG - Specifies whether the depth buffer is enabled for writing. If FLAG - is `GL_FALSE', depth buffer writing is disabled. Otherwise, it is - enabled. Initially, depth buffer writing is enabled. + Specifies whether the depth buffer is enabled for writing. If FLAG + is `GL_FALSE', depth buffer writing is disabled. Otherwise, it is + enabled. Initially, depth buffer writing is enabled. `glDepthMask' specifies whether the depth buffer is enabled for writing. -If FLAG is `GL_FALSE', depth buffer writing is disabled. Otherwise, it -is enabled. Initially, depth buffer writing is enabled. +If FLAG is `GL_FALSE', depth buffer writing is disabled. Otherwise, it +is enabled. Initially, depth buffer writing is enabled. `GL_INVALID_OPERATION' is generated if `glDepthMask' is executed between the execution of `glBegin' and the corresponding execution of `glEnd'.") @@ -5592,20 +5597,20 @@ window coordinates. NEARVAL Specifies the mapping of the near clipping plane to window - coordinates. The initial value is 0. + coordinates. The initial value is 0. FARVAL Specifies the mapping of the far clipping plane to window - coordinates. The initial value is 1. + coordinates. The initial value is 1. After clipping and division by W, depth coordinates range from -1 to 1, -corresponding to the near and far clipping planes. `glDepthRange' +corresponding to the near and far clipping planes. `glDepthRange' specifies a linear mapping of the normalized depth coordinates in this -range to window depth coordinates. Regardless of the actual depth buffer -implementation, window coordinate depth values are treated as though -they range from 0 through 1 (like color components). Thus, the values -accepted by `glDepthRange' are both clamped to this range before they -are accepted. +range to window depth coordinates. Regardless of the actual depth +buffer implementation, window coordinate depth values are treated as +though they range from 0 through 1 (like color components). Thus, the +values accepted by `glDepthRange' are both clamped to this range before +they are accepted. The setting of (0,1) maps the near plane to 0 and the far plane to 1. With this mapping, the depth buffer range is fully utilized. @@ -5630,7 +5635,7 @@ SHADER Specifies the shader object to be detached. `glDetachShader' detaches the shader object specified by SHADER from the -program object specified by PROGRAM. This command can be used to undo +program object specified by PROGRAM. This command can be used to undo the effect of the command `glAttachShader'. If SHADER has already been flagged for deletion by a call to @@ -5661,7 +5666,7 @@ between the execution of `glBegin' and the corresponding execution of "Render primitives from array data. MODE - Specifies what kind of primitives to render. Symbolic constants + Specifies what kind of primitives to render. Symbolic constants `GL_POINTS', `GL_LINE_STRIP', `GL_LINE_LOOP', `GL_LINES', `GL_TRIANGLE_STRIP', `GL_TRIANGLE_FAN', `GL_TRIANGLES', `GL_QUAD_STRIP', `GL_QUADS', and `GL_POLYGON' are accepted. @@ -5673,7 +5678,7 @@ COUNT Specifies the number of indices to be rendered. `glDrawArrays' specifies multiple geometric primitives with very few -subroutine calls. Instead of calling a GL procedure to pass each +subroutine calls. Instead of calling a GL procedure to pass each individual vertex, normal, texture coordinate, edge flag, or color, you can prespecify separate arrays of vertices, normals, and colors and use them to construct a sequence of primitives with a single call to @@ -5681,14 +5686,15 @@ them to construct a sequence of primitives with a single call to When `glDrawArrays' is called, it uses COUNT sequential elements from each enabled array to construct a sequence of geometric primitives, -beginning with element FIRST. MODE specifies what kind of primitives are -constructed and how the array elements construct those primitives. If -`GL_VERTEX_ARRAY' is not enabled, no geometric primitives are generated. +beginning with element FIRST. MODE specifies what kind of primitives +are constructed and how the array elements construct those primitives. +If `GL_VERTEX_ARRAY' is not enabled, no geometric primitives are +generated. Vertex attributes that are modified by `glDrawArrays' have an -unspecified value after `glDrawArrays' returns. For example, if +unspecified value after `glDrawArrays' returns. For example, if `GL_COLOR_ARRAY' is enabled, the value of the current color is undefined -after `glDrawArrays' executes. Attributes that aren't modified remain +after `glDrawArrays' executes. Attributes that aren't modified remain well defined. `GL_INVALID_ENUM' is generated if MODE is not an accepted value. @@ -5718,18 +5724,18 @@ BUFS into which fragment colors or data values will be written. `glDrawBuffers' defines an array of buffers into which fragment color -values or fragment data will be written. If no fragment shader is +values or fragment data will be written. If no fragment shader is active, rendering operations will generate only one fragment color per fragment and it will be written into each of the buffers specified by -BUFS. If a fragment shader is active and it writes a value to the output -variable `gl_FragColor', then that value will be written into each of -the buffers specified by BUFS. If a fragment shader is active and it -writes a value to one or more elements of the output array variable -`gl_FragData[]', then the value of `gl_FragData[0] ' will be written -into the first buffer specified by BUFS, the value of `gl_FragData[1] ' -will be written into the second buffer specified by BUFS, and so on up -to `gl_FragData[n-1]'. The draw buffer used for `gl_FragData[n]' and -beyond is implicitly set to be `GL_NONE'. +BUFS. If a fragment shader is active and it writes a value to the +output variable `gl_FragColor', then that value will be written into +each of the buffers specified by BUFS. If a fragment shader is active +and it writes a value to one or more elements of the output array +variable `gl_FragData[]', then the value of `gl_FragData[0] ' will be +written into the first buffer specified by BUFS, the value of +`gl_FragData[1] ' will be written into the second buffer specified by +BUFS, and so on up to `gl_FragData[n-1]'. The draw buffer used for +`gl_FragData[n]' and beyond is implicitly set to be `GL_NONE'. The symbolic constants contained in BUFS may be any of the following: @@ -5756,9 +5762,9 @@ The symbolic constants contained in BUFS may be any of the following: The fragment color/data value is written into auxiliary buffer `i'. Except for `GL_NONE', the preceding symbolic constants may not appear -more than once in BUFS. The maximum number of draw buffers supported is +more than once in BUFS. The maximum number of draw buffers supported is implementation dependent and can be queried by calling `glGet' with the -argument `GL_MAX_DRAW_BUFFERS'. The number of auxiliary buffers can be +argument `GL_MAX_DRAW_BUFFERS'. The number of auxiliary buffers can be queried by calling `glGet' with the argument `GL_AUX_BUFFERS'. `GL_INVALID_ENUM' is generated if one of the values in BUFS is not an @@ -5785,7 +5791,7 @@ between the execution of `glBegin' and the corresponding execution of "Specify which color buffers are to be drawn into. MODE - Specifies up to four color buffers to be drawn into. Symbolic + Specifies up to four color buffers to be drawn into. Symbolic constants `GL_NONE', `GL_FRONT_LEFT', `GL_FRONT_RIGHT', `GL_BACK_LEFT', `GL_BACK_RIGHT', `GL_FRONT', `GL_BACK', `GL_LEFT', `GL_RIGHT', `GL_FRONT_AND_BACK', and `GL_AUX'I, where I is between @@ -5796,7 +5802,7 @@ MODE contexts. When colors are written to the frame buffer, they are written into the -color buffers specified by `glDrawBuffer'. The specifications are as +color buffers specified by `glDrawBuffer'. The specifications are as follows: `GL_NONE' @@ -5815,31 +5821,31 @@ follows: Only the back right color buffer is written. `GL_FRONT' - Only the front left and front right color buffers are written. If + Only the front left and front right color buffers are written. If there is no front right color buffer, only the front left color buffer is written. `GL_BACK' - Only the back left and back right color buffers are written. If + Only the back left and back right color buffers are written. If there is no back right color buffer, only the back left color buffer is written. `GL_LEFT' - Only the front left and back left color buffers are written. If + Only the front left and back left color buffers are written. If there is no back left color buffer, only the front left color buffer is written. `GL_RIGHT' - Only the front right and back right color buffers are written. If + Only the front right and back right color buffers are written. If there is no back right color buffer, only the front right color buffer is written. `GL_FRONT_AND_BACK' All the front and back color buffers (front left, front right, back - left, back right) are written. If there are no back color buffers, - only the front left and front right color buffers are written. If + left, back right) are written. If there are no back color buffers, + only the front left and front right color buffers are written. If there are no right color buffers, only the front left and back left - color buffers are written. If there are no right or back color + color buffers are written. If there are no right or back color buffers, only the front left color buffer is written. `GL_AUX'I @@ -5850,9 +5856,9 @@ logical operations are computed and applied independently for each color buffer and can produce different results in each buffer. Monoscopic contexts include only LEFT buffers, and stereoscopic contexts -include both LEFT and RIGHT buffers. Likewise, single-buffered contexts +include both LEFT and RIGHT buffers. Likewise, single-buffered contexts include only FRONT buffers, and double-buffered contexts include both -FRONT and BACK buffers. The context is selected at GL initialization. +FRONT and BACK buffers. The context is selected at GL initialization. `GL_INVALID_ENUM' is generated if MODE is not an accepted value. @@ -5874,7 +5880,7 @@ between the execution of `glBegin' and the corresponding execution of "Render primitives from array data. MODE - Specifies what kind of primitives to render. Symbolic constants + Specifies what kind of primitives to render. Symbolic constants `GL_POINTS', `GL_LINE_STRIP', `GL_LINE_LOOP', `GL_LINES', `GL_TRIANGLE_STRIP', `GL_TRIANGLE_FAN', `GL_TRIANGLES', `GL_QUAD_STRIP', `GL_QUADS', and `GL_POLYGON' are accepted. @@ -5883,14 +5889,14 @@ COUNT Specifies the number of elements to be rendered. TYPE - Specifies the type of the values in INDICES. Must be one of + Specifies the type of the values in INDICES. Must be one of `GL_UNSIGNED_BYTE', `GL_UNSIGNED_SHORT', or `GL_UNSIGNED_INT'. INDICES Specifies a pointer to the location where the indices are stored. `glDrawElements' specifies multiple geometric primitives with very few -subroutine calls. Instead of calling a GL function to pass each +subroutine calls. Instead of calling a GL function to pass each individual vertex, normal, texture coordinate, edge flag, or color, you can prespecify separate arrays of vertices, normals, and so on, and use them to construct a sequence of primitives with a single call to @@ -5898,15 +5904,15 @@ them to construct a sequence of primitives with a single call to When `glDrawElements' is called, it uses COUNT sequential elements from an enabled array, starting at INDICES to construct a sequence of -geometric primitives. MODE specifies what kind of primitives are -constructed and how the array elements construct these primitives. If -more than one array is enabled, each is used. If `GL_VERTEX_ARRAY' is +geometric primitives. MODE specifies what kind of primitives are +constructed and how the array elements construct these primitives. If +more than one array is enabled, each is used. If `GL_VERTEX_ARRAY' is not enabled, no geometric primitives are constructed. Vertex attributes that are modified by `glDrawElements' have an -unspecified value after `glDrawElements' returns. For example, if +unspecified value after `glDrawElements' returns. For example, if `GL_COLOR_ARRAY' is enabled, the value of the current color is undefined -after `glDrawElements' executes. Attributes that aren't modified +after `glDrawElements' executes. Attributes that aren't modified maintain their previous values. `GL_INVALID_ENUM' is generated if MODE is not an accepted value. @@ -5938,14 +5944,14 @@ WIDTH the frame buffer. FORMAT - Specifies the format of the pixel data. Symbolic constants + Specifies the format of the pixel data. Symbolic constants `GL_COLOR_INDEX', `GL_STENCIL_INDEX', `GL_DEPTH_COMPONENT', `GL_RGB', `GL_BGR', `GL_RGBA', `GL_BGRA', `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_LUMINANCE', and `GL_LUMINANCE_ALPHA' are accepted. TYPE - Specifies the data type for DATA. Symbolic constants + Specifies the data type for DATA. Symbolic constants `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -5961,26 +5967,26 @@ DATA `glDrawPixels' reads pixel data from memory and writes it into the frame buffer relative to the current raster position, provided that the raster -position is valid. Use `glRasterPos' or `glWindowPos' to set the current -raster position; use `glGet' with argument +position is valid. Use `glRasterPos' or `glWindowPos' to set the +current raster position; use `glGet' with argument `GL_CURRENT_RASTER_POSITION_VALID' to determine if the specified raster position is valid, and `glGet' with argument `GL_CURRENT_RASTER_POSITION' to query the raster position. Several parameters define the encoding of pixel data in memory and control the processing of the pixel data before it is placed in the -frame buffer. These parameters are set with four commands: -`glPixelStore', `glPixelTransfer', `glPixelMap', and `glPixelZoom'. This +frame buffer. These parameters are set with four commands: +`glPixelStore', `glPixelTransfer', `glPixelMap', and `glPixelZoom'. This reference page describes the effects on `glDrawPixels' of many, but not all, of the parameters specified by these four commands. Data is read from DATA as a sequence of signed or unsigned bytes, signed or unsigned shorts, signed or unsigned integers, or single-precision -floating-point values, depending on TYPE. When TYPE is one of +floating-point values, depending on TYPE. When TYPE is one of `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', or `GL_FLOAT' each of these bytes, shorts, integers, or floating-point values is interpreted as one color or depth -component, or one index, depending on FORMAT. When TYPE is one of +component, or one index, depending on FORMAT. When TYPE is one of `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_SHORT_5_6_5', `GL_UNSIGNED_SHORT_4_4_4_4', `GL_UNSIGNED_SHORT_5_5_5_1', `GL_UNSIGNED_INT_8_8_8_8', or `GL_UNSIGNED_INT_10_10_10_2', each @@ -5991,23 +5997,23 @@ When TYPE is one of `GL_UNSIGNED_BYTE_2_3_3_REV', `GL_UNSIGNED_SHORT_1_5_5_5_REV', `GL_UNSIGNED_INT_8_8_8_8_REV', or `GL_UNSIGNED_INT_2_10_10_10_REV', each unsigned value is interpreted as containing all color components, specified by FORMAT, for a single pixel -in a reversed order. Indices are always treated individually. Color +in a reversed order. Indices are always treated individually. Color components are treated as groups of one, two, three, or four values, -again based on FORMAT. Both individual indices and groups of components -are referred to as pixels. If TYPE is `GL_BITMAP', the data must be +again based on FORMAT. Both individual indices and groups of components +are referred to as pixels. If TYPE is `GL_BITMAP', the data must be unsigned bytes, and FORMAT must be either `GL_COLOR_INDEX' or -`GL_STENCIL_INDEX'. Each unsigned byte is treated as eight 1-bit pixels, -with bit ordering determined by `GL_UNPACK_LSB_FIRST' (see +`GL_STENCIL_INDEX'. Each unsigned byte is treated as eight 1-bit +pixels, with bit ordering determined by `GL_UNPACK_LSB_FIRST' (see `glPixelStore'). -WIDTH×HEIGHT pixels are read from memory, starting at location DATA. By +WIDTH×HEIGHT pixels are read from memory, starting at location DATA. By default, these pixels are taken from adjacent memory locations, except that after all WIDTH pixels are read, the read pointer is advanced to -the next four-byte boundary. The four-byte row alignment is specified by -`glPixelStore' with argument `GL_UNPACK_ALIGNMENT', and it can be set to -one, two, four, or eight bytes. Other pixel store parameters specify +the next four-byte boundary. The four-byte row alignment is specified +by `glPixelStore' with argument `GL_UNPACK_ALIGNMENT', and it can be set +to one, two, four, or eight bytes. Other pixel store parameters specify different read pointer advancements, both before the first pixel is read -and after all WIDTH pixels are read. See the `glPixelStore' reference +and after all WIDTH pixels are read. See the `glPixelStore' reference page for details on these options. If a non-zero named buffer object is bound to the @@ -6017,30 +6023,30 @@ object's data store. The WIDTH×HEIGHT pixels that are read from memory are each operated on in the same way, based on the values of several parameters specified by -`glPixelTransfer' and `glPixelMap'. The details of these operations, as +`glPixelTransfer' and `glPixelMap'. The details of these operations, as well as the target buffer into which the pixels are drawn, are specific -to the format of the pixels, as specified by FORMAT. FORMAT can assume +to the format of the pixels, as specified by FORMAT. FORMAT can assume one of 13 symbolic values: `GL_COLOR_INDEX' - Each pixel is a single value, a color index. It is converted to + Each pixel is a single value, a color index. It is converted to fixed-point format, with an unspecified number of bits to the right of the binary point, regardless of the memory data type. - Floating-point values convert to true fixed-point values. Signed + Floating-point values convert to true fixed-point values. Signed and unsigned integer data is converted with all fraction bits set - to 0. Bitmap data convert to either 0 or 1. + to 0. Bitmap data convert to either 0 or 1. Each fixed-point index is then shifted left by `GL_INDEX_SHIFT' - bits and added to `GL_INDEX_OFFSET'. If `GL_INDEX_SHIFT' is - negative, the shift is to the right. In either case, zero bits fill - otherwise unspecified bit locations in the result. + bits and added to `GL_INDEX_OFFSET'. If `GL_INDEX_SHIFT' is + negative, the shift is to the right. In either case, zero bits + fill otherwise unspecified bit locations in the result. If the GL is in RGBA mode, the resulting index is converted to an RGBA pixel with the help of the `GL_PIXEL_MAP_I_TO_R', `GL_PIXEL_MAP_I_TO_G', `GL_PIXEL_MAP_I_TO_B', and - `GL_PIXEL_MAP_I_TO_A' tables. If the GL is in color index mode, and - if `GL_MAP_COLOR' is true, the index is replaced with the value - that it references in lookup table `GL_PIXEL_MAP_I_TO_I'. Whether + `GL_PIXEL_MAP_I_TO_A' tables. If the GL is in color index mode, + and if `GL_MAP_COLOR' is true, the index is replaced with the value + that it references in lookup table `GL_PIXEL_MAP_I_TO_I'. Whether the lookup replacement of the index is done or not, the integer part of the index is then ANDed with 2^B-1 , where B is the number of bits in a color index buffer. @@ -6051,48 +6057,48 @@ one of 13 symbolic values: coordinates to the N th fragment such that X_N=X_R+N%WIDTH Y_N=Y_R+⌊N/WIDTH,⌋ - where (X_R,Y_R) is the current raster position. These pixel + where (X_R,Y_R) is the current raster position. These pixel fragments are then treated just like the fragments generated by - rasterizing points, lines, or polygons. Texture mapping, fog, and + rasterizing points, lines, or polygons. Texture mapping, fog, and all the fragment operations are applied before the fragments are written to the frame buffer. `GL_STENCIL_INDEX' - Each pixel is a single value, a stencil index. It is converted to + Each pixel is a single value, a stencil index. It is converted to fixed-point format, with an unspecified number of bits to the right of the binary point, regardless of the memory data type. - Floating-point values convert to true fixed-point values. Signed + Floating-point values convert to true fixed-point values. Signed and unsigned integer data is converted with all fraction bits set - to 0. Bitmap data convert to either 0 or 1. + to 0. Bitmap data convert to either 0 or 1. Each fixed-point index is then shifted left by `GL_INDEX_SHIFT' - bits, and added to `GL_INDEX_OFFSET'. If `GL_INDEX_SHIFT' is - negative, the shift is to the right. In either case, zero bits fill - otherwise unspecified bit locations in the result. If + bits, and added to `GL_INDEX_OFFSET'. If `GL_INDEX_SHIFT' is + negative, the shift is to the right. In either case, zero bits + fill otherwise unspecified bit locations in the result. If `GL_MAP_STENCIL' is true, the index is replaced with the value that - it references in lookup table `GL_PIXEL_MAP_S_TO_S'. Whether the + it references in lookup table `GL_PIXEL_MAP_S_TO_S'. Whether the lookup replacement of the index is done or not, the integer part of the index is then ANDed with 2^B-1 , where B is the number of bits - in the stencil buffer. The resulting stencil indices are then + in the stencil buffer. The resulting stencil indices are then written to the stencil buffer such that the N th index is written to location X_N=X_R+N%WIDTH Y_N=Y_R+⌊N/WIDTH,⌋ - where (X_R,Y_R) is the current raster position. Only the pixel + where (X_R,Y_R) is the current raster position. Only the pixel ownership test, the scissor test, and the stencil writemask affect these write operations. `GL_DEPTH_COMPONENT' - Each pixel is a single-depth component. Floating-point data is + Each pixel is a single-depth component. Floating-point data is converted directly to an internal floating-point format with - unspecified precision. Signed integer data is mapped linearly to + unspecified precision. Signed integer data is mapped linearly to the internal floating-point format such that the most positive representable integer value maps to 1.0, and the most negative - representable value maps to -1.0 . Unsigned integer data is mapped + representable value maps to -1.0 . Unsigned integer data is mapped similarly: the largest integer value maps to 1.0, and 0 maps to - 0.0. The resulting floating-point depth value is then multiplied by - `GL_DEPTH_SCALE' and added to `GL_DEPTH_BIAS'. The result is + 0.0. The resulting floating-point depth value is then multiplied + by `GL_DEPTH_SCALE' and added to `GL_DEPTH_BIAS'. The result is clamped to the range [0,1] . The GL then converts the resulting depth components to fragments by @@ -6102,9 +6108,9 @@ one of 13 symbolic values: X_N=X_R+N%WIDTH Y_N=Y_R+⌊N/WIDTH,⌋ - where (X_R,Y_R) is the current raster position. These pixel + where (X_R,Y_R) is the current raster position. These pixel fragments are then treated just like the fragments generated by - rasterizing points, lines, or polygons. Texture mapping, fog, and + rasterizing points, lines, or polygons. Texture mapping, fog, and all the fragment operations are applied before the fragments are written to the frame buffer. @@ -6113,21 +6119,21 @@ one of 13 symbolic values: Each pixel is a four-component group: For `GL_RGBA', the red component is first, followed by green, followed by blue, followed by alpha; for `GL_BGRA' the order is blue, green, red and then - alpha. Floating-point values are converted directly to an internal - floating-point format with unspecified precision. Signed integer + alpha. Floating-point values are converted directly to an internal + floating-point format with unspecified precision. Signed integer values are mapped linearly to the internal floating-point format such that the most positive representable integer value maps to - 1.0, and the most negative representable value maps to -1.0 . (Note + 1.0, and the most negative representable value maps to -1.0 . (Note that this mapping does not convert 0 precisely to 0.0.) Unsigned integer data is mapped similarly: The largest integer value maps to - 1.0, and 0 maps to 0.0. The resulting floating-point color values + 1.0, and 0 maps to 0.0. The resulting floating-point color values are then multiplied by `GL_c_SCALE' and added to `GL_c_BIAS', where C is RED, GREEN, BLUE, and ALPHA for the respective color - components. The results are clamped to the range [0,1] . + components. The results are clamped to the range [0,1] . If `GL_MAP_COLOR' is true, each color component is scaled by the size of lookup table `GL_PIXEL_MAP_c_TO_c', then replaced by the - value that it references in that table. C is R, G, B, or A + value that it references in that table. C is R, G, B, or A respectively. The GL then converts the resulting RGBA colors to fragments by @@ -6137,69 +6143,71 @@ one of 13 symbolic values: X_N=X_R+N%WIDTH Y_N=Y_R+⌊N/WIDTH,⌋ - where (X_R,Y_R) is the current raster position. These pixel + where (X_R,Y_R) is the current raster position. These pixel fragments are then treated just like the fragments generated by - rasterizing points, lines, or polygons. Texture mapping, fog, and + rasterizing points, lines, or polygons. Texture mapping, fog, and all the fragment operations are applied before the fragments are written to the frame buffer. `GL_RED' - Each pixel is a single red component. This component is converted + Each pixel is a single red component. This component is converted to the internal floating-point format in the same way the red - component of an RGBA pixel is. It is then converted to an RGBA - pixel with green and blue set to 0, and alpha set to 1. After this + component of an RGBA pixel is. It is then converted to an RGBA + pixel with green and blue set to 0, and alpha set to 1. After this conversion, the pixel is treated as if it had been read as an RGBA pixel. `GL_GREEN' - Each pixel is a single green component. This component is converted - to the internal floating-point format in the same way the green - component of an RGBA pixel is. It is then converted to an RGBA - pixel with red and blue set to 0, and alpha set to 1. After this - conversion, the pixel is treated as if it had been read as an RGBA - pixel. + Each pixel is a single green component. This component is + converted to the internal floating-point format in the same way the + green component of an RGBA pixel is. It is then converted to an + RGBA pixel with red and blue set to 0, and alpha set to 1. After + this conversion, the pixel is treated as if it had been read as an + RGBA pixel. `GL_BLUE' - Each pixel is a single blue component. This component is converted + Each pixel is a single blue component. This component is converted to the internal floating-point format in the same way the blue - component of an RGBA pixel is. It is then converted to an RGBA - pixel with red and green set to 0, and alpha set to 1. After this + component of an RGBA pixel is. It is then converted to an RGBA + pixel with red and green set to 0, and alpha set to 1. After this conversion, the pixel is treated as if it had been read as an RGBA pixel. `GL_ALPHA' - Each pixel is a single alpha component. This component is converted - to the internal floating-point format in the same way the alpha - component of an RGBA pixel is. It is then converted to an RGBA - pixel with red, green, and blue set to 0. After this conversion, - the pixel is treated as if it had been read as an RGBA pixel. + Each pixel is a single alpha component. This component is + converted to the internal floating-point format in the same way the + alpha component of an RGBA pixel is. It is then converted to an + RGBA pixel with red, green, and blue set to 0. After this + conversion, the pixel is treated as if it had been read as an RGBA + pixel. `GL_RGB' `GL_BGR' Each pixel is a three-component group: red first, followed by green, followed by blue; for `GL_BGR', the first component is blue, - followed by green and then red. Each component is converted to the + followed by green and then red. Each component is converted to the internal floating-point format in the same way the red, green, and - blue components of an RGBA pixel are. The color triple is converted - to an RGBA pixel with alpha set to 1. After this conversion, the - pixel is treated as if it had been read as an RGBA pixel. + blue components of an RGBA pixel are. The color triple is + converted to an RGBA pixel with alpha set to 1. After this + conversion, the pixel is treated as if it had been read as an RGBA + pixel. `GL_LUMINANCE' - Each pixel is a single luminance component. This component is + Each pixel is a single luminance component. This component is converted to the internal floating-point format in the same way the - red component of an RGBA pixel is. It is then converted to an RGBA + red component of an RGBA pixel is. It is then converted to an RGBA pixel with red, green, and blue set to the converted luminance - value, and alpha set to 1. After this conversion, the pixel is + value, and alpha set to 1. After this conversion, the pixel is treated as if it had been read as an RGBA pixel. `GL_LUMINANCE_ALPHA' Each pixel is a two-component group: luminance first, followed by - alpha. The two components are converted to the internal + alpha. The two components are converted to the internal floating-point format in the same way the red component of an RGBA - pixel is. They are then converted to an RGBA pixel with red, green, - and blue set to the converted luminance value, and alpha set to the - converted alpha value. After this conversion, the pixel is treated - as if it had been read as an RGBA pixel. + pixel is. They are then converted to an RGBA pixel with red, + green, and blue set to the converted luminance value, and alpha set + to the converted alpha value. After this conversion, the pixel is + treated as if it had been read as an RGBA pixel. The following table summarizes the meaning of the valid constants for the TYPE parameter: @@ -6271,9 +6279,9 @@ the TYPE parameter: -The rasterization described so far assumes pixel zoom factors of 1. If +The rasterization described so far assumes pixel zoom factors of 1. If `glPixelZoom' is used to change the X and Y pixel zoom factors, pixels -are converted to fragments as follows. If (X_R,Y_R) is the current +are converted to fragments as follows. If (X_R,Y_R) is the current raster position, and a given pixel is in the N th column and M th row of the pixel rectangle, then fragments are generated for pixels whose centers are in the rectangle with corners at @@ -6342,7 +6350,7 @@ between the execution of `glBegin' and the corresponding execution of "Render primitives from array data. MODE - Specifies what kind of primitives to render. Symbolic constants + Specifies what kind of primitives to render. Symbolic constants `GL_POINTS', `GL_LINE_STRIP', `GL_LINE_LOOP', `GL_LINES', `GL_TRIANGLE_STRIP', `GL_TRIANGLE_FAN', `GL_TRIANGLES', `GL_QUAD_STRIP', `GL_QUADS', and `GL_POLYGON' are accepted. @@ -6357,42 +6365,42 @@ COUNT Specifies the number of elements to be rendered. TYPE - Specifies the type of the values in INDICES. Must be one of + Specifies the type of the values in INDICES. Must be one of `GL_UNSIGNED_BYTE', `GL_UNSIGNED_SHORT', or `GL_UNSIGNED_INT'. INDICES Specifies a pointer to the location where the indices are stored. -`glDrawRangeElements' is a restricted form of `glDrawElements'. MODE, +`glDrawRangeElements' is a restricted form of `glDrawElements'. MODE, START, END, and COUNT match the corresponding arguments to `glDrawElements', with the additional constraint that all values in the arrays COUNT must lie between START and END, inclusive. Implementations denote recommended maximum amounts of vertex and index data, which may be queried by calling `glGet' with argument -`GL_MAX_ELEMENTS_VERTICES' and `GL_MAX_ELEMENTS_INDICES'. If END-START+1 -is greater than the value of `GL_MAX_ELEMENTS_VERTICES', or if COUNT is -greater than the value of `GL_MAX_ELEMENTS_INDICES', then the call may -operate at reduced performance. There is no requirement that all -vertices in the range [START,END] be referenced. However, the +`GL_MAX_ELEMENTS_VERTICES' and `GL_MAX_ELEMENTS_INDICES'. If +END-START+1 is greater than the value of `GL_MAX_ELEMENTS_VERTICES', or +if COUNT is greater than the value of `GL_MAX_ELEMENTS_INDICES', then +the call may operate at reduced performance. There is no requirement +that all vertices in the range [START,END] be referenced. However, the implementation may partially process unused vertices, reducing performance from what could be achieved with an optimal index set. When `glDrawRangeElements' is called, it uses COUNT sequential elements from an enabled array, starting at START to construct a sequence of -geometric primitives. MODE specifies what kind of primitives are -constructed, and how the array elements construct these primitives. If -more than one array is enabled, each is used. If `GL_VERTEX_ARRAY' is +geometric primitives. MODE specifies what kind of primitives are +constructed, and how the array elements construct these primitives. If +more than one array is enabled, each is used. If `GL_VERTEX_ARRAY' is not enabled, no geometric primitives are constructed. Vertex attributes that are modified by `glDrawRangeElements' have an -unspecified value after `glDrawRangeElements' returns. For example, if +unspecified value after `glDrawRangeElements' returns. For example, if `GL_COLOR_ARRAY' is enabled, the value of the current color is undefined -after `glDrawRangeElements' executes. Attributes that aren't modified +after `glDrawRangeElements' executes. Attributes that aren't modified maintain their previous values. It is an error for indices to lie outside the range [START,END] , but -implementations may not check for this situation. Such indices cause +implementations may not check for this situation. Such indices cause implementation-dependent behavior. `GL_INVALID_ENUM' is generated if MODE is not an accepted value. @@ -6417,16 +6425,16 @@ between the execution of `glBegin' and the corresponding `glEnd'.") "Define an array of edge flags. STRIDE - Specifies the byte offset between consecutive edge flags. If STRIDE - is 0, the edge flags are understood to be tightly packed in the - array. The initial value is 0. + Specifies the byte offset between consecutive edge flags. If + STRIDE is 0, the edge flags are understood to be tightly packed in + the array. The initial value is 0. POINTER - Specifies a pointer to the first edge flag in the array. The + Specifies a pointer to the first edge flag in the array. The initial value is 0. `glEdgeFlagPointer' specifies the location and data format of an array -of boolean edge flags to use when rendering. STRIDE specifies the byte +of boolean edge flags to use when rendering. STRIDE specifies the byte stride from one edge flag to the next, allowing vertices and attributes to be packed into a single array or stored in separate arrays. @@ -6442,7 +6450,7 @@ client-side state, in addition to the current vertex array buffer object binding. To enable and disable the edge flag array, call `glEnableClientState' -and `glDisableClientState' with the argument `GL_EDGE_FLAG_ARRAY'. If +and `glDisableClientState' with the argument `GL_EDGE_FLAG_ARRAY'. If enabled, the edge flag array is used when `glDrawArrays', `glMultiDrawArrays', `glDrawElements', `glMultiDrawElements', `glDrawRangeElements', or `glArrayElement' is called. @@ -6456,21 +6464,21 @@ enabled, the edge flag array is used when `glDrawArrays', FLAG Specifies the current edge flag value, either `GL_TRUE' or - `GL_FALSE'. The initial value is `GL_TRUE'. + `GL_FALSE'. The initial value is `GL_TRUE'. Each vertex of a polygon, separate triangle, or separate quadrilateral specified between a `glBegin'/`glEnd' pair is marked as the start of -either a boundary or nonboundary edge. If the current edge flag is true +either a boundary or nonboundary edge. If the current edge flag is true when the vertex is specified, the vertex is marked as the start of a -boundary edge. Otherwise, the vertex is marked as the start of a -nonboundary edge. `glEdgeFlag' sets the edge flag bit to `GL_TRUE' if +boundary edge. Otherwise, the vertex is marked as the start of a +nonboundary edge. `glEdgeFlag' sets the edge flag bit to `GL_TRUE' if FLAG is `GL_TRUE' and to `GL_FALSE' otherwise. The vertices of connected triangles and connected quadrilaterals are always marked as boundary, regardless of the value of the edge flag. Boundary and nonboundary edge flags on vertices are significant only if -`GL_POLYGON_MODE' is set to `GL_POINT' or `GL_LINE'. See +`GL_POLYGON_MODE' is set to `GL_POINT' or `GL_LINE'. See `glPolygonMode'.") (define-gl-procedures @@ -6479,14 +6487,14 @@ Boundary and nonboundary edge flags on vertices are significant only if "Enable or disable client-side capability. CAP - Specifies the capability to enable. Symbolic constants + Specifies the capability to enable. Symbolic constants `GL_COLOR_ARRAY', `GL_EDGE_FLAG_ARRAY', `GL_FOG_COORD_ARRAY', `GL_INDEX_ARRAY', `GL_NORMAL_ARRAY', `GL_SECONDARY_COLOR_ARRAY', `GL_TEXTURE_COORD_ARRAY', and `GL_VERTEX_ARRAY' are accepted. `glEnableClientState' and `glDisableClientState' enable or disable -individual client-side capabilities. By default, all client-side -capabilities are disabled. Both `glEnableClientState' and +individual client-side capabilities. By default, all client-side +capabilities are disabled. Both `glEnableClientState' and `glDisableClientState' take a single argument, CAP, which can assume one of the following values: @@ -6494,49 +6502,49 @@ of the following values: If enabled, the color array is enabled for writing and used during rendering when `glArrayElement', `glDrawArrays', `glDrawElements', `glDrawRangeElements'`glMultiDrawArrays', or `glMultiDrawElements' - is called. See `glColorPointer'. + is called. See `glColorPointer'. `GL_EDGE_FLAG_ARRAY' If enabled, the edge flag array is enabled for writing and used during rendering when `glArrayElement', `glDrawArrays', `glDrawElements', `glDrawRangeElements'`glMultiDrawArrays', or - `glMultiDrawElements' is called. See `glEdgeFlagPointer'. + `glMultiDrawElements' is called. See `glEdgeFlagPointer'. `GL_FOG_COORD_ARRAY' If enabled, the fog coordinate array is enabled for writing and used during rendering when `glArrayElement', `glDrawArrays', `glDrawElements', `glDrawRangeElements'`glMultiDrawArrays', or - `glMultiDrawElements' is called. See `glFogCoordPointer'. + `glMultiDrawElements' is called. See `glFogCoordPointer'. `GL_INDEX_ARRAY' If enabled, the index array is enabled for writing and used during rendering when `glArrayElement', `glDrawArrays', `glDrawElements', `glDrawRangeElements'`glMultiDrawArrays', or `glMultiDrawElements' - is called. See `glIndexPointer'. + is called. See `glIndexPointer'. `GL_NORMAL_ARRAY' If enabled, the normal array is enabled for writing and used during rendering when `glArrayElement', `glDrawArrays', `glDrawElements', `glDrawRangeElements'`glMultiDrawArrays', or `glMultiDrawElements' - is called. See `glNormalPointer'. + is called. See `glNormalPointer'. `GL_SECONDARY_COLOR_ARRAY' If enabled, the secondary color array is enabled for writing and used during rendering when `glArrayElement', `glDrawArrays', `glDrawElements', `glDrawRangeElements'`glMultiDrawArrays', or - `glMultiDrawElements' is called. See `glColorPointer'. + `glMultiDrawElements' is called. See `glColorPointer'. `GL_TEXTURE_COORD_ARRAY' If enabled, the texture coordinate array is enabled for writing and used during rendering when `glArrayElement', `glDrawArrays', `glDrawElements', `glDrawRangeElements'`glMultiDrawArrays', or - `glMultiDrawElements' is called. See `glTexCoordPointer'. + `glMultiDrawElements' is called. See `glTexCoordPointer'. `GL_VERTEX_ARRAY' If enabled, the vertex array is enabled for writing and used during rendering when `glArrayElement', `glDrawArrays', `glDrawElements', `glDrawRangeElements'`glMultiDrawArrays', or `glMultiDrawElements' - is called. See `glVertexPointer'. + is called. See `glVertexPointer'. `GL_INVALID_ENUM' is generated if CAP is not an accepted value. @@ -6560,10 +6568,10 @@ INDEX or disabled. `glEnableVertexAttribArray' enables the generic vertex attribute array -specified by INDEX. `glDisableVertexAttribArray' disables the generic -vertex attribute array specified by INDEX. By default, all client-side +specified by INDEX. `glDisableVertexAttribArray' disables the generic +vertex attribute array specified by INDEX. By default, all client-side capabilities are disabled, including all generic vertex attribute -arrays. If enabled, the values in the generic vertex attribute array +arrays. If enabled, the values in the generic vertex attribute array will be accessed and used for rendering when calls are made to vertex array commands such as `glDrawArrays', `glDrawElements', `glDrawRangeElements', `glArrayElement', `glMultiDrawElements', or @@ -6584,10 +6592,10 @@ array commands such as `glDrawArrays', `glDrawElements', CAP Specifies a symbolic constant indicating a GL capability. -`glEnable' and `glDisable' enable and disable various capabilities. Use +`glEnable' and `glDisable' enable and disable various capabilities. Use `glIsEnabled' or `glGet' to determine the current setting of any -capability. The initial value for each capability with the exception of -`GL_DITHER' and `GL_MULTISAMPLE' is `GL_FALSE'. The initial value for +capability. The initial value for each capability with the exception of +`GL_DITHER' and `GL_MULTISAMPLE' is `GL_FALSE'. The initial value for `GL_DITHER' and `GL_MULTISAMPLE' is `GL_TRUE'. Both `glEnable' and `glDisable' take a single argument, CAP, which can @@ -6596,19 +6604,19 @@ assume one of the following values: `GL_ALPHA_TEST' - If enabled, do alpha testing. See `glAlphaFunc'. + If enabled, do alpha testing. See `glAlphaFunc'. `GL_AUTO_NORMAL' If enabled, generate normal vectors when either `GL_MAP2_VERTEX_3' - or `GL_MAP2_VERTEX_4' is used to generate vertices. See `glMap2'. + or `GL_MAP2_VERTEX_4' is used to generate vertices. See `glMap2'. `GL_BLEND' If enabled, blend the computed fragment color values with the - values in the color buffers. See `glBlendFunc'. + values in the color buffers. See `glBlendFunc'. `GL_CLIP_PLANE'I @@ -6620,51 +6628,52 @@ assume one of the following values: If enabled, apply the currently selected logical operation to the - computed fragment color and color buffer values. See `glLogicOp'. + computed fragment color and color buffer values. See `glLogicOp'. `GL_COLOR_MATERIAL' If enabled, have one or more material parameters track the current - color. See `glColorMaterial'. + color. See `glColorMaterial'. `GL_COLOR_SUM' If enabled and no fragment shader is active, add the secondary - color value to the computed fragment color. See `glSecondaryColor'. + color value to the computed fragment color. See + `glSecondaryColor'. `GL_COLOR_TABLE' If enabled, perform a color table lookup on the incoming RGBA color - values. See `glColorTable'. + values. See `glColorTable'. `GL_CONVOLUTION_1D' If enabled, perform a 1D convolution operation on incoming RGBA - color values. See `glConvolutionFilter1D'. + color values. See `glConvolutionFilter1D'. `GL_CONVOLUTION_2D' If enabled, perform a 2D convolution operation on incoming RGBA - color values. See `glConvolutionFilter2D'. + color values. See `glConvolutionFilter2D'. `GL_CULL_FACE' If enabled, cull polygons based on their winding in window - coordinates. See `glCullFace'. + coordinates. See `glCullFace'. `GL_DEPTH_TEST' - If enabled, do depth comparisons and update the depth buffer. Note + If enabled, do depth comparisons and update the depth buffer. Note that even if the depth buffer exists and the depth mask is non-zero, the depth buffer is not updated if the depth test is - disabled. See `glDepthFunc' and `glDepthRange'. + disabled. See `glDepthFunc' and `glDepthRange'. `GL_DITHER' @@ -6676,95 +6685,95 @@ assume one of the following values: If enabled and no fragment shader is active, blend a fog color into - the post-texturing color. See `glFog'. + the post-texturing color. See `glFog'. `GL_HISTOGRAM' - If enabled, histogram incoming RGBA color values. See + If enabled, histogram incoming RGBA color values. See `glHistogram'. `GL_INDEX_LOGIC_OP' If enabled, apply the currently selected logical operation to the - incoming index and color buffer indices. See `glLogicOp'. + incoming index and color buffer indices. See `glLogicOp'. `GL_LIGHT'I If enabled, include light I in the evaluation of the lighting - equation. See `glLightModel' and `glLight'. + equation. See `glLightModel' and `glLight'. `GL_LIGHTING' If enabled and no vertex shader is active, use the current lighting - parameters to compute the vertex color or index. Otherwise, simply - associate the current color or index with each vertex. See + parameters to compute the vertex color or index. Otherwise, simply + associate the current color or index with each vertex. See `glMaterial', `glLightModel', and `glLight'. `GL_LINE_SMOOTH' - If enabled, draw lines with correct filtering. Otherwise, draw - aliased lines. See `glLineWidth'. + If enabled, draw lines with correct filtering. Otherwise, draw + aliased lines. See `glLineWidth'. `GL_LINE_STIPPLE' If enabled, use the current line stipple pattern when drawing - lines. See `glLineStipple'. + lines. See `glLineStipple'. `GL_MAP1_COLOR_4' If enabled, calls to `glEvalCoord1', `glEvalMesh1', and - `glEvalPoint1' generate RGBA values. See `glMap1'. + `glEvalPoint1' generate RGBA values. See `glMap1'. `GL_MAP1_INDEX' If enabled, calls to `glEvalCoord1', `glEvalMesh1', and - `glEvalPoint1' generate color indices. See `glMap1'. + `glEvalPoint1' generate color indices. See `glMap1'. `GL_MAP1_NORMAL' If enabled, calls to `glEvalCoord1', `glEvalMesh1', and - `glEvalPoint1' generate normals. See `glMap1'. + `glEvalPoint1' generate normals. See `glMap1'. `GL_MAP1_TEXTURE_COORD_1' If enabled, calls to `glEvalCoord1', `glEvalMesh1', and - `glEvalPoint1' generate S texture coordinates. See `glMap1'. + `glEvalPoint1' generate S texture coordinates. See `glMap1'. `GL_MAP1_TEXTURE_COORD_2' If enabled, calls to `glEvalCoord1', `glEvalMesh1', and - `glEvalPoint1' generate S and T texture coordinates. See `glMap1'. + `glEvalPoint1' generate S and T texture coordinates. See `glMap1'. `GL_MAP1_TEXTURE_COORD_3' If enabled, calls to `glEvalCoord1', `glEvalMesh1', and - `glEvalPoint1' generate S, T, and R texture coordinates. See + `glEvalPoint1' generate S, T, and R texture coordinates. See `glMap1'. `GL_MAP1_TEXTURE_COORD_4' If enabled, calls to `glEvalCoord1', `glEvalMesh1', and - `glEvalPoint1' generate S, T, R, and Q texture coordinates. See + `glEvalPoint1' generate S, T, R, and Q texture coordinates. See `glMap1'. `GL_MAP1_VERTEX_3' If enabled, calls to `glEvalCoord1', `glEvalMesh1', and - `glEvalPoint1' generate X, Y, and Z vertex coordinates. See + `glEvalPoint1' generate X, Y, and Z vertex coordinates. See `glMap1'. `GL_MAP1_VERTEX_4' @@ -6772,57 +6781,57 @@ assume one of the following values: If enabled, calls to `glEvalCoord1', `glEvalMesh1', and `glEvalPoint1' generate homogeneous X, Y, Z, and W vertex - coordinates. See `glMap1'. + coordinates. See `glMap1'. `GL_MAP2_COLOR_4' If enabled, calls to `glEvalCoord2', `glEvalMesh2', and - `glEvalPoint2' generate RGBA values. See `glMap2'. + `glEvalPoint2' generate RGBA values. See `glMap2'. `GL_MAP2_INDEX' If enabled, calls to `glEvalCoord2', `glEvalMesh2', and - `glEvalPoint2' generate color indices. See `glMap2'. + `glEvalPoint2' generate color indices. See `glMap2'. `GL_MAP2_NORMAL' If enabled, calls to `glEvalCoord2', `glEvalMesh2', and - `glEvalPoint2' generate normals. See `glMap2'. + `glEvalPoint2' generate normals. See `glMap2'. `GL_MAP2_TEXTURE_COORD_1' If enabled, calls to `glEvalCoord2', `glEvalMesh2', and - `glEvalPoint2' generate S texture coordinates. See `glMap2'. + `glEvalPoint2' generate S texture coordinates. See `glMap2'. `GL_MAP2_TEXTURE_COORD_2' If enabled, calls to `glEvalCoord2', `glEvalMesh2', and - `glEvalPoint2' generate S and T texture coordinates. See `glMap2'. + `glEvalPoint2' generate S and T texture coordinates. See `glMap2'. `GL_MAP2_TEXTURE_COORD_3' If enabled, calls to `glEvalCoord2', `glEvalMesh2', and - `glEvalPoint2' generate S, T, and R texture coordinates. See + `glEvalPoint2' generate S, T, and R texture coordinates. See `glMap2'. `GL_MAP2_TEXTURE_COORD_4' If enabled, calls to `glEvalCoord2', `glEvalMesh2', and - `glEvalPoint2' generate S, T, R, and Q texture coordinates. See + `glEvalPoint2' generate S, T, R, and Q texture coordinates. See `glMap2'. `GL_MAP2_VERTEX_3' If enabled, calls to `glEvalCoord2', `glEvalMesh2', and - `glEvalPoint2' generate X, Y, and Z vertex coordinates. See + `glEvalPoint2' generate X, Y, and Z vertex coordinates. See `glMap2'. `GL_MAP2_VERTEX_4' @@ -6830,19 +6839,19 @@ assume one of the following values: If enabled, calls to `glEvalCoord2', `glEvalMesh2', and `glEvalPoint2' generate homogeneous X, Y, Z, and W vertex - coordinates. See `glMap2'. + coordinates. See `glMap2'. `GL_MINMAX' If enabled, compute the minimum and maximum values of incoming RGBA - color values. See `glMinmax'. + color values. See `glMinmax'. `GL_MULTISAMPLE' If enabled, use multiple fragment samples in computing the final - color of a pixel. See `glSampleCoverage'. + color of a pixel. See `glSampleCoverage'. `GL_NORMALIZE' @@ -6855,71 +6864,71 @@ assume one of the following values: `GL_POINT_SMOOTH' - If enabled, draw points with proper filtering. Otherwise, draw - aliased points. See `glPointSize'. + If enabled, draw points with proper filtering. Otherwise, draw + aliased points. See `glPointSize'. `GL_POINT_SPRITE' If enabled, calculate texture coordinates for points based on - texture environment and point parameter settings. Otherwise texture - coordinates are constant across points. + texture environment and point parameter settings. Otherwise + texture coordinates are constant across points. `GL_POLYGON_OFFSET_FILL' If enabled, and if the polygon is rendered in `GL_FILL' mode, an offset is added to depth values of a polygon's fragments before the - depth comparison is performed. See `glPolygonOffset'. + depth comparison is performed. See `glPolygonOffset'. `GL_POLYGON_OFFSET_LINE' If enabled, and if the polygon is rendered in `GL_LINE' mode, an offset is added to depth values of a polygon's fragments before the - depth comparison is performed. See `glPolygonOffset'. + depth comparison is performed. See `glPolygonOffset'. `GL_POLYGON_OFFSET_POINT' If enabled, an offset is added to depth values of a polygon's fragments before the depth comparison is performed, if the polygon - is rendered in `GL_POINT' mode. See `glPolygonOffset'. + is rendered in `GL_POINT' mode. See `glPolygonOffset'. `GL_POLYGON_SMOOTH' - If enabled, draw polygons with proper filtering. Otherwise, draw - aliased polygons. For correct antialiased polygons, an alpha buffer - is needed and the polygons must be sorted front to back. + If enabled, draw polygons with proper filtering. Otherwise, draw + aliased polygons. For correct antialiased polygons, an alpha + buffer is needed and the polygons must be sorted front to back. `GL_POLYGON_STIPPLE' If enabled, use the current polygon stipple pattern when rendering - polygons. See `glPolygonStipple'. + polygons. See `glPolygonStipple'. `GL_POST_COLOR_MATRIX_COLOR_TABLE' If enabled, perform a color table lookup on RGBA color values after - color matrix transformation. See `glColorTable'. + color matrix transformation. See `glColorTable'. `GL_POST_CONVOLUTION_COLOR_TABLE' If enabled, perform a color table lookup on RGBA color values after - convolution. See `glColorTable'. + convolution. See `glColorTable'. `GL_RESCALE_NORMAL' If enabled and no vertex shader is active, normal vectors are scaled after transformation and before lighting by a factor - computed from the modelview matrix. If the modelview matrix scales + computed from the modelview matrix. If the modelview matrix scales space uniformly, this has the effect of restoring the transformed - normal to unit length. This method is generally more efficient than - `GL_NORMALIZE'. See `glNormal' and `glNormalPointer'. + normal to unit length. This method is generally more efficient + than `GL_NORMALIZE'. See `glNormal' and `glNormalPointer'. `GL_SAMPLE_ALPHA_TO_COVERAGE' @@ -6939,26 +6948,26 @@ assume one of the following values: If enabled, the fragment's coverage is ANDed with the temporary - coverage value. If `GL_SAMPLE_COVERAGE_INVERT' is set to `GL_TRUE', - invert the coverage value. See `glSampleCoverage'. + coverage value. If `GL_SAMPLE_COVERAGE_INVERT' is set to + `GL_TRUE', invert the coverage value. See `glSampleCoverage'. `GL_SEPARABLE_2D' If enabled, perform a two-dimensional convolution operation using a - separable convolution filter on incoming RGBA color values. See + separable convolution filter on incoming RGBA color values. See `glSeparableFilter2D'. `GL_SCISSOR_TEST' If enabled, discard fragments that are outside the scissor - rectangle. See `glScissor'. + rectangle. See `glScissor'. `GL_STENCIL_TEST' - If enabled, do stencil testing and update the stencil buffer. See + If enabled, do stencil testing and update the stencil buffer. See `glStencilFunc' and `glStencilOp'. `GL_TEXTURE_1D' @@ -6966,34 +6975,34 @@ assume one of the following values: If enabled and no fragment shader is active, one-dimensional texturing is performed (unless two- or three-dimensional or - cube-mapped texturing is also enabled). See `glTexImage1D'. + cube-mapped texturing is also enabled). See `glTexImage1D'. `GL_TEXTURE_2D' If enabled and no fragment shader is active, two-dimensional texturing is performed (unless three-dimensional or cube-mapped - texturing is also enabled). See `glTexImage2D'. + texturing is also enabled). See `glTexImage2D'. `GL_TEXTURE_3D' If enabled and no fragment shader is active, three-dimensional texturing is performed (unless cube-mapped texturing is also - enabled). See `glTexImage3D'. + enabled). See `glTexImage3D'. `GL_TEXTURE_CUBE_MAP' If enabled and no fragment shader is active, cube-mapped texturing - is performed. See `glTexImage2D'. + is performed. See `glTexImage2D'. `GL_TEXTURE_GEN_Q' If enabled and no vertex shader is active, the Q texture coordinate is computed using the texture generation function defined with - `glTexGen'. Otherwise, the current Q texture coordinate is used. + `glTexGen'. Otherwise, the current Q texture coordinate is used. See `glTexGen'. `GL_TEXTURE_GEN_R' @@ -7001,7 +7010,7 @@ assume one of the following values: If enabled and no vertex shader is active, the R texture coordinate is computed using the texture generation function defined with - `glTexGen'. Otherwise, the current R texture coordinate is used. + `glTexGen'. Otherwise, the current R texture coordinate is used. See `glTexGen'. `GL_TEXTURE_GEN_S' @@ -7009,7 +7018,7 @@ assume one of the following values: If enabled and no vertex shader is active, the S texture coordinate is computed using the texture generation function defined with - `glTexGen'. Otherwise, the current S texture coordinate is used. + `glTexGen'. Otherwise, the current S texture coordinate is used. See `glTexGen'. `GL_TEXTURE_GEN_T' @@ -7017,7 +7026,7 @@ assume one of the following values: If enabled and no vertex shader is active, the T texture coordinate is computed using the texture generation function defined with - `glTexGen'. Otherwise, the current T texture coordinate is used. + `glTexGen'. Otherwise, the current T texture coordinate is used. See `glTexGen'. `GL_VERTEX_PROGRAM_POINT_SIZE' @@ -7033,7 +7042,7 @@ assume one of the following values: If enabled and a vertex shader is active, it specifies that the GL will choose between front and back colors based on the polygon's - face direction of which the vertex being shaded is a part. It has + face direction of which the vertex being shaded is a part. It has no effect on points or lines. `GL_INVALID_ENUM' is generated if CAP is not one of the values listed @@ -7060,20 +7069,20 @@ U V Specifies a value that is the domain coordinate V to the basis - function defined in a previous `glMap2' command. This argument is + function defined in a previous `glMap2' command. This argument is not present in a `glEvalCoord1' command. `glEvalCoord1' evaluates enabled one-dimensional maps at argument U. `glEvalCoord2' does the same for two-dimensional maps using two domain -values, U and V. To define a map, call `glMap1' and `glMap2'; to enable +values, U and V. To define a map, call `glMap1' and `glMap2'; to enable and disable it, call `glEnable' and `glDisable'. When one of the `glEvalCoord' commands is issued, all currently enabled -maps of the indicated dimension are evaluated. Then, for each enabled +maps of the indicated dimension are evaluated. Then, for each enabled map, it is as if the corresponding GL command had been issued with the -computed value. That is, if `GL_MAP1_INDEX' or `GL_MAP2_INDEX' is -enabled, a `glIndex' command is simulated. If `GL_MAP1_COLOR_4' or -`GL_MAP2_COLOR_4' is enabled, a `glColor' command is simulated. If +computed value. That is, if `GL_MAP1_INDEX' or `GL_MAP2_INDEX' is +enabled, a `glIndex' command is simulated. If `GL_MAP1_COLOR_4' or +`GL_MAP2_COLOR_4' is enabled, a `glColor' command is simulated. If `GL_MAP1_NORMAL' or `GL_MAP2_NORMAL' is enabled, a normal vector is produced, and if any of `GL_MAP1_TEXTURE_COORD_1', `GL_MAP1_TEXTURE_COORD_2', `GL_MAP1_TEXTURE_COORD_3', @@ -7085,33 +7094,33 @@ command is simulated. For color, color index, normal, and texture coordinates the GL uses evaluated values instead of current values for those evaluations that are enabled, and current values otherwise, However, the evaluated values -do not update the current values. Thus, if `glVertex' commands are +do not update the current values. Thus, if `glVertex' commands are interspersed with `glEvalCoord' commands, the color, normal, and texture coordinates associated with the `glVertex' commands are not affected by the values generated by the `glEvalCoord' commands, but only by the most recent `glColor', `glIndex', `glNormal', and `glTexCoord' commands. -No commands are issued for maps that are not enabled. If more than one +No commands are issued for maps that are not enabled. If more than one texture evaluation is enabled for a particular dimension (for example, `GL_MAP2_TEXTURE_COORD_1' and `GL_MAP2_TEXTURE_COORD_2'), then only the evaluation of the map that produces the larger number of coordinates (in -this case, `GL_MAP2_TEXTURE_COORD_2') is carried out. `GL_MAP1_VERTEX_4' +this case, `GL_MAP2_TEXTURE_COORD_2') is carried out. `GL_MAP1_VERTEX_4' overrides `GL_MAP1_VERTEX_3', and `GL_MAP2_VERTEX_4' overrides -`GL_MAP2_VERTEX_3', in the same manner. If neither a three- nor a +`GL_MAP2_VERTEX_3', in the same manner. If neither a three- nor a four-component vertex map is enabled for the specified dimension, the `glEvalCoord' command is ignored. If you have enabled automatic normal generation, by calling `glEnable' with argument `GL_AUTO_NORMAL', `glEvalCoord2' generates surface normals analytically, regardless of the contents or enabling of the -`GL_MAP2_NORMAL' map. Let +`GL_MAP2_NORMAL' map. Let `m'=∂`p',/∂U,,×∂`p',/∂V,, Then the generated normal `n' is `n'=`m'/∥`m',∥, If automatic normal generation is disabled, the corresponding normal map -`GL_MAP2_NORMAL', if enabled, is used to produce a normal. If neither +`GL_MAP2_NORMAL', if enabled, is used to produce a normal. If neither automatic normal generation nor a normal map is enabled, no normal is generated for `glEvalCoord2' commands.") @@ -7134,7 +7143,7 @@ generated for `glEvalCoord2' commands.") MODE In `glEvalMesh1', specifies whether to compute a one-dimensional - mesh of points or lines. Symbolic constants `GL_POINT' and + mesh of points or lines. Symbolic constants `GL_POINT' and `GL_LINE' are accepted. I1 @@ -7144,10 +7153,10 @@ I1 I . `glMapGrid' and `glEvalMesh' are used in tandem to efficiently generate -and evaluate a series of evenly-spaced map domain values. `glEvalMesh' +and evaluate a series of evenly-spaced map domain values. `glEvalMesh' steps through the integer domain of a one- or two-dimensional grid, whose range is the domain of the evaluation maps specified by `glMap1' -and `glMap2'. MODE determines whether the resulting vertices are +and `glMap2'. MODE determines whether the resulting vertices are connected as points, lines, or filled polygons. In the one-dimensional case, `glEvalMesh1', the mesh is generated as if @@ -7166,7 +7175,7 @@ where ΔU=(U_2-U_1,)/N and N , U_1 , and U_2 are the arguments to the most recent `glMapGrid1' -command. TYPE is `GL_POINTS' if MODE is `GL_POINT', or `GL_LINES' if +command. TYPE is `GL_POINTS' if MODE is `GL_POINT', or `GL_LINES' if MODE is `GL_LINE'. The one absolute numeric requirement is that if I=N , then the value @@ -7177,7 +7186,7 @@ In the two-dimensional case, `glEvalMesh2', let .cp ΔU=(U_2-U_1,)/N ΔV=(V_2-V_1,)/M where N , U_1 , U_2 , M , V_1 , and V_2 are the arguments to the most -recent `glMapGrid2' command. Then, if MODE is `GL_FILL', the +recent `glMapGrid2' command. Then, if MODE is `GL_FILL', the `glEvalMesh2' command is equivalent to: @@ -7255,9 +7264,9 @@ J (`glEvalPoint2' only). `glMapGrid' and `glEvalMesh' are used in tandem to efficiently generate -and evaluate a series of evenly spaced map domain values. `glEvalPoint' +and evaluate a series of evenly spaced map domain values. `glEvalPoint' can be used to evaluate a single grid point in the same gridspace that -is traversed by `glEvalMesh'. Calling `glEvalPoint1' is equivalent to +is traversed by `glEvalMesh'. Calling `glEvalPoint1' is equivalent to calling where ΔU=(U_2-U_1,)/N @@ -7266,7 +7275,7 @@ calling where ΔU=(U_2-U_1,)/N ); and N , U_1 , and U_2 are the arguments to the most recent `glMapGrid1' -command. The one absolute numeric requirement is that if I=N , then the +command. The one absolute numeric requirement is that if I=N , then the value computed from I·ΔU+U_1 is exactly U_2 . In the two-dimensional case, `glEvalPoint2', let @@ -7274,7 +7283,7 @@ In the two-dimensional case, `glEvalPoint2', let ΔU=(U_2-U_1,)/N ΔV=(V_2-V_1,)/M where N , U_1 , U_2 , M , V_1 , and V_2 are the arguments to the most -recent `glMapGrid2' command. Then the `glEvalPoint2' command is +recent `glMapGrid2' command. Then the `glEvalPoint2' command is equivalent to calling The only absolute numeric requirements are that if I=N , then the value computed from I·ΔU+U_1 is exactly U_2 , and if J=M , then the value computed from J·ΔV+V_1 is exactly V_2 . @@ -7299,57 +7308,57 @@ SIZE TYPE Specifies a symbolic constant that describes the information that - will be returned for each vertex. `GL_2D', `GL_3D', `GL_3D_COLOR', + will be returned for each vertex. `GL_2D', `GL_3D', `GL_3D_COLOR', `GL_3D_COLOR_TEXTURE', and `GL_4D_COLOR_TEXTURE' are accepted. BUFFER Returns the feedback data. -The `glFeedbackBuffer' function controls feedback. Feedback, like -selection, is a GL mode. The mode is selected by calling `glRenderMode' -with `GL_FEEDBACK'. When the GL is in feedback mode, no pixels are -produced by rasterization. Instead, information about primitives that +The `glFeedbackBuffer' function controls feedback. Feedback, like +selection, is a GL mode. The mode is selected by calling `glRenderMode' +with `GL_FEEDBACK'. When the GL is in feedback mode, no pixels are +produced by rasterization. Instead, information about primitives that would have been rasterized is fed back to the application using the GL. `glFeedbackBuffer' has three arguments: BUFFER is a pointer to an array -of floating-point values into which feedback information is placed. SIZE -indicates the size of the array. TYPE is a symbolic constant describing -the information that is fed back for each vertex. `glFeedbackBuffer' +of floating-point values into which feedback information is placed. SIZE +indicates the size of the array. TYPE is a symbolic constant describing +the information that is fed back for each vertex. `glFeedbackBuffer' must be issued before feedback mode is enabled (by calling -`glRenderMode' with argument `GL_FEEDBACK'). Setting `GL_FEEDBACK' +`glRenderMode' with argument `GL_FEEDBACK'). Setting `GL_FEEDBACK' without establishing the feedback buffer, or calling `glFeedbackBuffer' while the GL is in feedback mode, is an error. When `glRenderMode' is called while in feedback mode, it returns the number of entries placed in the feedback array and resets the feedback -array pointer to the base of the feedback buffer. The returned value -never exceeds SIZE. If the feedback data required more room than was -available in BUFFER, `glRenderMode' returns a negative value. To take +array pointer to the base of the feedback buffer. The returned value +never exceeds SIZE. If the feedback data required more room than was +available in BUFFER, `glRenderMode' returns a negative value. To take the GL out of feedback mode, call `glRenderMode' with a parameter value other than `GL_FEEDBACK'. While in feedback mode, each primitive, bitmap, or pixel rectangle that would be rasterized generates a block of values that are copied into the -feedback array. If doing so would cause the number of entries to exceed +feedback array. If doing so would cause the number of entries to exceed the maximum, the block is partially written so as to fill the array (if -there is any room left at all), and an overflow flag is set. Each block +there is any room left at all), and an overflow flag is set. Each block begins with a code indicating the primitive type, followed by values -that describe the primitive's vertices and associated data. Entries are -also written for bitmaps and pixel rectangles. Feedback occurs after +that describe the primitive's vertices and associated data. Entries are +also written for bitmaps and pixel rectangles. Feedback occurs after polygon culling and `glPolygonMode' interpretation of polygons has taken place, so polygons that are culled are not returned in the feedback -buffer. It can also occur after polygons with more than three edges are +buffer. It can also occur after polygons with more than three edges are broken up into triangles, if the GL implementation renders polygons by performing this decomposition. The `glPassThrough' command can be used to insert a marker into the -feedback buffer. See `glPassThrough'. +feedback buffer. See `glPassThrough'. Following is the grammar for the blocks of values written into the -feedback buffer. Each primitive is indicated with a unique identifying -value followed by some number of vertices. Polygon entries include an -integer value indicating how many vertices follow. A vertex is fed back -as some number of floating-point values, as determined by TYPE. Colors +feedback buffer. Each primitive is indicated with a unique identifying +value followed by some number of vertices. Polygon entries include an +integer value indicating how many vertices follow. A vertex is fed back +as some number of floating-point values, as determined by TYPE. Colors are fed back as four values in RGBA mode and one value in color index mode. @@ -7367,15 +7376,15 @@ value value value color tex color ← rgba | index rgba ← value value value value index ← value tex ← value value value value VALUE is a floating-point number, and N is a floating-point integer -giving the number of vertices in the polygon. `GL_POINT_TOKEN', +giving the number of vertices in the polygon. `GL_POINT_TOKEN', `GL_LINE_TOKEN', `GL_LINE_RESET_TOKEN', `GL_POLYGON_TOKEN', `GL_BITMAP_TOKEN', `GL_DRAW_PIXEL_TOKEN', `GL_COPY_PIXEL_TOKEN' and `GL_PASS_THROUGH_TOKEN' are symbolic floating-point constants. `GL_LINE_RESET_TOKEN' is returned whenever the line stipple pattern is -reset. The data returned as a vertex depends on the feedback TYPE. +reset. The data returned as a vertex depends on the feedback TYPE. The following table gives the correspondence between TYPE and the number -of values per vertex. K is 1 in color index mode and 4 in RGBA mode. +of values per vertex. K is 1 in color index mode and 4 in RGBA mode. @@ -7398,9 +7407,9 @@ of values per vertex. K is 1 in color index mode and 4 in RGBA mode. X, Y, Z, W, K , 4 , 8+K Feedback vertex coordinates are in window coordinates, except W, which -is in clip coordinates. Feedback colors are lighted, if lighting is -enabled. Feedback texture coordinates are generated, if texture -coordinate generation is enabled. They are always transformed by the +is in clip coordinates. Feedback colors are lighted, if lighting is +enabled. Feedback texture coordinates are generated, if texture +coordinate generation is enabled. They are always transformed by the texture matrix. `GL_INVALID_ENUM' is generated if TYPE is not an accepted value. @@ -7421,8 +7430,8 @@ between the execution of `glBegin' and the corresponding execution of "Block until all GL execution is complete. `glFinish' does not return until the effects of all previously called GL -commands are complete. Such effects include all changes to GL state, all -changes to connection state, and all changes to the frame buffer +commands are complete. Such effects include all changes to GL state, +all changes to connection state, and all changes to the frame buffer contents. `GL_INVALID_OPERATION' is generated if `glFinish' is executed between @@ -7434,15 +7443,15 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") Different GL implementations buffer commands in several different locations, including network buffers and the graphics accelerator -itself. `glFlush' empties all of these buffers, causing all issued +itself. `glFlush' empties all of these buffers, causing all issued commands to be executed as quickly as they are accepted by the actual -rendering engine. Though this execution may not be completed in any +rendering engine. Though this execution may not be completed in any particular time period, it does complete in finite time. Because any GL program might be executed over a network, or on an accelerator that buffers commands, all programs should call `glFlush' whenever they count on having all of their previously issued commands -completed. For example, call `glFlush' before waiting for user input +completed. For example, call `glFlush' before waiting for user input that depends on the generated image. `GL_INVALID_OPERATION' is generated if `glFlush' is executed between the @@ -7458,21 +7467,21 @@ execution of `glBegin' and the corresponding execution of `glEnd'.") "Define an array of fog coordinates. TYPE - Specifies the data type of each fog coordinate. Symbolic constants - `GL_FLOAT', or `GL_DOUBLE' are accepted. The initial value is + Specifies the data type of each fog coordinate. Symbolic constants + `GL_FLOAT', or `GL_DOUBLE' are accepted. The initial value is `GL_FLOAT'. STRIDE - Specifies the byte offset between consecutive fog coordinates. If + Specifies the byte offset between consecutive fog coordinates. If STRIDE is 0, the array elements are understood to be tightly - packed. The initial value is 0. + packed. The initial value is 0. POINTER Specifies a pointer to the first coordinate of the first fog - coordinate in the array. The initial value is 0. + coordinate in the array. The initial value is 0. `glFogCoordPointer' specifies the location and data format of an array -of fog coordinates to use when rendering. TYPE specifies the data type +of fog coordinates to use when rendering. TYPE specifies the data type of each fog coordinate, and STRIDE specifies the byte stride from one fog coordinate to the next, allowing vertices and attributes to be packed into a single array or stored in separate arrays. @@ -7490,7 +7499,7 @@ buffer object binding. To enable and disable the fog coordinate array, call `glEnableClientState' and `glDisableClientState' with the argument -`GL_FOG_COORD_ARRAY'. If enabled, the fog coordinate array is used when +`GL_FOG_COORD_ARRAY'. If enabled, the fog coordinate array is used when `glDrawArrays', `glMultiDrawArrays', `glDrawElements', `glMultiDrawElements', `glDrawRangeElements', or `glArrayElement' is called. @@ -7511,7 +7520,7 @@ COORD Specify the fog distance. `glFogCoord' specifies the fog coordinate that is associated with each -vertex and the current raster position. The value specified is +vertex and the current raster position. The value specified is interpolated and used in computing the fog color (see `glFog').") (define-gl-procedures @@ -7530,70 +7539,71 @@ interpolated and used in computing the fog color (see `glFog').") "Specify fog parameters. PNAME - Specifies a single-valued fog parameter. `GL_FOG_MODE', + Specifies a single-valued fog parameter. `GL_FOG_MODE', `GL_FOG_DENSITY', `GL_FOG_START', `GL_FOG_END', `GL_FOG_INDEX', and `GL_FOG_COORD_SRC' are accepted. PARAM Specifies the value that PNAME will be set to. -Fog is initially disabled. While enabled, fog affects rasterized -geometry, bitmaps, and pixel blocks, but not buffer clear operations. To +Fog is initially disabled. While enabled, fog affects rasterized +geometry, bitmaps, and pixel blocks, but not buffer clear operations. To enable and disable fog, call `glEnable' and `glDisable' with argument `GL_FOG'. `glFog' assigns the value or values in PARAMS to the fog parameter -specified by PNAME. The following values are accepted for PNAME: +specified by PNAME. The following values are accepted for PNAME: `GL_FOG_MODE' PARAMS is a single integer or floating-point value that specifies - the equation to be used to compute the fog blend factor, F . Three + the equation to be used to compute the fog blend factor, F . Three symbolic constants are accepted: `GL_LINEAR', `GL_EXP', and - `GL_EXP2'. The equations corresponding to these symbolic constants - are defined below. The initial fog mode is `GL_EXP'. + `GL_EXP2'. The equations corresponding to these symbolic constants + are defined below. The initial fog mode is `GL_EXP'. `GL_FOG_DENSITY' PARAMS is a single integer or floating-point value that specifies DENSITY , the fog density used in both exponential fog equations. - Only nonnegative densities are accepted. The initial fog density is - 1. + Only nonnegative densities are accepted. The initial fog density + is 1. `GL_FOG_START' PARAMS is a single integer or floating-point value that specifies - START , the near distance used in the linear fog equation. The + START , the near distance used in the linear fog equation. The initial near distance is 0. `GL_FOG_END' PARAMS is a single integer or floating-point value that specifies - END , the far distance used in the linear fog equation. The initial - far distance is 1. + END , the far distance used in the linear fog equation. The + initial far distance is 1. `GL_FOG_INDEX' PARAMS is a single integer or floating-point value that specifies - I_F , the fog color index. The initial fog index is 0. + I_F , the fog color index. The initial fog index is 0. `GL_FOG_COLOR' PARAMS contains four integer or floating-point values that specify - C_F , the fog color. Integer values are mapped linearly such that + C_F , the fog color. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most - negative representable value maps to -1.0 . Floating-point values - are mapped directly. After conversion, all color components are - clamped to the range [0,1] . The initial fog color is (0, 0, 0, 0). + negative representable value maps to -1.0 . Floating-point values + are mapped directly. After conversion, all color components are + clamped to the range [0,1] . The initial fog color is (0, 0, 0, + 0). `GL_FOG_COORD_SRC' PARAMS contains either of the following symbolic constants: - `GL_FOG_COORD' or `GL_FRAGMENT_DEPTH'. `GL_FOG_COORD' specifies + `GL_FOG_COORD' or `GL_FRAGMENT_DEPTH'. `GL_FOG_COORD' specifies that the current fog coordinate should be used as distance value in - the fog color computation. `GL_FRAGMENT_DEPTH' specifies that the + the fog color computation. `GL_FRAGMENT_DEPTH' specifies that the current fragment depth should be used as distance value in the fog computation. Fog blends a fog color with each rasterized pixel fragment's -post-texturing color using a blending factor F . Factor F is computed in -one of three ways, depending on the fog mode. Let C be either the +post-texturing color using a blending factor F . Factor F is computed +in one of three ways, depending on the fog mode. Let C be either the distance in eye coordinate from the origin (in the case that the `GL_FOG_COORD_SRC' is `GL_FRAGMENT_DEPTH') or the current fog coordinate -(in the case that `GL_FOG_COORD_SRC' is `GL_FOG_COORD'). The equation +(in the case that `GL_FOG_COORD_SRC' is `GL_FOG_COORD'). The equation for `GL_LINEAR' fog is F=END-C,/END-START, The equation for `GL_EXP' fog is F=E^-(DENSITY·C,), @@ -7601,7 +7611,7 @@ The equation for `GL_EXP' fog is F=E^-(DENSITY·C,), The equation for `GL_EXP2' fog is F=E^-(DENSITY·C,),^2 Regardless of the fog mode, F is clamped to the range [0,1] after it is -computed. Then, if the GL is in RGBA color mode, the fragment's red, +computed. Then, if the GL is in RGBA color mode, the fragment's red, green, and blue colors, represented by C_R , are replaced by C_R,^″=F×C_R+(1-F,)×C_F @@ -7628,27 +7638,27 @@ execution of `glBegin' and the corresponding execution of `glEnd'.") "Define front- and back-facing polygons. MODE - Specifies the orientation of front-facing polygons. `GL_CW' and - `GL_CCW' are accepted. The initial value is `GL_CCW'. + Specifies the orientation of front-facing polygons. `GL_CW' and + `GL_CCW' are accepted. The initial value is `GL_CCW'. In a scene composed entirely of opaque closed surfaces, back-facing -polygons are never visible. Eliminating these invisible polygons has the -obvious benefit of speeding up the rendering of the image. To enable and -disable elimination of back-facing polygons, call `glEnable' and -`glDisable' with argument `GL_CULL_FACE'. +polygons are never visible. Eliminating these invisible polygons has +the obvious benefit of speeding up the rendering of the image. To +enable and disable elimination of back-facing polygons, call `glEnable' +and `glDisable' with argument `GL_CULL_FACE'. The projection of a polygon to window coordinates is said to have clockwise winding if an imaginary object following the path from its first vertex, its second vertex, and so on, to its last vertex, and finally back to its first vertex, moves in a clockwise direction about -the interior of the polygon. The polygon's winding is said to be +the interior of the polygon. The polygon's winding is said to be counterclockwise if the imaginary object following the same path moves in a counterclockwise direction about the interior of the polygon. `glFrontFace' specifies whether polygons with clockwise winding in window coordinates, or counterclockwise winding in window coordinates, -are taken to be front-facing. Passing `GL_CCW' to MODE selects +are taken to be front-facing. Passing `GL_CCW' to MODE selects counterclockwise polygons as front-facing; `GL_CW' selects clockwise -polygons as front-facing. By default, counterclockwise polygons are +polygons as front-facing. By default, counterclockwise polygons are taken to be front-facing. `GL_INVALID_ENUM' is generated if MODE is not an accepted value. @@ -7687,7 +7697,7 @@ NEARVAL Both distances must be positive. `glFrustum' describes a perspective matrix that produces a perspective -projection. The current matrix (see `glMatrixMode') is multiplied by +projection. The current matrix (see `glMatrixMode') is multiplied by this matrix and the result replaces the current matrix, as if `glMultMatrix' were called with the following matrix as its argument: @@ -7709,8 +7719,8 @@ D=-2\u2062FARVAL\u2062NEARVAL,/FARVAL-NEARVAL,, Typically, the matrix mode is `GL_PROJECTION', and (LEFT,BOTTOM-NEARVAL) and (RIGHT,TOP-NEARVAL) specify the points on the near clipping plane that are mapped to the lower left and upper right corners of the window, -assuming that the eye is located at (0, 0, 0). -FARVAL specifies the -location of the far clipping plane. Both NEARVAL and FARVAL must be +assuming that the eye is located at (0, 0, 0). -FARVAL specifies the +location of the far clipping plane. Both NEARVAL and FARVAL must be positive. Use `glPushMatrix' and `glPopMatrix' to save and restore the current @@ -7737,7 +7747,7 @@ BUFFERS Specifies an array in which the generated buffer object names are stored. -`glGenBuffers' returns N buffer object names in BUFFERS. There is no +`glGenBuffers' returns N buffer object names in BUFFERS. There is no guarantee that the names form a contiguous set of integers; however, it is guaranteed that none of the returned names was in use immediately before the call to `glGenBuffers'. @@ -7763,9 +7773,9 @@ RANGE Specifies the number of contiguous empty display lists to be generated. -`glGenLists' has one argument, RANGE. It returns an integer N such that +`glGenLists' has one argument, RANGE. It returns an integer N such that RANGE contiguous empty display lists, named N , N+1 , ... , N+RANGE-1 , -are created. If RANGE is 0, if there is no group of RANGE contiguous +are created. If RANGE is 0, if there is no group of RANGE contiguous names available, or if any error is generated, no display lists are generated, and 0 is returned. @@ -7785,7 +7795,7 @@ IDS Specifies an array in which the generated query object names are stored. -`glGenQueries' returns N query object names in IDS. There is no +`glGenQueries' returns N query object names in IDS. There is no guarantee that the names form a contiguous set of integers; however, it is guaranteed that none of the returned names was in use immediately before the call to `glGenQueries'. @@ -7817,7 +7827,7 @@ N TEXTURES Specifies an array in which the generated texture names are stored. -`glGenTextures' returns N texture names in TEXTURES. There is no +`glGenTextures' returns N texture names in TEXTURES. There is no guarantee that the names form a contiguous set of integers; however, it is guaranteed that none of the returned names was in use immediately before the call to `glGenTextures'. @@ -7875,46 +7885,46 @@ NAME attribute variable. `glGetActiveAttrib' returns information about an active attribute -variable in the program object specified by PROGRAM. The number of +variable in the program object specified by PROGRAM. The number of active attributes can be obtained by calling `glGetProgram' with the -value `GL_ACTIVE_ATTRIBUTES'. A value of 0 for INDEX selects the first -active attribute variable. Permissible values for INDEX range from 0 to +value `GL_ACTIVE_ATTRIBUTES'. A value of 0 for INDEX selects the first +active attribute variable. Permissible values for INDEX range from 0 to the number of active attribute variables minus 1. A vertex shader may use either built-in attribute variables, -user-defined attribute variables, or both. Built-in attribute variables +user-defined attribute variables, or both. Built-in attribute variables have a prefix of \"gl_\" and reference conventional OpenGL vertex attribtes (e.g., GL_VERTEX, GL_NORMAL, etc., see the OpenGL Shading Language specification for a complete list.) User-defined attribute variables have arbitrary names and obtain their values through numbered -generic vertex attributes. An attribute variable (either built-in or +generic vertex attributes. An attribute variable (either built-in or user-defined) is considered active if it is determined during the link -operation that it may be accessed during program execution. Therefore, +operation that it may be accessed during program execution. Therefore, PROGRAM should have previously been the target of a call to `glLinkProgram', but it is not necessary for it to have been linked successfully. The size of the character buffer required to store the longest attribute variable name in PROGRAM can be obtained by calling `glGetProgram' with -the value `GL_ACTIVE_ATTRIBUTE_MAX_LENGTH'. This value should be used to -allocate a buffer of sufficient size to store the returned attribute -name. The size of this character buffer is passed in BUFSIZE, and a +the value `GL_ACTIVE_ATTRIBUTE_MAX_LENGTH'. This value should be used +to allocate a buffer of sufficient size to store the returned attribute +name. The size of this character buffer is passed in BUFSIZE, and a pointer to this character buffer is passed in NAME. `glGetActiveAttrib' returns the name of the attribute variable indicated -by INDEX, storing it in the character buffer specified by NAME. The -string returned will be null terminated. The actual number of characters -written into this buffer is returned in LENGTH, and this count does not -include the null termination character. If the length of the returned -string is not required, a value of `NULL' can be passed in the LENGTH -argument. +by INDEX, storing it in the character buffer specified by NAME. The +string returned will be null terminated. The actual number of +characters written into this buffer is returned in LENGTH, and this +count does not include the null termination character. If the length of +the returned string is not required, a value of `NULL' can be passed in +the LENGTH argument. The TYPE argument will return a pointer to the attribute variable's data -type. The symbolic constants `GL_FLOAT', `GL_FLOAT_VEC2', +type. The symbolic constants `GL_FLOAT', `GL_FLOAT_VEC2', `GL_FLOAT_VEC3', `GL_FLOAT_VEC4', `GL_FLOAT_MAT2', `GL_FLOAT_MAT3', `GL_FLOAT_MAT4', `GL_FLOAT_MAT2x3', `GL_FLOAT_MAT2x4', `GL_FLOAT_MAT3x2', `GL_FLOAT_MAT3x4', `GL_FLOAT_MAT4x2', or -`GL_FLOAT_MAT4x3' may be returned. The SIZE argument will return the +`GL_FLOAT_MAT4x3' may be returned. The SIZE argument will return the size of the attribute, in units of the type returned in TYPE. The list of active attribute variables may include both built-in @@ -7922,11 +7932,11 @@ attribute variables (which begin with the prefix \"gl_\") as well as user-defined attribute variable names. This function will return as much information as it can about the -specified active attribute variable. If no information is available, -LENGTH will be 0, and NAME will be an empty string. This situation could -occur if this function is called after a link operation that failed. If -an error occurs, the return values LENGTH, SIZE, TYPE, and NAME will be -unmodified. +specified active attribute variable. If no information is available, +LENGTH will be 0, and NAME will be an empty string. This situation +could occur if this function is called after a link operation that +failed. If an error occurs, the return values LENGTH, SIZE, TYPE, and +NAME will be unmodified. `GL_INVALID_VALUE' is generated if PROGRAM is not a value generated by OpenGL. @@ -7982,42 +7992,42 @@ NAME variable. `glGetActiveUniform' returns information about an active uniform -variable in the program object specified by PROGRAM. The number of +variable in the program object specified by PROGRAM. The number of active uniform variables can be obtained by calling `glGetProgram' with -the value `GL_ACTIVE_UNIFORMS'. A value of 0 for INDEX selects the first -active uniform variable. Permissible values for INDEX range from 0 to -the number of active uniform variables minus 1. +the value `GL_ACTIVE_UNIFORMS'. A value of 0 for INDEX selects the +first active uniform variable. Permissible values for INDEX range from +0 to the number of active uniform variables minus 1. Shaders may use either built-in uniform variables, user-defined uniform -variables, or both. Built-in uniform variables have a prefix of \"gl_\" +variables, or both. Built-in uniform variables have a prefix of \"gl_\" and reference existing OpenGL state or values derived from such state (e.g., GL_FOG, GL_MODELVIEWMATRIX, etc., see the OpenGL Shading Language specification for a complete list.) User-defined uniform variables have arbitrary names and obtain their values from the application through -calls to `glUniform'. A uniform variable (either built-in or +calls to `glUniform'. A uniform variable (either built-in or user-defined) is considered active if it is determined during the link -operation that it may be accessed during program execution. Therefore, +operation that it may be accessed during program execution. Therefore, PROGRAM should have previously been the target of a call to `glLinkProgram', but it is not necessary for it to have been linked successfully. The size of the character buffer required to store the longest uniform variable name in PROGRAM can be obtained by calling `glGetProgram' with -the value `GL_ACTIVE_UNIFORM_MAX_LENGTH'. This value should be used to +the value `GL_ACTIVE_UNIFORM_MAX_LENGTH'. This value should be used to allocate a buffer of sufficient size to store the returned uniform -variable name. The size of this character buffer is passed in BUFSIZE, +variable name. The size of this character buffer is passed in BUFSIZE, and a pointer to this character buffer is passed in NAME. `glGetActiveUniform' returns the name of the uniform variable indicated -by INDEX, storing it in the character buffer specified by NAME. The -string returned will be null terminated. The actual number of characters -written into this buffer is returned in LENGTH, and this count does not -include the null termination character. If the length of the returned -string is not required, a value of `NULL' can be passed in the LENGTH -argument. +by INDEX, storing it in the character buffer specified by NAME. The +string returned will be null terminated. The actual number of +characters written into this buffer is returned in LENGTH, and this +count does not include the null termination character. If the length of +the returned string is not required, a value of `NULL' can be passed in +the LENGTH argument. The TYPE argument will return a pointer to the uniform variable's data -type. The symbolic constants `GL_FLOAT', `GL_FLOAT_VEC2', +type. The symbolic constants `GL_FLOAT', `GL_FLOAT_VEC2', `GL_FLOAT_VEC3', `GL_FLOAT_VEC4', `GL_INT', `GL_INT_VEC2', `GL_INT_VEC3', `GL_INT_VEC4', `GL_BOOL', `GL_BOOL_VEC2', `GL_BOOL_VEC3', `GL_BOOL_VEC4', `GL_FLOAT_MAT2', `GL_FLOAT_MAT3', `GL_FLOAT_MAT4', @@ -8029,35 +8039,35 @@ type. The symbolic constants `GL_FLOAT', `GL_FLOAT_VEC2', If one or more elements of an array are active, the name of the array is returned in NAME, the type is returned in TYPE, and the SIZE parameter returns the highest array element index used, plus one, as determined by -the compiler and/or linker. Only one active uniform variable will be +the compiler and/or linker. Only one active uniform variable will be reported for a uniform array. Uniform variables that are declared as structures or arrays of -structures will not be returned directly by this function. Instead, each -of these uniform variables will be reduced to its fundamental components -containing the \".\" and \"[]\" operators such that each of the names is -valid as an argument to `glGetUniformLocation'. Each of these reduced -uniform variables is counted as one active uniform variable and is -assigned an index. A valid name cannot be a structure, an array of +structures will not be returned directly by this function. Instead, +each of these uniform variables will be reduced to its fundamental +components containing the \".\" and \"[]\" operators such that each of the +names is valid as an argument to `glGetUniformLocation'. Each of these +reduced uniform variables is counted as one active uniform variable and +is assigned an index. A valid name cannot be a structure, an array of structures, or a subcomponent of a vector or matrix. -The size of the uniform variable will be returned in SIZE. Uniform -variables other than arrays will have a size of 1. Structures and arrays -of structures will be reduced as described earlier, such that each of -the names returned will be a data type in the earlier list. If this -reduction results in an array, the size returned will be as described -for uniform arrays; otherwise, the size returned will be 1. +The size of the uniform variable will be returned in SIZE. Uniform +variables other than arrays will have a size of 1. Structures and +arrays of structures will be reduced as described earlier, such that +each of the names returned will be a data type in the earlier list. If +this reduction results in an array, the size returned will be as +described for uniform arrays; otherwise, the size returned will be 1. The list of active uniform variables may include both built-in uniform variables (which begin with the prefix \"gl_\") as well as user-defined uniform variable names. This function will return as much information as it can about the -specified active uniform variable. If no information is available, -LENGTH will be 0, and NAME will be an empty string. This situation could -occur if this function is called after a link operation that failed. If -an error occurs, the return values LENGTH, SIZE, TYPE, and NAME will be -unmodified. +specified active uniform variable. If no information is available, +LENGTH will be 0, and NAME will be an empty string. This situation +could occur if this function is called after a link operation that +failed. If an error occurs, the return values LENGTH, SIZE, TYPE, and +NAME will be unmodified. `GL_INVALID_VALUE' is generated if PROGRAM is not a value generated by OpenGL. @@ -8098,16 +8108,16 @@ SHADERS shader objects. `glGetAttachedShaders' returns the names of the shader objects attached -to PROGRAM. The names of shader objects that are attached to PROGRAM -will be returned in SHADERS. The actual number of shader names written -into SHADERS is returned in COUNT. If no shader objects are attached to -PROGRAM, COUNT is set to 0. The maximum number of shader names that may +to PROGRAM. The names of shader objects that are attached to PROGRAM +will be returned in SHADERS. The actual number of shader names written +into SHADERS is returned in COUNT. If no shader objects are attached to +PROGRAM, COUNT is set to 0. The maximum number of shader names that may be returned in SHADERS is specified by MAXCOUNT. If the number of names actually returned is not required (for instance, if it has just been obtained by calling `glGetProgram'), a value of -`NULL' may be passed for count. If no shader objects are attached to -PROGRAM, a value of 0 will be returned in COUNT. The actual number of +`NULL' may be passed for count. If no shader objects are attached to +PROGRAM, a value of 0 will be returned in COUNT. The actual number of attached shaders can be obtained by calling `glGetProgram' with the value `GL_ATTACHED_SHADERS'. @@ -8140,21 +8150,21 @@ NAME `glGetAttribLocation' queries the previously linked program object specified by PROGRAM for the attribute variable specified by NAME and returns the index of the generic vertex attribute that is bound to that -attribute variable. If NAME is a matrix attribute variable, the index of -the first column of the matrix is returned. If the named attribute +attribute variable. If NAME is a matrix attribute variable, the index +of the first column of the matrix is returned. If the named attribute variable is not an active attribute in the specified program object or if NAME starts with the reserved prefix \"gl_\", a value of -1 is returned. The association between an attribute variable name and a generic attribute index can be specified at any time by calling -`glBindAttribLocation'. Attribute bindings do not go into effect until -`glLinkProgram' is called. After a program object has been linked +`glBindAttribLocation'. Attribute bindings do not go into effect until +`glLinkProgram' is called. After a program object has been linked successfully, the index values for attribute variables remain fixed -until the next link command occurs. The attribute values can only be -queried after a link if the link was successful. `glGetAttribLocation' +until the next link command occurs. The attribute values can only be +queried after a link if the link was successful. `glGetAttribLocation' returns the binding that actually went into effect the last time -`glLinkProgram' was called for the specified program object. Attribute +`glLinkProgram' was called for the specified program object. Attribute bindings that have been specified since the last link operation are not returned by `glGetAttribLocation'. @@ -8180,12 +8190,12 @@ between the execution of `glBegin' and the corresponding execution of "Return parameters of a buffer object. TARGET - Specifies the target buffer object. The symbolic constant must be + Specifies the target buffer object. The symbolic constant must be `GL_ARRAY_BUFFER', `GL_ELEMENT_ARRAY_BUFFER', `GL_PIXEL_PACK_BUFFER', or `GL_PIXEL_UNPACK_BUFFER'. VALUE - Specifies the symbolic name of a buffer object parameter. Accepted + Specifies the symbolic name of a buffer object parameter. Accepted values are `GL_BUFFER_ACCESS', `GL_BUFFER_MAPPED', `GL_BUFFER_SIZE', or `GL_BUFFER_USAGE'. @@ -8199,19 +8209,19 @@ VALUE names a specific buffer object parameter, as follows: `GL_BUFFER_ACCESS' PARAMS returns the access policy set while mapping the buffer - object. The initial value is `GL_READ_WRITE'. + object. The initial value is `GL_READ_WRITE'. `GL_BUFFER_MAPPED' PARAMS returns a flag indicating whether the buffer object is - currently mapped. The initial value is `GL_FALSE'. + currently mapped. The initial value is `GL_FALSE'. `GL_BUFFER_SIZE' PARAMS returns the size of the buffer object, measured in bytes. The initial value is 0. `GL_BUFFER_USAGE' - PARAMS returns the buffer object's usage pattern. The initial value - is `GL_STATIC_DRAW'. + PARAMS returns the buffer object's usage pattern. The initial + value is `GL_STATIC_DRAW'. `GL_INVALID_ENUM' is generated if TARGET or VALUE is not an accepted value. @@ -8233,22 +8243,22 @@ execution of `glEnd'.") "Return the pointer to a mapped buffer object's data store. TARGET - Specifies the target buffer object. The symbolic constant must be + Specifies the target buffer object. The symbolic constant must be `GL_ARRAY_BUFFER', `GL_ELEMENT_ARRAY_BUFFER', `GL_PIXEL_PACK_BUFFER', or `GL_PIXEL_UNPACK_BUFFER'. PNAME - Specifies the pointer to be returned. The symbolic constant must be - `GL_BUFFER_MAP_POINTER'. + Specifies the pointer to be returned. The symbolic constant must + be `GL_BUFFER_MAP_POINTER'. PARAMS Returns the pointer value specified by PNAME. -`glGetBufferPointerv' returns pointer information. PNAME is a symbolic +`glGetBufferPointerv' returns pointer information. PNAME is a symbolic constant indicating the pointer to be returned, which must be `GL_BUFFER_MAP_POINTER', the pointer to which the buffer object's data -store is mapped. If the data store is not currently mapped, `NULL' is -returned. PARAMS is a pointer to a location in which to place the +store is mapped. If the data store is not currently mapped, `NULL' is +returned. PARAMS is a pointer to a location in which to place the returned pointer value. `GL_INVALID_ENUM' is generated if TARGET or PNAME is not an accepted @@ -8272,7 +8282,7 @@ between the execution of `glBegin' and the corresponding execution of "Returns a subset of a buffer object's data store. TARGET - Specifies the target buffer object. The symbolic constant must be + Specifies the target buffer object. The symbolic constant must be `GL_ARRAY_BUFFER', `GL_ELEMENT_ARRAY_BUFFER', `GL_PIXEL_PACK_BUFFER', or `GL_PIXEL_UNPACK_BUFFER'. @@ -8289,11 +8299,11 @@ DATA returned. `glGetBufferSubData' returns some or all of the data from the buffer -object currently bound to TARGET. Data starting at byte offset OFFSET +object currently bound to TARGET. Data starting at byte offset OFFSET and extending for SIZE bytes is copied from the data store to the memory -pointed to by DATA. An error is thrown if the buffer object is currently -mapped, or if OFFSET and SIZE together define a range beyond the bounds -of the buffer object's data store. +pointed to by DATA. An error is thrown if the buffer object is +currently mapped, or if OFFSET and SIZE together define a range beyond +the bounds of the buffer object's data store. `GL_INVALID_ENUM' is generated if TARGET is not `GL_ARRAY_BUFFER', `GL_ELEMENT_ARRAY_BUFFER', `GL_PIXEL_PACK_BUFFER', or @@ -8322,15 +8332,15 @@ between the execution of `glBegin' and the corresponding execution of "Return the coefficients of the specified clipping plane. PLANE - Specifies a clipping plane. The number of clipping planes depends + Specifies a clipping plane. The number of clipping planes depends on the implementation, but at least six clipping planes are - supported. They are identified by symbolic names of the form + supported. They are identified by symbolic names of the form `GL_CLIP_PLANE' I where i ranges from 0 to the value of `GL_MAX_CLIP_PLANES' - 1. EQUATION Returns four double-precision values that are the coefficients of - the plane equation of PLANE in eye coordinates. The initial value + the plane equation of PLANE in eye coordinates. The initial value is (0, 0, 0, 0). `glGetClipPlane' returns in EQUATION the four coefficients of the plane @@ -8358,15 +8368,15 @@ between the execution of `glBegin' and the corresponding execution of "Get color lookup table parameters. TARGET - The target color table. Must be `GL_COLOR_TABLE', + The target color table. Must be `GL_COLOR_TABLE', `GL_POST_CONVOLUTION_COLOR_TABLE', `GL_POST_COLOR_MATRIX_COLOR_TABLE', `GL_PROXY_COLOR_TABLE', `GL_PROXY_POST_CONVOLUTION_COLOR_TABLE', or `GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE'. PNAME - The symbolic name of a color lookup table parameter. Must be one of - `GL_COLOR_TABLE_BIAS', `GL_COLOR_TABLE_SCALE', + The symbolic name of a color lookup table parameter. Must be one + of `GL_COLOR_TABLE_BIAS', `GL_COLOR_TABLE_SCALE', `GL_COLOR_TABLE_FORMAT', `GL_COLOR_TABLE_WIDTH', `GL_COLOR_TABLE_RED_SIZE', `GL_COLOR_TABLE_GREEN_SIZE', `GL_COLOR_TABLE_BLUE_SIZE', `GL_COLOR_TABLE_ALPHA_SIZE', @@ -8381,19 +8391,19 @@ Returns parameters specific to color table TARGET. When PNAME is set to `GL_COLOR_TABLE_SCALE' or `GL_COLOR_TABLE_BIAS', `glGetColorTableParameter' returns the color table scale or bias -parameters for the table specified by TARGET. For these queries, TARGET +parameters for the table specified by TARGET. For these queries, TARGET must be set to `GL_COLOR_TABLE', `GL_POST_CONVOLUTION_COLOR_TABLE', or `GL_POST_COLOR_MATRIX_COLOR_TABLE' and PARAMS points to an array of four elements, which receive the scale or bias factors for red, green, blue, and alpha, in that order. `glGetColorTableParameter' can also be used to retrieve the format and -size parameters for a color table. For these queries, set TARGET to -either the color table target or the proxy color table target. The +size parameters for a color table. For these queries, set TARGET to +either the color table target or the proxy color table target. The format and size parameters are set by `glColorTable'. The following table lists the format and size parameters that may be -queried. For each symbolic constant listed below for PNAME, PARAMS must +queried. For each symbolic constant listed below for PNAME, PARAMS must point to an array of the given length and receive the values indicated. @@ -8449,12 +8459,12 @@ TARGET `GL_POST_COLOR_MATRIX_COLOR_TABLE'. FORMAT - The format of the pixel data in TABLE. The possible values are + The format of the pixel data in TABLE. The possible values are `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_LUMINANCE', `GL_LUMINANCE_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', and `GL_BGRA'. TYPE - The type of the pixel data in TABLE. Symbolic constants + The type of the pixel data in TABLE. Symbolic constants `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -8470,7 +8480,7 @@ TABLE contents of the color table. `glGetColorTable' returns in TABLE the contents of the color table -specified by TARGET. No pixel transfer operations are performed, but +specified by TARGET. No pixel transfer operations are performed, but pixel storage modes that are applicable to `glReadPixels' are performed. If a non-zero named buffer object is bound to the `GL_PIXEL_PACK_BUFFER' @@ -8479,7 +8489,7 @@ is treated as a byte offset into the buffer object's data store. Color components that are requested in the specified FORMAT, but which are not included in the internal format of the color lookup table, are -returned as zero. The assignments of internal color components to the +returned as zero. The assignments of internal color components to the components requested by FORMAT are *Internal Component* @@ -8554,7 +8564,7 @@ between the execution of `glBegin' and the corresponding execution of "Return a compressed texture image. TARGET - Specifies which texture is to be obtained. `GL_TEXTURE_1D', + Specifies which texture is to be obtained. `GL_TEXTURE_1D', `GL_TEXTURE_2D', and `GL_TEXTURE_3D'`GL_TEXTURE_CUBE_MAP_POSITIVE_X', `GL_TEXTURE_CUBE_MAP_NEGATIVE_X', `GL_TEXTURE_CUBE_MAP_POSITIVE_Y', @@ -8562,19 +8572,19 @@ TARGET and `GL_TEXTURE_CUBE_MAP_NEGATIVE_Z' are accepted. LOD - Specifies the level-of-detail number of the desired image. Level 0 - is the base image level. Level N is the N th mipmap reduction + Specifies the level-of-detail number of the desired image. Level 0 + is the base image level. Level N is the N th mipmap reduction image. IMG Returns the compressed texture image. `glGetCompressedTexImage' returns the compressed texture image -associated with TARGET and LOD into IMG. IMG should be an array of -`GL_TEXTURE_COMPRESSED_IMAGE_SIZE' bytes. TARGET specifies whether the +associated with TARGET and LOD into IMG. IMG should be an array of +`GL_TEXTURE_COMPRESSED_IMAGE_SIZE' bytes. TARGET specifies whether the desired texture image was one specified by `glTexImage1D' (`GL_TEXTURE_1D'), `glTexImage2D' (`GL_TEXTURE_2D' or any of -`GL_TEXTURE_CUBE_MAP_*'), or `glTexImage3D' (`GL_TEXTURE_3D'). LOD +`GL_TEXTURE_CUBE_MAP_*'), or `glTexImage3D' (`GL_TEXTURE_3D'). LOD specifies the level-of-detail number of the desired image. If a non-zero named buffer object is bound to the `GL_PIXEL_PACK_BUFFER' @@ -8586,9 +8596,9 @@ calling `glGetTexLevelParameter' with argument `GL_TEXTURE_COMPRESSED'. If the texture is compressed, then determine the amount of memory required to store the compressed texture by calling `glGetTexLevelParameter' with argument -`GL_TEXTURE_COMPRESSED_IMAGE_SIZE'. Finally, retrieve the internal +`GL_TEXTURE_COMPRESSED_IMAGE_SIZE'. Finally, retrieve the internal format of the texture by calling `glGetTexLevelParameter' with argument -`GL_TEXTURE_INTERNAL_FORMAT'. To store the texture for later use, +`GL_TEXTURE_INTERNAL_FORMAT'. To store the texture for later use, associate the internal format and size with the retrieved texture image. These data can be used by the respective texture or subtexture loading routine used for loading TARGET textures. @@ -8623,16 +8633,16 @@ execution of `glEnd'.") "Get current 1D or 2D convolution filter kernel. TARGET - The filter to be retrieved. Must be one of `GL_CONVOLUTION_1D' or + The filter to be retrieved. Must be one of `GL_CONVOLUTION_1D' or `GL_CONVOLUTION_2D'. FORMAT - Format of the output image. Must be one of `GL_RED', `GL_GREEN', + Format of the output image. Must be one of `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', `GL_BGRA', `GL_LUMINANCE', or `GL_LUMINANCE_ALPHA'. TYPE - Data type of components in the output image. Symbolic constants + Data type of components in the output image. Symbolic constants `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -8647,17 +8657,17 @@ IMAGE Pointer to storage for the output image. `glGetConvolutionFilter' returns the current 1D or 2D convolution filter -kernel as an image. The one- or two-dimensional image is placed in IMAGE -according to the specifications in FORMAT and TYPE. No pixel transfer -operations are performed on this image, but the relevant pixel storage -modes are applied. +kernel as an image. The one- or two-dimensional image is placed in +IMAGE according to the specifications in FORMAT and TYPE. No pixel +transfer operations are performed on this image, but the relevant pixel +storage modes are applied. If a non-zero named buffer object is bound to the `GL_PIXEL_PACK_BUFFER' target (see `glBindBuffer') while a convolution filter is requested, IMAGE is treated as a byte offset into the buffer object's data store. Color components that are present in FORMAT but not included in the -internal format of the filter are returned as zero. The assignments of +internal format of the filter are returned as zero. The assignments of internal color components to the components of FORMAT are as follows. *Internal Component* @@ -8738,11 +8748,11 @@ execution of `glEnd'.") "Get convolution parameters. TARGET - The filter whose parameters are to be retrieved. Must be one of + The filter whose parameters are to be retrieved. Must be one of `GL_CONVOLUTION_1D', `GL_CONVOLUTION_2D', or `GL_SEPARABLE_2D'. PNAME - The parameter to be retrieved. Must be one of + The parameter to be retrieved. Must be one of `GL_CONVOLUTION_BORDER_MODE', `GL_CONVOLUTION_BORDER_COLOR', `GL_CONVOLUTION_FILTER_SCALE', `GL_CONVOLUTION_FILTER_BIAS', `GL_CONVOLUTION_FORMAT', `GL_CONVOLUTION_WIDTH', @@ -8752,41 +8762,41 @@ PNAME PARAMS Pointer to storage for the parameters to be retrieved. -`glGetConvolutionParameter' retrieves convolution parameters. TARGET -determines which convolution filter is queried. PNAME determines which +`glGetConvolutionParameter' retrieves convolution parameters. TARGET +determines which convolution filter is queried. PNAME determines which parameter is returned: `GL_CONVOLUTION_BORDER_MODE' - The convolution border mode. See `glConvolutionParameter' for a + The convolution border mode. See `glConvolutionParameter' for a list of border modes. `GL_CONVOLUTION_BORDER_COLOR' - The current convolution border color. PARAMS must be a pointer to + The current convolution border color. PARAMS must be a pointer to an array of four elements, which will receive the red, green, blue, and alpha border colors. `GL_CONVOLUTION_FILTER_SCALE' - The current filter scale factors. PARAMS must be a pointer to an + The current filter scale factors. PARAMS must be a pointer to an array of four elements, which will receive the red, green, blue, and alpha filter scale factors in that order. `GL_CONVOLUTION_FILTER_BIAS' - The current filter bias factors. PARAMS must be a pointer to an + The current filter bias factors. PARAMS must be a pointer to an array of four elements, which will receive the red, green, blue, and alpha filter bias terms in that order. `GL_CONVOLUTION_FORMAT' - The current internal format. See `glConvolutionFilter1D', + The current internal format. See `glConvolutionFilter1D', `glConvolutionFilter2D', and `glSeparableFilter2D' for lists of allowable formats. @@ -8827,19 +8837,19 @@ execution of `glEnd'.") ((glGetError -> GLenum)) "Return error information. -`glGetError' returns the value of the error flag. Each detectable error -is assigned a numeric code and symbolic name. When an error occurs, the -error flag is set to the appropriate error code value. No other errors +`glGetError' returns the value of the error flag. Each detectable error +is assigned a numeric code and symbolic name. When an error occurs, the +error flag is set to the appropriate error code value. No other errors are recorded until `glGetError' is called, the error code is returned, -and the flag is reset to `GL_NO_ERROR'. If a call to `glGetError' +and the flag is reset to `GL_NO_ERROR'. If a call to `glGetError' returns `GL_NO_ERROR', there has been no detectable error since the last call to `glGetError', or since the GL was initialized. To allow for distributed implementations, there may be several error -flags. If any single error flag has recorded an error, the value of that -flag is returned and that flag is reset to `GL_NO_ERROR' when -`glGetError' is called. If more than one flag has recorded an error, -`glGetError' returns and clears an arbitrary error flag value. Thus, +flags. If any single error flag has recorded an error, the value of +that flag is returned and that flag is reset to `GL_NO_ERROR' when +`glGetError' is called. If more than one flag has recorded an error, +`glGetError' returns and clears an arbitrary error flag value. Thus, `glGetError' should always be called in a loop, until it returns `GL_NO_ERROR', if all error flags are to be reset. @@ -8848,46 +8858,46 @@ Initially, all error flags are set to `GL_NO_ERROR'. The following errors are currently defined: `GL_NO_ERROR' - No error has been recorded. The value of this symbolic constant is + No error has been recorded. The value of this symbolic constant is guaranteed to be 0. `GL_INVALID_ENUM' - An unacceptable value is specified for an enumerated argument. The + An unacceptable value is specified for an enumerated argument. The offending command is ignored and has no other side effect than to set the error flag. `GL_INVALID_VALUE' - A numeric argument is out of range. The offending command is + A numeric argument is out of range. The offending command is ignored and has no other side effect than to set the error flag. `GL_INVALID_OPERATION' - The specified operation is not allowed in the current state. The + The specified operation is not allowed in the current state. The offending command is ignored and has no other side effect than to set the error flag. `GL_STACK_OVERFLOW' - This command would cause a stack overflow. The offending command is - ignored and has no other side effect than to set the error flag. + This command would cause a stack overflow. The offending command + is ignored and has no other side effect than to set the error flag. `GL_STACK_UNDERFLOW' - This command would cause a stack underflow. The offending command + This command would cause a stack underflow. The offending command is ignored and has no other side effect than to set the error flag. `GL_OUT_OF_MEMORY' - There is not enough memory left to execute the command. The state + There is not enough memory left to execute the command. The state of the GL is undefined, except for the state of the error flags, after this error is recorded. `GL_TABLE_TOO_LARGE' The specified table exceeds the implementation's maximum supported - table size. The offending command is ignored and has no other side + table size. The offending command is ignored and has no other side effect than to set the error flag. When an error flag is set, results of a GL operation are undefined only -if `GL_OUT_OF_MEMORY' has occurred. In all other cases, the command +if `GL_OUT_OF_MEMORY' has occurred. In all other cases, the command generating the error is ignored and has no effect on the GL state or -frame buffer contents. If the generating command returns a value, it -returns 0. If `glGetError' itself generates an error, it returns 0. +frame buffer contents. If the generating command returns a value, it +returns 0. If `glGetError' itself generates an error, it returns 0. `GL_INVALID_OPERATION' is generated if `glGetError' is executed between the execution of `glBegin' and the corresponding execution of `glEnd'. @@ -8912,7 +8922,7 @@ TARGET Must be one of `GL_HISTOGRAM' or `GL_PROXY_HISTOGRAM'. PNAME - The name of the parameter to be retrieved. Must be one of + The name of the parameter to be retrieved. Must be one of `GL_HISTOGRAM_WIDTH', `GL_HISTOGRAM_FORMAT', `GL_HISTOGRAM_RED_SIZE', `GL_HISTOGRAM_GREEN_SIZE', `GL_HISTOGRAM_BLUE_SIZE', `GL_HISTOGRAM_ALPHA_SIZE', @@ -8922,8 +8932,8 @@ PARAMS Pointer to storage for the returned values. `glGetHistogramParameter' is used to query parameter values for the -current histogram or for a proxy. The histogram state information may be -queried by calling `glGetHistogramParameter' with a TARGET of +current histogram or for a proxy. The histogram state information may +be queried by calling `glGetHistogramParameter' with a TARGET of `GL_HISTOGRAM' (to obtain information for the current histogram table) or `GL_PROXY_HISTOGRAM' (to obtain information from the most recent proxy request) and one of the following values for the PNAME argument: @@ -8985,16 +8995,16 @@ TARGET RESET If `GL_TRUE', each component counter that is actually returned is - reset to zero. (Other counters are unaffected.) If `GL_FALSE', none - of the counters in the histogram table is modified. + reset to zero. (Other counters are unaffected.) If `GL_FALSE', + none of the counters in the histogram table is modified. FORMAT - The format of values to be returned in VALUES. Must be one of + The format of values to be returned in VALUES. Must be one of `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', `GL_BGRA', `GL_LUMINANCE', or `GL_LUMINANCE_ALPHA'. TYPE - The type of values to be returned in VALUES. Symbolic constants + The type of values to be returned in VALUES. Symbolic constants `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -9009,7 +9019,7 @@ VALUES A pointer to storage for the returned histogram table. `glGetHistogram' returns the current histogram table as a -one-dimensional image with the same width as the histogram. No pixel +one-dimensional image with the same width as the histogram. No pixel transfer operations are performed on this image, but pixel storage modes that are applicable to 1D images are honored. @@ -9019,7 +9029,7 @@ is treated as a byte offset into the buffer object's data store. Color components that are requested in the specified FORMAT, but which are not included in the internal format of the histogram, are returned -as zero. The assignments of internal color components to the components +as zero. The assignments of internal color components to the components requested by FORMAT are: *Internal Component* @@ -9096,13 +9106,13 @@ between the execution of `glBegin' and the corresponding execution of "Return light source parameter values. LIGHT - Specifies a light source. The number of possible lights depends on - the implementation, but at least eight lights are supported. They + Specifies a light source. The number of possible lights depends on + the implementation, but at least eight lights are supported. They are identified by symbolic names of the form `GL_LIGHT' I where I ranges from 0 to the value of `GL_MAX_LIGHTS' - 1. PNAME - Specifies a light source parameter for LIGHT. Accepted symbolic + Specifies a light source parameter for LIGHT. Accepted symbolic names are `GL_AMBIENT', `GL_DIFFUSE', `GL_SPECULAR', `GL_POSITION', `GL_SPOT_DIRECTION', `GL_SPOT_EXPONENT', `GL_SPOT_CUTOFF', `GL_CONSTANT_ATTENUATION', `GL_LINEAR_ATTENUATION', and @@ -9112,97 +9122,98 @@ PARAMS Returns the requested data. `glGetLight' returns in PARAMS the value or values of a light source -parameter. LIGHT names the light and is a symbolic name of the form +parameter. LIGHT names the light and is a symbolic name of the form `GL_LIGHT'I where i ranges from 0 to the value of `GL_MAX_LIGHTS' - 1. `GL_MAX_LIGHTS' is an implementation dependent constant that is greater -than or equal to eight. PNAME specifies one of ten light source +than or equal to eight. PNAME specifies one of ten light source parameters, again by symbolic name. The following parameters are defined: `GL_AMBIENT' PARAMS returns four integer or floating-point values representing - the ambient intensity of the light source. Integer values, when + the ambient intensity of the light source. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer value, and -1.0 maps to the most negative - representable integer value. If the internal value is outside the + representable integer value. If the internal value is outside the range [-1,1] , the corresponding integer return value is undefined. The initial value is (0, 0, 0, 1). `GL_DIFFUSE' PARAMS returns four integer or floating-point values representing - the diffuse intensity of the light source. Integer values, when + the diffuse intensity of the light source. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer value, and -1.0 maps to the most negative - representable integer value. If the internal value is outside the + representable integer value. If the internal value is outside the range [-1,1] , the corresponding integer return value is undefined. The initial value for `GL_LIGHT0' is (1, 1, 1, 1); for other lights, the initial value is (0, 0, 0, 0). `GL_SPECULAR' PARAMS returns four integer or floating-point values representing - the specular intensity of the light source. Integer values, when + the specular intensity of the light source. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer value, and -1.0 maps to the most negative - representable integer value. If the internal value is outside the + representable integer value. If the internal value is outside the range [-1,1] , the corresponding integer return value is undefined. The initial value for `GL_LIGHT0' is (1, 1, 1, 1); for other lights, the initial value is (0, 0, 0, 0). `GL_POSITION' PARAMS returns four integer or floating-point values representing - the position of the light source. Integer values, when requested, + the position of the light source. Integer values, when requested, are computed by rounding the internal floating-point values to the - nearest integer value. The returned values are those maintained in - eye coordinates. They will not be equal to the values specified + nearest integer value. The returned values are those maintained in + eye coordinates. They will not be equal to the values specified using `glLight', unless the modelview matrix was identity at the - time `glLight' was called. The initial value is (0, 0, 1, 0). + time `glLight' was called. The initial value is (0, 0, 1, 0). `GL_SPOT_DIRECTION' PARAMS returns three integer or floating-point values representing - the direction of the light source. Integer values, when requested, + the direction of the light source. Integer values, when requested, are computed by rounding the internal floating-point values to the - nearest integer value. The returned values are those maintained in - eye coordinates. They will not be equal to the values specified + nearest integer value. The returned values are those maintained in + eye coordinates. They will not be equal to the values specified using `glLight', unless the modelview matrix was identity at the - time `glLight' was called. Although spot direction is normalized + time `glLight' was called. Although spot direction is normalized before being used in the lighting equation, the returned values are the transformed versions of the specified values prior to - normalization. The initial value is (0,0-1) . + normalization. The initial value is (0,0-1) . `GL_SPOT_EXPONENT' PARAMS returns a single integer or floating-point value - representing the spot exponent of the light. An integer value, when - requested, is computed by rounding the internal floating-point - representation to the nearest integer. The initial value is 0. + representing the spot exponent of the light. An integer value, + when requested, is computed by rounding the internal floating-point + representation to the nearest integer. The initial value is 0. `GL_SPOT_CUTOFF' PARAMS returns a single integer or floating-point value - representing the spot cutoff angle of the light. An integer value, + representing the spot cutoff angle of the light. An integer value, when requested, is computed by rounding the internal floating-point - representation to the nearest integer. The initial value is 180. + representation to the nearest integer. The initial value is 180. `GL_CONSTANT_ATTENUATION' PARAMS returns a single integer or floating-point value representing the constant (not distance-related) attenuation of the - light. An integer value, when requested, is computed by rounding + light. An integer value, when requested, is computed by rounding the internal floating-point representation to the nearest integer. The initial value is 1. `GL_LINEAR_ATTENUATION' PARAMS returns a single integer or floating-point value - representing the linear attenuation of the light. An integer value, - when requested, is computed by rounding the internal floating-point - representation to the nearest integer. The initial value is 0. + representing the linear attenuation of the light. An integer + value, when requested, is computed by rounding the internal + floating-point representation to the nearest integer. The initial + value is 0. `GL_QUADRATIC_ATTENUATION' PARAMS returns a single integer or floating-point value - representing the quadratic attenuation of the light. An integer + representing the quadratic attenuation of the light. An integer value, when requested, is computed by rounding the internal - floating-point representation to the nearest integer. The initial + floating-point representation to the nearest integer. The initial value is 0. `GL_INVALID_ENUM' is generated if LIGHT or PNAME is not an accepted @@ -9233,7 +9244,7 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Return evaluator parameters. TARGET - Specifies the symbolic name of a map. Accepted values are + Specifies the symbolic name of a map. Accepted values are `GL_MAP1_COLOR_4', `GL_MAP1_INDEX', `GL_MAP1_NORMAL', `GL_MAP1_TEXTURE_COORD_1', `GL_MAP1_TEXTURE_COORD_2', `GL_MAP1_TEXTURE_COORD_3', `GL_MAP1_TEXTURE_COORD_4', @@ -9244,14 +9255,14 @@ TARGET `GL_MAP2_VERTEX_4'. QUERY - Specifies which parameter to return. Symbolic names `GL_COEFF', + Specifies which parameter to return. Symbolic names `GL_COEFF', `GL_ORDER', and `GL_DOMAIN' are accepted. V Returns the requested data. -`glMap1' and `glMap2' define evaluators. `glGetMap' returns evaluator -parameters. TARGET chooses a map, QUERY selects a specific parameter, +`glMap1' and `glMap2' define evaluators. `glGetMap' returns evaluator +parameters. TARGET chooses a map, QUERY selects a specific parameter, and V points to storage where the values will be returned. The acceptable values for the TARGET parameter are described in the @@ -9265,23 +9276,23 @@ QUERY can assume the following values: two-dimensional evaluators return UORDER×VORDER control points. Each control point consists of one, two, three, or four integer, single-precision floating-point, or double-precision floating-point - values, depending on the type of the evaluator. The GL returns + values, depending on the type of the evaluator. The GL returns two-dimensional control points in row-major order, incrementing the - UORDER index quickly and the VORDER index after each row. Integer + UORDER index quickly and the VORDER index after each row. Integer values, when requested, are computed by rounding the internal floating-point values to the nearest integer values. `GL_ORDER' - V returns the order of the evaluator function. One-dimensional - evaluators return a single value, ORDER . The initial value is 1. + V returns the order of the evaluator function. One-dimensional + evaluators return a single value, ORDER . The initial value is 1. Two-dimensional evaluators return two values, UORDER and VORDER . The initial value is 1,1. `GL_DOMAIN' - V returns the linear U and V mapping parameters. One-dimensional + V returns the linear U and V mapping parameters. One-dimensional evaluators return two values, U1 and U2 , as specified by `glMap1'. Two-dimensional evaluators return four values ( U1 , U2 , V1 , and - V2 ) as specified by `glMap2'. Integer values, when requested, are + V2 ) as specified by `glMap2'. Integer values, when requested, are computed by rounding the internal floating-point values to the nearest integer values. @@ -9307,12 +9318,12 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Return material parameters. FACE - Specifies which of the two materials is being queried. `GL_FRONT' + Specifies which of the two materials is being queried. `GL_FRONT' or `GL_BACK' are accepted, representing the front and back materials, respectively. PNAME - Specifies the material parameter to return. `GL_AMBIENT', + Specifies the material parameter to return. `GL_AMBIENT', `GL_DIFFUSE', `GL_SPECULAR', `GL_EMISSION', `GL_SHININESS', and `GL_COLOR_INDEXES' are accepted. @@ -9320,58 +9331,58 @@ PARAMS Returns the requested data. `glGetMaterial' returns in PARAMS the value or values of parameter PNAME -of material FACE. Six parameters are defined: +of material FACE. Six parameters are defined: `GL_AMBIENT' PARAMS returns four integer or floating-point values representing - the ambient reflectance of the material. Integer values, when + the ambient reflectance of the material. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer value, and -1.0 maps to the most negative - representable integer value. If the internal value is outside the + representable integer value. If the internal value is outside the range [-1,1] , the corresponding integer return value is undefined. The initial value is (0.2, 0.2, 0.2, 1.0) `GL_DIFFUSE' PARAMS returns four integer or floating-point values representing - the diffuse reflectance of the material. Integer values, when + the diffuse reflectance of the material. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer value, and -1.0 maps to the most negative - representable integer value. If the internal value is outside the + representable integer value. If the internal value is outside the range [-1,1] , the corresponding integer return value is undefined. The initial value is (0.8, 0.8, 0.8, 1.0). `GL_SPECULAR' PARAMS returns four integer or floating-point values representing - the specular reflectance of the material. Integer values, when + the specular reflectance of the material. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer value, and -1.0 maps to the most negative - representable integer value. If the internal value is outside the + representable integer value. If the internal value is outside the range [-1,1] , the corresponding integer return value is undefined. The initial value is (0, 0, 0, 1). `GL_EMISSION' PARAMS returns four integer or floating-point values representing - the emitted light intensity of the material. Integer values, when + the emitted light intensity of the material. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer value, and -1.0 maps to the most negative - representable integer value. If the internal value is outside the + representable integer value. If the internal value is outside the range [-1,1] , the corresponding integer return value is undefined. The initial value is (0, 0, 0, 1). `GL_SHININESS' PARAMS returns one integer or floating-point value representing the - specular exponent of the material. Integer values, when requested, + specular exponent of the material. Integer values, when requested, are computed by rounding the internal floating-point value to the - nearest integer value. The initial value is 0. + nearest integer value. The initial value is 0. `GL_COLOR_INDEXES' PARAMS returns three integer or floating-point values representing - the ambient, diffuse, and specular indices of the material. These - indices are used only for color index lighting. (All the other + the ambient, diffuse, and specular indices of the material. These + indices are used only for color index lighting. (All the other parameters are used only for RGBA lighting.) Integer values, when requested, are computed by rounding the internal floating-point values to the nearest integer values. @@ -9402,8 +9413,8 @@ TARGET Must be `GL_MINMAX'. PNAME - The parameter to be retrieved. Must be one of `GL_MINMAX_FORMAT' or - `GL_MINMAX_SINK'. + The parameter to be retrieved. Must be one of `GL_MINMAX_FORMAT' + or `GL_MINMAX_SINK'. PARAMS A pointer to storage for the retrieved parameters. @@ -9449,16 +9460,16 @@ TARGET RESET If `GL_TRUE', all entries in the minmax table that are actually - returned are reset to their initial values. (Other entries are + returned are reset to their initial values. (Other entries are unaltered.) If `GL_FALSE', the minmax table is unaltered. FORMAT - The format of the data to be returned in VALUES. Must be one of + The format of the data to be returned in VALUES. Must be one of `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', `GL_BGRA', `GL_LUMINANCE', or `GL_LUMINANCE_ALPHA'. TYPES - The type of the data to be returned in VALUES. Symbolic constants + The type of the data to be returned in VALUES. Symbolic constants `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -9474,8 +9485,8 @@ VALUES `glGetMinmax' returns the accumulated minimum and maximum pixel values (computed on a per-component basis) in a one-dimensional image of width -2. The first set of return values are the minima, and the second set of -return values are the maxima. The format of the return values is +2. The first set of return values are the minima, and the second set of +return values are the maxima. The format of the return values is determined by FORMAT, and their type is determined by TYPES. If a non-zero named buffer object is bound to the `GL_PIXEL_PACK_BUFFER' @@ -9485,10 +9496,10 @@ data store. No pixel transfer operations are performed on the return values, but pixel storage modes that are applicable to one-dimensional images are -performed. Color components that are requested in the specified FORMAT, +performed. Color components that are requested in the specified FORMAT, but that are not included in the internal format of the minmax table, -are returned as zero. The assignment of internal color components to the -components requested by FORMAT are as follows: +are returned as zero. The assignment of internal color components to +the components requested by FORMAT are as follows: @@ -9511,7 +9522,7 @@ Luminance Red If RESET is `GL_TRUE', the minmax table entries corresponding to the -return values are reset to their initial values. Minimum and maximum +return values are reset to their initial values. Minimum and maximum values that are not returned are not modified, even if RESET is `GL_TRUE'. @@ -9571,7 +9582,7 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Return the specified pixel map. MAP - Specifies the name of the pixel map to return. Accepted values are + Specifies the name of the pixel map to return. Accepted values are `GL_PIXEL_MAP_I_TO_I', `GL_PIXEL_MAP_S_TO_S', `GL_PIXEL_MAP_I_TO_R', `GL_PIXEL_MAP_I_TO_G', `GL_PIXEL_MAP_I_TO_B', `GL_PIXEL_MAP_I_TO_A', @@ -9582,13 +9593,13 @@ DATA Returns the pixel map contents. See the `glPixelMap' reference page for a description of the acceptable -values for the MAP parameter. `glGetPixelMap' returns in DATA the -contents of the pixel map specified in MAP. Pixel maps are used during +values for the MAP parameter. `glGetPixelMap' returns in DATA the +contents of the pixel map specified in MAP. Pixel maps are used during the execution of `glReadPixels', `glDrawPixels', `glCopyPixels', `glTexImage1D', `glTexImage2D', `glTexImage3D', `glTexSubImage1D', `glTexSubImage2D', `glTexSubImage3D', `glCopyTexImage1D', `glCopyTexImage2D', `glCopyTexSubImage1D', `glCopyTexSubImage2D', and -`glCopyTexSubImage3D'. to map color indices, stencil indices, color +`glCopyTexSubImage3D'. to map color indices, stencil indices, color components, and depth components to other values. If a non-zero named buffer object is bound to the `GL_PIXEL_PACK_BUFFER' @@ -9597,7 +9608,7 @@ treated as a byte offset into the buffer object's data store. Unsigned integer values, if requested, are linearly mapped from the internal fixed or floating-point representation such that 1.0 maps to -the largest representable integer value, and 0.0 maps to 0. Return +the largest representable integer value, and 0.0 maps to 0. Return unsigned integer values are undefined if the map value was not in the range [0,1]. @@ -9643,7 +9654,7 @@ between the execution of `glBegin' and the corresponding execution of "Return the address of the specified pointer. PNAME - Specifies the array or buffer pointer to be returned. Symbolic + Specifies the array or buffer pointer to be returned. Symbolic constants `GL_COLOR_ARRAY_POINTER', `GL_EDGE_FLAG_ARRAY_POINTER', `GL_FOG_COORD_ARRAY_POINTER', `GL_FEEDBACK_BUFFER_POINTER', `GL_INDEX_ARRAY_POINTER', `GL_NORMAL_ARRAY_POINTER', @@ -9654,7 +9665,7 @@ PNAME PARAMS Returns the pointer value specified by PNAME. -`glGetPointerv' returns pointer information. PNAME is a symbolic +`glGetPointerv' returns pointer information. PNAME is a symbolic constant indicating the pointer to be returned, and PARAMS is a pointer to a location in which to place the returned data. @@ -9662,7 +9673,7 @@ For all PNAME arguments except `GL_FEEDBACK_BUFFER_POINTER' and `GL_SELECTION_BUFFER_POINTER', if a non-zero named buffer object was bound to the `GL_ARRAY_BUFFER' target (see `glBindBuffer') when the desired pointer was previously specified, the pointer returned is a byte -offset into the buffer object's data store. Buffer objects are only +offset into the buffer object's data store. Buffer objects are only available in OpenGL versions 1.5 and greater. `GL_INVALID_ENUM' is generated if PNAME is not an accepted value.") @@ -9672,15 +9683,15 @@ available in OpenGL versions 1.5 and greater. "Return the polygon stipple pattern. PATTERN - Returns the stipple pattern. The initial value is all 1's. + Returns the stipple pattern. The initial value is all 1's. `glGetPolygonStipple' returns to PATTERN a 32×32 polygon stipple -pattern. The pattern is packed into memory as if `glReadPixels' with +pattern. The pattern is packed into memory as if `glReadPixels' with both HEIGHT and WIDTH of 32, TYPE of `GL_BITMAP', and FORMAT of `GL_COLOR_INDEX' were called, and the stipple pattern were stored in an -internal 32×32 color index buffer. Unlike `glReadPixels', however, pixel -transfer operations (shift, offset, pixel map) are not applied to the -returned stipple image. +internal 32×32 color index buffer. Unlike `glReadPixels', however, +pixel transfer operations (shift, offset, pixel map) are not applied to +the returned stipple image. If a non-zero named buffer object is bound to the `GL_PIXEL_PACK_BUFFER' target (see `glBindBuffer') while a polygon stipple pattern is @@ -9727,21 +9738,21 @@ INFOLOG information log. `glGetProgramInfoLog' returns the information log for the specified -program object. The information log for a program object is modified -when the program object is linked or validated. The string that is +program object. The information log for a program object is modified +when the program object is linked or validated. The string that is returned will be null terminated. `glGetProgramInfoLog' returns in INFOLOG as much of the information log -as it can, up to a maximum of MAXLENGTH characters. The number of +as it can, up to a maximum of MAXLENGTH characters. The number of characters actually returned, excluding the null termination character, -is specified by LENGTH. If the length of the returned string is not -required, a value of `NULL' can be passed in the LENGTH argument. The +is specified by LENGTH. If the length of the returned string is not +required, a value of `NULL' can be passed in the LENGTH argument. The size of the buffer required to store the returned information log can be obtained by calling `glGetProgram' with the value `GL_INFO_LOG_LENGTH'. The information log for a program object is either an empty string, or a string containing information about the last link operation, or a string -containing information about the last validation operation. It may +containing information about the last validation operation. It may contain diagnostic messages, warning messages, and other information. When a program object is created, its information log will be a string of length 0. @@ -9770,7 +9781,7 @@ PROGRAM Specifies the program object to be queried. PNAME - Specifies the object parameter. Accepted symbolic names are + Specifies the object parameter. Accepted symbolic names are `GL_DELETE_STATUS', `GL_LINK_STATUS', `GL_VALIDATE_STATUS', `GL_INFO_LOG_LENGTH', `GL_ATTACHED_SHADERS', `GL_ACTIVE_ATTRIBUTES', `GL_ACTIVE_ATTRIBUTE_MAX_LENGTH', @@ -9780,7 +9791,7 @@ PARAMS Returns the requested object parameter. `glGetProgram' returns in PARAMS the value of a parameter for a specific -program object. The following parameters are defined: +program object. The following parameters are defined: `GL_DELETE_STATUS' @@ -9805,7 +9816,7 @@ program object. The following parameters are defined: PARAMS returns the number of characters in the information log for PROGRAM including the null termination character (i.e., the size of - the character buffer required to store the information log). If + the character buffer required to store the information log). If PROGRAM has no information log, a value of 0 is returned. `GL_ATTACHED_SHADERS' @@ -9825,7 +9836,7 @@ program object. The following parameters are defined: PARAMS returns the length of the longest active attribute name for PROGRAM, including the null termination character (i.e., the size of the character buffer required to store the longest attribute - name). If no active attributes exist, 0 is returned. + name). If no active attributes exist, 0 is returned. `GL_ACTIVE_UNIFORMS' @@ -9838,7 +9849,7 @@ program object. The following parameters are defined: PARAMS returns the length of the longest active uniform variable name for PROGRAM, including the null termination character (i.e., the size of the character buffer required to store the longest - uniform variable name). If no active uniform variables exist, 0 is + uniform variable name). If no active uniform variables exist, 0 is returned. `GL_INVALID_VALUE' is generated if PROGRAM is not a value generated by @@ -9863,7 +9874,7 @@ between the execution of `glBegin' and the corresponding execution of "Return parameters of a query object target. TARGET - Specifies a query object target. Must be `GL_SAMPLES_PASSED'. + Specifies a query object target. Must be `GL_SAMPLES_PASSED'. PNAME Specifies the symbolic name of a query object target parameter. @@ -9875,17 +9886,17 @@ PARAMS `glGetQueryiv' returns in PARAMS a selected parameter of the query object target specified by TARGET. -PNAME names a specific query object target parameter. When TARGET is +PNAME names a specific query object target parameter. When TARGET is `GL_SAMPLES_PASSED', PNAME can be as follows: `GL_CURRENT_QUERY' PARAMS returns the name of the currently active occlusion query - object. If no occlusion query is active, 0 is returned. The initial - value is 0. + object. If no occlusion query is active, 0 is returned. The + initial value is 0. `GL_QUERY_COUNTER_BITS' PARAMS returns the number of bits in the query counter used to - accumulate passing samples. If the number of bits returned is 0, + accumulate passing samples. If the number of bits returned is 0, the implementation does not support a query counter, and the results obtained from `glGetQueryObject' are useless. @@ -9915,7 +9926,7 @@ ID Specifies the name of a query object. PNAME - Specifies the symbolic name of a query object parameter. Accepted + Specifies the symbolic name of a query object parameter. Accepted values are `GL_QUERY_RESULT' or `GL_QUERY_RESULT_AVAILABLE'. PARAMS @@ -9924,16 +9935,16 @@ PARAMS `glGetQueryObject' returns in PARAMS a selected parameter of the query object specified by ID. -PNAME names a specific query object parameter. PNAME can be as follows: +PNAME names a specific query object parameter. PNAME can be as follows: `GL_QUERY_RESULT' PARAMS returns the value of the query object's passed samples - counter. The initial value is 0. + counter. The initial value is 0. `GL_QUERY_RESULT_AVAILABLE' PARAMS returns whether the passed samples counter is immediately - available. If a delay would occur waiting for the query result, - `GL_FALSE' is returned. Otherwise, `GL_TRUE' is returned, which + available. If a delay would occur waiting for the query result, + `GL_FALSE' is returned. Otherwise, `GL_TRUE' is returned, which also indicates that the results of all previous queries are available as well. @@ -9962,15 +9973,15 @@ between the execution of `glBegin' and the corresponding execution of "Get separable convolution filter kernel images. TARGET - The separable filter to be retrieved. Must be `GL_SEPARABLE_2D'. + The separable filter to be retrieved. Must be `GL_SEPARABLE_2D'. FORMAT - Format of the output images. Must be one of `GL_RED', `GL_GREEN', + Format of the output images. Must be one of `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_RGB', `GL_BGR'`GL_RGBA', `GL_BGRA', `GL_LUMINANCE', or `GL_LUMINANCE_ALPHA'. TYPE - Data type of components in the output images. Symbolic constants + Data type of components in the output images. Symbolic constants `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -9991,11 +10002,12 @@ SPAN Pointer to storage for the span filter image (currently unused). `glGetSeparableFilter' returns the two one-dimensional filter kernel -images for the current separable 2D convolution filter. The row image is -placed in ROW and the column image is placed in COLUMN according to the -specifications in FORMAT and TYPE. (In the current implementation, SPAN -is not affected in any way.) No pixel transfer operations are performed -on the images, but the relevant pixel storage modes are applied. +images for the current separable 2D convolution filter. The row image +is placed in ROW and the column image is placed in COLUMN according to +the specifications in FORMAT and TYPE. (In the current implementation, +SPAN is not affected in any way.) No pixel transfer operations are +performed on the images, but the relevant pixel storage modes are +applied. If a non-zero named buffer object is bound to the `GL_PIXEL_PACK_BUFFER' target (see `glBindBuffer') while a separable convolution filter is @@ -10003,7 +10015,7 @@ requested, ROW, COLUMN, and SPAN are treated as a byte offset into the buffer object's data store. Color components that are present in FORMAT but not included in the -internal format of the filters are returned as zero. The assignments of +internal format of the filters are returned as zero. The assignments of internal color components to the components of FORMAT are as follows: @@ -10095,22 +10107,22 @@ INFOLOG information log. `glGetShaderInfoLog' returns the information log for the specified -shader object. The information log for a shader object is modified when -the shader is compiled. The string that is returned will be null +shader object. The information log for a shader object is modified when +the shader is compiled. The string that is returned will be null terminated. `glGetShaderInfoLog' returns in INFOLOG as much of the information log -as it can, up to a maximum of MAXLENGTH characters. The number of +as it can, up to a maximum of MAXLENGTH characters. The number of characters actually returned, excluding the null termination character, -is specified by LENGTH. If the length of the returned string is not -required, a value of `NULL' can be passed in the LENGTH argument. The +is specified by LENGTH. If the length of the returned string is not +required, a value of `NULL' can be passed in the LENGTH argument. The size of the buffer required to store the returned information log can be obtained by calling `glGetShader' with the value `GL_INFO_LOG_LENGTH'. The information log for a shader object is a string that may contain diagnostic messages, warning messages, and other information about the -last compile operation. When a shader object is created, its information -log will be a string of length 0. +last compile operation. When a shader object is created, its +information log will be a string of length 0. `GL_INVALID_VALUE' is generated if SHADER is not a value generated by OpenGL. @@ -10149,15 +10161,15 @@ SOURCE code string. `glGetShaderSource' returns the concatenation of the source code strings -from the shader object specified by SHADER. The source code strings for +from the shader object specified by SHADER. The source code strings for a shader object are the result of a previous call to `glShaderSource'. The string returned by the function will be null terminated. `glGetShaderSource' returns in SOURCE as much of the source code string -as it can, up to a maximum of BUFSIZE characters. The number of +as it can, up to a maximum of BUFSIZE characters. The number of characters actually returned, excluding the null termination character, -is specified by LENGTH. If the length of the returned string is not -required, a value of `NULL' can be passed in the LENGTH argument. The +is specified by LENGTH. If the length of the returned string is not +required, a value of `NULL' can be passed in the LENGTH argument. The size of the buffer required to store the returned source code string can be obtained by calling `glGetShader' with the value `GL_SHADER_SOURCE_LENGTH'. @@ -10186,7 +10198,7 @@ SHADER Specifies the shader object to be queried. PNAME - Specifies the object parameter. Accepted symbolic names are + Specifies the object parameter. Accepted symbolic names are `GL_SHADER_TYPE', `GL_DELETE_STATUS', `GL_COMPILE_STATUS', `GL_INFO_LOG_LENGTH', `GL_SHADER_SOURCE_LENGTH'. @@ -10194,7 +10206,7 @@ PARAMS Returns the requested object parameter. `glGetShader' returns in PARAMS the value of a parameter for a specific -shader object. The following parameters are defined: +shader object. The following parameters are defined: `GL_SHADER_TYPE' PARAMS returns `GL_VERTEX_SHADER' if SHADER is a vertex shader @@ -10212,14 +10224,14 @@ shader object. The following parameters are defined: `GL_INFO_LOG_LENGTH' PARAMS returns the number of characters in the information log for SHADER including the null termination character (i.e., the size of - the character buffer required to store the information log). If + the character buffer required to store the information log). If SHADER has no information log, a value of 0 is returned. `GL_SHADER_SOURCE_LENGTH' PARAMS returns the length of the concatenation of the source strings that make up the shader source for the SHADER, including - the null termination character. (i.e., the size of the character - buffer required to store the shader source). If no source code + the null termination character. (i.e., the size of the character + buffer required to store the shader source). If no source code exists, 0 is returned. `GL_INVALID_VALUE' is generated if SHADER is not a value generated by @@ -10242,19 +10254,19 @@ NAME `GL_VERSION', `GL_SHADING_LANGUAGE_VERSION', or `GL_EXTENSIONS'. `glGetString' returns a pointer to a static string describing some -aspect of the current GL connection. NAME can be one of the following: +aspect of the current GL connection. NAME can be one of the following: `GL_VENDOR' - Returns the company responsible for this GL implementation. This + Returns the company responsible for this GL implementation. This name does not change from release to release. `GL_RENDERER' - Returns the name of the renderer. This name is typically specific - to a particular configuration of a hardware platform. It does not + Returns the name of the renderer. This name is typically specific + to a particular configuration of a hardware platform. It does not change from release to release. `GL_VERSION' @@ -10275,23 +10287,23 @@ aspect of the current GL connection. NAME can be one of the following: Because the GL does not include queries for the performance characteristics of an implementation, some applications are written to recognize known platforms and modify their GL usage based on known -performance characteristics of these platforms. Strings `GL_VENDOR' and -`GL_RENDERER' together uniquely specify a platform. They do not change +performance characteristics of these platforms. Strings `GL_VENDOR' and +`GL_RENDERER' together uniquely specify a platform. They do not change from release to release and should be used by platform-recognition algorithms. Some applications want to make use of features that are not part of the -standard GL. These features may be implemented as extensions to the -standard GL. The `GL_EXTENSIONS' string is a space-separated list of -supported GL extensions. (Extension names never contain a space +standard GL. These features may be implemented as extensions to the +standard GL. The `GL_EXTENSIONS' string is a space-separated list of +supported GL extensions. (Extension names never contain a space character.) The `GL_VERSION' and `GL_SHADING_LANGUAGE_VERSION' strings begin with a -version number. The version number uses one of these forms: +version number. The version number uses one of these forms: MAJOR_NUMBER.MINOR_NUMBERMAJOR_NUMBER.MINOR_NUMBER.RELEASE_NUMBER -Vendor-specific information may follow the version number. Its format +Vendor-specific information may follow the version number. Its format depends on the implementation, but a space always separates the version number and the vendor-specific information. @@ -10318,7 +10330,7 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Return texture environment parameters. TARGET - Specifies a texture environment. May be `GL_TEXTURE_ENV', + Specifies a texture environment. May be `GL_TEXTURE_ENV', `GL_TEXTURE_FILTER_CONTROL', or `GL_POINT_SPRITE'. PNAME @@ -10335,12 +10347,12 @@ PARAMS Returns the requested data. `glGetTexEnv' returns in PARAMS selected values of a texture environment -that was specified with `glTexEnv'. TARGET specifies a texture +that was specified with `glTexEnv'. TARGET specifies a texture environment. When TARGET is `GL_TEXTURE_FILTER_CONTROL', PNAME must be -`GL_TEXTURE_LOD_BIAS'. When TARGET is `GL_POINT_SPRITE', PNAME must be -`GL_COORD_REPLACE'. When TARGET is `GL_TEXTURE_ENV', PNAME can be +`GL_TEXTURE_LOD_BIAS'. When TARGET is `GL_POINT_SPRITE', PNAME must be +`GL_COORD_REPLACE'. When TARGET is `GL_TEXTURE_ENV', PNAME can be `GL_TEXTURE_ENV_MODE', `GL_TEXTURE_ENV_COLOR', `GL_COMBINE_RGB', `GL_COMBINE_ALPHA', `GL_RGB_SCALE', `GL_ALPHA_SCALE', `GL_SRC0_RGB', `GL_SRC1_RGB', `GL_SRC2_RGB', `GL_SRC0_ALPHA', `GL_SRC1_ALPHA', or @@ -10350,101 +10362,101 @@ PNAME names a specific texture environment parameter, as follows: `GL_TEXTURE_ENV_MODE' PARAMS returns the single-valued texture environment mode, a - symbolic constant. The initial value is `GL_MODULATE'. + symbolic constant. The initial value is `GL_MODULATE'. `GL_TEXTURE_ENV_COLOR' PARAMS returns four integer or floating-point values that are the - texture environment color. Integer values, when requested, are + texture environment color. Integer values, when requested, are linearly mapped from the internal floating-point representation such that 1.0 maps to the most positive representable integer, and - -1.0 maps to the most negative representable integer. The initial + -1.0 maps to the most negative representable integer. The initial value is (0, 0, 0, 0). `GL_TEXTURE_LOD_BIAS' PARAMS returns a single floating-point value that is the texture - level-of-detail bias. The initial value is 0. + level-of-detail bias. The initial value is 0. `GL_COMBINE_RGB' PARAMS returns a single symbolic constant value representing the - current RGB combine mode. The initial value is `GL_MODULATE'. + current RGB combine mode. The initial value is `GL_MODULATE'. `GL_COMBINE_ALPHA' PARAMS returns a single symbolic constant value representing the - current alpha combine mode. The initial value is `GL_MODULATE'. + current alpha combine mode. The initial value is `GL_MODULATE'. `GL_SRC0_RGB' PARAMS returns a single symbolic constant value representing the - texture combiner zero's RGB source. The initial value is + texture combiner zero's RGB source. The initial value is `GL_TEXTURE'. `GL_SRC1_RGB' PARAMS returns a single symbolic constant value representing the - texture combiner one's RGB source. The initial value is + texture combiner one's RGB source. The initial value is `GL_PREVIOUS'. `GL_SRC2_RGB' PARAMS returns a single symbolic constant value representing the - texture combiner two's RGB source. The initial value is + texture combiner two's RGB source. The initial value is `GL_CONSTANT'. `GL_SRC0_ALPHA' PARAMS returns a single symbolic constant value representing the - texture combiner zero's alpha source. The initial value is + texture combiner zero's alpha source. The initial value is `GL_TEXTURE'. `GL_SRC1_ALPHA' PARAMS returns a single symbolic constant value representing the - texture combiner one's alpha source. The initial value is + texture combiner one's alpha source. The initial value is `GL_PREVIOUS'. `GL_SRC2_ALPHA' PARAMS returns a single symbolic constant value representing the - texture combiner two's alpha source. The initial value is + texture combiner two's alpha source. The initial value is `GL_CONSTANT'. `GL_OPERAND0_RGB' PARAMS returns a single symbolic constant value representing the - texture combiner zero's RGB operand. The initial value is + texture combiner zero's RGB operand. The initial value is `GL_SRC_COLOR'. `GL_OPERAND1_RGB' PARAMS returns a single symbolic constant value representing the - texture combiner one's RGB operand. The initial value is + texture combiner one's RGB operand. The initial value is `GL_SRC_COLOR'. `GL_OPERAND2_RGB' PARAMS returns a single symbolic constant value representing the - texture combiner two's RGB operand. The initial value is + texture combiner two's RGB operand. The initial value is `GL_SRC_ALPHA'. `GL_OPERAND0_ALPHA' PARAMS returns a single symbolic constant value representing the - texture combiner zero's alpha operand. The initial value is + texture combiner zero's alpha operand. The initial value is `GL_SRC_ALPHA'. `GL_OPERAND1_ALPHA' PARAMS returns a single symbolic constant value representing the - texture combiner one's alpha operand. The initial value is + texture combiner one's alpha operand. The initial value is `GL_SRC_ALPHA'. `GL_OPERAND2_ALPHA' PARAMS returns a single symbolic constant value representing the - texture combiner two's alpha operand. The initial value is + texture combiner two's alpha operand. The initial value is `GL_SRC_ALPHA'. `GL_RGB_SCALE' PARAMS returns a single floating-point value representing the - current RGB texture combiner scaling factor. The initial value is + current RGB texture combiner scaling factor. The initial value is 1.0. `GL_ALPHA_SCALE' PARAMS returns a single floating-point value representing the - current alpha texture combiner scaling factor. The initial value is - 1.0. + current alpha texture combiner scaling factor. The initial value + is 1.0. `GL_COORD_REPLACE' PARAMS returns a single boolean value representing the current - point sprite texture coordinate replacement enable state. The + point sprite texture coordinate replacement enable state. The initial value is `GL_FALSE'. `GL_INVALID_ENUM' is generated if TARGET or PNAME is not an accepted @@ -10475,12 +10487,12 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Return texture coordinate generation parameters. COORD - Specifies a texture coordinate. Must be `GL_S', `GL_T', `GL_R', or + Specifies a texture coordinate. Must be `GL_S', `GL_T', `GL_R', or `GL_Q'. PNAME - Specifies the symbolic name of the value(s) to be returned. Must be - either `GL_TEXTURE_GEN_MODE' or the name of one of the texture + Specifies the symbolic name of the value(s) to be returned. Must + be either `GL_TEXTURE_GEN_MODE' or the name of one of the texture generation plane equations: `GL_OBJECT_PLANE' or `GL_EYE_PLANE'. PARAMS @@ -10495,20 +10507,20 @@ PNAME specifies one of three symbolic names: `GL_TEXTURE_GEN_MODE' PARAMS returns the single-valued texture generation function, a - symbolic constant. The initial value is `GL_EYE_LINEAR'. + symbolic constant. The initial value is `GL_EYE_LINEAR'. `GL_OBJECT_PLANE' PARAMS returns the four plane equation coefficients that specify - object linear-coordinate generation. Integer values, when + object linear-coordinate generation. Integer values, when requested, are mapped directly from the internal floating-point representation. `GL_EYE_PLANE' PARAMS returns the four plane equation coefficients that specify - eye linear-coordinate generation. Integer values, when requested, + eye linear-coordinate generation. Integer values, when requested, are mapped directly from the internal floating-point - representation. The returned values are those maintained in eye - coordinates. They are not equal to the values specified using + representation. The returned values are those maintained in eye + coordinates. They are not equal to the values specified using `glTexGen', unless the modelview matrix was identity when `glTexGen' was called. @@ -10530,25 +10542,25 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Return a texture image. TARGET - Specifies which texture is to be obtained. `GL_TEXTURE_1D', + Specifies which texture is to be obtained. `GL_TEXTURE_1D', `GL_TEXTURE_2D', `GL_TEXTURE_3D', `GL_TEXTURE_CUBE_MAP_POSITIVE_X', `GL_TEXTURE_CUBE_MAP_NEGATIVE_X', `GL_TEXTURE_CUBE_MAP_POSITIVE_Y', `GL_TEXTURE_CUBE_MAP_NEGATIVE_Y', `GL_TEXTURE_CUBE_MAP_POSITIVE_Z', and `GL_TEXTURE_CUBE_MAP_NEGATIVE_Z' are accepted. LEVEL - Specifies the level-of-detail number of the desired image. Level 0 - is the base image level. Level N is the N th mipmap reduction + Specifies the level-of-detail number of the desired image. Level 0 + is the base image level. Level N is the N th mipmap reduction image. FORMAT - Specifies a pixel format for the returned data. The supported + Specifies a pixel format for the returned data. The supported formats are `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', `GL_BGRA', `GL_LUMINANCE', and `GL_LUMINANCE_ALPHA'. TYPE - Specifies a pixel type for the returned data. The supported types + Specifies a pixel type for the returned data. The supported types are `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', `GL_UNSIGNED_SHORT_5_6_5', @@ -10559,15 +10571,15 @@ TYPE `GL_UNSIGNED_INT_2_10_10_10_REV'. IMG - Returns the texture image. Should be a pointer to an array of the + Returns the texture image. Should be a pointer to an array of the type specified by TYPE. -`glGetTexImage' returns a texture image into IMG. TARGET specifies +`glGetTexImage' returns a texture image into IMG. TARGET specifies whether the desired texture image is one specified by `glTexImage1D' (`GL_TEXTURE_1D'), `glTexImage2D' (`GL_TEXTURE_2D' or any of -`GL_TEXTURE_CUBE_MAP_*'), or `glTexImage3D' (`GL_TEXTURE_3D'). LEVEL -specifies the level-of-detail number of the desired image. FORMAT and -TYPE specify the format and type of the desired image array. See the +`GL_TEXTURE_CUBE_MAP_*'), or `glTexImage3D' (`GL_TEXTURE_3D'). LEVEL +specifies the level-of-detail number of the desired image. FORMAT and +TYPE specify the format and type of the desired image array. See the reference pages `glTexImage1D' and `glDrawPixels' for a description of the acceptable values for the FORMAT and TYPE parameters, respectively. @@ -10577,31 +10589,31 @@ treated as a byte offset into the buffer object's data store. To understand the operation of `glGetTexImage', consider the selected internal four-component texture image to be an RGBA color buffer the -size of the image. The semantics of `glGetTexImage' are then identical +size of the image. The semantics of `glGetTexImage' are then identical to those of `glReadPixels', with the exception that no pixel transfer operations are performed, when called with the same FORMAT and TYPE, with X and Y set to 0, WIDTH set to the width of the texture image (including border if one was specified), and HEIGHT set to 1 for 1D images, or to the height of the texture image (including border if one -was specified) for 2D images. Because the internal texture image is an +was specified) for 2D images. Because the internal texture image is an RGBA image, pixel formats `GL_COLOR_INDEX', `GL_STENCIL_INDEX', and `GL_DEPTH_COMPONENT' are not accepted, and pixel type `GL_BITMAP' is not accepted. If the selected texture image does not contain four components, the -following mappings are applied. Single-component textures are treated as -RGBA buffers with red set to the single-component value, green set to 0, -blue set to 0, and alpha set to 1. Two-component textures are treated as -RGBA buffers with red set to the value of component zero, alpha set to -the value of component one, and green and blue set to 0. Finally, -three-component textures are treated as RGBA buffers with red set to -component zero, green set to component one, blue set to component two, -and alpha set to 1. +following mappings are applied. Single-component textures are treated +as RGBA buffers with red set to the single-component value, green set to +0, blue set to 0, and alpha set to 1. Two-component textures are +treated as RGBA buffers with red set to the value of component zero, +alpha set to the value of component one, and green and blue set to 0. +Finally, three-component textures are treated as RGBA buffers with red +set to component zero, green set to component one, blue set to component +two, and alpha set to 1. To determine the required size of IMG, use `glGetTexLevelParameter' to determine the dimensions of the internal texture image, then scale the required number of pixels by the storage required for each pixel, based -on FORMAT and TYPE. Be sure to take the pixel storage parameters into +on FORMAT and TYPE. Be sure to take the pixel storage parameters into account, especially `GL_PACK_ALIGNMENT'. `GL_INVALID_ENUM' is generated if TARGET, FORMAT, or TYPE is not an @@ -10669,8 +10681,8 @@ TARGET `GL_TEXTURE_CUBE_MAP_NEGATIVE_Z', or `GL_PROXY_TEXTURE_CUBE_MAP'. LEVEL - Specifies the level-of-detail number of the desired image. Level 0 - is the base image level. Level N is the N th mipmap reduction + Specifies the level-of-detail number of the desired image. Level 0 + is the base image level. Level N is the N th mipmap reduction image. PNAME @@ -10687,8 +10699,8 @@ PARAMS Returns the requested data. `glGetTexLevelParameter' returns in PARAMS texture parameter values for -a specific level-of-detail value, specified as LEVEL. TARGET defines the -target texture, either `GL_TEXTURE_1D', `GL_TEXTURE_2D', +a specific level-of-detail value, specified as LEVEL. TARGET defines +the target texture, either `GL_TEXTURE_1D', `GL_TEXTURE_2D', `GL_TEXTURE_3D', `GL_PROXY_TEXTURE_1D', `GL_PROXY_TEXTURE_2D', `GL_PROXY_TEXTURE_3D', `GL_TEXTURE_CUBE_MAP_POSITIVE_X', `GL_TEXTURE_CUBE_MAP_NEGATIVE_X', `GL_TEXTURE_CUBE_MAP_POSITIVE_Y', @@ -10696,14 +10708,14 @@ target texture, either `GL_TEXTURE_1D', `GL_TEXTURE_2D', `GL_TEXTURE_CUBE_MAP_NEGATIVE_Z', or `GL_PROXY_TEXTURE_CUBE_MAP'. `GL_MAX_TEXTURE_SIZE', and `GL_MAX_3D_TEXTURE_SIZE' are not really -descriptive enough. It has to report the largest square texture image +descriptive enough. It has to report the largest square texture image that can be accommodated with mipmaps and borders, but a long skinny texture, or a texture without mipmaps and borders, may easily fit in -texture memory. The proxy targets allow the user to more accurately +texture memory. The proxy targets allow the user to more accurately query whether the GL can accommodate a texture of a given configuration. If the texture cannot be accommodated, the texture state variables, -which may be queried with `glGetTexLevelParameter', are set to 0. If the -texture can be accommodated, the texture state values will be set as +which may be queried with `glGetTexLevelParameter', are set to 0. If +the texture can be accommodated, the texture state values will be set as they would be set for a non-proxy target. PNAME specifies the texture parameter whose value or values will be @@ -10714,22 +10726,22 @@ The accepted parameter names are as follows: `GL_TEXTURE_WIDTH' - PARAMS returns a single value, the width of the texture image. This - value includes the border of the texture image. The initial value + PARAMS returns a single value, the width of the texture image. This + value includes the border of the texture image. The initial value is 0. `GL_TEXTURE_HEIGHT' PARAMS returns a single value, the height of the texture image. - This value includes the border of the texture image. The initial + This value includes the border of the texture image. The initial value is 0. `GL_TEXTURE_DEPTH' - PARAMS returns a single value, the depth of the texture image. This - value includes the border of the texture image. The initial value + PARAMS returns a single value, the depth of the texture image. This + value includes the border of the texture image. The initial value is 0. `GL_TEXTURE_INTERNAL_FORMAT' @@ -10742,7 +10754,7 @@ The accepted parameter names are as follows: PARAMS returns a single value, the width in pixels of the border of - the texture image. The initial value is 0. + the texture image. The initial value is 0. `GL_TEXTURE_RED_SIZE', `GL_TEXTURE_GREEN_SIZE', @@ -10753,18 +10765,18 @@ The accepted parameter names are as follows: `GL_TEXTURE_DEPTH_SIZE' - The internal storage resolution of an individual component. The + The internal storage resolution of an individual component. The resolution chosen by the GL will be a close match for the resolution requested by the user with the component argument of `glTexImage1D', `glTexImage2D', `glTexImage3D', `glCopyTexImage1D', - and `glCopyTexImage2D'. The initial value is 0. + and `glCopyTexImage2D'. The initial value is 0. `GL_TEXTURE_COMPRESSED' PARAMS returns a single boolean value indicating if the texture - image is stored in a compressed internal format. The initiali value - is `GL_FALSE'. + image is stored in a compressed internal format. The initiali + value is `GL_FALSE'. `GL_TEXTURE_COMPRESSED_IMAGE_SIZE' @@ -10805,7 +10817,7 @@ uncompressed internal format or on proxy targets.") "Return texture parameter values. TARGET - Specifies the symbolic name of the target texture. `GL_TEXTURE_1D', + Specifies the symbolic name of the target texture. `GL_TEXTURE_1D', `GL_TEXTURE_2D', `GL_TEXTURE_3D', and `GL_TEXTURE_CUBE_MAP' are accepted. @@ -10824,19 +10836,19 @@ PARAMS Returns the texture parameters. `glGetTexParameter' returns in PARAMS the value or values of the texture -parameter specified as PNAME. TARGET defines the target texture, either +parameter specified as PNAME. TARGET defines the target texture, either `GL_TEXTURE_1D', `GL_TEXTURE_2D', `GL_TEXTURE_3D', or `GL_TEXTURE_CUBE_MAP', to specify one-, two-, or three-dimensional or -cube-mapped texturing. PNAME accepts the same symbols as +cube-mapped texturing. PNAME accepts the same symbols as `glTexParameter', with the same interpretations: `GL_TEXTURE_MAG_FILTER' Returns the single-valued texture magnification filter, a symbolic - constant. The initial value is `GL_LINEAR'. + constant. The initial value is `GL_LINEAR'. `GL_TEXTURE_MIN_FILTER' Returns the single-valued texture minification filter, a symbolic - constant. The initial value is `GL_NEAREST_MIPMAP_LINEAR'. + constant. The initial value is `GL_NEAREST_MIPMAP_LINEAR'. `GL_TEXTURE_MIN_LOD' Returns the single-valued texture minimum level-of-detail value. @@ -10847,60 +10859,60 @@ cube-mapped texturing. PNAME accepts the same symbols as The initial value is 1000. `GL_TEXTURE_BASE_LEVEL' - Returns the single-valued base texture mipmap level. The initial + Returns the single-valued base texture mipmap level. The initial value is 0. `GL_TEXTURE_MAX_LEVEL' - Returns the single-valued maximum texture mipmap array level. The + Returns the single-valued maximum texture mipmap array level. The initial value is 1000. `GL_TEXTURE_WRAP_S' Returns the single-valued wrapping function for texture coordinate - S , a symbolic constant. The initial value is `GL_REPEAT'. + S , a symbolic constant. The initial value is `GL_REPEAT'. `GL_TEXTURE_WRAP_T' Returns the single-valued wrapping function for texture coordinate - T , a symbolic constant. The initial value is `GL_REPEAT'. + T , a symbolic constant. The initial value is `GL_REPEAT'. `GL_TEXTURE_WRAP_R' Returns the single-valued wrapping function for texture coordinate - R , a symbolic constant. The initial value is `GL_REPEAT'. + R , a symbolic constant. The initial value is `GL_REPEAT'. `GL_TEXTURE_BORDER_COLOR' Returns four integer or floating-point numbers that comprise the - RGBA color of the texture border. Floating-point values are - returned in the range [0,1] . Integer values are returned as a + RGBA color of the texture border. Floating-point values are + returned in the range [0,1] . Integer values are returned as a linear mapping of the internal floating-point representation such that 1.0 maps to the most positive representable integer and -1.0 - maps to the most negative representable integer. The initial value + maps to the most negative representable integer. The initial value is (0, 0, 0, 0). `GL_TEXTURE_PRIORITY' Returns the residence priority of the target texture (or the named - texture bound to it). The initial value is 1. See + texture bound to it). The initial value is 1. See `glPrioritizeTextures'. `GL_TEXTURE_RESIDENT' - Returns the residence status of the target texture. If the value + Returns the residence status of the target texture. If the value returned in PARAMS is `GL_TRUE', the texture is resident in texture - memory. See `glAreTexturesResident'. + memory. See `glAreTexturesResident'. `GL_TEXTURE_COMPARE_MODE' Returns a single-valued texture comparison mode, a symbolic - constant. The initial value is `GL_NONE'. See `glTexParameter'. + constant. The initial value is `GL_NONE'. See `glTexParameter'. `GL_TEXTURE_COMPARE_FUNC' Returns a single-valued texture comparison function, a symbolic - constant. The initial value is `GL_LEQUAL'. See `glTexParameter'. + constant. The initial value is `GL_LEQUAL'. See `glTexParameter'. `GL_DEPTH_TEXTURE_MODE' Returns a single-valued texture format indicating how the depth - values should be converted into color components. The initial value - is `GL_LUMINANCE'. See `glTexParameter'. + values should be converted into color components. The initial + value is `GL_LUMINANCE'. See `glTexParameter'. `GL_GENERATE_MIPMAP' Returns a single boolean value indicating if automatic mipmap level - updates are enabled. See `glTexParameter'. + updates are enabled. See `glTexParameter'. `GL_INVALID_ENUM' is generated if TARGET or PNAME is not an accepted value. @@ -10925,34 +10937,34 @@ NAME uniform variable whose location is to be queried. `glGetUniformLocation ' returns an integer that represents the location -of a specific uniform variable within a program object. NAME must be a -null terminated string that contains no white space. NAME must be an +of a specific uniform variable within a program object. NAME must be a +null terminated string that contains no white space. NAME must be an active uniform variable name in PROGRAM that is not a structure, an -array of structures, or a subcomponent of a vector or a matrix. This +array of structures, or a subcomponent of a vector or a matrix. This function returns -1 if NAME does not correspond to an active uniform variable in PROGRAM or if NAME starts with the reserved prefix \"gl_\". Uniform variables that are structures or arrays of structures may be queried by calling `glGetUniformLocation' for each field within the -structure. The array element operator \"[]\" and the structure field +structure. The array element operator \"[]\" and the structure field operator \".\" may be used in NAME in order to select elements within an -array or fields within a structure. The result of using these operators +array or fields within a structure. The result of using these operators is not allowed to be another structure, an array of structures, or a -subcomponent of a vector or a matrix. Except if the last part of NAME +subcomponent of a vector or a matrix. Except if the last part of NAME indicates a uniform variable array, the location of the first element of an array can be retrieved by using the name of the array, or by using the name appended by \"[0]\". The actual locations assigned to uniform variables are not known until -the program object is linked successfully. After linking has occurred, +the program object is linked successfully. After linking has occurred, the command `glGetUniformLocation' can be used to obtain the location of -a uniform variable. This location value can then be passed to +a uniform variable. This location value can then be passed to `glUniform' to set the value of the uniform variable or to `glGetUniform' in order to query the current value of the uniform -variable. After a program object has been linked successfully, the index -values for uniform variables remain fixed until the next link command -occurs. Uniform variable locations and values can only be queried after -a link if the link was successful. +variable. After a program object has been linked successfully, the +index values for uniform variables remain fixed until the next link +command occurs. Uniform variable locations and values can only be +queried after a link if the link was successful. `GL_INVALID_VALUE' is generated if PROGRAM is not a value generated by OpenGL. @@ -10991,25 +11003,25 @@ PARAMS Returns the value of the specified uniform variable. `glGetUniform' returns in PARAMS the value(s) of the specified uniform -variable. The type of the uniform variable specified by LOCATION -determines the number of values returned. If the uniform variable is +variable. The type of the uniform variable specified by LOCATION +determines the number of values returned. If the uniform variable is defined in the shader as a boolean, int, or float, a single value will -be returned. If it is defined as a vec2, ivec2, or bvec2, two values -will be returned. If it is defined as a vec3, ivec3, or bvec3, three -values will be returned, and so on. To query values stored in uniform +be returned. If it is defined as a vec2, ivec2, or bvec2, two values +will be returned. If it is defined as a vec3, ivec3, or bvec3, three +values will be returned, and so on. To query values stored in uniform variables declared as arrays, call `glGetUniform' for each element of -the array. To query values stored in uniform variables declared as -structures, call `glGetUniform' for each field in the structure. The +the array. To query values stored in uniform variables declared as +structures, call `glGetUniform' for each field in the structure. The values for uniform variables declared as a matrix will be returned in column major order. The locations assigned to uniform variables are not known until the -program object is linked. After linking has occurred, the command +program object is linked. After linking has occurred, the command `glGetUniformLocation' can be used to obtain the location of a uniform -variable. This location value can then be passed to `glGetUniform' in -order to query the current value of the uniform variable. After a +variable. This location value can then be passed to `glGetUniform' in +order to query the current value of the uniform variable. After a program object has been linked successfully, the index values for -uniform variables remain fixed until the next link command occurs. The +uniform variables remain fixed until the next link command occurs. The uniform variable values can only be queried after a link if the link was successful. @@ -11042,12 +11054,13 @@ INDEX PNAME Specifies the symbolic name of the generic vertex attribute - parameter to be returned. Must be `GL_VERTEX_ATTRIB_ARRAY_POINTER'. + parameter to be returned. Must be + `GL_VERTEX_ATTRIB_ARRAY_POINTER'. POINTER Returns the pointer value. -`glGetVertexAttribPointerv' returns pointer information. INDEX is the +`glGetVertexAttribPointerv' returns pointer information. INDEX is the generic vertex attribute to be queried, PNAME is a symbolic constant indicating the pointer to be returned, and PARAMS is a pointer to a location in which to place the returned data. @@ -11088,7 +11101,7 @@ INDEX PNAME Specifies the symbolic name of the vertex attribute parameter to be - queried. Accepted values are + queried. Accepted values are `GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING', `GL_VERTEX_ATTRIB_ARRAY_ENABLED', `GL_VERTEX_ATTRIB_ARRAY_SIZE', `GL_VERTEX_ATTRIB_ARRAY_STRIDE', `GL_VERTEX_ATTRIB_ARRAY_TYPE', @@ -11098,7 +11111,7 @@ PARAMS Returns the requested data. `glGetVertexAttrib' returns in PARAMS the value of a generic vertex -attribute parameter. The generic vertex attribute to be queried is +attribute parameter. The generic vertex attribute to be queried is specified by INDEX, and the parameter to be queried is specified by PNAME. @@ -11109,22 +11122,22 @@ The accepted parameter names are as follows: PARAMS returns a single value, the name of the buffer object currently bound to the binding point corresponding to generic - vertex attribute array INDEX. If no buffer object is bound, 0 is - returned. The initial value is 0. + vertex attribute array INDEX. If no buffer object is bound, 0 is + returned. The initial value is 0. `GL_VERTEX_ATTRIB_ARRAY_ENABLED' PARAMS returns a single value that is non-zero (true) if the vertex attribute array for INDEX is enabled and 0 (false) if it is - disabled. The initial value is `GL_FALSE'. + disabled. The initial value is `GL_FALSE'. `GL_VERTEX_ATTRIB_ARRAY_SIZE' PARAMS returns a single value, the size of the vertex attribute - array for INDEX. The size is the number of values for each element - of the vertex attribute array, and it will be 1, 2, 3, or 4. The + array for INDEX. The size is the number of values for each element + of the vertex attribute array, and it will be 1, 2, 3, or 4. The initial value is 4. `GL_VERTEX_ATTRIB_ARRAY_STRIDE' @@ -11132,17 +11145,17 @@ The accepted parameter names are as follows: PARAMS returns a single value, the array stride for (number of bytes between successive elements in) the vertex attribute array - for INDEX. A value of 0 indicates that the array elements are - stored sequentially in memory. The initial value is 0. + for INDEX. A value of 0 indicates that the array elements are + stored sequentially in memory. The initial value is 0. `GL_VERTEX_ATTRIB_ARRAY_TYPE' PARAMS returns a single value, a symbolic constant indicating the - array type for the vertex attribute array for INDEX. Possible + array type for the vertex attribute array for INDEX. Possible values are `GL_BYTE', `GL_UNSIGNED_BYTE', `GL_SHORT', `GL_UNSIGNED_SHORT', `GL_INT', `GL_UNSIGNED_INT', `GL_FLOAT', and - `GL_DOUBLE'. The initial value is `GL_FLOAT'. + `GL_DOUBLE'. The initial value is `GL_FLOAT'. `GL_VERTEX_ATTRIB_ARRAY_NORMALIZED' @@ -11150,15 +11163,15 @@ The accepted parameter names are as follows: PARAMS returns a single value that is non-zero (true) if fixed-point data types for the vertex attribute array indicated by INDEX are normalized when they are converted to floating point, and - 0 (false) otherwise. The initial value is `GL_FALSE'. + 0 (false) otherwise. The initial value is `GL_FALSE'. `GL_CURRENT_VERTEX_ATTRIB' PARAMS returns four values that represent the current value for the - generic vertex attribute specified by index. Generic vertex + generic vertex attribute specified by index. Generic vertex attribute 0 is unique in that it has no current state, so an error - will be generated if INDEX is 0. The initial value for all other + will be generated if INDEX is 0. The initial value for all other generic vertex attributes is (0,0,0,1). All of the parameters except `GL_CURRENT_VERTEX_ATTRIB' represent @@ -11196,7 +11209,7 @@ client-side state. "Return the value or values of a selected parameter. PNAME - Specifies the parameter value to be returned. The symbolic + Specifies the parameter value to be returned. The symbolic constants in the list below are accepted. PARAMS @@ -11208,12 +11221,12 @@ returned, and PARAMS is a pointer to an array of the indicated type in which to place the returned data. Type conversion is performed if PARAMS has a different type than the -state variable value being requested. If `glGetBooleanv' is called, a +state variable value being requested. If `glGetBooleanv' is called, a floating-point (or integer) value is converted to `GL_FALSE' if and only -if it is 0.0 (or 0). Otherwise, it is converted to `GL_TRUE'. If +if it is 0.0 (or 0). Otherwise, it is converted to `GL_TRUE'. If `glGetIntegerv' is called, boolean values are returned as `GL_TRUE' or `GL_FALSE', and most floating-point values are rounded to the nearest -integer value. Floating-point colors and normals, however, are returned +integer value. Floating-point colors and normals, however, are returned with a linear mapping that maps 1.0 to the most positive representable integer value and -1.0 to the most negative representable integer value. If `glGetFloatv' or `glGetDoublev' is called, boolean values are @@ -11238,12 +11251,12 @@ The following symbolic constants are accepted by PNAME: PARAMS returns four values: the red, green, blue, and alpha values - used to clear the accumulation buffer. Integer values, if + used to clear the accumulation buffer. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the most negative - representable integer value. The initial value is (0, 0, 0, 0). See - `glClearAccum'. + representable integer value. The initial value is (0, 0, 0, 0). + See `glClearAccum'. `GL_ACCUM_GREEN_BITS' @@ -11261,7 +11274,7 @@ The following symbolic constants are accepted by PNAME: PARAMS returns a single value indicating the active multitexture - unit. The initial value is `GL_TEXTURE0'. See `glActiveTexture'. + unit. The initial value is `GL_TEXTURE0'. See `glActiveTexture'. `GL_ALIASED_POINT_SIZE_RANGE' @@ -11279,7 +11292,7 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the alpha bias factor used during pixel - transfers. The initial value is 0. See `glPixelTransfer'. + transfers. The initial value is 0. See `glPixelTransfer'. `GL_ALPHA_BITS' @@ -11291,26 +11304,26 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the alpha scale factor used during pixel - transfers. The initial value is 1. See `glPixelTransfer'. + transfers. The initial value is 1. See `glPixelTransfer'. `GL_ALPHA_TEST' PARAMS returns a single boolean value indicating whether alpha - testing of fragments is enabled. The initial value is `GL_FALSE'. + testing of fragments is enabled. The initial value is `GL_FALSE'. See `glAlphaFunc'. `GL_ALPHA_TEST_FUNC'PARAMS returns one value, - the symbolic name of the alpha test function. The initial value is - `GL_ALWAYS'. See `glAlphaFunc'. + the symbolic name of the alpha test function. The initial value is + `GL_ALWAYS'. See `glAlphaFunc'. `GL_ALPHA_TEST_REF' PARAMS returns one value, the reference value for the alpha test. - The initial value is 0. See `glAlphaFunc'. An integer value, if + The initial value is 0. See `glAlphaFunc'. An integer value, if requested, is linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the most negative @@ -11320,23 +11333,23 @@ The following symbolic constants are accepted by PNAME: PARAMS returns a single value, the name of the buffer object - currently bound to the target `GL_ARRAY_BUFFER'. If no buffer - object is bound to this target, 0 is returned. The initial value is - 0. See `glBindBuffer'. + currently bound to the target `GL_ARRAY_BUFFER'. If no buffer + object is bound to this target, 0 is returned. The initial value + is 0. See `glBindBuffer'. `GL_ATTRIB_STACK_DEPTH' - PARAMS returns one value, the depth of the attribute stack. If the - stack is empty, 0 is returned. The initial value is 0. See + PARAMS returns one value, the depth of the attribute stack. If the + stack is empty, 0 is returned. The initial value is 0. See `glPushAttrib'. `GL_AUTO_NORMAL' PARAMS returns a single boolean value indicating whether 2D map - evaluation automatically generates surface normals. The initial - value is `GL_FALSE'. See `glMap2'. + evaluation automatically generates surface normals. The initial + value is `GL_FALSE'. See `glMap2'. `GL_AUX_BUFFERS' @@ -11348,26 +11361,26 @@ The following symbolic constants are accepted by PNAME: PARAMS returns a single boolean value indicating whether blending - is enabled. The initial value is `GL_FALSE'. See `glBlendFunc'. + is enabled. The initial value is `GL_FALSE'. See `glBlendFunc'. `GL_BLEND_COLOR' PARAMS returns four values, the red, green, blue, and alpha values - which are the components of the blend color. See `glBlendColor'. + which are the components of the blend color. See `glBlendColor'. `GL_BLEND_DST_ALPHA' PARAMS returns one value, the symbolic constant identifying the - alpha destination blend function. The initial value is `GL_ZERO'. + alpha destination blend function. The initial value is `GL_ZERO'. See `glBlendFunc' and `glBlendFuncSeparate'. `GL_BLEND_DST_RGB' PARAMS returns one value, the symbolic constant identifying the RGB - destination blend function. The initial value is `GL_ZERO'. See + destination blend function. The initial value is `GL_ZERO'. See `glBlendFunc' and `glBlendFuncSeparate'. `GL_BLEND_EQUATION_RGB' @@ -11375,7 +11388,7 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, a symbolic constant indicating whether the RGB blend equation is `GL_FUNC_ADD', `GL_FUNC_SUBTRACT', - `GL_FUNC_REVERSE_SUBTRACT', `GL_MIN' or `GL_MAX'. See + `GL_FUNC_REVERSE_SUBTRACT', `GL_MIN' or `GL_MAX'. See `glBlendEquationSeparate'. `GL_BLEND_EQUATION_ALPHA' @@ -11383,28 +11396,28 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, a symbolic constant indicating whether the Alpha blend equation is `GL_FUNC_ADD', `GL_FUNC_SUBTRACT', - `GL_FUNC_REVERSE_SUBTRACT', `GL_MIN' or `GL_MAX'. See + `GL_FUNC_REVERSE_SUBTRACT', `GL_MIN' or `GL_MAX'. See `glBlendEquationSeparate'. `GL_BLEND_SRC_ALPHA' PARAMS returns one value, the symbolic constant identifying the - alpha source blend function. The initial value is `GL_ONE'. See + alpha source blend function. The initial value is `GL_ONE'. See `glBlendFunc' and `glBlendFuncSeparate'. `GL_BLEND_SRC_RGB' PARAMS returns one value, the symbolic constant identifying the RGB - source blend function. The initial value is `GL_ONE'. See + source blend function. The initial value is `GL_ONE'. See `glBlendFunc' and `glBlendFuncSeparate'. `GL_BLUE_BIAS' PARAMS returns one value, the blue bias factor used during pixel - transfers. The initial value is 0. See `glPixelTransfer'. + transfers. The initial value is 0. See `glPixelTransfer'. `GL_BLUE_BITS' @@ -11416,288 +11429,289 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the blue scale factor used during pixel - transfers. The initial value is 1. See `glPixelTransfer'. + transfers. The initial value is 1. See `glPixelTransfer'. `GL_CLIENT_ACTIVE_TEXTURE' PARAMS returns a single integer value indicating the current client - active multitexture unit. The initial value is `GL_TEXTURE0'. See + active multitexture unit. The initial value is `GL_TEXTURE0'. See `glClientActiveTexture'. `GL_CLIENT_ATTRIB_STACK_DEPTH' PARAMS returns one value indicating the depth of the attribute - stack. The initial value is 0. See `glPushClientAttrib'. + stack. The initial value is 0. See `glPushClientAttrib'. `GL_CLIP_PLANE'I PARAMS returns a single boolean value indicating whether the - specified clipping plane is enabled. The initial value is - `GL_FALSE'. See `glClipPlane'. + specified clipping plane is enabled. The initial value is + `GL_FALSE'. See `glClipPlane'. `GL_COLOR_ARRAY' PARAMS returns a single boolean value indicating whether the color - array is enabled. The initial value is `GL_FALSE'. See + array is enabled. The initial value is `GL_FALSE'. See `glColorPointer'. `GL_COLOR_ARRAY_BUFFER_BINDING' PARAMS returns a single value, the name of the buffer object - associated with the color array. This buffer object would have been - bound to the target `GL_ARRAY_BUFFER' at the time of the most - recent call to `glColorPointer'. If no buffer object was bound to - this target, 0 is returned. The initial value is 0. See + associated with the color array. This buffer object would have + been bound to the target `GL_ARRAY_BUFFER' at the time of the most + recent call to `glColorPointer'. If no buffer object was bound to + this target, 0 is returned. The initial value is 0. See `glBindBuffer'. `GL_COLOR_ARRAY_SIZE' PARAMS returns one value, the number of components per color in the - color array. The initial value is 4. See `glColorPointer'. + color array. The initial value is 4. See `glColorPointer'. `GL_COLOR_ARRAY_STRIDE' PARAMS returns one value, the byte offset between consecutive - colors in the color array. The initial value is 0. See + colors in the color array. The initial value is 0. See `glColorPointer'. `GL_COLOR_ARRAY_TYPE' PARAMS returns one value, the data type of each component in the - color array. The initial value is `GL_FLOAT'. See `glColorPointer'. + color array. The initial value is `GL_FLOAT'. See + `glColorPointer'. `GL_COLOR_CLEAR_VALUE' PARAMS returns four values: the red, green, blue, and alpha values - used to clear the color buffers. Integer values, if requested, are + used to clear the color buffers. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the most negative representable integer - value. The initial value is (0, 0, 0, 0). See `glClearColor'. + value. The initial value is (0, 0, 0, 0). See `glClearColor'. `GL_COLOR_LOGIC_OP' PARAMS returns a single boolean value indicating whether a fragment's RGBA color values are merged into the framebuffer using - a logical operation. The initial value is `GL_FALSE'. See + a logical operation. The initial value is `GL_FALSE'. See `glLogicOp'. `GL_COLOR_MATERIAL' PARAMS returns a single boolean value indicating whether one or - more material parameters are tracking the current color. The - initial value is `GL_FALSE'. See `glColorMaterial'. + more material parameters are tracking the current color. The + initial value is `GL_FALSE'. See `glColorMaterial'. `GL_COLOR_MATERIAL_FACE' PARAMS returns one value, a symbolic constant indicating which - materials have a parameter that is tracking the current color. The - initial value is `GL_FRONT_AND_BACK'. See `glColorMaterial'. + materials have a parameter that is tracking the current color. The + initial value is `GL_FRONT_AND_BACK'. See `glColorMaterial'. `GL_COLOR_MATERIAL_PARAMETER' PARAMS returns one value, a symbolic constant indicating which - material parameters are tracking the current color. The initial - value is `GL_AMBIENT_AND_DIFFUSE'. See `glColorMaterial'. + material parameters are tracking the current color. The initial + value is `GL_AMBIENT_AND_DIFFUSE'. See `glColorMaterial'. `GL_COLOR_MATRIX' PARAMS returns sixteen values: the color matrix on the top of the - color matrix stack. Initially this matrix is the identity matrix. + color matrix stack. Initially this matrix is the identity matrix. See `glPushMatrix'. `GL_COLOR_MATRIX_STACK_DEPTH' PARAMS returns one value, the maximum supported depth of the - projection matrix stack. The value must be at least 2. See + projection matrix stack. The value must be at least 2. See `glPushMatrix'. `GL_COLOR_SUM' PARAMS returns a single boolean value indicating whether primary - and secondary color sum is enabled. See `glSecondaryColor'. + and secondary color sum is enabled. See `glSecondaryColor'. `GL_COLOR_TABLE' PARAMS returns a single boolean value indicating whether the color - table lookup is enabled. See `glColorTable'. + table lookup is enabled. See `glColorTable'. `GL_COLOR_WRITEMASK' PARAMS returns four boolean values: the red, green, blue, and alpha - write enables for the color buffers. The initial value is - (`GL_TRUE', `GL_TRUE', `GL_TRUE', `GL_TRUE'). See `glColorMask'. + write enables for the color buffers. The initial value is + (`GL_TRUE', `GL_TRUE', `GL_TRUE', `GL_TRUE'). See `glColorMask'. `GL_COMPRESSED_TEXTURE_FORMATS' PARAMS returns a list of symbolic constants of length `GL_NUM_COMPRESSED_TEXTURE_FORMATS' indicating which compressed - texture formats are available. See `glCompressedTexImage2D'. + texture formats are available. See `glCompressedTexImage2D'. `GL_CONVOLUTION_1D' PARAMS returns a single boolean value indicating whether 1D - convolution is enabled. The initial value is `GL_FALSE'. See + convolution is enabled. The initial value is `GL_FALSE'. See `glConvolutionFilter1D'. `GL_CONVOLUTION_2D' PARAMS returns a single boolean value indicating whether 2D - convolution is enabled. The initial value is `GL_FALSE'. See + convolution is enabled. The initial value is `GL_FALSE'. See `glConvolutionFilter2D'. `GL_CULL_FACE' PARAMS returns a single boolean value indicating whether polygon - culling is enabled. The initial value is `GL_FALSE'. See + culling is enabled. The initial value is `GL_FALSE'. See `glCullFace'. `GL_CULL_FACE_MODE' PARAMS returns one value, a symbolic constant indicating which - polygon faces are to be culled. The initial value is `GL_BACK'. See - `glCullFace'. + polygon faces are to be culled. The initial value is `GL_BACK'. + See `glCullFace'. `GL_CURRENT_COLOR' PARAMS returns four values: the red, green, blue, and alpha values - of the current color. Integer values, if requested, are linearly + of the current color. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 - returns the most negative representable integer value. The initial - value is (1, 1, 1, 1). See `glColor'. + returns the most negative representable integer value. The initial + value is (1, 1, 1, 1). See `glColor'. `GL_CURRENT_FOG_COORD' - PARAMS returns one value, the current fog coordinate. The initial - value is 0. See `glFogCoord'. + PARAMS returns one value, the current fog coordinate. The initial + value is 0. See `glFogCoord'. `GL_CURRENT_INDEX' - PARAMS returns one value, the current color index. The initial - value is 1. See `glIndex'. + PARAMS returns one value, the current color index. The initial + value is 1. See `glIndex'. `GL_CURRENT_NORMAL' PARAMS returns three values: the X, Y, and Z values of the current - normal. Integer values, if requested, are linearly mapped from the + normal. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the - most negative representable integer value. The initial value is (0, - 0, 1). See `glNormal'. + most negative representable integer value. The initial value is + (0, 0, 1). See `glNormal'. `GL_CURRENT_PROGRAM' PARAMS returns one value, the name of the program object that is - currently active, or 0 if no program object is active. See + currently active, or 0 if no program object is active. See `glUseProgram'. `GL_CURRENT_RASTER_COLOR' PARAMS returns four values: the red, green, blue, and alpha color - values of the current raster position. Integer values, if + values of the current raster position. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the most negative - representable integer value. The initial value is (1, 1, 1, 1). See - `glRasterPos'. + representable integer value. The initial value is (1, 1, 1, 1). + See `glRasterPos'. `GL_CURRENT_RASTER_DISTANCE' PARAMS returns one value, the distance from the eye to the current - raster position. The initial value is 0. See `glRasterPos'. + raster position. The initial value is 0. See `glRasterPos'. `GL_CURRENT_RASTER_INDEX' PARAMS returns one value, the color index of the current raster - position. The initial value is 1. See `glRasterPos'. + position. The initial value is 1. See `glRasterPos'. `GL_CURRENT_RASTER_POSITION' PARAMS returns four values: the X, Y, Z, and W components of the - current raster position. X, Y, and Z are in window coordinates, and - W is in clip coordinates. The initial value is (0, 0, 0, 1). See - `glRasterPos'. + current raster position. X, Y, and Z are in window coordinates, + and W is in clip coordinates. The initial value is (0, 0, 0, 1). + See `glRasterPos'. `GL_CURRENT_RASTER_POSITION_VALID' PARAMS returns a single boolean value indicating whether the - current raster position is valid. The initial value is `GL_TRUE'. + current raster position is valid. The initial value is `GL_TRUE'. See `glRasterPos'. `GL_CURRENT_RASTER_SECONDARY_COLOR' PARAMS returns four values: the red, green, blue, and alpha - secondary color values of the current raster position. Integer + secondary color values of the current raster position. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the most - negative representable integer value. The initial value is (1, 1, - 1, 1). See `glRasterPos'. + negative representable integer value. The initial value is (1, 1, + 1, 1). See `glRasterPos'. `GL_CURRENT_RASTER_TEXTURE_COORDS' PARAMS returns four values: the S, T, R, and Q texture coordinates - of the current raster position. The initial value is (0, 0, 0, 1). + of the current raster position. The initial value is (0, 0, 0, 1). See `glRasterPos' and `glMultiTexCoord'. `GL_CURRENT_SECONDARY_COLOR' PARAMS returns four values: the red, green, blue, and alpha values - of the current secondary color. Integer values, if requested, are + of the current secondary color. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the most negative representable integer - value. The initial value is (0, 0, 0, 0). See `glSecondaryColor'. + value. The initial value is (0, 0, 0, 0). See `glSecondaryColor'. `GL_CURRENT_TEXTURE_COORDS' PARAMS returns four values: the S, T, R, and Q current texture - coordinates. The initial value is (0, 0, 0, 1). See + coordinates. The initial value is (0, 0, 0, 1). See `glMultiTexCoord'. `GL_DEPTH_BIAS' PARAMS returns one value, the depth bias factor used during pixel - transfers. The initial value is 0. See `glPixelTransfer'. + transfers. The initial value is 0. See `glPixelTransfer'. `GL_DEPTH_BITS' @@ -11709,54 +11723,54 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the value that is used to clear the depth - buffer. Integer values, if requested, are linearly mapped from the + buffer. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the - most negative representable integer value. The initial value is 1. + most negative representable integer value. The initial value is 1. See `glClearDepth'. `GL_DEPTH_FUNC' PARAMS returns one value, the symbolic constant that indicates the - depth comparison function. The initial value is `GL_LESS'. See + depth comparison function. The initial value is `GL_LESS'. See `glDepthFunc'. `GL_DEPTH_RANGE' PARAMS returns two values: the near and far mapping limits for the - depth buffer. Integer values, if requested, are linearly mapped + depth buffer. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 - returns the most negative representable integer value. The initial - value is (0, 1). See `glDepthRange'. + returns the most negative representable integer value. The initial + value is (0, 1). See `glDepthRange'. `GL_DEPTH_SCALE' PARAMS returns one value, the depth scale factor used during pixel - transfers. The initial value is 1. See `glPixelTransfer'. + transfers. The initial value is 1. See `glPixelTransfer'. `GL_DEPTH_TEST' PARAMS returns a single boolean value indicating whether depth - testing of fragments is enabled. The initial value is `GL_FALSE'. + testing of fragments is enabled. The initial value is `GL_FALSE'. See `glDepthFunc' and `glDepthRange'. `GL_DEPTH_WRITEMASK' PARAMS returns a single boolean value indicating if the depth - buffer is enabled for writing. The initial value is `GL_TRUE'. See + buffer is enabled for writing. The initial value is `GL_TRUE'. See `glDepthMask'. `GL_DITHER' PARAMS returns a single boolean value indicating whether dithering - of fragment colors and indices is enabled. The initial value is + of fragment colors and indices is enabled. The initial value is `GL_TRUE'. `GL_DOUBLEBUFFER' @@ -11769,15 +11783,15 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, a symbolic constant indicating which - buffers are being drawn to. See `glDrawBuffer'. The initial value + buffers are being drawn to. See `glDrawBuffer'. The initial value is `GL_BACK' if there are back buffers, otherwise it is `GL_FRONT'. `GL_DRAW_BUFFER'I PARAMS returns one value, a symbolic constant indicating which - buffers are being drawn to by the corresponding output color. See - `glDrawBuffers'. The initial value of `GL_DRAW_BUFFER0' is + buffers are being drawn to by the corresponding output color. See + `glDrawBuffers'. The initial value of `GL_DRAW_BUFFER0' is `GL_BACK' if there are back buffers, otherwise it is `GL_FRONT'. The initial values of draw buffers for all other output colors is `GL_NONE'. @@ -11786,168 +11800,169 @@ The following symbolic constants are accepted by PNAME: PARAMS returns a single boolean value indicating whether the - current edge flag is `GL_TRUE' or `GL_FALSE'. The initial value is - `GL_TRUE'. See `glEdgeFlag'. + current edge flag is `GL_TRUE' or `GL_FALSE'. The initial value is + `GL_TRUE'. See `glEdgeFlag'. `GL_EDGE_FLAG_ARRAY' PARAMS returns a single boolean value indicating whether the edge - flag array is enabled. The initial value is `GL_FALSE'. See + flag array is enabled. The initial value is `GL_FALSE'. See `glEdgeFlagPointer'. `GL_EDGE_FLAG_ARRAY_BUFFER_BINDING' PARAMS returns a single value, the name of the buffer object - associated with the edge flag array. This buffer object would have + associated with the edge flag array. This buffer object would have been bound to the target `GL_ARRAY_BUFFER' at the time of the most - recent call to `glEdgeFlagPointer'. If no buffer object was bound - to this target, 0 is returned. The initial value is 0. See + recent call to `glEdgeFlagPointer'. If no buffer object was bound + to this target, 0 is returned. The initial value is 0. See `glBindBuffer'. `GL_EDGE_FLAG_ARRAY_STRIDE' PARAMS returns one value, the byte offset between consecutive edge - flags in the edge flag array. The initial value is 0. See + flags in the edge flag array. The initial value is 0. See `glEdgeFlagPointer'. `GL_ELEMENT_ARRAY_BUFFER_BINDING' PARAMS returns a single value, the name of the buffer object - currently bound to the target `GL_ELEMENT_ARRAY_BUFFER'. If no - buffer object is bound to this target, 0 is returned. The initial - value is 0. See `glBindBuffer'. + currently bound to the target `GL_ELEMENT_ARRAY_BUFFER'. If no + buffer object is bound to this target, 0 is returned. The initial + value is 0. See `glBindBuffer'. `GL_FEEDBACK_BUFFER_SIZE' - PARAMS returns one value, the size of the feedback buffer. See + PARAMS returns one value, the size of the feedback buffer. See `glFeedbackBuffer'. `GL_FEEDBACK_BUFFER_TYPE' - PARAMS returns one value, the type of the feedback buffer. See + PARAMS returns one value, the type of the feedback buffer. See `glFeedbackBuffer'. `GL_FOG' PARAMS returns a single boolean value indicating whether fogging is - enabled. The initial value is `GL_FALSE'. See `glFog'. + enabled. The initial value is `GL_FALSE'. See `glFog'. `GL_FOG_COORD_ARRAY' PARAMS returns a single boolean value indicating whether the fog - coordinate array is enabled. The initial value is `GL_FALSE'. See + coordinate array is enabled. The initial value is `GL_FALSE'. See `glFogCoordPointer'. `GL_FOG_COORD_ARRAY_BUFFER_BINDING' PARAMS returns a single value, the name of the buffer object - associated with the fog coordinate array. This buffer object would + associated with the fog coordinate array. This buffer object would have been bound to the target `GL_ARRAY_BUFFER' at the time of the - most recent call to `glFogCoordPointer'. If no buffer object was - bound to this target, 0 is returned. The initial value is 0. See + most recent call to `glFogCoordPointer'. If no buffer object was + bound to this target, 0 is returned. The initial value is 0. See `glBindBuffer'. `GL_FOG_COORD_ARRAY_STRIDE' PARAMS returns one value, the byte offset between consecutive fog - coordinates in the fog coordinate array. The initial value is 0. + coordinates in the fog coordinate array. The initial value is 0. See `glFogCoordPointer'. `GL_FOG_COORD_ARRAY_TYPE' - PARAMS returns one value, the type of the fog coordinate array. The - initial value is `GL_FLOAT'. See `glFogCoordPointer'. + PARAMS returns one value, the type of the fog coordinate array. The + initial value is `GL_FLOAT'. See `glFogCoordPointer'. `GL_FOG_COORD_SRC' PARAMS returns one value, a symbolic constant indicating the source - of the fog coordinate. The initial value is `GL_FRAGMENT_DEPTH'. + of the fog coordinate. The initial value is `GL_FRAGMENT_DEPTH'. See `glFog'. `GL_FOG_COLOR' PARAMS returns four values: the red, green, blue, and alpha - components of the fog color. Integer values, if requested, are + components of the fog color. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the most negative representable integer - value. The initial value is (0, 0, 0, 0). See `glFog'. + value. The initial value is (0, 0, 0, 0). See `glFog'. `GL_FOG_DENSITY' - PARAMS returns one value, the fog density parameter. The initial - value is 1. See `glFog'. + PARAMS returns one value, the fog density parameter. The initial + value is 1. See `glFog'. `GL_FOG_END' PARAMS returns one value, the end factor for the linear fog - equation. The initial value is 1. See `glFog'. + equation. The initial value is 1. See `glFog'. `GL_FOG_HINT' PARAMS returns one value, a symbolic constant indicating the mode - of the fog hint. The initial value is `GL_DONT_CARE'. See `glHint'. + of the fog hint. The initial value is `GL_DONT_CARE'. See + `glHint'. `GL_FOG_INDEX' - PARAMS returns one value, the fog color index. The initial value is - 0. See `glFog'. + PARAMS returns one value, the fog color index. The initial value + is 0. See `glFog'. `GL_FOG_MODE' PARAMS returns one value, a symbolic constant indicating which fog - equation is selected. The initial value is `GL_EXP'. See `glFog'. + equation is selected. The initial value is `GL_EXP'. See `glFog'. `GL_FOG_START' PARAMS returns one value, the start factor for the linear fog - equation. The initial value is 0. See `glFog'. + equation. The initial value is 0. See `glFog'. `GL_FRAGMENT_SHADER_DERIVATIVE_HINT' PARAMS returns one value, a symbolic constant indicating the mode - of the derivative accuracy hint for fragment shaders. The initial - value is `GL_DONT_CARE'. See `glHint'. + of the derivative accuracy hint for fragment shaders. The initial + value is `GL_DONT_CARE'. See `glHint'. `GL_FRONT_FACE' PARAMS returns one value, a symbolic constant indicating whether clockwise or counterclockwise polygon winding is treated as - front-facing. The initial value is `GL_CCW'. See `glFrontFace'. + front-facing. The initial value is `GL_CCW'. See `glFrontFace'. `GL_GENERATE_MIPMAP_HINT' PARAMS returns one value, a symbolic constant indicating the mode - of the mipmap generation filtering hint. The initial value is - `GL_DONT_CARE'. See `glHint'. + of the mipmap generation filtering hint. The initial value is + `GL_DONT_CARE'. See `glHint'. `GL_GREEN_BIAS' PARAMS returns one value, the green bias factor used during pixel - transfers. The initial value is 0. + transfers. The initial value is 0. `GL_GREEN_BITS' @@ -11959,43 +11974,44 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the green scale factor used during pixel - transfers. The initial value is 1. See `glPixelTransfer'. + transfers. The initial value is 1. See `glPixelTransfer'. `GL_HISTOGRAM' PARAMS returns a single boolean value indicating whether histogram - is enabled. The initial value is `GL_FALSE'. See `glHistogram'. + is enabled. The initial value is `GL_FALSE'. See `glHistogram'. `GL_INDEX_ARRAY' PARAMS returns a single boolean value indicating whether the color - index array is enabled. The initial value is `GL_FALSE'. See + index array is enabled. The initial value is `GL_FALSE'. See `glIndexPointer'. `GL_INDEX_ARRAY_BUFFER_BINDING' PARAMS returns a single value, the name of the buffer object - associated with the color index array. This buffer object would + associated with the color index array. This buffer object would have been bound to the target `GL_ARRAY_BUFFER' at the time of the - most recent call to `glIndexPointer'. If no buffer object was bound - to this target, 0 is returned. The initial value is 0. See + most recent call to `glIndexPointer'. If no buffer object was + bound to this target, 0 is returned. The initial value is 0. See `glBindBuffer'. `GL_INDEX_ARRAY_STRIDE' PARAMS returns one value, the byte offset between consecutive color - indexes in the color index array. The initial value is 0. See + indexes in the color index array. The initial value is 0. See `glIndexPointer'. `GL_INDEX_ARRAY_TYPE' PARAMS returns one value, the data type of indexes in the color - index array. The initial value is `GL_FLOAT'. See `glIndexPointer'. + index array. The initial value is `GL_FLOAT'. See + `glIndexPointer'. `GL_INDEX_BITS' @@ -12007,14 +12023,14 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the color index used to clear the color - index buffers. The initial value is 0. See `glClearIndex'. + index buffers. The initial value is 0. See `glClearIndex'. `GL_INDEX_LOGIC_OP' PARAMS returns a single boolean value indicating whether a fragment's index values are merged into the framebuffer using a - logical operation. The initial value is `GL_FALSE'. See + logical operation. The initial value is `GL_FALSE'. See `glLogicOp'. `GL_INDEX_MODE' @@ -12027,366 +12043,369 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the offset added to color and stencil - indices during pixel transfers. The initial value is 0. See + indices during pixel transfers. The initial value is 0. See `glPixelTransfer'. `GL_INDEX_SHIFT' PARAMS returns one value, the amount that color and stencil indices - are shifted during pixel transfers. The initial value is 0. See + are shifted during pixel transfers. The initial value is 0. See `glPixelTransfer'. `GL_INDEX_WRITEMASK' PARAMS returns one value, a mask indicating which bitplanes of each - color index buffer can be written. The initial value is all 1's. + color index buffer can be written. The initial value is all 1's. See `glIndexMask'. `GL_LIGHT'I PARAMS returns a single boolean value indicating whether the - specified light is enabled. The initial value is `GL_FALSE'. See + specified light is enabled. The initial value is `GL_FALSE'. See `glLight' and `glLightModel'. `GL_LIGHTING' PARAMS returns a single boolean value indicating whether lighting - is enabled. The initial value is `GL_FALSE'. See `glLightModel'. + is enabled. The initial value is `GL_FALSE'. See `glLightModel'. `GL_LIGHT_MODEL_AMBIENT' PARAMS returns four values: the red, green, blue, and alpha - components of the ambient intensity of the entire scene. Integer + components of the ambient intensity of the entire scene. Integer values, if requested, are linearly mapped from the internal floating-point representation such that 1.0 returns the most positive representable integer value, and -1.0 returns the most - negative representable integer value. The initial value is (0.2, - 0.2, 0.2, 1.0). See `glLightModel'. + negative representable integer value. The initial value is (0.2, + 0.2, 0.2, 1.0). See `glLightModel'. `GL_LIGHT_MODEL_COLOR_CONTROL' PARAMS returns single enumerated value indicating whether specular reflection calculations are separated from normal lighting - computations. The initial value is `GL_SINGLE_COLOR'. + computations. The initial value is `GL_SINGLE_COLOR'. `GL_LIGHT_MODEL_LOCAL_VIEWER' PARAMS returns a single boolean value indicating whether specular reflection calculations treat the viewer as being local to the - scene. The initial value is `GL_FALSE'. See `glLightModel'. + scene. The initial value is `GL_FALSE'. See `glLightModel'. `GL_LIGHT_MODEL_TWO_SIDE' PARAMS returns a single boolean value indicating whether separate materials are used to compute lighting for front- and back-facing - polygons. The initial value is `GL_FALSE'. See `glLightModel'. + polygons. The initial value is `GL_FALSE'. See `glLightModel'. `GL_LINE_SMOOTH' PARAMS returns a single boolean value indicating whether - antialiasing of lines is enabled. The initial value is `GL_FALSE'. + antialiasing of lines is enabled. The initial value is `GL_FALSE'. See `glLineWidth'. `GL_LINE_SMOOTH_HINT' PARAMS returns one value, a symbolic constant indicating the mode - of the line antialiasing hint. The initial value is `GL_DONT_CARE'. - See `glHint'. + of the line antialiasing hint. The initial value is + `GL_DONT_CARE'. See `glHint'. `GL_LINE_STIPPLE' PARAMS returns a single boolean value indicating whether stippling - of lines is enabled. The initial value is `GL_FALSE'. See + of lines is enabled. The initial value is `GL_FALSE'. See `glLineStipple'. `GL_LINE_STIPPLE_PATTERN' - PARAMS returns one value, the 16-bit line stipple pattern. The - initial value is all 1's. See `glLineStipple'. + PARAMS returns one value, the 16-bit line stipple pattern. The + initial value is all 1's. See `glLineStipple'. `GL_LINE_STIPPLE_REPEAT' - PARAMS returns one value, the line stipple repeat factor. The - initial value is 1. See `glLineStipple'. + PARAMS returns one value, the line stipple repeat factor. The + initial value is 1. See `glLineStipple'. `GL_LINE_WIDTH' PARAMS returns one value, the line width as specified with - `glLineWidth'. The initial value is 1. + `glLineWidth'. The initial value is 1. `GL_LINE_WIDTH_GRANULARITY' PARAMS returns one value, the width difference between adjacent - supported widths for antialiased lines. See `glLineWidth'. + supported widths for antialiased lines. See `glLineWidth'. `GL_LINE_WIDTH_RANGE' PARAMS returns two values: the smallest and largest supported - widths for antialiased lines. See `glLineWidth'. + widths for antialiased lines. See `glLineWidth'. `GL_LIST_BASE' PARAMS returns one value, the base offset added to all names in - arrays presented to `glCallLists'. The initial value is 0. See + arrays presented to `glCallLists'. The initial value is 0. See `glListBase'. `GL_LIST_INDEX' PARAMS returns one value, the name of the display list currently - under construction. 0 is returned if no display list is currently - under construction. The initial value is 0. See `glNewList'. + under construction. 0 is returned if no display list is currently + under construction. The initial value is 0. See `glNewList'. `GL_LIST_MODE' PARAMS returns one value, a symbolic constant indicating the construction mode of the display list currently under construction. - The initial value is 0. See `glNewList'. + The initial value is 0. See `glNewList'. `GL_LOGIC_OP_MODE' PARAMS returns one value, a symbolic constant indicating the - selected logic operation mode. The initial value is `GL_COPY'. See + selected logic operation mode. The initial value is `GL_COPY'. See `glLogicOp'. `GL_MAP1_COLOR_4' PARAMS returns a single boolean value indicating whether 1D - evaluation generates colors. The initial value is `GL_FALSE'. See + evaluation generates colors. The initial value is `GL_FALSE'. See `glMap1'. `GL_MAP1_GRID_DOMAIN' PARAMS returns two values: the endpoints of the 1D map's grid - domain. The initial value is (0, 1). See `glMapGrid'. + domain. The initial value is (0, 1). See `glMapGrid'. `GL_MAP1_GRID_SEGMENTS' PARAMS returns one value, the number of partitions in the 1D map's - grid domain. The initial value is 1. See `glMapGrid'. + grid domain. The initial value is 1. See `glMapGrid'. `GL_MAP1_INDEX' PARAMS returns a single boolean value indicating whether 1D - evaluation generates color indices. The initial value is - `GL_FALSE'. See `glMap1'. + evaluation generates color indices. The initial value is + `GL_FALSE'. See `glMap1'. `GL_MAP1_NORMAL' PARAMS returns a single boolean value indicating whether 1D - evaluation generates normals. The initial value is `GL_FALSE'. See + evaluation generates normals. The initial value is `GL_FALSE'. See `glMap1'. `GL_MAP1_TEXTURE_COORD_1' PARAMS returns a single boolean value indicating whether 1D - evaluation generates 1D texture coordinates. The initial value is - `GL_FALSE'. See `glMap1'. + evaluation generates 1D texture coordinates. The initial value is + `GL_FALSE'. See `glMap1'. `GL_MAP1_TEXTURE_COORD_2' PARAMS returns a single boolean value indicating whether 1D - evaluation generates 2D texture coordinates. The initial value is - `GL_FALSE'. See `glMap1'. + evaluation generates 2D texture coordinates. The initial value is + `GL_FALSE'. See `glMap1'. `GL_MAP1_TEXTURE_COORD_3' PARAMS returns a single boolean value indicating whether 1D - evaluation generates 3D texture coordinates. The initial value is - `GL_FALSE'. See `glMap1'. + evaluation generates 3D texture coordinates. The initial value is + `GL_FALSE'. See `glMap1'. `GL_MAP1_TEXTURE_COORD_4' PARAMS returns a single boolean value indicating whether 1D - evaluation generates 4D texture coordinates. The initial value is - `GL_FALSE'. See `glMap1'. + evaluation generates 4D texture coordinates. The initial value is + `GL_FALSE'. See `glMap1'. `GL_MAP1_VERTEX_3' PARAMS returns a single boolean value indicating whether 1D - evaluation generates 3D vertex coordinates. The initial value is - `GL_FALSE'. See `glMap1'. + evaluation generates 3D vertex coordinates. The initial value is + `GL_FALSE'. See `glMap1'. `GL_MAP1_VERTEX_4' PARAMS returns a single boolean value indicating whether 1D - evaluation generates 4D vertex coordinates. The initial value is - `GL_FALSE'. See `glMap1'. + evaluation generates 4D vertex coordinates. The initial value is + `GL_FALSE'. See `glMap1'. `GL_MAP2_COLOR_4' PARAMS returns a single boolean value indicating whether 2D - evaluation generates colors. The initial value is `GL_FALSE'. See + evaluation generates colors. The initial value is `GL_FALSE'. See `glMap2'. `GL_MAP2_GRID_DOMAIN' PARAMS returns four values: the endpoints of the 2D map's I and J - grid domains. The initial value is (0,1; 0,1). See `glMapGrid'. + grid domains. The initial value is (0,1; 0,1). See `glMapGrid'. `GL_MAP2_GRID_SEGMENTS' PARAMS returns two values: the number of partitions in the 2D map's - I and J grid domains. The initial value is (1,1). See `glMapGrid'. + I and J grid domains. The initial value is (1,1). See + `glMapGrid'. `GL_MAP2_INDEX' PARAMS returns a single boolean value indicating whether 2D - evaluation generates color indices. The initial value is - `GL_FALSE'. See `glMap2'. + evaluation generates color indices. The initial value is + `GL_FALSE'. See `glMap2'. `GL_MAP2_NORMAL' PARAMS returns a single boolean value indicating whether 2D - evaluation generates normals. The initial value is `GL_FALSE'. See + evaluation generates normals. The initial value is `GL_FALSE'. See `glMap2'. `GL_MAP2_TEXTURE_COORD_1' PARAMS returns a single boolean value indicating whether 2D - evaluation generates 1D texture coordinates. The initial value is - `GL_FALSE'. See `glMap2'. + evaluation generates 1D texture coordinates. The initial value is + `GL_FALSE'. See `glMap2'. `GL_MAP2_TEXTURE_COORD_2' PARAMS returns a single boolean value indicating whether 2D - evaluation generates 2D texture coordinates. The initial value is - `GL_FALSE'. See `glMap2'. + evaluation generates 2D texture coordinates. The initial value is + `GL_FALSE'. See `glMap2'. `GL_MAP2_TEXTURE_COORD_3' PARAMS returns a single boolean value indicating whether 2D - evaluation generates 3D texture coordinates. The initial value is - `GL_FALSE'. See `glMap2'. + evaluation generates 3D texture coordinates. The initial value is + `GL_FALSE'. See `glMap2'. `GL_MAP2_TEXTURE_COORD_4' PARAMS returns a single boolean value indicating whether 2D - evaluation generates 4D texture coordinates. The initial value is - `GL_FALSE'. See `glMap2'. + evaluation generates 4D texture coordinates. The initial value is + `GL_FALSE'. See `glMap2'. `GL_MAP2_VERTEX_3' PARAMS returns a single boolean value indicating whether 2D - evaluation generates 3D vertex coordinates. The initial value is - `GL_FALSE'. See `glMap2'. + evaluation generates 3D vertex coordinates. The initial value is + `GL_FALSE'. See `glMap2'. `GL_MAP2_VERTEX_4' PARAMS returns a single boolean value indicating whether 2D - evaluation generates 4D vertex coordinates. The initial value is - `GL_FALSE'. See `glMap2'. + evaluation generates 4D vertex coordinates. The initial value is + `GL_FALSE'. See `glMap2'. `GL_MAP_COLOR' PARAMS returns a single boolean value indicating if colors and color indices are to be replaced by table lookup during pixel - transfers. The initial value is `GL_FALSE'. See `glPixelTransfer'. + transfers. The initial value is `GL_FALSE'. See + `glPixelTransfer'. `GL_MAP_STENCIL' PARAMS returns a single boolean value indicating if stencil indices - are to be replaced by table lookup during pixel transfers. The - initial value is `GL_FALSE'. See `glPixelTransfer'. + are to be replaced by table lookup during pixel transfers. The + initial value is `GL_FALSE'. See `glPixelTransfer'. `GL_MATRIX_MODE' PARAMS returns one value, a symbolic constant indicating which - matrix stack is currently the target of all matrix operations. The - initial value is `GL_MODELVIEW'. See `glMatrixMode'. + matrix stack is currently the target of all matrix operations. The + initial value is `GL_MODELVIEW'. See `glMatrixMode'. `GL_MAX_3D_TEXTURE_SIZE' PARAMS returns one value, a rough estimate of the largest 3D - texture that the GL can handle. The value must be at least 16. If + texture that the GL can handle. The value must be at least 16. If the GL version is 1.2 or greater, use `GL_PROXY_TEXTURE_3D' to - determine if a texture is too large. See `glTexImage3D'. + determine if a texture is too large. See `glTexImage3D'. `GL_MAX_CLIENT_ATTRIB_STACK_DEPTH' PARAMS returns one value indicating the maximum supported depth of - the client attribute stack. See `glPushClientAttrib'. + the client attribute stack. See `glPushClientAttrib'. `GL_MAX_ATTRIB_STACK_DEPTH' PARAMS returns one value, the maximum supported depth of the - attribute stack. The value must be at least 16. See `glPushAttrib'. + attribute stack. The value must be at least 16. See + `glPushAttrib'. `GL_MAX_CLIP_PLANES' PARAMS returns one value, the maximum number of application-defined - clipping planes. The value must be at least 6. See `glClipPlane'. + clipping planes. The value must be at least 6. See `glClipPlane'. `GL_MAX_COLOR_MATRIX_STACK_DEPTH' PARAMS returns one value, the maximum supported depth of the color - matrix stack. The value must be at least 2. See `glPushMatrix'. + matrix stack. The value must be at least 2. See `glPushMatrix'. `GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS' PARAMS returns one value, the maximum supported texture image units that can be used to access texture maps from the vertex shader and - the fragment processor combined. If both the vertex shader and the + the fragment processor combined. If both the vertex shader and the fragment processing stage access the same texture image unit, then that counts as using two texture image units against this limit. - The value must be at least 2. See `glActiveTexture'. + The value must be at least 2. See `glActiveTexture'. `GL_MAX_CUBE_MAP_TEXTURE_SIZE' - PARAMS returns one value. The value gives a rough estimate of the - largest cube-map texture that the GL can handle. The value must be - at least 16. If the GL version is 1.3 or greater, use + PARAMS returns one value. The value gives a rough estimate of the + largest cube-map texture that the GL can handle. The value must be + at least 16. If the GL version is 1.3 or greater, use `GL_PROXY_TEXTURE_CUBE_MAP' to determine if a texture is too large. See `glTexImage2D'. @@ -12395,25 +12414,26 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the maximum number of simultaneous output colors allowed from a fragment shader using the `gl_FragData' - built-in array. The value must be at least 1. See `glDrawBuffers'. + built-in array. The value must be at least 1. See + `glDrawBuffers'. `GL_MAX_ELEMENTS_INDICES' PARAMS returns one value, the recommended maximum number of vertex - array indices. See `glDrawRangeElements'. + array indices. See `glDrawRangeElements'. `GL_MAX_ELEMENTS_VERTICES' PARAMS returns one value, the recommended maximum number of vertex - array vertices. See `glDrawRangeElements'. + array vertices. See `glDrawRangeElements'. `GL_MAX_EVAL_ORDER' PARAMS returns one value, the maximum equation order supported by - 1D and 2D evaluators. The value must be at least 8. See `glMap1' + 1D and 2D evaluators. The value must be at least 8. See `glMap1' and `glMap2'. `GL_MAX_FRAGMENT_UNIFORM_COMPONENTS' @@ -12421,76 +12441,76 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the maximum number of individual floating-point, integer, or boolean values that can be held in - uniform variable storage for a fragment shader. The value must be - at least 64. See `glUniform'. + uniform variable storage for a fragment shader. The value must be + at least 64. See `glUniform'. `GL_MAX_LIGHTS' - PARAMS returns one value, the maximum number of lights. The value - must be at least 8. See `glLight'. + PARAMS returns one value, the maximum number of lights. The value + must be at least 8. See `glLight'. `GL_MAX_LIST_NESTING' PARAMS returns one value, the maximum recursion depth allowed - during display-list traversal. The value must be at least 64. See + during display-list traversal. The value must be at least 64. See `glCallList'. `GL_MAX_MODELVIEW_STACK_DEPTH' PARAMS returns one value, the maximum supported depth of the - modelview matrix stack. The value must be at least 32. See + modelview matrix stack. The value must be at least 32. See `glPushMatrix'. `GL_MAX_NAME_STACK_DEPTH' PARAMS returns one value, the maximum supported depth of the - selection name stack. The value must be at least 64. See + selection name stack. The value must be at least 64. See `glPushName'. `GL_MAX_PIXEL_MAP_TABLE' PARAMS returns one value, the maximum supported size of a - `glPixelMap' lookup table. The value must be at least 32. See + `glPixelMap' lookup table. The value must be at least 32. See `glPixelMap'. `GL_MAX_PROJECTION_STACK_DEPTH' PARAMS returns one value, the maximum supported depth of the - projection matrix stack. The value must be at least 2. See + projection matrix stack. The value must be at least 2. See `glPushMatrix'. `GL_MAX_TEXTURE_COORDS' PARAMS returns one value, the maximum number of texture coordinate - sets available to vertex and fragment shaders. The value must be at - least 2. See `glActiveTexture' and `glClientActiveTexture'. + sets available to vertex and fragment shaders. The value must be + at least 2. See `glActiveTexture' and `glClientActiveTexture'. `GL_MAX_TEXTURE_IMAGE_UNITS' PARAMS returns one value, the maximum supported texture image units that can be used to access texture maps from the fragment shader. - The value must be at least 2. See `glActiveTexture'. + The value must be at least 2. See `glActiveTexture'. `GL_MAX_TEXTURE_LOD_BIAS' PARAMS returns one value, the maximum, absolute value of the - texture level-of-detail bias. The value must be at least 4. + texture level-of-detail bias. The value must be at least 4. `GL_MAX_TEXTURE_SIZE' - PARAMS returns one value. The value gives a rough estimate of the - largest texture that the GL can handle. The value must be at least - 64. If the GL version is 1.1 or greater, use `GL_PROXY_TEXTURE_1D' + PARAMS returns one value. The value gives a rough estimate of the + largest texture that the GL can handle. The value must be at least + 64. If the GL version is 1.1 or greater, use `GL_PROXY_TEXTURE_1D' or `GL_PROXY_TEXTURE_2D' to determine if a texture is too large. See `glTexImage1D' and `glTexImage2D'. @@ -12498,19 +12518,19 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the maximum supported depth of the - texture matrix stack. The value must be at least 2. See + texture matrix stack. The value must be at least 2. See `glPushMatrix'. `GL_MAX_TEXTURE_UNITS' PARAMS returns a single value indicating the number of conventional - texture units supported. Each conventional texture unit includes + texture units supported. Each conventional texture unit includes both a texture coordinate set and a texture image unit. Conventional texture units may be used for fixed-function - (non-shader) rendering. The value must be at least 2. Additional + (non-shader) rendering. The value must be at least 2. Additional texture coordinate sets and texture image units may be accessed - from vertex and fragment shaders. See `glActiveTexture' and + from vertex and fragment shaders. See `glActiveTexture' and `glClientActiveTexture'. `GL_MAX_VARYING_FLOATS' @@ -12518,95 +12538,95 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the maximum number of interpolators available for processing varying variables used by vertex and - fragment shaders. This value represents the number of individual + fragment shaders. This value represents the number of individual floating-point values that can be interpolated; varying variables declared as vectors, matrices, and arrays will all consume multiple - interpolators. The value must be at least 32. + interpolators. The value must be at least 32. `GL_MAX_VERTEX_ATTRIBS' PARAMS returns one value, the maximum number of 4-component generic - vertex attributes accessible to a vertex shader. The value must be - at least 16. See `glVertexAttrib'. + vertex attributes accessible to a vertex shader. The value must be + at least 16. See `glVertexAttrib'. `GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS' PARAMS returns one value, the maximum supported texture image units - that can be used to access texture maps from the vertex shader. The - value may be 0. See `glActiveTexture'. + that can be used to access texture maps from the vertex shader. The + value may be 0. See `glActiveTexture'. `GL_MAX_VERTEX_UNIFORM_COMPONENTS' PARAMS returns one value, the maximum number of individual floating-point, integer, or boolean values that can be held in - uniform variable storage for a vertex shader. The value must be at - least 512. See `glUniform'. + uniform variable storage for a vertex shader. The value must be at + least 512. See `glUniform'. `GL_MAX_VIEWPORT_DIMS' PARAMS returns two values: the maximum supported width and height - of the viewport. These must be at least as large as the visible - dimensions of the display being rendered to. See `glViewport'. + of the viewport. These must be at least as large as the visible + dimensions of the display being rendered to. See `glViewport'. `GL_MINMAX' PARAMS returns a single boolean value indicating whether pixel - minmax values are computed. The initial value is `GL_FALSE'. See + minmax values are computed. The initial value is `GL_FALSE'. See `glMinmax'. `GL_MODELVIEW_MATRIX' PARAMS returns sixteen values: the modelview matrix on the top of - the modelview matrix stack. Initially this matrix is the identity - matrix. See `glPushMatrix'. + the modelview matrix stack. Initially this matrix is the identity + matrix. See `glPushMatrix'. `GL_MODELVIEW_STACK_DEPTH' PARAMS returns one value, the number of matrices on the modelview - matrix stack. The initial value is 1. See `glPushMatrix'. + matrix stack. The initial value is 1. See `glPushMatrix'. `GL_NAME_STACK_DEPTH' PARAMS returns one value, the number of names on the selection name - stack. The initial value is 0. See `glPushName'. + stack. The initial value is 0. See `glPushName'. `GL_NORMAL_ARRAY' PARAMS returns a single boolean value, indicating whether the - normal array is enabled. The initial value is `GL_FALSE'. See + normal array is enabled. The initial value is `GL_FALSE'. See `glNormalPointer'. `GL_NORMAL_ARRAY_BUFFER_BINDING' PARAMS returns a single value, the name of the buffer object - associated with the normal array. This buffer object would have + associated with the normal array. This buffer object would have been bound to the target `GL_ARRAY_BUFFER' at the time of the most - recent call to `glNormalPointer'. If no buffer object was bound to - this target, 0 is returned. The initial value is 0. See + recent call to `glNormalPointer'. If no buffer object was bound to + this target, 0 is returned. The initial value is 0. See `glBindBuffer'. `GL_NORMAL_ARRAY_STRIDE' PARAMS returns one value, the byte offset between consecutive - normals in the normal array. The initial value is 0. See + normals in the normal array. The initial value is 0. See `glNormalPointer'. `GL_NORMAL_ARRAY_TYPE' PARAMS returns one value, the data type of each coordinate in the - normal array. The initial value is `GL_FLOAT'. See + normal array. The initial value is `GL_FLOAT'. See `glNormalPointer'. `GL_NORMALIZE' @@ -12614,223 +12634,223 @@ The following symbolic constants are accepted by PNAME: PARAMS returns a single boolean value indicating whether normals are automatically scaled to unit length after they have been - transformed to eye coordinates. The initial value is `GL_FALSE'. + transformed to eye coordinates. The initial value is `GL_FALSE'. See `glNormal'. `GL_NUM_COMPRESSED_TEXTURE_FORMATS' PARAMS returns a single integer value indicating the number of - available compressed texture formats. The minimum value is 0. See + available compressed texture formats. The minimum value is 0. See `glCompressedTexImage2D'. `GL_PACK_ALIGNMENT' PARAMS returns one value, the byte alignment used for writing pixel - data to memory. The initial value is 4. See `glPixelStore'. + data to memory. The initial value is 4. See `glPixelStore'. `GL_PACK_IMAGE_HEIGHT' PARAMS returns one value, the image height used for writing pixel - data to memory. The initial value is 0. See `glPixelStore'. + data to memory. The initial value is 0. See `glPixelStore'. `GL_PACK_LSB_FIRST' PARAMS returns a single boolean value indicating whether single-bit pixels being written to memory are written first to the least - significant bit of each unsigned byte. The initial value is - `GL_FALSE'. See `glPixelStore'. + significant bit of each unsigned byte. The initial value is + `GL_FALSE'. See `glPixelStore'. `GL_PACK_ROW_LENGTH' PARAMS returns one value, the row length used for writing pixel - data to memory. The initial value is 0. See `glPixelStore'. + data to memory. The initial value is 0. See `glPixelStore'. `GL_PACK_SKIP_IMAGES' PARAMS returns one value, the number of pixel images skipped before - the first pixel is written into memory. The initial value is 0. See - `glPixelStore'. + the first pixel is written into memory. The initial value is 0. + See `glPixelStore'. `GL_PACK_SKIP_PIXELS' PARAMS returns one value, the number of pixel locations skipped - before the first pixel is written into memory. The initial value is - 0. See `glPixelStore'. + before the first pixel is written into memory. The initial value + is 0. See `glPixelStore'. `GL_PACK_SKIP_ROWS' PARAMS returns one value, the number of rows of pixel locations - skipped before the first pixel is written into memory. The initial - value is 0. See `glPixelStore'. + skipped before the first pixel is written into memory. The initial + value is 0. See `glPixelStore'. `GL_PACK_SWAP_BYTES' PARAMS returns a single boolean value indicating whether the bytes of two-byte and four-byte pixel indices and components are swapped - before being written to memory. The initial value is `GL_FALSE'. + before being written to memory. The initial value is `GL_FALSE'. See `glPixelStore'. `GL_PERSPECTIVE_CORRECTION_HINT' PARAMS returns one value, a symbolic constant indicating the mode - of the perspective correction hint. The initial value is - `GL_DONT_CARE'. See `glHint'. + of the perspective correction hint. The initial value is + `GL_DONT_CARE'. See `glHint'. `GL_PIXEL_MAP_A_TO_A_SIZE' PARAMS returns one value, the size of the alpha-to-alpha pixel - translation table. The initial value is 1. See `glPixelMap'. + translation table. The initial value is 1. See `glPixelMap'. `GL_PIXEL_MAP_B_TO_B_SIZE' PARAMS returns one value, the size of the blue-to-blue pixel - translation table. The initial value is 1. See `glPixelMap'. + translation table. The initial value is 1. See `glPixelMap'. `GL_PIXEL_MAP_G_TO_G_SIZE' PARAMS returns one value, the size of the green-to-green pixel - translation table. The initial value is 1. See `glPixelMap'. + translation table. The initial value is 1. See `glPixelMap'. `GL_PIXEL_MAP_I_TO_A_SIZE' PARAMS returns one value, the size of the index-to-alpha pixel - translation table. The initial value is 1. See `glPixelMap'. + translation table. The initial value is 1. See `glPixelMap'. `GL_PIXEL_MAP_I_TO_B_SIZE' PARAMS returns one value, the size of the index-to-blue pixel - translation table. The initial value is 1. See `glPixelMap'. + translation table. The initial value is 1. See `glPixelMap'. `GL_PIXEL_MAP_I_TO_G_SIZE' PARAMS returns one value, the size of the index-to-green pixel - translation table. The initial value is 1. See `glPixelMap'. + translation table. The initial value is 1. See `glPixelMap'. `GL_PIXEL_MAP_I_TO_I_SIZE' PARAMS returns one value, the size of the index-to-index pixel - translation table. The initial value is 1. See `glPixelMap'. + translation table. The initial value is 1. See `glPixelMap'. `GL_PIXEL_MAP_I_TO_R_SIZE' PARAMS returns one value, the size of the index-to-red pixel - translation table. The initial value is 1. See `glPixelMap'. + translation table. The initial value is 1. See `glPixelMap'. `GL_PIXEL_MAP_R_TO_R_SIZE' PARAMS returns one value, the size of the red-to-red pixel - translation table. The initial value is 1. See `glPixelMap'. + translation table. The initial value is 1. See `glPixelMap'. `GL_PIXEL_MAP_S_TO_S_SIZE' PARAMS returns one value, the size of the stencil-to-stencil pixel - translation table. The initial value is 1. See `glPixelMap'. + translation table. The initial value is 1. See `glPixelMap'. `GL_PIXEL_PACK_BUFFER_BINDING' PARAMS returns a single value, the name of the buffer object - currently bound to the target `GL_PIXEL_PACK_BUFFER'. If no buffer - object is bound to this target, 0 is returned. The initial value is - 0. See `glBindBuffer'. + currently bound to the target `GL_PIXEL_PACK_BUFFER'. If no buffer + object is bound to this target, 0 is returned. The initial value + is 0. See `glBindBuffer'. `GL_PIXEL_UNPACK_BUFFER_BINDING' PARAMS returns a single value, the name of the buffer object - currently bound to the target `GL_PIXEL_UNPACK_BUFFER'. If no - buffer object is bound to this target, 0 is returned. The initial - value is 0. See `glBindBuffer'. + currently bound to the target `GL_PIXEL_UNPACK_BUFFER'. If no + buffer object is bound to this target, 0 is returned. The initial + value is 0. See `glBindBuffer'. `GL_POINT_DISTANCE_ATTENUATION' PARAMS returns three values, the coefficients for computing the - attenuation value for points. See `glPointParameter'. + attenuation value for points. See `glPointParameter'. `GL_POINT_FADE_THRESHOLD_SIZE' PARAMS returns one value, the point size threshold for determining - the point size. See `glPointParameter'. + the point size. See `glPointParameter'. `GL_POINT_SIZE' PARAMS returns one value, the point size as specified by - `glPointSize'. The initial value is 1. + `glPointSize'. The initial value is 1. `GL_POINT_SIZE_GRANULARITY' PARAMS returns one value, the size difference between adjacent - supported sizes for antialiased points. See `glPointSize'. + supported sizes for antialiased points. See `glPointSize'. `GL_POINT_SIZE_MAX' PARAMS returns one value, the upper bound for the attenuated point - sizes. The initial value is 0.0. See `glPointParameter'. + sizes. The initial value is 0.0. See `glPointParameter'. `GL_POINT_SIZE_MIN' PARAMS returns one value, the lower bound for the attenuated point - sizes. The initial value is 1.0. See `glPointParameter'. + sizes. The initial value is 1.0. See `glPointParameter'. `GL_POINT_SIZE_RANGE' PARAMS returns two values: the smallest and largest supported sizes - for antialiased points. The smallest size must be at most 1, and - the largest size must be at least 1. See `glPointSize'. + for antialiased points. The smallest size must be at most 1, and + the largest size must be at least 1. See `glPointSize'. `GL_POINT_SMOOTH' PARAMS returns a single boolean value indicating whether - antialiasing of points is enabled. The initial value is `GL_FALSE'. - See `glPointSize'. + antialiasing of points is enabled. The initial value is + `GL_FALSE'. See `glPointSize'. `GL_POINT_SMOOTH_HINT' PARAMS returns one value, a symbolic constant indicating the mode - of the point antialiasing hint. The initial value is - `GL_DONT_CARE'. See `glHint'. + of the point antialiasing hint. The initial value is + `GL_DONT_CARE'. See `glHint'. `GL_POINT_SPRITE' PARAMS returns a single boolean value indicating whether point - sprite is enabled. The initial value is `GL_FALSE'. + sprite is enabled. The initial value is `GL_FALSE'. `GL_POLYGON_MODE' PARAMS returns two values: symbolic constants indicating whether front-facing and back-facing polygons are rasterized as points, - lines, or filled polygons. The initial value is `GL_FILL'. See + lines, or filled polygons. The initial value is `GL_FILL'. See `glPolygonMode'. `GL_POLYGON_OFFSET_FACTOR' @@ -12838,203 +12858,203 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the scaling factor used to determine the variable offset that is added to the depth value of each fragment - generated when a polygon is rasterized. The initial value is 0. See - `glPolygonOffset'. + generated when a polygon is rasterized. The initial value is 0. + See `glPolygonOffset'. `GL_POLYGON_OFFSET_UNITS' - PARAMS returns one value. This value is multiplied by an + PARAMS returns one value. This value is multiplied by an implementation-specific value and then added to the depth value of - each fragment generated when a polygon is rasterized. The initial - value is 0. See `glPolygonOffset'. + each fragment generated when a polygon is rasterized. The initial + value is 0. See `glPolygonOffset'. `GL_POLYGON_OFFSET_FILL' PARAMS returns a single boolean value indicating whether polygon - offset is enabled for polygons in fill mode. The initial value is - `GL_FALSE'. See `glPolygonOffset'. + offset is enabled for polygons in fill mode. The initial value is + `GL_FALSE'. See `glPolygonOffset'. `GL_POLYGON_OFFSET_LINE' PARAMS returns a single boolean value indicating whether polygon - offset is enabled for polygons in line mode. The initial value is - `GL_FALSE'. See `glPolygonOffset'. + offset is enabled for polygons in line mode. The initial value is + `GL_FALSE'. See `glPolygonOffset'. `GL_POLYGON_OFFSET_POINT' PARAMS returns a single boolean value indicating whether polygon - offset is enabled for polygons in point mode. The initial value is - `GL_FALSE'. See `glPolygonOffset'. + offset is enabled for polygons in point mode. The initial value is + `GL_FALSE'. See `glPolygonOffset'. `GL_POLYGON_SMOOTH' PARAMS returns a single boolean value indicating whether - antialiasing of polygons is enabled. The initial value is - `GL_FALSE'. See `glPolygonMode'. + antialiasing of polygons is enabled. The initial value is + `GL_FALSE'. See `glPolygonMode'. `GL_POLYGON_SMOOTH_HINT' PARAMS returns one value, a symbolic constant indicating the mode - of the polygon antialiasing hint. The initial value is - `GL_DONT_CARE'. See `glHint'. + of the polygon antialiasing hint. The initial value is + `GL_DONT_CARE'. See `glHint'. `GL_POLYGON_STIPPLE' PARAMS returns a single boolean value indicating whether polygon - stippling is enabled. The initial value is `GL_FALSE'. See + stippling is enabled. The initial value is `GL_FALSE'. See `glPolygonStipple'. `GL_POST_COLOR_MATRIX_COLOR_TABLE' PARAMS returns a single boolean value indicating whether post color - matrix transformation lookup is enabled. The initial value is - `GL_FALSE'. See `glColorTable'. + matrix transformation lookup is enabled. The initial value is + `GL_FALSE'. See `glColorTable'. `GL_POST_COLOR_MATRIX_RED_BIAS' PARAMS returns one value, the red bias factor applied to RGBA - fragments after color matrix transformations. The initial value is - 0. See `glPixelTransfer'. + fragments after color matrix transformations. The initial value is + 0. See `glPixelTransfer'. `GL_POST_COLOR_MATRIX_GREEN_BIAS' PARAMS returns one value, the green bias factor applied to RGBA - fragments after color matrix transformations. The initial value is - 0. See `glPixelTransfer' + fragments after color matrix transformations. The initial value is + 0. See `glPixelTransfer' `GL_POST_COLOR_MATRIX_BLUE_BIAS' PARAMS returns one value, the blue bias factor applied to RGBA - fragments after color matrix transformations. The initial value is - 0. See `glPixelTransfer'. + fragments after color matrix transformations. The initial value is + 0. See `glPixelTransfer'. `GL_POST_COLOR_MATRIX_ALPHA_BIAS' PARAMS returns one value, the alpha bias factor applied to RGBA - fragments after color matrix transformations. The initial value is - 0. See `glPixelTransfer'. + fragments after color matrix transformations. The initial value is + 0. See `glPixelTransfer'. `GL_POST_COLOR_MATRIX_RED_SCALE' PARAMS returns one value, the red scale factor applied to RGBA - fragments after color matrix transformations. The initial value is - 1. See `glPixelTransfer'. + fragments after color matrix transformations. The initial value is + 1. See `glPixelTransfer'. `GL_POST_COLOR_MATRIX_GREEN_SCALE' PARAMS returns one value, the green scale factor applied to RGBA - fragments after color matrix transformations. The initial value is - 1. See `glPixelTransfer'. + fragments after color matrix transformations. The initial value is + 1. See `glPixelTransfer'. `GL_POST_COLOR_MATRIX_BLUE_SCALE' PARAMS returns one value, the blue scale factor applied to RGBA - fragments after color matrix transformations. The initial value is - 1. See `glPixelTransfer'. + fragments after color matrix transformations. The initial value is + 1. See `glPixelTransfer'. `GL_POST_COLOR_MATRIX_ALPHA_SCALE' PARAMS returns one value, the alpha scale factor applied to RGBA - fragments after color matrix transformations. The initial value is - 1. See `glPixelTransfer'. + fragments after color matrix transformations. The initial value is + 1. See `glPixelTransfer'. `GL_POST_CONVOLUTION_COLOR_TABLE' PARAMS returns a single boolean value indicating whether post - convolution lookup is enabled. The initial value is `GL_FALSE'. See - `glColorTable'. + convolution lookup is enabled. The initial value is `GL_FALSE'. + See `glColorTable'. `GL_POST_CONVOLUTION_RED_BIAS' PARAMS returns one value, the red bias factor applied to RGBA - fragments after convolution. The initial value is 0. See + fragments after convolution. The initial value is 0. See `glPixelTransfer'. `GL_POST_CONVOLUTION_GREEN_BIAS' PARAMS returns one value, the green bias factor applied to RGBA - fragments after convolution. The initial value is 0. See + fragments after convolution. The initial value is 0. See `glPixelTransfer'. `GL_POST_CONVOLUTION_BLUE_BIAS' PARAMS returns one value, the blue bias factor applied to RGBA - fragments after convolution. The initial value is 0. See + fragments after convolution. The initial value is 0. See `glPixelTransfer'. `GL_POST_CONVOLUTION_ALPHA_BIAS' PARAMS returns one value, the alpha bias factor applied to RGBA - fragments after convolution. The initial value is 0. See + fragments after convolution. The initial value is 0. See `glPixelTransfer'. `GL_POST_CONVOLUTION_RED_SCALE' PARAMS returns one value, the red scale factor applied to RGBA - fragments after convolution. The initial value is 1. See + fragments after convolution. The initial value is 1. See `glPixelTransfer'. `GL_POST_CONVOLUTION_GREEN_SCALE' PARAMS returns one value, the green scale factor applied to RGBA - fragments after convolution. The initial value is 1. See + fragments after convolution. The initial value is 1. See `glPixelTransfer'. `GL_POST_CONVOLUTION_BLUE_SCALE' PARAMS returns one value, the blue scale factor applied to RGBA - fragments after convolution. The initial value is 1. See + fragments after convolution. The initial value is 1. See `glPixelTransfer'. `GL_POST_CONVOLUTION_ALPHA_SCALE' PARAMS returns one value, the alpha scale factor applied to RGBA - fragments after convolution. The initial value is 1. See + fragments after convolution. The initial value is 1. See `glPixelTransfer'. `GL_PROJECTION_MATRIX' PARAMS returns sixteen values: the projection matrix on the top of - the projection matrix stack. Initially this matrix is the identity - matrix. See `glPushMatrix'. + the projection matrix stack. Initially this matrix is the identity + matrix. See `glPushMatrix'. `GL_PROJECTION_STACK_DEPTH' PARAMS returns one value, the number of matrices on the projection - matrix stack. The initial value is 1. See `glPushMatrix'. + matrix stack. The initial value is 1. See `glPushMatrix'. `GL_READ_BUFFER' PARAMS returns one value, a symbolic constant indicating which - color buffer is selected for reading. The initial value is + color buffer is selected for reading. The initial value is `GL_BACK' if there is a back buffer, otherwise it is `GL_FRONT'. See `glReadPixels' and `glAccum'. @@ -13042,7 +13062,7 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the red bias factor used during pixel - transfers. The initial value is 0. + transfers. The initial value is 0. `GL_RED_BITS' @@ -13054,169 +13074,169 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the red scale factor used during pixel - transfers. The initial value is 1. See `glPixelTransfer'. + transfers. The initial value is 1. See `glPixelTransfer'. `GL_RENDER_MODE' PARAMS returns one value, a symbolic constant indicating whether - the GL is in render, select, or feedback mode. The initial value is - `GL_RENDER'. See `glRenderMode'. + the GL is in render, select, or feedback mode. The initial value + is `GL_RENDER'. See `glRenderMode'. `GL_RESCALE_NORMAL' PARAMS returns single boolean value indicating whether normal - rescaling is enabled. See `glEnable'. + rescaling is enabled. See `glEnable'. `GL_RGBA_MODE' PARAMS returns a single boolean value indicating whether the GL is - in RGBA mode (true) or color index mode (false). See `glColor'. + in RGBA mode (true) or color index mode (false). See `glColor'. `GL_SAMPLE_BUFFERS' PARAMS returns a single integer value indicating the number of - sample buffers associated with the framebuffer. See + sample buffers associated with the framebuffer. See `glSampleCoverage'. `GL_SAMPLE_COVERAGE_VALUE' PARAMS returns a single positive floating-point value indicating - the current sample coverage value. See `glSampleCoverage'. + the current sample coverage value. See `glSampleCoverage'. `GL_SAMPLE_COVERAGE_INVERT' PARAMS returns a single boolean value indicating if the temporary - coverage value should be inverted. See `glSampleCoverage'. + coverage value should be inverted. See `glSampleCoverage'. `GL_SAMPLES' PARAMS returns a single integer value indicating the coverage mask - size. See `glSampleCoverage'. + size. See `glSampleCoverage'. `GL_SCISSOR_BOX' PARAMS returns four values: the X and Y window coordinates of the - scissor box, followed by its width and height. Initially the X and + scissor box, followed by its width and height. Initially the X and Y window coordinates are both 0 and the width and height are set to - the size of the window. See `glScissor'. + the size of the window. See `glScissor'. `GL_SCISSOR_TEST' PARAMS returns a single boolean value indicating whether scissoring - is enabled. The initial value is `GL_FALSE'. See `glScissor'. + is enabled. The initial value is `GL_FALSE'. See `glScissor'. `GL_SECONDARY_COLOR_ARRAY' PARAMS returns a single boolean value indicating whether the - secondary color array is enabled. The initial value is `GL_FALSE'. + secondary color array is enabled. The initial value is `GL_FALSE'. See `glSecondaryColorPointer'. `GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING' PARAMS returns a single value, the name of the buffer object - associated with the secondary color array. This buffer object would - have been bound to the target `GL_ARRAY_BUFFER' at the time of the - most recent call to `glSecondaryColorPointer'. If no buffer object - was bound to this target, 0 is returned. The initial value is 0. - See `glBindBuffer'. + associated with the secondary color array. This buffer object + would have been bound to the target `GL_ARRAY_BUFFER' at the time + of the most recent call to `glSecondaryColorPointer'. If no buffer + object was bound to this target, 0 is returned. The initial value + is 0. See `glBindBuffer'. `GL_SECONDARY_COLOR_ARRAY_SIZE' PARAMS returns one value, the number of components per color in the - secondary color array. The initial value is 3. See + secondary color array. The initial value is 3. See `glSecondaryColorPointer'. `GL_SECONDARY_COLOR_ARRAY_STRIDE' PARAMS returns one value, the byte offset between consecutive - colors in the secondary color array. The initial value is 0. See + colors in the secondary color array. The initial value is 0. See `glSecondaryColorPointer'. `GL_SECONDARY_COLOR_ARRAY_TYPE' PARAMS returns one value, the data type of each component in the - secondary color array. The initial value is `GL_FLOAT'. See + secondary color array. The initial value is `GL_FLOAT'. See `glSecondaryColorPointer'. `GL_SELECTION_BUFFER_SIZE' - PARAMS return one value, the size of the selection buffer. See + PARAMS return one value, the size of the selection buffer. See `glSelectBuffer'. `GL_SEPARABLE_2D' PARAMS returns a single boolean value indicating whether 2D - separable convolution is enabled. The initial value is `GL_FALSE'. + separable convolution is enabled. The initial value is `GL_FALSE'. See `glSeparableFilter2D'. `GL_SHADE_MODEL' PARAMS returns one value, a symbolic constant indicating whether - the shading mode is flat or smooth. The initial value is - `GL_SMOOTH'. See `glShadeModel'. + the shading mode is flat or smooth. The initial value is + `GL_SMOOTH'. See `glShadeModel'. `GL_SMOOTH_LINE_WIDTH_RANGE' PARAMS returns two values, the smallest and largest supported - widths for antialiased lines. See `glLineWidth'. + widths for antialiased lines. See `glLineWidth'. `GL_SMOOTH_LINE_WIDTH_GRANULARITY' PARAMS returns one value, the granularity of widths for antialiased - lines. See `glLineWidth'. + lines. See `glLineWidth'. `GL_SMOOTH_POINT_SIZE_RANGE' PARAMS returns two values, the smallest and largest supported - widths for antialiased points. See `glPointSize'. + widths for antialiased points. See `glPointSize'. `GL_SMOOTH_POINT_SIZE_GRANULARITY' PARAMS returns one value, the granularity of sizes for antialiased - points. See `glPointSize'. + points. See `glPointSize'. `GL_STENCIL_BACK_FAIL' PARAMS returns one value, a symbolic constant indicating what action is taken for back-facing polygons when the stencil test - fails. The initial value is `GL_KEEP'. See `glStencilOpSeparate'. + fails. The initial value is `GL_KEEP'. See `glStencilOpSeparate'. `GL_STENCIL_BACK_FUNC' PARAMS returns one value, a symbolic constant indicating what function is used for back-facing polygons to compare the stencil - reference value with the stencil buffer value. The initial value is - `GL_ALWAYS'. See `glStencilFuncSeparate'. + reference value with the stencil buffer value. The initial value + is `GL_ALWAYS'. See `glStencilFuncSeparate'. `GL_STENCIL_BACK_PASS_DEPTH_FAIL' PARAMS returns one value, a symbolic constant indicating what action is taken for back-facing polygons when the stencil test - passes, but the depth test fails. The initial value is `GL_KEEP'. + passes, but the depth test fails. The initial value is `GL_KEEP'. See `glStencilOpSeparate'. `GL_STENCIL_BACK_PASS_DEPTH_PASS' @@ -13224,30 +13244,30 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, a symbolic constant indicating what action is taken for back-facing polygons when the stencil test - passes and the depth test passes. The initial value is `GL_KEEP'. + passes and the depth test passes. The initial value is `GL_KEEP'. See `glStencilOpSeparate'. `GL_STENCIL_BACK_REF' PARAMS returns one value, the reference value that is compared with - the contents of the stencil buffer for back-facing polygons. The - initial value is 0. See `glStencilFuncSeparate'. + the contents of the stencil buffer for back-facing polygons. The + initial value is 0. See `glStencilFuncSeparate'. `GL_STENCIL_BACK_VALUE_MASK' PARAMS returns one value, the mask that is used for back-facing polygons to mask both the stencil reference value and the stencil - buffer value before they are compared. The initial value is all - 1's. See `glStencilFuncSeparate'. + buffer value before they are compared. The initial value is all + 1's. See `glStencilFuncSeparate'. `GL_STENCIL_BACK_WRITEMASK' PARAMS returns one value, the mask that controls writing of the - stencil bitplanes for back-facing polygons. The initial value is - all 1's. See `glStencilMaskSeparate'. + stencil bitplanes for back-facing polygons. The initial value is + all 1's. See `glStencilMaskSeparate'. `GL_STENCIL_BITS' @@ -13259,27 +13279,27 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the index to which the stencil bitplanes - are cleared. The initial value is 0. See `glClearStencil'. + are cleared. The initial value is 0. See `glClearStencil'. `GL_STENCIL_FAIL' PARAMS returns one value, a symbolic constant indicating what - action is taken when the stencil test fails. The initial value is - `GL_KEEP'. See `glStencilOp'. If the GL version is 2.0 or greater, - this stencil state only affects non-polygons and front-facing - polygons. Back-facing polygons use separate stencil state. See - `glStencilOpSeparate'. + action is taken when the stencil test fails. The initial value is + `GL_KEEP'. See `glStencilOp'. If the GL version is 2.0 or + greater, this stencil state only affects non-polygons and + front-facing polygons. Back-facing polygons use separate stencil + state. See `glStencilOpSeparate'. `GL_STENCIL_FUNC' PARAMS returns one value, a symbolic constant indicating what function is used to compare the stencil reference value with the - stencil buffer value. The initial value is `GL_ALWAYS'. See - `glStencilFunc'. If the GL version is 2.0 or greater, this stencil + stencil buffer value. The initial value is `GL_ALWAYS'. See + `glStencilFunc'. If the GL version is 2.0 or greater, this stencil state only affects non-polygons and front-facing polygons. - Back-facing polygons use separate stencil state. See + Back-facing polygons use separate stencil state. See `glStencilFuncSeparate'. `GL_STENCIL_PASS_DEPTH_FAIL' @@ -13287,36 +13307,36 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, a symbolic constant indicating what action is taken when the stencil test passes, but the depth test - fails. The initial value is `GL_KEEP'. See `glStencilOp'. If the GL - version is 2.0 or greater, this stencil state only affects - non-polygons and front-facing polygons. Back-facing polygons use - separate stencil state. See `glStencilOpSeparate'. + fails. The initial value is `GL_KEEP'. See `glStencilOp'. If the + GL version is 2.0 or greater, this stencil state only affects + non-polygons and front-facing polygons. Back-facing polygons use + separate stencil state. See `glStencilOpSeparate'. `GL_STENCIL_PASS_DEPTH_PASS' PARAMS returns one value, a symbolic constant indicating what action is taken when the stencil test passes and the depth test - passes. The initial value is `GL_KEEP'. See `glStencilOp'. If the - GL version is 2.0 or greater, this stencil state only affects - non-polygons and front-facing polygons. Back-facing polygons use - separate stencil state. See `glStencilOpSeparate'. + passes. The initial value is `GL_KEEP'. See `glStencilOp'. If + the GL version is 2.0 or greater, this stencil state only affects + non-polygons and front-facing polygons. Back-facing polygons use + separate stencil state. See `glStencilOpSeparate'. `GL_STENCIL_REF' PARAMS returns one value, the reference value that is compared with - the contents of the stencil buffer. The initial value is 0. See - `glStencilFunc'. If the GL version is 2.0 or greater, this stencil + the contents of the stencil buffer. The initial value is 0. See + `glStencilFunc'. If the GL version is 2.0 or greater, this stencil state only affects non-polygons and front-facing polygons. - Back-facing polygons use separate stencil state. See + Back-facing polygons use separate stencil state. See `glStencilFuncSeparate'. `GL_STENCIL_TEST' PARAMS returns a single boolean value indicating whether stencil - testing of fragments is enabled. The initial value is `GL_FALSE'. + testing of fragments is enabled. The initial value is `GL_FALSE'. See `glStencilFunc' and `glStencilOp'. `GL_STENCIL_VALUE_MASK' @@ -13324,19 +13344,19 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, the mask that is used to mask both the stencil reference value and the stencil buffer value before they - are compared. The initial value is all 1's. See `glStencilFunc'. If - the GL version is 2.0 or greater, this stencil state only affects - non-polygons and front-facing polygons. Back-facing polygons use - separate stencil state. See `glStencilFuncSeparate'. + are compared. The initial value is all 1's. See `glStencilFunc'. + If the GL version is 2.0 or greater, this stencil state only + affects non-polygons and front-facing polygons. Back-facing + polygons use separate stencil state. See `glStencilFuncSeparate'. `GL_STENCIL_WRITEMASK' PARAMS returns one value, the mask that controls writing of the - stencil bitplanes. The initial value is all 1's. See - `glStencilMask'. If the GL version is 2.0 or greater, this stencil + stencil bitplanes. The initial value is all 1's. See + `glStencilMask'. If the GL version is 2.0 or greater, this stencil state only affects non-polygons and front-facing polygons. - Back-facing polygons use separate stencil state. See + Back-facing polygons use separate stencil state. See `glStencilMaskSeparate'. `GL_STEREO' @@ -13350,306 +13370,306 @@ The following symbolic constants are accepted by PNAME: PARAMS returns one value, an estimate of the number of bits of subpixel resolution that are used to position rasterized geometry - in window coordinates. The value must be at least 4. + in window coordinates. The value must be at least 4. `GL_TEXTURE_1D' PARAMS returns a single boolean value indicating whether 1D texture - mapping is enabled. The initial value is `GL_FALSE'. See + mapping is enabled. The initial value is `GL_FALSE'. See `glTexImage1D'. `GL_TEXTURE_BINDING_1D' PARAMS returns a single value, the name of the texture currently - bound to the target `GL_TEXTURE_1D'. The initial value is 0. See + bound to the target `GL_TEXTURE_1D'. The initial value is 0. See `glBindTexture'. `GL_TEXTURE_2D' PARAMS returns a single boolean value indicating whether 2D texture - mapping is enabled. The initial value is `GL_FALSE'. See + mapping is enabled. The initial value is `GL_FALSE'. See `glTexImage2D'. `GL_TEXTURE_BINDING_2D' PARAMS returns a single value, the name of the texture currently - bound to the target `GL_TEXTURE_2D'. The initial value is 0. See + bound to the target `GL_TEXTURE_2D'. The initial value is 0. See `glBindTexture'. `GL_TEXTURE_3D' PARAMS returns a single boolean value indicating whether 3D texture - mapping is enabled. The initial value is `GL_FALSE'. See + mapping is enabled. The initial value is `GL_FALSE'. See `glTexImage3D'. `GL_TEXTURE_BINDING_3D' PARAMS returns a single value, the name of the texture currently - bound to the target `GL_TEXTURE_3D'. The initial value is 0. See + bound to the target `GL_TEXTURE_3D'. The initial value is 0. See `glBindTexture'. `GL_TEXTURE_BINDING_CUBE_MAP' PARAMS returns a single value, the name of the texture currently - bound to the target `GL_TEXTURE_CUBE_MAP'. The initial value is 0. + bound to the target `GL_TEXTURE_CUBE_MAP'. The initial value is 0. See `glBindTexture'. `GL_TEXTURE_COMPRESSION_HINT' PARAMS returns a single value indicating the mode of the texture - compression hint. The initial value is `GL_DONT_CARE'. + compression hint. The initial value is `GL_DONT_CARE'. `GL_TEXTURE_COORD_ARRAY' PARAMS returns a single boolean value indicating whether the - texture coordinate array is enabled. The initial value is - `GL_FALSE'. See `glTexCoordPointer'. + texture coordinate array is enabled. The initial value is + `GL_FALSE'. See `glTexCoordPointer'. `GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING' PARAMS returns a single value, the name of the buffer object - associated with the texture coordinate array. This buffer object + associated with the texture coordinate array. This buffer object would have been bound to the target `GL_ARRAY_BUFFER' at the time - of the most recent call to `glTexCoordPointer'. If no buffer object - was bound to this target, 0 is returned. The initial value is 0. - See `glBindBuffer'. + of the most recent call to `glTexCoordPointer'. If no buffer + object was bound to this target, 0 is returned. The initial value + is 0. See `glBindBuffer'. `GL_TEXTURE_COORD_ARRAY_SIZE' PARAMS returns one value, the number of coordinates per element in - the texture coordinate array. The initial value is 4. See + the texture coordinate array. The initial value is 4. See `glTexCoordPointer'. `GL_TEXTURE_COORD_ARRAY_STRIDE' PARAMS returns one value, the byte offset between consecutive - elements in the texture coordinate array. The initial value is 0. + elements in the texture coordinate array. The initial value is 0. See `glTexCoordPointer'. `GL_TEXTURE_COORD_ARRAY_TYPE' PARAMS returns one value, the data type of the coordinates in the - texture coordinate array. The initial value is `GL_FLOAT'. See + texture coordinate array. The initial value is `GL_FLOAT'. See `glTexCoordPointer'. `GL_TEXTURE_CUBE_MAP' PARAMS returns a single boolean value indicating whether - cube-mapped texture mapping is enabled. The initial value is - `GL_FALSE'. See `glTexImage2D'. + cube-mapped texture mapping is enabled. The initial value is + `GL_FALSE'. See `glTexImage2D'. `GL_TEXTURE_GEN_Q' PARAMS returns a single boolean value indicating whether automatic - generation of the Q texture coordinate is enabled. The initial - value is `GL_FALSE'. See `glTexGen'. + generation of the Q texture coordinate is enabled. The initial + value is `GL_FALSE'. See `glTexGen'. `GL_TEXTURE_GEN_R' PARAMS returns a single boolean value indicating whether automatic - generation of the R texture coordinate is enabled. The initial - value is `GL_FALSE'. See `glTexGen'. + generation of the R texture coordinate is enabled. The initial + value is `GL_FALSE'. See `glTexGen'. `GL_TEXTURE_GEN_S' PARAMS returns a single boolean value indicating whether automatic - generation of the S texture coordinate is enabled. The initial - value is `GL_FALSE'. See `glTexGen'. + generation of the S texture coordinate is enabled. The initial + value is `GL_FALSE'. See `glTexGen'. `GL_TEXTURE_GEN_T' PARAMS returns a single boolean value indicating whether automatic - generation of the T texture coordinate is enabled. The initial - value is `GL_FALSE'. See `glTexGen'. + generation of the T texture coordinate is enabled. The initial + value is `GL_FALSE'. See `glTexGen'. `GL_TEXTURE_MATRIX' PARAMS returns sixteen values: the texture matrix on the top of the - texture matrix stack. Initially this matrix is the identity matrix. - See `glPushMatrix'. + texture matrix stack. Initially this matrix is the identity + matrix. See `glPushMatrix'. `GL_TEXTURE_STACK_DEPTH' PARAMS returns one value, the number of matrices on the texture - matrix stack. The initial value is 1. See `glPushMatrix'. + matrix stack. The initial value is 1. See `glPushMatrix'. `GL_TRANSPOSE_COLOR_MATRIX' PARAMS returns 16 values, the elements of the color matrix in - row-major order. See `glLoadTransposeMatrix'. + row-major order. See `glLoadTransposeMatrix'. `GL_TRANSPOSE_MODELVIEW_MATRIX' PARAMS returns 16 values, the elements of the modelview matrix in - row-major order. See `glLoadTransposeMatrix'. + row-major order. See `glLoadTransposeMatrix'. `GL_TRANSPOSE_PROJECTION_MATRIX' PARAMS returns 16 values, the elements of the projection matrix in - row-major order. See `glLoadTransposeMatrix'. + row-major order. See `glLoadTransposeMatrix'. `GL_TRANSPOSE_TEXTURE_MATRIX' PARAMS returns 16 values, the elements of the texture matrix in - row-major order. See `glLoadTransposeMatrix'. + row-major order. See `glLoadTransposeMatrix'. `GL_UNPACK_ALIGNMENT' PARAMS returns one value, the byte alignment used for reading pixel - data from memory. The initial value is 4. See `glPixelStore'. + data from memory. The initial value is 4. See `glPixelStore'. `GL_UNPACK_IMAGE_HEIGHT' PARAMS returns one value, the image height used for reading pixel - data from memory. The initial is 0. See `glPixelStore'. + data from memory. The initial is 0. See `glPixelStore'. `GL_UNPACK_LSB_FIRST' PARAMS returns a single boolean value indicating whether single-bit pixels being read from memory are read first from the least - significant bit of each unsigned byte. The initial value is - `GL_FALSE'. See `glPixelStore'. + significant bit of each unsigned byte. The initial value is + `GL_FALSE'. See `glPixelStore'. `GL_UNPACK_ROW_LENGTH' PARAMS returns one value, the row length used for reading pixel - data from memory. The initial value is 0. See `glPixelStore'. + data from memory. The initial value is 0. See `glPixelStore'. `GL_UNPACK_SKIP_IMAGES' PARAMS returns one value, the number of pixel images skipped before - the first pixel is read from memory. The initial value is 0. See + the first pixel is read from memory. The initial value is 0. See `glPixelStore'. `GL_UNPACK_SKIP_PIXELS' PARAMS returns one value, the number of pixel locations skipped - before the first pixel is read from memory. The initial value is 0. - See `glPixelStore'. + before the first pixel is read from memory. The initial value is + 0. See `glPixelStore'. `GL_UNPACK_SKIP_ROWS' PARAMS returns one value, the number of rows of pixel locations - skipped before the first pixel is read from memory. The initial - value is 0. See `glPixelStore'. + skipped before the first pixel is read from memory. The initial + value is 0. See `glPixelStore'. `GL_UNPACK_SWAP_BYTES' PARAMS returns a single boolean value indicating whether the bytes of two-byte and four-byte pixel indices and components are swapped - after being read from memory. The initial value is `GL_FALSE'. See + after being read from memory. The initial value is `GL_FALSE'. See `glPixelStore'. `GL_VERTEX_ARRAY' PARAMS returns a single boolean value indicating whether the vertex - array is enabled. The initial value is `GL_FALSE'. See + array is enabled. The initial value is `GL_FALSE'. See `glVertexPointer'. `GL_VERTEX_ARRAY_BUFFER_BINDING' PARAMS returns a single value, the name of the buffer object - associated with the vertex array. This buffer object would have + associated with the vertex array. This buffer object would have been bound to the target `GL_ARRAY_BUFFER' at the time of the most - recent call to `glVertexPointer'. If no buffer object was bound to - this target, 0 is returned. The initial value is 0. See + recent call to `glVertexPointer'. If no buffer object was bound to + this target, 0 is returned. The initial value is 0. See `glBindBuffer'. `GL_VERTEX_ARRAY_SIZE' PARAMS returns one value, the number of coordinates per vertex in - the vertex array. The initial value is 4. See `glVertexPointer'. + the vertex array. The initial value is 4. See `glVertexPointer'. `GL_VERTEX_ARRAY_STRIDE' PARAMS returns one value, the byte offset between consecutive - vertices in the vertex array. The initial value is 0. See + vertices in the vertex array. The initial value is 0. See `glVertexPointer'. `GL_VERTEX_ARRAY_TYPE' PARAMS returns one value, the data type of each coordinate in the - vertex array. The initial value is `GL_FLOAT'. See + vertex array. The initial value is `GL_FLOAT'. See `glVertexPointer'. `GL_VERTEX_PROGRAM_POINT_SIZE' PARAMS returns a single boolean value indicating whether vertex - program point size mode is enabled. If enabled, and a vertex shader - is active, then the point size is taken from the shader built-in - `gl_PointSize'. If disabled, and a vertex shader is active, then - the point size is taken from the point state as specified by - `glPointSize'. The initial value is `GL_FALSE'. + program point size mode is enabled. If enabled, and a vertex + shader is active, then the point size is taken from the shader + built-in `gl_PointSize'. If disabled, and a vertex shader is + active, then the point size is taken from the point state as + specified by `glPointSize'. The initial value is `GL_FALSE'. `GL_VERTEX_PROGRAM_TWO_SIDE' PARAMS returns a single boolean value indicating whether vertex - program two-sided color mode is enabled. If enabled, and a vertex + program two-sided color mode is enabled. If enabled, and a vertex shader is active, then the GL chooses the back color output for back-facing polygons, and the front color output for non-polygons - and front-facing polygons. If disabled, and a vertex shader is - active, then the front color output is always selected. The initial - value is `GL_FALSE'. + and front-facing polygons. If disabled, and a vertex shader is + active, then the front color output is always selected. The + initial value is `GL_FALSE'. `GL_VIEWPORT' PARAMS returns four values: the X and Y window coordinates of the - viewport, followed by its width and height. Initially the X and Y + viewport, followed by its width and height. Initially the X and Y window coordinates are both set to 0, and the width and height are set to the width and height of the window into which the GL will do - its rendering. See `glViewport'. + its rendering. See `glViewport'. `GL_ZOOM_X' - PARAMS returns one value, the X pixel zoom factor. The initial - value is 1. See `glPixelZoom'. + PARAMS returns one value, the X pixel zoom factor. The initial + value is 1. See `glPixelZoom'. `GL_ZOOM_Y' - PARAMS returns one value, the Y pixel zoom factor. The initial - value is 1. See `glPixelZoom'. + PARAMS returns one value, the Y pixel zoom factor. The initial + value is 1. See `glPixelZoom'. Many of the boolean parameters can also be queried more easily using `glIsEnabled'. @@ -13665,7 +13685,7 @@ execution of `glBegin' and the corresponding execution of `glEnd'.") TARGET Specifies a symbolic constant indicating the behavior to be - controlled. `GL_FOG_HINT', `GL_GENERATE_MIPMAP_HINT', + controlled. `GL_FOG_HINT', `GL_GENERATE_MIPMAP_HINT', `GL_LINE_SMOOTH_HINT', `GL_PERSPECTIVE_CORRECTION_HINT', `GL_POINT_SMOOTH_HINT', `GL_POLYGON_SMOOTH_HINT', `GL_TEXTURE_COMPRESSION_HINT', and @@ -13676,10 +13696,10 @@ MODE `GL_FASTEST', `GL_NICEST', and `GL_DONT_CARE' are accepted. Certain aspects of GL behavior, when there is room for interpretation, -can be controlled with hints. A hint is specified with two arguments. +can be controlled with hints. A hint is specified with two arguments. TARGET is a symbolic constant indicating the behavior to be controlled, and MODE is another symbolic constant indicating the desired behavior. -The initial value for each TARGET is `GL_DONT_CARE'. MODE can be one of +The initial value for each TARGET is `GL_DONT_CARE'. MODE can be one of the following: `GL_FASTEST' @@ -13698,14 +13718,14 @@ the following: No preference. Though the implementation aspects that can be hinted are well defined, -the interpretation of the hints depends on the implementation. The hint +the interpretation of the hints depends on the implementation. The hint aspects that can be specified with TARGET, along with suggested semantics, are as follows: `GL_FOG_HINT' - Indicates the accuracy of fog calculation. If per-pixel fog + Indicates the accuracy of fog calculation. If per-pixel fog calculation is not efficiently supported by the GL implementation, hinting `GL_DONT_CARE' or `GL_FASTEST' can result in per-vertex calculation of fog effects. @@ -13725,7 +13745,7 @@ semantics, are as follows: `GL_LINE_SMOOTH_HINT' - Indicates the sampling quality of antialiased lines. If a larger + Indicates the sampling quality of antialiased lines. If a larger filter function is applied, hinting `GL_NICEST' can result in more pixel fragments being generated during rasterization. @@ -13733,7 +13753,7 @@ semantics, are as follows: Indicates the quality of color, texture coordinate, and fog - coordinate interpolation. If perspective-corrected parameter + coordinate interpolation. If perspective-corrected parameter interpolation is not efficiently supported by the GL implementation, hinting `GL_DONT_CARE' or `GL_FASTEST' can result in simple linear interpolation of colors and/or texture @@ -13742,14 +13762,14 @@ semantics, are as follows: `GL_POINT_SMOOTH_HINT' - Indicates the sampling quality of antialiased points. If a larger + Indicates the sampling quality of antialiased points. If a larger filter function is applied, hinting `GL_NICEST' can result in more pixel fragments being generated during rasterization. `GL_POLYGON_SMOOTH_HINT' - Indicates the sampling quality of antialiased polygons. Hinting + Indicates the sampling quality of antialiased polygons. Hinting `GL_NICEST' can result in more pixel fragments being generated during rasterization, if a larger filter function is applied. @@ -13757,10 +13777,10 @@ semantics, are as follows: Indicates the quality and performance of the compressing texture - images. Hinting `GL_FASTEST' indicates that texture images should + images. Hinting `GL_FASTEST' indicates that texture images should be compressed as quickly as possible, while `GL_NICEST' indicates that texture images should be compressed with as little image - quality loss as possible. `GL_NICEST' should be selected if the + quality loss as possible. `GL_NICEST' should be selected if the texture is to be retrieved by `glGetCompressedTexImage' for reuse. `GL_INVALID_ENUM' is generated if either TARGET or MODE is not an @@ -13780,14 +13800,15 @@ execution of `glBegin' and the corresponding execution of `glEnd'.") "Define histogram table. TARGET - The histogram whose parameters are to be set. Must be one of + The histogram whose parameters are to be set. Must be one of `GL_HISTOGRAM' or `GL_PROXY_HISTOGRAM'. WIDTH - The number of entries in the histogram table. Must be a power of 2. + The number of entries in the histogram table. Must be a power of + 2. INTERNALFORMAT - The format of entries in the histogram table. Must be one of + The format of entries in the histogram table. Must be one of `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', `GL_ALPHA12', `GL_ALPHA16', `GL_LUMINANCE', `GL_LUMINANCE4', `GL_LUMINANCE8', `GL_LUMINANCE12', `GL_LUMINANCE16', `GL_LUMINANCE_ALPHA', `GL_LUMINANCE4_ALPHA4', @@ -13800,35 +13821,35 @@ INTERNALFORMAT SINK If `GL_TRUE', pixels will be consumed by the histogramming process - and no drawing or texture loading will take place. If `GL_FALSE', + and no drawing or texture loading will take place. If `GL_FALSE', pixels will proceed to the minmax process after histogramming. When `GL_HISTOGRAM' is enabled, RGBA color components are converted to histogram table indices by clamping to the range [0,1], multiplying by the width of the histogram table, and rounding to the nearest integer. -The table entries selected by the RGBA indices are then incremented. (If +The table entries selected by the RGBA indices are then incremented. (If the internal format of the histogram table includes luminance, then the index derived from the R color component determines the luminance table entry to be incremented.) If a histogram table entry is incremented -beyond its maximum value, then its value becomes undefined. (This is not -an error.) +beyond its maximum value, then its value becomes undefined. (This is +not an error.) Histogramming is performed only for RGBA pixels (though these may be specified originally as color indices and converted to RGBA by index -table lookup). Histogramming is enabled with `glEnable' and disabled +table lookup). Histogramming is enabled with `glEnable' and disabled with `glDisable'. When TARGET is `GL_HISTOGRAM', `glHistogram' redefines the current histogram table to have WIDTH entries of the format specified by -INTERNALFORMAT. The entries are indexed 0 through WIDTH-1 , and all -entries are initialized to zero. The values in the previous histogram -table, if any, are lost. If SINK is `GL_TRUE', then pixels are discarded -after histogramming; no further processing of the pixels takes place, -and no drawing, texture loading, or pixel readback will result. +INTERNALFORMAT. The entries are indexed 0 through WIDTH-1 , and all +entries are initialized to zero. The values in the previous histogram +table, if any, are lost. If SINK is `GL_TRUE', then pixels are +discarded after histogramming; no further processing of the pixels takes +place, and no drawing, texture loading, or pixel readback will result. When TARGET is `GL_PROXY_HISTOGRAM', `glHistogram' computes all state information as if the histogram table were to be redefined, but does not -actually define the new table. If the requested histogram table is too +actually define the new table. If the requested histogram table is too large to be supported, then the state information will be set to zero. This provides a way to determine if a histogram table with the given parameters can be supported. @@ -13856,18 +13877,18 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") MASK Specifies a bit mask to enable and disable the writing of - individual bits in the color index buffers. Initially, the mask is + individual bits in the color index buffers. Initially, the mask is all 1's. `glIndexMask' controls the writing of individual bits in the color index -buffers. The least significant N bits of MASK, where N is the number of -bits in a color index buffer, specify a mask. Where a 1 (one) appears in -the mask, it's possible to write to the corresponding bit in the color -index buffer (or buffers). Where a 0 (zero) appears, the corresponding -bit is write-protected. +buffers. The least significant N bits of MASK, where N is the number of +bits in a color index buffer, specify a mask. Where a 1 (one) appears +in the mask, it's possible to write to the corresponding bit in the +color index buffer (or buffers). Where a 0 (zero) appears, the +corresponding bit is write-protected. This mask is used only in color index mode, and it affects only the -buffers currently selected for writing (see `glDrawBuffer'). Initially, +buffers currently selected for writing (see `glDrawBuffer'). Initially, all bits are enabled for writing. `GL_INVALID_OPERATION' is generated if `glIndexMask' is executed between @@ -13883,21 +13904,21 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Define an array of color indexes. TYPE - Specifies the data type of each color index in the array. Symbolic + Specifies the data type of each color index in the array. Symbolic constants `GL_UNSIGNED_BYTE', `GL_SHORT', `GL_INT', `GL_FLOAT', and - `GL_DOUBLE' are accepted. The initial value is `GL_FLOAT'. + `GL_DOUBLE' are accepted. The initial value is `GL_FLOAT'. STRIDE - Specifies the byte offset between consecutive color indexes. If + Specifies the byte offset between consecutive color indexes. If STRIDE is 0, the color indexes are understood to be tightly packed - in the array. The initial value is 0. + in the array. The initial value is 0. POINTER - Specifies a pointer to the first index in the array. The initial + Specifies a pointer to the first index in the array. The initial value is 0. `glIndexPointer' specifies the location and data format of an array of -color indexes to use when rendering. TYPE specifies the data type of +color indexes to use when rendering. TYPE specifies the data type of each color index and STRIDE specifies the byte stride from one color index to the next, allowing vertices and attributes to be packed into a single array or stored in separate arrays. @@ -13914,7 +13935,7 @@ saved as client-side state, in addition to the current vertex array buffer object binding. To enable and disable the color index array, call `glEnableClientState' -and `glDisableClientState' with the argument `GL_INDEX_ARRAY'. If +and `glDisableClientState' with the argument `GL_INDEX_ARRAY'. If enabled, the color index array is used when `glDrawArrays', `glMultiDrawArrays', `glDrawElements', `glMultiDrawElements', `glDrawRangeElements', or `glArrayElement' is called. @@ -13941,16 +13962,16 @@ C -`glIndex' updates the current (single-valued) color index. It takes one +`glIndex' updates the current (single-valued) color index. It takes one argument, the new value for the current color index. -The current index is stored as a floating-point value. Integer values +The current index is stored as a floating-point value. Integer values are converted directly to floating-point values, with no special -mapping. The initial value is 1. +mapping. The initial value is 1. Index values outside the representable range of the color index buffer -are not clamped. However, before an index is dithered (if enabled) and -written to the frame buffer, it is converted to fixed-point format. Any +are not clamped. However, before an index is dithered (if enabled) and +written to the frame buffer, it is converted to fixed-point format. Any bits in the integer portion of the resulting fixed-point value that do not correspond to bits in the frame buffer are masked out.") @@ -13959,9 +13980,9 @@ not correspond to bits in the frame buffer are masked out.") "Initialize the name stack. The name stack is used during selection mode to allow sets of rendering -commands to be uniquely identified. It consists of an ordered set of -unsigned integers. `glInitNames' causes the name stack to be initialized -to its default empty state. +commands to be uniquely identified. It consists of an ordered set of +unsigned integers. `glInitNames' causes the name stack to be +initialized to its default empty state. The name stack is always empty while the render mode is not `GL_SELECT'. Calls to `glInitNames' while the render mode is not `GL_SELECT' are @@ -13980,18 +14001,18 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Simultaneously specify and enable several interleaved arrays. FORMAT - Specifies the type of array to enable. Symbolic constants `GL_V2F', - `GL_V3F', `GL_C4UB_V2F', `GL_C4UB_V3F', `GL_C3F_V3F', `GL_N3F_V3F', - `GL_C4F_N3F_V3F', `GL_T2F_V3F', `GL_T4F_V4F', `GL_T2F_C4UB_V3F', - `GL_T2F_C3F_V3F', `GL_T2F_N3F_V3F', `GL_T2F_C4F_N3F_V3F', and - `GL_T4F_C4F_N3F_V4F' are accepted. + Specifies the type of array to enable. Symbolic constants + `GL_V2F', `GL_V3F', `GL_C4UB_V2F', `GL_C4UB_V3F', `GL_C3F_V3F', + `GL_N3F_V3F', `GL_C4F_N3F_V3F', `GL_T2F_V3F', `GL_T4F_V4F', + `GL_T2F_C4UB_V3F', `GL_T2F_C3F_V3F', `GL_T2F_N3F_V3F', + `GL_T2F_C4F_N3F_V3F', and `GL_T4F_C4F_N3F_V4F' are accepted. STRIDE Specifies the offset in bytes between each aggregate array element. `glInterleavedArrays' lets you specify and enable individual color, normal, texture and vertex arrays whose elements are part of a larger -aggregate array element. For some implementations, this is more +aggregate array element. For some implementations, this is more efficient than specifying the arrays separately. If STRIDE is 0, the aggregate elements are stored consecutively. @@ -13999,16 +14020,16 @@ Otherwise, STRIDE bytes occur between the beginning of one aggregate array element and the beginning of the next aggregate array element. FORMAT serves as a ``key'' describing the extraction of individual -arrays from the aggregate array. If FORMAT contains a T, then texture -coordinates are extracted from the interleaved array. If C is present, -color values are extracted. If N is present, normal coordinates are -extracted. Vertex coordinates are always extracted. +arrays from the aggregate array. If FORMAT contains a T, then texture +coordinates are extracted from the interleaved array. If C is present, +color values are extracted. If N is present, normal coordinates are +extracted. Vertex coordinates are always extracted. -The digits 2, 3, and 4 denote how many values are extracted. F indicates -that values are extracted as floating-point values. Colors may also be -extracted as 4 unsigned bytes if 4UB follows the C. If a color is -extracted as 4 unsigned bytes, the vertex array element which follows is -located at the first possible floating-point aligned address. +The digits 2, 3, and 4 denote how many values are extracted. F +indicates that values are extracted as floating-point values. Colors +may also be extracted as 4 unsigned bytes if 4UB follows the C. If a +color is extracted as 4 unsigned bytes, the vertex array element which +follows is located at the first possible floating-point aligned address. `GL_INVALID_ENUM' is generated if FORMAT is not an accepted value. @@ -14022,7 +14043,7 @@ BUFFER Specifies a value that may be the name of a buffer object. `glIsBuffer' returns `GL_TRUE' if BUFFER is currently the name of a -buffer object. If BUFFER is zero, or is a non-zero value that is not +buffer object. If BUFFER is zero, or is a non-zero value that is not currently the name of a buffer object, or if an error occurs, `glIsBuffer' returns `GL_FALSE'. @@ -14040,7 +14061,7 @@ CAP Specifies a symbolic constant indicating a GL capability. `glIsEnabled' returns `GL_TRUE' if CAP is an enabled capability and -returns `GL_FALSE' otherwise. Initially all capabilities except +returns `GL_FALSE' otherwise. Initially all capabilities except `GL_DITHER' are disabled; `GL_DITHER' is initially enabled. The following capabilities are accepted for CAP: @@ -14301,7 +14322,7 @@ PROGRAM `glIsProgram' returns `GL_TRUE' if PROGRAM is the name of a program object previously created with `glCreateProgram' and not yet deleted -with `glDeleteProgram'. If PROGRAM is zero or a non-zero value that is +with `glDeleteProgram'. If PROGRAM is zero or a non-zero value that is not the name of a program object, or if an error occurs, `glIsProgram' returns `GL_FALSE'. @@ -14316,7 +14337,7 @@ ID Specifies a value that may be the name of a query object. `glIsQuery' returns `GL_TRUE' if ID is currently the name of a query -object. If ID is zero, or is a non-zero value that is not currently the +object. If ID is zero, or is a non-zero value that is not currently the name of a query object, or if an error occurs, `glIsQuery' returns `GL_FALSE'. @@ -14335,7 +14356,7 @@ SHADER `glIsShader' returns `GL_TRUE' if SHADER is the name of a shader object previously created with `glCreateShader' and not yet deleted with -`glDeleteShader'. If SHADER is zero or a non-zero value that is not the +`glDeleteShader'. If SHADER is zero or a non-zero value that is not the name of a shader object, or if an error occurs, `glIsShader ' returns `GL_FALSE'. @@ -14350,7 +14371,7 @@ TEXTURE Specifies a value that may be the name of a texture. `glIsTexture' returns `GL_TRUE' if TEXTURE is currently the name of a -texture. If TEXTURE is zero, or is a non-zero value that is not +texture. If TEXTURE is zero, or is a non-zero value that is not currently the name of a texture, or if an error occurs, `glIsTexture' returns `GL_FALSE'. @@ -14391,76 +14412,77 @@ PNAME PARAM Specifies the value that PARAM will be set to. -`glLightModel' sets the lighting model parameter. PNAME names a -parameter and PARAMS gives the new value. There are three lighting model -parameters: +`glLightModel' sets the lighting model parameter. PNAME names a +parameter and PARAMS gives the new value. There are three lighting +model parameters: `GL_LIGHT_MODEL_AMBIENT' PARAMS contains four integer or floating-point values that specify - the ambient RGBA intensity of the entire scene. Integer values are + the ambient RGBA intensity of the entire scene. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to -1.0 - . Floating-point values are mapped directly. Neither integer nor - floating-point values are clamped. The initial ambient scene + . Floating-point values are mapped directly. Neither integer nor + floating-point values are clamped. The initial ambient scene intensity is (0.2, 0.2, 0.2, 1.0). `GL_LIGHT_MODEL_COLOR_CONTROL' PARAMS must be either `GL_SEPARATE_SPECULAR_COLOR' or - `GL_SINGLE_COLOR'. `GL_SINGLE_COLOR' specifies that a single color + `GL_SINGLE_COLOR'. `GL_SINGLE_COLOR' specifies that a single color is generated from the lighting computation for a vertex. `GL_SEPARATE_SPECULAR_COLOR' specifies that the specular color computation of lighting be stored separately from the remainder of - the lighting computation. The specular color is summed into the + the lighting computation. The specular color is summed into the generated fragment's color after the application of texture mapping - (if enabled). The initial value is `GL_SINGLE_COLOR'. + (if enabled). The initial value is `GL_SINGLE_COLOR'. `GL_LIGHT_MODEL_LOCAL_VIEWER' PARAMS is a single integer or floating-point value that specifies - how specular reflection angles are computed. If PARAMS is 0 (or + how specular reflection angles are computed. If PARAMS is 0 (or 0.0), specular reflection angles take the view direction to be parallel to and in the direction of the -Z axis, regardless of the - location of the vertex in eye coordinates. Otherwise, specular + location of the vertex in eye coordinates. Otherwise, specular reflections are computed from the origin of the eye coordinate - system. The initial value is 0. + system. The initial value is 0. `GL_LIGHT_MODEL_TWO_SIDE' PARAMS is a single integer or floating-point value that specifies whether one- or two-sided lighting calculations are done for - polygons. It has no effect on the lighting calculations for points, - lines, or bitmaps. If PARAMS is 0 (or 0.0), one-sided lighting is - specified, and only the FRONT material parameters are used in the - lighting equation. Otherwise, two-sided lighting is specified. In - this case, vertices of back-facing polygons are lighted using the - BACK material parameters and have their normals reversed before the - lighting equation is evaluated. Vertices of front-facing polygons - are always lighted using the FRONT material parameters, with no - change to their normals. The initial value is 0. + polygons. It has no effect on the lighting calculations for + points, lines, or bitmaps. If PARAMS is 0 (or 0.0), one-sided + lighting is specified, and only the FRONT material parameters are + used in the lighting equation. Otherwise, two-sided lighting is + specified. In this case, vertices of back-facing polygons are + lighted using the BACK material parameters and have their normals + reversed before the lighting equation is evaluated. Vertices of + front-facing polygons are always lighted using the FRONT material + parameters, with no change to their normals. The initial value is + 0. In RGBA mode, the lighted color of a vertex is the sum of the material emission intensity, the product of the material ambient reflectance and the lighting model full-scene ambient intensity, and the contribution of -each enabled light source. Each light source contributes the sum of -three terms: ambient, diffuse, and specular. The ambient light source +each enabled light source. Each light source contributes the sum of +three terms: ambient, diffuse, and specular. The ambient light source contribution is the product of the material ambient reflectance and the -light's ambient intensity. The diffuse light source contribution is the +light's ambient intensity. The diffuse light source contribution is the product of the material diffuse reflectance, the light's diffuse intensity, and the dot product of the vertex's normal with the -normalized vector from the vertex to the light source. The specular +normalized vector from the vertex to the light source. The specular light source contribution is the product of the material specular reflectance, the light's specular intensity, and the dot product of the normalized vertex-to-eye and vertex-to-light vectors, raised to the -power of the shininess of the material. All three light source +power of the shininess of the material. All three light source contributions are attenuated equally based on the distance from the vertex to the light source and on light source direction, spread -exponent, and spread cutoff angle. All dot products are replaced with 0 +exponent, and spread cutoff angle. All dot products are replaced with 0 if they evaluate to a negative value. The alpha component of the resulting lighted color is set to the alpha @@ -14468,7 +14490,7 @@ value of the material diffuse reflectance. In color index mode, the value of the lighted index of a vertex ranges from the ambient to the specular values passed to `glMaterial' using -`GL_COLOR_INDEXES'. Diffuse and specular coefficients, computed with a +`GL_COLOR_INDEXES'. Diffuse and specular coefficients, computed with a (.30, .59, .11) weighting of the lights' colors, the shininess of the material, and the same reflection and attenuation equations as in the RGBA case, determine how much above ambient the resulting index is. @@ -14511,8 +14533,8 @@ between the execution of `glBegin' and the corresponding execution of "Set light source parameters. LIGHT - Specifies a light. The number of lights depends on the - implementation, but at least eight lights are supported. They are + Specifies a light. The number of lights depends on the + implementation, but at least eight lights are supported. They are identified by symbolic names of the form `GL_LIGHT' I , where i ranges from 0 to the value of `GL_MAX_LIGHTS' - 1. @@ -14526,114 +14548,116 @@ PARAM Specifies the value that parameter PNAME of light source LIGHT will be set to. -`glLight' sets the values of individual light source parameters. LIGHT +`glLight' sets the values of individual light source parameters. LIGHT names the light and is a symbolic name of the form `GL_LIGHT'I , where i -ranges from 0 to the value of `GL_MAX_LIGHTS' - 1. PNAME specifies one -of ten light source parameters, again by symbolic name. PARAMS is either -a single value or a pointer to an array that contains the new values. +ranges from 0 to the value of `GL_MAX_LIGHTS' - 1. PNAME specifies one +of ten light source parameters, again by symbolic name. PARAMS is +either a single value or a pointer to an array that contains the new +values. To enable and disable lighting calculation, call `glEnable' and -`glDisable' with argument `GL_LIGHTING'. Lighting is initially disabled. -When it is enabled, light sources that are enabled contribute to the -lighting calculation. Light source I is enabled and disabled using -`glEnable' and `glDisable' with argument `GL_LIGHT'I . +`glDisable' with argument `GL_LIGHTING'. Lighting is initially +disabled. When it is enabled, light sources that are enabled contribute +to the lighting calculation. Light source I is enabled and disabled +using `glEnable' and `glDisable' with argument `GL_LIGHT'I . The ten light parameters are as follows: `GL_AMBIENT' PARAMS contains four integer or floating-point values that specify - the ambient RGBA intensity of the light. Integer values are mapped + the ambient RGBA intensity of the light. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to -1.0 . - Floating-point values are mapped directly. Neither integer nor - floating-point values are clamped. The initial ambient light + Floating-point values are mapped directly. Neither integer nor + floating-point values are clamped. The initial ambient light intensity is (0, 0, 0, 1). `GL_DIFFUSE' PARAMS contains four integer or floating-point values that specify - the diffuse RGBA intensity of the light. Integer values are mapped + the diffuse RGBA intensity of the light. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to -1.0 . - Floating-point values are mapped directly. Neither integer nor - floating-point values are clamped. The initial value for + Floating-point values are mapped directly. Neither integer nor + floating-point values are clamped. The initial value for `GL_LIGHT0' is (1, 1, 1, 1); for other lights, the initial value is (0, 0, 0, 1). `GL_SPECULAR' PARAMS contains four integer or floating-point values that specify - the specular RGBA intensity of the light. Integer values are mapped - linearly such that the most positive representable value maps to - 1.0, and the most negative representable value maps to -1.0 . - Floating-point values are mapped directly. Neither integer nor - floating-point values are clamped. The initial value for + the specular RGBA intensity of the light. Integer values are + mapped linearly such that the most positive representable value + maps to 1.0, and the most negative representable value maps to -1.0 + . Floating-point values are mapped directly. Neither integer nor + floating-point values are clamped. The initial value for `GL_LIGHT0' is (1, 1, 1, 1); for other lights, the initial value is (0, 0, 0, 1). `GL_POSITION' PARAMS contains four integer or floating-point values that specify - the position of the light in homogeneous object coordinates. Both - integer and floating-point values are mapped directly. Neither + the position of the light in homogeneous object coordinates. Both + integer and floating-point values are mapped directly. Neither integer nor floating-point values are clamped. The position is transformed by the modelview matrix when `glLight' is called (just as if it were a point), and it is stored in eye - coordinates. If the W component of the position is 0, the light is - treated as a directional source. Diffuse and specular lighting + coordinates. If the W component of the position is 0, the light is + treated as a directional source. Diffuse and specular lighting calculations take the light's direction, but not its actual - position, into account, and attenuation is disabled. Otherwise, + position, into account, and attenuation is disabled. Otherwise, diffuse and specular lighting calculations are based on the actual location of the light in eye coordinates, and attenuation is - enabled. The initial position is (0, 0, 1, 0); thus, the initial + enabled. The initial position is (0, 0, 1, 0); thus, the initial light source is directional, parallel to, and in the direction of the -Z axis. `GL_SPOT_DIRECTION' PARAMS contains three integer or floating-point values that specify - the direction of the light in homogeneous object coordinates. Both - integer and floating-point values are mapped directly. Neither + the direction of the light in homogeneous object coordinates. Both + integer and floating-point values are mapped directly. Neither integer nor floating-point values are clamped. The spot direction is transformed by the upper 3x3 of the modelview matrix when `glLight' is called, and it is stored in eye - coordinates. It is significant only when `GL_SPOT_CUTOFF' is not - 180, which it is initially. The initial direction is (0,0-1) . + coordinates. It is significant only when `GL_SPOT_CUTOFF' is not + 180, which it is initially. The initial direction is (0,0-1) . `GL_SPOT_EXPONENT' PARAMS is a single integer or floating-point value that specifies - the intensity distribution of the light. Integer and floating-point - values are mapped directly. Only values in the range [0,128] are - accepted. + the intensity distribution of the light. Integer and + floating-point values are mapped directly. Only values in the + range [0,128] are accepted. Effective light intensity is attenuated by the cosine of the angle between the direction of the light and the direction from the light to the vertex being lighted, raised to the power of the spot - exponent. Thus, higher spot exponents result in a more focused + exponent. Thus, higher spot exponents result in a more focused light source, regardless of the spot cutoff angle (see - `GL_SPOT_CUTOFF', next paragraph). The initial spot exponent is 0, + `GL_SPOT_CUTOFF', next paragraph). The initial spot exponent is 0, resulting in uniform light distribution. `GL_SPOT_CUTOFF' PARAMS is a single integer or floating-point value that specifies - the maximum spread angle of a light source. Integer and - floating-point values are mapped directly. Only values in the range - [0,90] and the special value 180 are accepted. If the angle between - the direction of the light and the direction from the light to the - vertex being lighted is greater than the spot cutoff angle, the - light is completely masked. Otherwise, its intensity is controlled - by the spot exponent and the attenuation factors. The initial spot - cutoff is 180, resulting in uniform light distribution. + the maximum spread angle of a light source. Integer and + floating-point values are mapped directly. Only values in the + range [0,90] and the special value 180 are accepted. If the angle + between the direction of the light and the direction from the light + to the vertex being lighted is greater than the spot cutoff angle, + the light is completely masked. Otherwise, its intensity is + controlled by the spot exponent and the attenuation factors. The + initial spot cutoff is 180, resulting in uniform light + distribution. `GL_CONSTANT_ATTENUATION' `GL_LINEAR_ATTENUATION' `GL_QUADRATIC_ATTENUATION' PARAMS is a single integer or floating-point value that specifies - one of the three light attenuation factors. Integer and - floating-point values are mapped directly. Only nonnegative values - are accepted. If the light is positional, rather than directional, + one of the three light attenuation factors. Integer and + floating-point values are mapped directly. Only nonnegative values + are accepted. If the light is positional, rather than directional, its intensity is attenuated by the reciprocal of the sum of the constant factor, the linear factor times the distance between the light and the vertex being lighted, and the quadratic factor times - the square of the same distance. The initial attenuation factors + the square of the same distance. The initial attenuation factors are (1, 0, 0), resulting in no attenuation. `GL_INVALID_ENUM' is generated if either LIGHT or PNAME is not an @@ -14656,18 +14680,18 @@ execution of `glBegin' and the corresponding execution of `glEnd'.") "Specify the line stipple pattern. FACTOR - Specifies a multiplier for each bit in the line stipple pattern. If + Specifies a multiplier for each bit in the line stipple pattern. If FACTOR is 3, for example, each bit in the pattern is used three - times before the next bit in the pattern is used. FACTOR is clamped - to the range [1, 256] and defaults to 1. + times before the next bit in the pattern is used. FACTOR is + clamped to the range [1, 256] and defaults to 1. PATTERN Specifies a 16-bit integer whose bit pattern determines which - fragments of a line will be drawn when the line is rasterized. Bit + fragments of a line will be drawn when the line is rasterized. Bit zero is used first; the default pattern is all 1's. Line stippling masks out certain fragments produced by rasterization; -those fragments will not be drawn. The masking is achieved by using +those fragments will not be drawn. The masking is achieved by using three parameters: the 16-bit line stipple pattern PATTERN, the repeat count FACTOR, and an integer stipple counter S . @@ -14675,23 +14699,23 @@ Counter S is reset to 0 whenever `glBegin' is called and before each line segment of a `glBegin'(`GL_LINES')/`glEnd' sequence is generated. It is incremented after each fragment of a unit width aliased line segment is generated or after each I fragments of an I width line -segment are generated. The I fragments associated with count S are +segment are generated. The I fragments associated with count S are masked out if PATTERN bit (S/FACTOR,)%16 -is 0, otherwise these fragments are sent to the frame buffer. Bit zero +is 0, otherwise these fragments are sent to the frame buffer. Bit zero of PATTERN is the least significant bit. Antialiased lines are treated as a sequence of 1×WIDTH rectangles for -purposes of stippling. Whether rectangle S is rasterized or not depends +purposes of stippling. Whether rectangle S is rasterized or not depends on the fragment rule described for aliased lines, counting rectangles rather than groups of fragments. To enable and disable line stippling, call `glEnable' and `glDisable' -with argument `GL_LINE_STIPPLE'. When enabled, the line stipple pattern -is applied as described above. When disabled, it is as if the pattern -were all 1's. Initially, line stippling is disabled. +with argument `GL_LINE_STIPPLE'. When enabled, the line stipple pattern +is applied as described above. When disabled, it is as if the pattern +were all 1's. Initially, line stippling is disabled. `GL_INVALID_OPERATION' is generated if `glLineStipple' is executed between the execution of `glBegin' and the corresponding execution of @@ -14702,34 +14726,34 @@ between the execution of `glBegin' and the corresponding execution of "Specify the width of rasterized lines. WIDTH - Specifies the width of rasterized lines. The initial value is 1. + Specifies the width of rasterized lines. The initial value is 1. `glLineWidth' specifies the rasterized width of both aliased and -antialiased lines. Using a line width other than 1 has different -effects, depending on whether line antialiasing is enabled. To enable +antialiased lines. Using a line width other than 1 has different +effects, depending on whether line antialiasing is enabled. To enable and disable line antialiasing, call `glEnable' and `glDisable' with -argument `GL_LINE_SMOOTH'. Line antialiasing is initially disabled. +argument `GL_LINE_SMOOTH'. Line antialiasing is initially disabled. If line antialiasing is disabled, the actual width is determined by -rounding the supplied width to the nearest integer. (If the rounding +rounding the supplied width to the nearest integer. (If the rounding results in the value 0, it is as if the line width were 1.) If ∣ΔX,∣>=∣ΔY,∣ , I pixels are filled in each column that is rasterized, -where I is the rounded value of WIDTH. Otherwise, I pixels are filled in -each row that is rasterized. +where I is the rounded value of WIDTH. Otherwise, I pixels are filled +in each row that is rasterized. If antialiasing is enabled, line rasterization produces a fragment for each pixel square that intersects the region lying within the rectangle having width equal to the current line width, length equal to the actual -length of the line, and centered on the mathematical line segment. The +length of the line, and centered on the mathematical line segment. The coverage value for each fragment is the window coordinate area of the intersection of the rectangular region with the corresponding pixel -square. This value is saved and used in the final rasterization step. +square. This value is saved and used in the final rasterization step. -Not all widths can be supported when line antialiasing is enabled. If an -unsupported width is requested, the nearest supported width is used. +Not all widths can be supported when line antialiasing is enabled. If +an unsupported width is requested, the nearest supported width is used. Only width 1 is guaranteed to be supported; others depend on the -implementation. Likewise, there is a range for aliased line widths as -well. To query the range of supported widths and the size difference +implementation. Likewise, there is a range for aliased line widths as +well. To query the range of supported widths and the size difference between supported widths within the range, call `glGet' with arguments `GL_ALIASED_LINE_WIDTH_RANGE', `GL_SMOOTH_LINE_WIDTH_RANGE', and `GL_SMOOTH_LINE_WIDTH_GRANULARITY'. @@ -14746,28 +14770,28 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") PROGRAM Specifies the handle of the program object to be linked. -`glLinkProgram' links the program object specified by PROGRAM. If any +`glLinkProgram' links the program object specified by PROGRAM. If any shader objects of type `GL_VERTEX_SHADER' are attached to PROGRAM, they will be used to create an executable that will run on the programmable -vertex processor. If any shader objects of type `GL_FRAGMENT_SHADER' are -attached to PROGRAM, they will be used to create an executable that will -run on the programmable fragment processor. +vertex processor. If any shader objects of type `GL_FRAGMENT_SHADER' +are attached to PROGRAM, they will be used to create an executable that +will run on the programmable fragment processor. The status of the link operation will be stored as part of the program -object's state. This value will be set to `GL_TRUE' if the program +object's state. This value will be set to `GL_TRUE' if the program object was linked without errors and is ready for use, and `GL_FALSE' -otherwise. It can be queried by calling `glGetProgram' with arguments +otherwise. It can be queried by calling `glGetProgram' with arguments PROGRAM and `GL_LINK_STATUS'. As a result of a successful link operation, all active user-defined uniform variables belonging to PROGRAM will be initialized to 0, and each of the program object's active uniform variables will be assigned a -location that can be queried by calling `glGetUniformLocation'. Also, +location that can be queried by calling `glGetUniformLocation'. Also, any active user-defined attribute variables that have not been bound to a generic vertex attribute index will be bound to one at this time. Linking of a program object can fail for a number of reasons as -specified in the OPENGL SHADING LANGUAGE SPECIFICATION. The following +specified in the OPENGL SHADING LANGUAGE SPECIFICATION. The following lists some of the conditions that will cause a link error. * The storage limit for uniform variables has been exceeded. @@ -14797,15 +14821,15 @@ lists some of the conditions that will cause a link error. attribute matrices. When a program object has been successfully linked, the program object -can be made part of current state by calling `glUseProgram'. Whether or +can be made part of current state by calling `glUseProgram'. Whether or not the link operation was successful, the program object's information -log will be overwritten. The information log can be retrieved by calling -`glGetProgramInfoLog'. +log will be overwritten. The information log can be retrieved by +calling `glGetProgramInfoLog'. `glLinkProgram' will also install the generated executables as part of the current rendering state if the link operation was successful and the specified program object is already currently in use as a result of a -previous call to `glUseProgram'. If the program object currently in use +previous call to `glUseProgram'. If the program object currently in use is relinked unsuccessfully, its link status will be set to `GL_FALSE' , but the executables and associated state will remain part of the current state until a subsequent call to `glUseProgram' removes it from use. @@ -14815,17 +14839,17 @@ until it has been successfully relinked. If PROGRAM contains shader objects of type `GL_VERTEX_SHADER' but does not contain shader objects of type `GL_FRAGMENT_SHADER', the vertex shader will be linked against the implicit interface for fixed -functionality fragment processing. Similarly, if PROGRAM contains shader -objects of type `GL_FRAGMENT_SHADER' but it does not contain shader -objects of type `GL_VERTEX_SHADER', the fragment shader will be linked -against the implicit interface for fixed functionality vertex +functionality fragment processing. Similarly, if PROGRAM contains +shader objects of type `GL_FRAGMENT_SHADER' but it does not contain +shader objects of type `GL_VERTEX_SHADER', the fragment shader will be +linked against the implicit interface for fixed functionality vertex processing. The program object's information log is updated and the program is -generated at the time of the link operation. After the link operation, +generated at the time of the link operation. After the link operation, applications are free to modify attached shader objects, compile attached shader objects, detach shader objects, delete shader objects, -and attach additional shader objects. None of these operations affects +and attach additional shader objects. None of these operations affects the information log or the program that is part of the program object. `GL_INVALID_VALUE' is generated if PROGRAM is not a value generated by @@ -14843,10 +14867,10 @@ between the execution of `glBegin' and the corresponding execution of BASE Specifies an integer offset that will be added to `glCallLists' - offsets to generate display-list names. The initial value is 0. + offsets to generate display-list names. The initial value is 0. -`glCallLists' specifies an array of offsets. Display-list names are -generated by adding BASE to each offset. Names that reference valid +`glCallLists' specifies an array of offsets. Display-list names are +generated by adding BASE to each offset. Names that reference valid display lists are executed; the others are ignored. `GL_INVALID_OPERATION' is generated if `glListBase' is executed between @@ -14882,12 +14906,12 @@ M elements of a 4×4 column-major matrix. `glLoadMatrix' replaces the current matrix with the one whose elements -are specified by M. The current matrix is the projection matrix, +are specified by M. The current matrix is the projection matrix, modelview matrix, or texture matrix, depending on the current matrix mode (see `glMatrixMode'). -The current matrix, M, defines a transformation of coordinates. For -instance, assume M refers to the modelview matrix. If +The current matrix, M, defines a transformation of coordinates. For +instance, assume M refers to the modelview matrix. If V=(V\u2061[0,],V\u2061[1,]V\u2061[2,]V\u2061[3,]) is the set of object coordinates of a vertex, and M points to an array of 16 single- or double-precision floating-point values M={M\u2061[0,],M\u2061[1,]...M\u2061[15,]} , then the modelview @@ -14913,7 +14937,7 @@ NAME Specifies a name that will replace the top value on the name stack. The name stack is used during selection mode to allow sets of rendering -commands to be uniquely identified. It consists of an ordered set of +commands to be uniquely identified. It consists of an ordered set of unsigned integers and is initially empty. `glLoadName' causes NAME to replace the value on the top of the name @@ -14945,12 +14969,12 @@ M elements of a 4×4 row-major matrix. `glLoadTransposeMatrix' replaces the current matrix with the one whose -elements are specified by M. The current matrix is the projection +elements are specified by M. The current matrix is the projection matrix, modelview matrix, or texture matrix, depending on the current matrix mode (see `glMatrixMode'). -The current matrix, M, defines a transformation of coordinates. For -instance, assume M refers to the modelview matrix. If +The current matrix, M, defines a transformation of coordinates. For +instance, assume M refers to the modelview matrix. If V=(V\u2061[0,],V\u2061[1,]V\u2061[2,]V\u2061[3,]) is the set of object coordinates of a vertex, and M points to an array of 16 single- or double-precision floating-point values M={M\u2061[0,],M\u2061[1,]...M\u2061[15,]} , then the modelview @@ -14976,19 +15000,19 @@ execution of `glEnd'.") "Specify a logical pixel operation for color index rendering. OPCODE - Specifies a symbolic constant that selects a logical operation. The + Specifies a symbolic constant that selects a logical operation. The following symbols are accepted: `GL_CLEAR', `GL_SET', `GL_COPY', `GL_COPY_INVERTED', `GL_NOOP', `GL_INVERT', `GL_AND', `GL_NAND', `GL_OR', `GL_NOR', `GL_XOR', `GL_EQUIV', `GL_AND_REVERSE', - `GL_AND_INVERTED', `GL_OR_REVERSE', and `GL_OR_INVERTED'. The + `GL_AND_INVERTED', `GL_OR_REVERSE', and `GL_OR_INVERTED'. The initial value is `GL_COPY'. `glLogicOp' specifies a logical operation that, when enabled, is applied between the incoming color index or RGBA color and the color index or -RGBA color at the corresponding location in the frame buffer. To enable +RGBA color at the corresponding location in the frame buffer. To enable or disable the logical operation, call `glEnable' and `glDisable' using the symbolic constant `GL_COLOR_LOGIC_OP' for RGBA mode or -`GL_INDEX_LOGIC_OP' for color index mode. The initial value is disabled +`GL_INDEX_LOGIC_OP' for color index mode. The initial value is disabled for both operations. @@ -15044,10 +15068,10 @@ for both operations. `GL_OR_INVERTED' ~s | d -OPCODE is a symbolic constant chosen from the list above. In the +OPCODE is a symbolic constant chosen from the list above. In the explanation of the logical operations, S represents the incoming color -index and D represents the index in the frame buffer. Standard -C-language operators are used. As these bitwise operators suggest, the +index and D represents the index in the frame buffer. Standard +C-language operators are used. As these bitwise operators suggest, the logical operation is applied independently to each bit pair of the source and destination indices or colors. @@ -15095,13 +15119,13 @@ U1 STRIDE Specifies the number of floats or doubles between the beginning of one control point and the beginning of the next one in the data - structure referenced in POINTS. This allows control points to be - embedded in arbitrary data structures. The only constraint is that + structure referenced in POINTS. This allows control points to be + embedded in arbitrary data structures. The only constraint is that the values for a particular control point must occupy contiguous memory locations. ORDER - Specifies the number of control points. Must be positive. + Specifies the number of control points. Must be positive. POINTS Specifies a pointer to the array of control points. @@ -15116,10 +15140,10 @@ or color. All polynomial or rational polynomial splines of any degree (up to the maximum degree supported by the GL implementation) can be described -using evaluators. These include almost all splines used in computer +using evaluators. These include almost all splines used in computer graphics: B-splines, Bezier curves, Hermite splines, and so on. -Evaluators define curves based on Bernstein polynomials. Define P\u2061(U^,) +Evaluators define curves based on Bernstein polynomials. Define P\u2061(U^,) as P\u2061(U^,)=ΣI=0NB_I,^N\u2061(U^,)\u2062R_I @@ -15136,79 +15160,80 @@ Recall that 0^0==1 and ((N), (0),,)==1 `glMap1' is used to define the basis and to specify what kind of values -are produced. Once defined, a map can be enabled and disabled by calling -`glEnable' and `glDisable' with the map name, one of the nine predefined -values for TARGET described below. `glEvalCoord1' evaluates the -one-dimensional maps that are enabled. When `glEvalCoord1' presents a -value U , the Bernstein functions are evaluated using U^ , where +are produced. Once defined, a map can be enabled and disabled by +calling `glEnable' and `glDisable' with the map name, one of the nine +predefined values for TARGET described below. `glEvalCoord1' evaluates +the one-dimensional maps that are enabled. When `glEvalCoord1' presents +a value U , the Bernstein functions are evaluated using U^ , where U^=U-U1,/U2-U1, TARGET is a symbolic constant that indicates what kind of control points are provided in POINTS, and what output is generated when the map is -evaluated. It can assume one of nine predefined values: +evaluated. It can assume one of nine predefined values: `GL_MAP1_VERTEX_3' Each control point is three floating-point values representing X , - Y , and Z . Internal `glVertex3' commands are generated when the + Y , and Z . Internal `glVertex3' commands are generated when the map is evaluated. `GL_MAP1_VERTEX_4' Each control point is four floating-point values representing X , Y - , Z , and W . Internal `glVertex4' commands are generated when the + , Z , and W . Internal `glVertex4' commands are generated when the map is evaluated. `GL_MAP1_INDEX' Each control point is a single floating-point value representing a - color index. Internal `glIndex' commands are generated when the map - is evaluated but the current index is not updated with the value of - these `glIndex' commands. + color index. Internal `glIndex' commands are generated when the + map is evaluated but the current index is not updated with the + value of these `glIndex' commands. `GL_MAP1_COLOR_4' Each control point is four floating-point values representing red, - green, blue, and alpha. Internal `glColor4' commands are generated + green, blue, and alpha. Internal `glColor4' commands are generated when the map is evaluated but the current color is not updated with the value of these `glColor4' commands. `GL_MAP1_NORMAL' Each control point is three floating-point values representing the - X , Y , and Z components of a normal vector. Internal `glNormal' + X , Y , and Z components of a normal vector. Internal `glNormal' commands are generated when the map is evaluated but the current normal is not updated with the value of these `glNormal' commands. `GL_MAP1_TEXTURE_COORD_1' Each control point is a single floating-point value representing - the S texture coordinate. Internal `glTexCoord1' commands are + the S texture coordinate. Internal `glTexCoord1' commands are generated when the map is evaluated but the current texture coordinates are not updated with the value of these `glTexCoord' commands. `GL_MAP1_TEXTURE_COORD_2' Each control point is two floating-point values representing the S - and T texture coordinates. Internal `glTexCoord2' commands are + and T texture coordinates. Internal `glTexCoord2' commands are generated when the map is evaluated but the current texture coordinates are not updated with the value of these `glTexCoord' commands. `GL_MAP1_TEXTURE_COORD_3' Each control point is three floating-point values representing the - S , T , and R texture coordinates. Internal `glTexCoord3' commands + S , T , and R texture coordinates. Internal `glTexCoord3' commands are generated when the map is evaluated but the current texture coordinates are not updated with the value of these `glTexCoord' commands. `GL_MAP1_TEXTURE_COORD_4' Each control point is four floating-point values representing the S - , T , R , and Q texture coordinates. Internal `glTexCoord4' + , T , R , and Q texture coordinates. Internal `glTexCoord4' commands are generated when the map is evaluated but the current texture coordinates are not updated with the value of these `glTexCoord' commands. STRIDE, ORDER, and POINTS define the array addressing for accessing the -control points. POINTS is the location of the first control point, which -occupies one, two, three, or four contiguous memory locations, depending -on which map is being defined. ORDER is the number of control points in -the array. STRIDE specifies how many float or double locations to -advance the internal memory pointer to reach the next control point. +control points. POINTS is the location of the first control point, +which occupies one, two, three, or four contiguous memory locations, +depending on which map is being defined. ORDER is the number of control +points in the array. STRIDE specifies how many float or double +locations to advance the internal memory pointer to reach the next +control point. `GL_INVALID_ENUM' is generated if TARGET is not an accepted value. @@ -15268,40 +15293,40 @@ U1 Specify a linear mapping of U , as presented to `glEvalCoord2', to U^ , one of the two variables that are evaluated by the equations - specified by this command. Initially, U1 is 0 and U2 is 1. + specified by this command. Initially, U1 is 0 and U2 is 1. USTRIDE Specifies the number of floats or doubles between the beginning of control point R_IJ and the beginning of control point R_(I+1,)\u2062J, , where I and J are the U and V control point indices, respectively. This allows control points to be embedded in arbitrary data - structures. The only constraint is that the values for a particular - control point must occupy contiguous memory locations. The initial - value of USTRIDE is 0. + structures. The only constraint is that the values for a + particular control point must occupy contiguous memory locations. + The initial value of USTRIDE is 0. UORDER Specifies the dimension of the control point array in the U axis. - Must be positive. The initial value is 1. + Must be positive. The initial value is 1. V1 V2 Specify a linear mapping of V , as presented to `glEvalCoord2', to V^ , one of the two variables that are evaluated by the equations - specified by this command. Initially, V1 is 0 and V2 is 1. + specified by this command. Initially, V1 is 0 and V2 is 1. VSTRIDE Specifies the number of floats or doubles between the beginning of control point R_IJ and the beginning of control point R_I\u2061(J+1,), , where I and J are the U and V control point indices, respectively. This allows control points to be embedded in arbitrary data - structures. The only constraint is that the values for a particular - control point must occupy contiguous memory locations. The initial - value of VSTRIDE is 0. + structures. The only constraint is that the values for a + particular control point must occupy contiguous memory locations. + The initial value of VSTRIDE is 0. VORDER Specifies the dimension of the control point array in the V axis. - Must be positive. The initial value is 1. + Must be positive. The initial value is 1. POINTS Specifies a pointer to the array of control points. @@ -15316,7 +15341,7 @@ or color. All polynomial or rational polynomial splines of any degree (up to the maximum degree supported by the GL implementation) can be described -using evaluators. These include almost all surfaces used in computer +using evaluators. These include almost all surfaces used in computer graphics, including B-spline surfaces, NURBS surfaces, Bezier surfaces, and so on. @@ -15340,11 +15365,11 @@ B_J,^M\u2061(V^,)=((M), (J),,)\u2062V^,^J\u2062(1-V^,)^M-J,, Recall that 0^0==1 and ((N), (0),,)==1 `glMap2' is used to define the basis and to specify what kind of values -are produced. Once defined, a map can be enabled and disabled by calling -`glEnable' and `glDisable' with the map name, one of the nine predefined -values for TARGET, described below. When `glEvalCoord2' presents values -U and V , the bivariate Bernstein polynomials are evaluated using U^ and -V^ , where +are produced. Once defined, a map can be enabled and disabled by +calling `glEnable' and `glDisable' with the map name, one of the nine +predefined values for TARGET, described below. When `glEvalCoord2' +presents values U and V , the bivariate Bernstein polynomials are +evaluated using U^ and V^ , where U^=U-U1,/U2-U1, @@ -15352,71 +15377,71 @@ V^=V-V1,/V2-V1, TARGET is a symbolic constant that indicates what kind of control points are provided in POINTS, and what output is generated when the map is -evaluated. It can assume one of nine predefined values: +evaluated. It can assume one of nine predefined values: `GL_MAP2_VERTEX_3' Each control point is three floating-point values representing X , - Y , and Z . Internal `glVertex3' commands are generated when the + Y , and Z . Internal `glVertex3' commands are generated when the map is evaluated. `GL_MAP2_VERTEX_4' Each control point is four floating-point values representing X , Y - , Z , and W . Internal `glVertex4' commands are generated when the + , Z , and W . Internal `glVertex4' commands are generated when the map is evaluated. `GL_MAP2_INDEX' Each control point is a single floating-point value representing a - color index. Internal `glIndex' commands are generated when the map - is evaluated but the current index is not updated with the value of - these `glIndex' commands. + color index. Internal `glIndex' commands are generated when the + map is evaluated but the current index is not updated with the + value of these `glIndex' commands. `GL_MAP2_COLOR_4' Each control point is four floating-point values representing red, - green, blue, and alpha. Internal `glColor4' commands are generated + green, blue, and alpha. Internal `glColor4' commands are generated when the map is evaluated but the current color is not updated with the value of these `glColor4' commands. `GL_MAP2_NORMAL' Each control point is three floating-point values representing the - X , Y , and Z components of a normal vector. Internal `glNormal' + X , Y , and Z components of a normal vector. Internal `glNormal' commands are generated when the map is evaluated but the current normal is not updated with the value of these `glNormal' commands. `GL_MAP2_TEXTURE_COORD_1' Each control point is a single floating-point value representing - the S texture coordinate. Internal `glTexCoord1' commands are + the S texture coordinate. Internal `glTexCoord1' commands are generated when the map is evaluated but the current texture coordinates are not updated with the value of these `glTexCoord' commands. `GL_MAP2_TEXTURE_COORD_2' Each control point is two floating-point values representing the S - and T texture coordinates. Internal `glTexCoord2' commands are + and T texture coordinates. Internal `glTexCoord2' commands are generated when the map is evaluated but the current texture coordinates are not updated with the value of these `glTexCoord' commands. `GL_MAP2_TEXTURE_COORD_3' Each control point is three floating-point values representing the - S , T , and R texture coordinates. Internal `glTexCoord3' commands + S , T , and R texture coordinates. Internal `glTexCoord3' commands are generated when the map is evaluated but the current texture coordinates are not updated with the value of these `glTexCoord' commands. `GL_MAP2_TEXTURE_COORD_4' Each control point is four floating-point values representing the S - , T , R , and Q texture coordinates. Internal `glTexCoord4' + , T , R , and Q texture coordinates. Internal `glTexCoord4' commands are generated when the map is evaluated but the current texture coordinates are not updated with the value of these `glTexCoord' commands. USTRIDE, UORDER, VSTRIDE, VORDER, and POINTS define the array addressing -for accessing the control points. POINTS is the location of the first +for accessing the control points. POINTS is the location of the first control point, which occupies one, two, three, or four contiguous memory -locations, depending on which map is being defined. There are -UORDER×VORDER control points in the array. USTRIDE specifies how many +locations, depending on which map is being defined. There are +UORDER×VORDER control points in the array. USTRIDE specifies how many float or double locations are skipped to advance the internal memory -pointer from control point R_I\u2062J, to control point R_(I+1,)\u2062J, . VSTRIDE +pointer from control point R_I\u2062J, to control point R_(I+1,)\u2062J, . VSTRIDE specifies how many float or double locations are skipped to advance the internal memory pointer from control point R_I\u2062J, to control point R_I\u2061(J+1,), . @@ -15448,42 +15473,42 @@ of `GL_ACTIVE_TEXTURE' is not `GL_TEXTURE0'.") "Map a buffer object's data store. TARGET - Specifies the target buffer object being mapped. The symbolic + Specifies the target buffer object being mapped. The symbolic constant must be `GL_ARRAY_BUFFER', `GL_ELEMENT_ARRAY_BUFFER', `GL_PIXEL_PACK_BUFFER', or `GL_PIXEL_UNPACK_BUFFER'. ACCESS Specifies the access policy, indicating whether it will be possible to read from, write to, or both read from and write to the buffer - object's mapped data store. The symbolic constant must be + object's mapped data store. The symbolic constant must be `GL_READ_ONLY', `GL_WRITE_ONLY', or `GL_READ_WRITE'. `glMapBuffer' maps to the client's address space the entire data store -of the buffer object currently bound to TARGET. The data can then be +of the buffer object currently bound to TARGET. The data can then be directly read and/or written relative to the returned pointer, depending -on the specified ACCESS policy. If the GL is unable to map the buffer +on the specified ACCESS policy. If the GL is unable to map the buffer object's data store, `glMapBuffer' generates an error and returns -`NULL'. This may occur for system-specific reasons, such as low virtual +`NULL'. This may occur for system-specific reasons, such as low virtual memory availability. If a mapped data store is accessed in a way inconsistent with the specified ACCESS policy, no error is generated, but performance may be negatively impacted and system errors, including program termination, -may result. Unlike the USAGE parameter of `glBufferData', ACCESS is not +may result. Unlike the USAGE parameter of `glBufferData', ACCESS is not a hint, and does in fact constrain the usage of the mapped data store on -some GL implementations. In order to achieve the highest performance +some GL implementations. In order to achieve the highest performance available, a buffer object's data store should be used in ways consistent with both its specified USAGE and ACCESS parameters. A mapped data store must be unmapped with `glUnmapBuffer' before its -buffer object is used. Otherwise an error will be generated by any GL +buffer object is used. Otherwise an error will be generated by any GL command that attempts to dereference the buffer object's data store. When a data store is unmapped, the pointer to its data store becomes -invalid. `glUnmapBuffer' returns `GL_TRUE' unless the data store +invalid. `glUnmapBuffer' returns `GL_TRUE' unless the data store contents have become corrupt during the time the data store was mapped. This can occur for system-specific reasons that affect the availability -of graphics memory, such as screen mode changes. In such situations, -`GL_FALSE' is returned and the data store contents are undefined. An +of graphics memory, such as screen mode changes. In such situations, +`GL_FALSE' is returned and the data store contents are undefined. An application must detect this rare condition and reinitialize the data store. @@ -15499,7 +15524,7 @@ buffer object is deleted or its data store is recreated with `GL_WRITE_ONLY', or `GL_READ_WRITE'. `GL_OUT_OF_MEMORY' is generated when `glMapBuffer' is executed if the GL -is unable to map the buffer object's data store. This may occur for a +is unable to map the buffer object's data store. This may occur for a variety of system-specific reasons, such as the absence of sufficient remaining virtual memory. @@ -15551,7 +15576,7 @@ execution of `glEnd'.") UN Specifies the number of partitions in the grid range interval [U1, - U2]. Must be positive. + U2]. Must be positive. U1 U2 @@ -15569,26 +15594,26 @@ V1 (`glMapGrid2' only). `glMapGrid' and `glEvalMesh' are used together to efficiently generate -and evaluate a series of evenly-spaced map domain values. `glEvalMesh' +and evaluate a series of evenly-spaced map domain values. `glEvalMesh' steps through the integer domain of a one- or two-dimensional grid, whose range is the domain of the evaluation maps specified by `glMap1' and `glMap2'. `glMapGrid1' and `glMapGrid2' specify the linear grid mappings between the I (or I and J ) integer grid coordinates, to the U (or U and V ) -floating-point evaluation map coordinates. See `glMap1' and `glMap2' for -details of how U and V coordinates are evaluated. +floating-point evaluation map coordinates. See `glMap1' and `glMap2' +for details of how U and V coordinates are evaluated. `glMapGrid1' specifies a single linear mapping such that integer grid coordinate 0 maps exactly to U1, and integer grid coordinate UN maps -exactly to U2. All other integer grid coordinates I are mapped so that +exactly to U2. All other integer grid coordinates I are mapped so that U=I\u2061(U2-U1,)/UN+U1 -`glMapGrid2' specifies two such linear mappings. One maps integer grid +`glMapGrid2' specifies two such linear mappings. One maps integer grid coordinate I=0 exactly to U1, and integer grid coordinate I=UN exactly -to U2. The other maps integer grid coordinate J=0 exactly to V1, and -integer grid coordinate J=VN exactly to V2. Other integer grid +to U2. The other maps integer grid coordinate J=0 exactly to V1, and +integer grid coordinate J=VN exactly to V2. Other integer grid coordinates I and J are mapped such that U=I\u2061(U2-U1,)/UN+U1 @@ -15631,79 +15656,81 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Specify material parameters for the lighting model. FACE - Specifies which face or faces are being updated. Must be one of + Specifies which face or faces are being updated. Must be one of `GL_FRONT', `GL_BACK', or `GL_FRONT_AND_BACK'. PNAME Specifies the single-valued material parameter of the face or faces - that is being updated. Must be `GL_SHININESS'. + that is being updated. Must be `GL_SHININESS'. PARAM Specifies the value that parameter `GL_SHININESS' will be set to. -`glMaterial' assigns values to material parameters. There are two -matched sets of material parameters. One, the FRONT-FACING set, is used +`glMaterial' assigns values to material parameters. There are two +matched sets of material parameters. One, the FRONT-FACING set, is used to shade points, lines, bitmaps, and all polygons (when two-sided lighting is disabled), or just front-facing polygons (when two-sided -lighting is enabled). The other set, BACK-FACING, is used to shade -back-facing polygons only when two-sided lighting is enabled. Refer to +lighting is enabled). The other set, BACK-FACING, is used to shade +back-facing polygons only when two-sided lighting is enabled. Refer to the `glLightModel' reference page for details concerning one- and two-sided lighting calculations. -`glMaterial' takes three arguments. The first, FACE, specifies whether +`glMaterial' takes three arguments. The first, FACE, specifies whether the `GL_FRONT' materials, the `GL_BACK' materials, or both -`GL_FRONT_AND_BACK' materials will be modified. The second, PNAME, +`GL_FRONT_AND_BACK' materials will be modified. The second, PNAME, specifies which of several parameters in one or both sets will be -modified. The third, PARAMS, specifies what value or values will be +modified. The third, PARAMS, specifies what value or values will be assigned to the specified parameter. Material parameters are used in the lighting equation that is optionally -applied to each vertex. The equation is discussed in the `glLightModel' -reference page. The parameters that can be specified using `glMaterial', -and their interpretations by the lighting equation, are as follows: +applied to each vertex. The equation is discussed in the `glLightModel' +reference page. The parameters that can be specified using +`glMaterial', and their interpretations by the lighting equation, are as +follows: `GL_AMBIENT' PARAMS contains four integer or floating-point values that specify - the ambient RGBA reflectance of the material. Integer values are + the ambient RGBA reflectance of the material. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to -1.0 - . Floating-point values are mapped directly. Neither integer nor - floating-point values are clamped. The initial ambient reflectance + . Floating-point values are mapped directly. Neither integer nor + floating-point values are clamped. The initial ambient reflectance for both front- and back-facing materials is (0.2, 0.2, 0.2, 1.0). `GL_DIFFUSE' PARAMS contains four integer or floating-point values that specify - the diffuse RGBA reflectance of the material. Integer values are + the diffuse RGBA reflectance of the material. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to -1.0 - . Floating-point values are mapped directly. Neither integer nor - floating-point values are clamped. The initial diffuse reflectance + . Floating-point values are mapped directly. Neither integer nor + floating-point values are clamped. The initial diffuse reflectance for both front- and back-facing materials is (0.8, 0.8, 0.8, 1.0). `GL_SPECULAR' PARAMS contains four integer or floating-point values that specify - the specular RGBA reflectance of the material. Integer values are + the specular RGBA reflectance of the material. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to -1.0 - . Floating-point values are mapped directly. Neither integer nor - floating-point values are clamped. The initial specular reflectance - for both front- and back-facing materials is (0, 0, 0, 1). + . Floating-point values are mapped directly. Neither integer nor + floating-point values are clamped. The initial specular + reflectance for both front- and back-facing materials is (0, 0, 0, + 1). `GL_EMISSION' PARAMS contains four integer or floating-point values that specify - the RGBA emitted light intensity of the material. Integer values + the RGBA emitted light intensity of the material. Integer values are mapped linearly such that the most positive representable value maps to 1.0, and the most negative representable value maps to -1.0 - . Floating-point values are mapped directly. Neither integer nor - floating-point values are clamped. The initial emission intensity + . Floating-point values are mapped directly. Neither integer nor + floating-point values are clamped. The initial emission intensity for both front- and back-facing materials is (0, 0, 0, 1). `GL_SHININESS' PARAMS is a single integer or floating-point value that specifies - the RGBA specular exponent of the material. Integer and - floating-point values are mapped directly. Only values in the range - [0,128] are accepted. The initial specular exponent for both front- - and back-facing materials is 0. + the RGBA specular exponent of the material. Integer and + floating-point values are mapped directly. Only values in the + range [0,128] are accepted. The initial specular exponent for both + front- and back-facing materials is 0. `GL_AMBIENT_AND_DIFFUSE' Equivalent to calling `glMaterial' twice with the same parameter @@ -15713,8 +15740,8 @@ and their interpretations by the lighting equation, are as follows: PARAMS contains three integer or floating-point values specifying the color indices for ambient, diffuse, and specular lighting. These three values, and `GL_SHININESS', are the only material - values used by the color index mode lighting equation. Refer to the - `glLightModel' reference page for a discussion of color index + values used by the color index mode lighting equation. Refer to + the `glLightModel' reference page for a discussion of color index lighting. `GL_INVALID_ENUM' is generated if either FACE or PNAME is not an @@ -15729,13 +15756,13 @@ accepted value. MODE Specifies which matrix stack is the target for subsequent matrix - operations. Three values are accepted: `GL_MODELVIEW', - `GL_PROJECTION', and `GL_TEXTURE'. The initial value is - `GL_MODELVIEW'. Additionally, if the `ARB_imaging' extension is + operations. Three values are accepted: `GL_MODELVIEW', + `GL_PROJECTION', and `GL_TEXTURE'. The initial value is + `GL_MODELVIEW'. Additionally, if the `ARB_imaging' extension is supported, `GL_COLOR' is also accepted. -`glMatrixMode' sets the current matrix mode. MODE can assume one of four -values: +`glMatrixMode' sets the current matrix mode. MODE can assume one of +four values: `GL_MODELVIEW' Applies subsequent matrix operations to the modelview matrix stack. @@ -15751,7 +15778,7 @@ values: Applies subsequent matrix operations to the color matrix stack. To find out which matrix stack is currently the target of all matrix -operations, call `glGet' with argument `GL_MATRIX_MODE'. The initial +operations, call `glGet' with argument `GL_MATRIX_MODE'. The initial value is `GL_MODELVIEW'. `GL_INVALID_ENUM' is generated if MODE is not an accepted value. @@ -15770,11 +15797,11 @@ between the execution of `glBegin' and the corresponding execution of "Define minmax table. TARGET - The minmax table whose parameters are to be set. Must be + The minmax table whose parameters are to be set. Must be `GL_MINMAX'. INTERNALFORMAT - The format of entries in the minmax table. Must be one of + The format of entries in the minmax table. Must be one of `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', `GL_ALPHA12', `GL_ALPHA16', `GL_LUMINANCE', `GL_LUMINANCE4', `GL_LUMINANCE8', `GL_LUMINANCE12', `GL_LUMINANCE16', `GL_LUMINANCE_ALPHA', `GL_LUMINANCE4_ALPHA4', @@ -15787,29 +15814,29 @@ INTERNALFORMAT SINK If `GL_TRUE', pixels will be consumed by the minmax process and no - drawing or texture loading will take place. If `GL_FALSE', pixels + drawing or texture loading will take place. If `GL_FALSE', pixels will proceed to the final conversion process after minmax. When `GL_MINMAX' is enabled, the RGBA components of incoming pixels are compared to the minimum and maximum values for each component, which are -stored in the two-element minmax table. (The first element stores the +stored in the two-element minmax table. (The first element stores the minima, and the second element stores the maxima.) If a pixel component is greater than the corresponding component in the maximum element, then -the maximum element is updated with the pixel component value. If a +the maximum element is updated with the pixel component value. If a pixel component is less than the corresponding component in the minimum element, then the minimum element is updated with the pixel component -value. (In both cases, if the internal format of the minmax table +value. (In both cases, if the internal format of the minmax table includes luminance, then the R color component of incoming pixels is used for comparison.) The contents of the minmax table may be retrieved -at a later time by calling `glGetMinmax'. The minmax operation is +at a later time by calling `glGetMinmax'. The minmax operation is enabled or disabled by calling `glEnable' or `glDisable', respectively, with an argument of `GL_MINMAX'. `glMinmax' redefines the current minmax table to have entries of the -format specified by INTERNALFORMAT. The maximum element is initialized +format specified by INTERNALFORMAT. The maximum element is initialized with the smallest possible component values, and the minimum element is -initialized with the largest possible component values. The values in -the previous minmax table, if any, are lost. If SINK is `GL_TRUE', then +initialized with the largest possible component values. The values in +the previous minmax table, if any, are lost. If SINK is `GL_TRUE', then pixels are discarded after minmax; no further processing of the pixels takes place, and no drawing, texture loading, or pixel readback will result. @@ -15836,7 +15863,7 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Render multiple sets of primitives from array data. MODE - Specifies what kind of primitives to render. Symbolic constants + Specifies what kind of primitives to render. Symbolic constants `GL_POINTS', `GL_LINE_STRIP', `GL_LINE_LOOP', `GL_LINES', `GL_TRIANGLE_STRIP', `GL_TRIANGLE_FAN', `GL_TRIANGLES', `GL_QUAD_STRIP', `GL_QUADS', and `GL_POLYGON' are accepted. @@ -15851,7 +15878,7 @@ PRIMCOUNT Specifies the size of the first and count `glMultiDrawArrays' specifies multiple sets of geometric primitives with -very few subroutine calls. Instead of calling a GL procedure to pass +very few subroutine calls. Instead of calling a GL procedure to pass each individual vertex, normal, texture coordinate, edge flag, or color, you can prespecify separate arrays of vertices, normals, and colors and use them to construct a sequence of primitives with a single call to @@ -15862,14 +15889,15 @@ PRIMCOUNT separate ranges of elements are specified instead. When `glMultiDrawArrays' is called, it uses COUNT sequential elements from each enabled array to construct a sequence of geometric primitives, -beginning with element FIRST. MODE specifies what kind of primitives are -constructed, and how the array elements construct those primitives. If -`GL_VERTEX_ARRAY' is not enabled, no geometric primitives are generated. +beginning with element FIRST. MODE specifies what kind of primitives +are constructed, and how the array elements construct those primitives. +If `GL_VERTEX_ARRAY' is not enabled, no geometric primitives are +generated. Vertex attributes that are modified by `glMultiDrawArrays' have an -unspecified value after `glMultiDrawArrays' returns. For example, if +unspecified value after `glMultiDrawArrays' returns. For example, if `GL_COLOR_ARRAY' is enabled, the value of the current color is undefined -after `glMultiDrawArrays' executes. Attributes that aren't modified +after `glMultiDrawArrays' executes. Attributes that aren't modified remain well defined. `GL_INVALID_ENUM' is generated if MODE is not an accepted value. @@ -15896,7 +15924,7 @@ between the execution of `glBegin' and the corresponding `glEnd'.") elements. MODE - Specifies what kind of primitives to render. Symbolic constants + Specifies what kind of primitives to render. Symbolic constants `GL_POINTS', `GL_LINE_STRIP', `GL_LINE_LOOP', `GL_LINES', `GL_TRIANGLE_STRIP', `GL_TRIANGLE_FAN', `GL_TRIANGLES', `GL_QUAD_STRIP', `GL_QUADS', and `GL_POLYGON' are accepted. @@ -15905,7 +15933,7 @@ COUNT Points to an array of the elements counts. TYPE - Specifies the type of the values in INDICES. Must be one of + Specifies the type of the values in INDICES. Must be one of `GL_UNSIGNED_BYTE', `GL_UNSIGNED_SHORT', or `GL_UNSIGNED_INT'. INDICES @@ -15915,19 +15943,19 @@ PRIMCOUNT Specifies the size of the COUNT array. `glMultiDrawElements' specifies multiple sets of geometric primitives -with very few subroutine calls. Instead of calling a GL function to pass -each individual vertex, normal, texture coordinate, edge flag, or color, -you can prespecify separate arrays of vertices, normals, and so on, and -use them to construct a sequence of primitives with a single call to -`glMultiDrawElements'. +with very few subroutine calls. Instead of calling a GL function to +pass each individual vertex, normal, texture coordinate, edge flag, or +color, you can prespecify separate arrays of vertices, normals, and so +on, and use them to construct a sequence of primitives with a single +call to `glMultiDrawElements'. `glMultiDrawElements' is identical in operation to `glDrawElements' except that PRIMCOUNT separate lists of elements are specified. Vertex attributes that are modified by `glMultiDrawElements' have an -unspecified value after `glMultiDrawElements' returns. For example, if +unspecified value after `glMultiDrawElements' returns. For example, if `GL_COLOR_ARRAY' is enabled, the value of the current color is undefined -after `glMultiDrawElements' executes. Attributes that aren't modified +after `glMultiDrawElements' executes. Attributes that aren't modified maintain their previous values. `GL_INVALID_ENUM' is generated if MODE is not an accepted value. @@ -16131,7 +16159,7 @@ between the execution of `glBegin' and the corresponding `glEnd'.") TARGET Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must - be at least two. Symbolic constant must be one of `GL_TEXTURE' I , + be at least two. Symbolic constant must be one of `GL_TEXTURE' I , where i ranges from 0 to `GL_MAX_TEXTURE_COORDS' - 1, which is an implementation-dependent value. @@ -16146,14 +16174,14 @@ S Not all parameters are present in all forms of the command. `glMultiTexCoord' specifies texture coordinates in one, two, three, or -four dimensions. `glMultiTexCoord1' sets the current texture coordinates -to (S,001) ; a call to `glMultiTexCoord2' sets them to (S,T01) . -Similarly, `glMultiTexCoord3' specifies the texture coordinates as -(S,TR1) , and `glMultiTexCoord4' defines all four components explicitly -as (S,TRQ) . +four dimensions. `glMultiTexCoord1' sets the current texture +coordinates to (S,001) ; a call to `glMultiTexCoord2' sets them to +(S,T01) . Similarly, `glMultiTexCoord3' specifies the texture +coordinates as (S,TR1) , and `glMultiTexCoord4' defines all four +components explicitly as (S,TRQ) . The current texture coordinates are part of the data that is associated -with each vertex and with the current raster position. Initially, the +with each vertex and with the current raster position. Initially, the values for (S,TRQ) are (0,001) .") (define-gl-procedures @@ -16169,7 +16197,7 @@ M using M, and replaces the current matrix with the product. The current matrix is determined by the current matrix mode (see -`glMatrixMode'). It is either the projection matrix, modelview matrix, +`glMatrixMode'). It is either the projection matrix, modelview matrix, or the texture matrix. `GL_INVALID_OPERATION' is generated if `glMultMatrix' is executed @@ -16195,7 +16223,7 @@ M specified using M, and replaces the current matrix with the product. The current matrix is determined by the current matrix mode (see -`glMatrixMode'). It is either the projection matrix, modelview matrix, +`glMatrixMode'). It is either the projection matrix, modelview matrix, or the texture matrix. `GL_INVALID_OPERATION' is generated if `glMultTransposeMatrix' is @@ -16215,14 +16243,14 @@ MODE `GL_COMPILE_AND_EXECUTE'. Display lists are groups of GL commands that have been stored for -subsequent execution. Display lists are created with `glNewList'. All +subsequent execution. Display lists are created with `glNewList'. All subsequent commands are placed in the display list, in the order issued, until `glEndList' is called. -`glNewList' has two arguments. The first argument, LIST, is a positive -integer that becomes the unique name for the display list. Names can be +`glNewList' has two arguments. The first argument, LIST, is a positive +integer that becomes the unique name for the display list. Names can be created and reserved with `glGenLists' and tested for uniqueness with -`glIsList'. The second argument, MODE, is a symbolic constant that can +`glIsList'. The second argument, MODE, is a symbolic constant that can assume one of two values: `GL_COMPILE' @@ -16232,7 +16260,7 @@ assume one of two values: Commands are executed as they are compiled into the display list. Certain commands are not compiled into the display list but are executed -immediately, regardless of the display-list mode. These commands are +immediately, regardless of the display-list mode. These commands are `glAreTexturesResident', `glColorPointer', `glDeleteLists', `glDeleteTextures', `glDisableClientState', `glEdgeFlagPointer', `glEnableClientState', `glFeedbackBuffer', `glFinish', `glFlush', @@ -16248,7 +16276,7 @@ first argument is `GL_PROXY_TEXTURE_1D', `GL_PROXY_TEXTURE_1D', or `GL_PROXY_TEXTURE_3D', respectively. When the `ARB_imaging' extension is supported, `glHistogram' executes -immediately when its argument is `GL_PROXY_HISTOGRAM'. Similarly, +immediately when its argument is `GL_PROXY_HISTOGRAM'. Similarly, `glColorTable' executes immediately when its first argument is `GL_PROXY_COLOR_TABLE', `GL_PROXY_POST_CONVOLUTION_COLOR_TABLE', or `GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE'. @@ -16259,7 +16287,7 @@ display lists, but executed immediately. When `glEndList' is encountered, the display-list definition is completed by associating the list with the unique name LIST (specified -in the `glNewList' command). If a display list with name LIST already +in the `glNewList' command). If a display list with name LIST already exists, it is replaced only when `glEndList' is called. `GL_INVALID_VALUE' is generated if LIST is 0. @@ -16275,10 +16303,10 @@ executed between the execution of `glBegin' and the corresponding execution of `glEnd'. `GL_OUT_OF_MEMORY' is generated if there is insufficient memory to -compile the display list. If the GL version is 1.1 or greater, no change -is made to the previous contents of the display list, if any, and no -other change is made to the GL state. (It is as if no attempt had been -made to create the new display list.)") +compile the display list. If the GL version is 1.1 or greater, no +change is made to the previous contents of the display list, if any, and +no other change is made to the GL state. (It is as if no attempt had +been made to create the new display list.)") (define-gl-procedures ((glNormalPointer @@ -16290,29 +16318,29 @@ made to create the new display list.)") "Define an array of normals. TYPE - Specifies the data type of each coordinate in the array. Symbolic + Specifies the data type of each coordinate in the array. Symbolic constants `GL_BYTE', `GL_SHORT', `GL_INT', `GL_FLOAT', and - `GL_DOUBLE' are accepted. The initial value is `GL_FLOAT'. + `GL_DOUBLE' are accepted. The initial value is `GL_FLOAT'. STRIDE - Specifies the byte offset between consecutive normals. If STRIDE is - 0, the normals are understood to be tightly packed in the array. + Specifies the byte offset between consecutive normals. If STRIDE + is 0, the normals are understood to be tightly packed in the array. The initial value is 0. POINTER Specifies a pointer to the first coordinate of the first normal in - the array. The initial value is 0. + the array. The initial value is 0. `glNormalPointer' specifies the location and data format of an array of -normals to use when rendering. TYPE specifies the data type of each +normals to use when rendering. TYPE specifies the data type of each normal coordinate, and STRIDE specifies the byte stride from one normal to the next, allowing vertices and attributes to be packed into a single -array or stored in separate arrays. (Single-array storage may be more +array or stored in separate arrays. (Single-array storage may be more efficient on some implementations; see `glInterleavedArrays'.) If a non-zero named buffer object is bound to the `GL_ARRAY_BUFFER' target (see `glBindBuffer') while a normal array is specified, POINTER -is treated as a byte offset into the buffer object's data store. Also, +is treated as a byte offset into the buffer object's data store. Also, the buffer object binding (`GL_ARRAY_BUFFER_BINDING') is saved as normal vertex array client-side state (`GL_NORMAL_ARRAY_BUFFER_BINDING'). @@ -16321,7 +16349,7 @@ client-side state, in addition to the current vertex array buffer object binding. To enable and disable the normal array, call `glEnableClientState' and -`glDisableClientState' with the argument `GL_NORMAL_ARRAY'. If enabled, +`glDisableClientState' with the argument `GL_NORMAL_ARRAY'. If enabled, the normal array is used when `glDrawArrays', `glMultiDrawArrays', `glDrawElements', `glMultiDrawElements', `glDrawRangeElements', or `glArrayElement' is called. @@ -16380,20 +16408,20 @@ NX The current normal is set to the given coordinates whenever `glNormal' -is issued. Byte, short, or integer arguments are converted to +is issued. Byte, short, or integer arguments are converted to floating-point format with a linear mapping that maps the most positive representable integer value to 1.0 and the most negative representable integer value to -1.0 . -Normals specified with `glNormal' need not have unit length. If +Normals specified with `glNormal' need not have unit length. If `GL_NORMALIZE' is enabled, then normals of any length specified with -`glNormal' are normalized after transformation. If `GL_RESCALE_NORMAL' +`glNormal' are normalized after transformation. If `GL_RESCALE_NORMAL' is enabled, normals are scaled by a scaling factor derived from the -modelview matrix. `GL_RESCALE_NORMAL' requires that the originally +modelview matrix. `GL_RESCALE_NORMAL' requires that the originally specified normals were of unit length, and that the modelview matrix -contain only uniform scales for proper results. To enable and disable +contain only uniform scales for proper results. To enable and disable normalization, call `glEnable' and `glDisable' with either -`GL_NORMALIZE' or `GL_RESCALE_NORMAL'. Normalization is initially +`GL_NORMALIZE' or `GL_RESCALE_NORMAL'. Normalization is initially disabled.") (define-gl-procedures @@ -16424,11 +16452,11 @@ NEARVAL FARVAL Specify the distances to the nearer and farther depth clipping - planes. These values are negative if the plane is to be behind the + planes. These values are negative if the plane is to be behind the viewer. `glOrtho' describes a transformation that produces a parallel -projection. The current matrix (see `glMatrixMode') is multiplied by +projection. The current matrix (see `glMatrixMode') is multiplied by this matrix and the result replaces the current matrix, as if `glMultMatrix' were called with the following matrix as its argument: @@ -16441,8 +16469,8 @@ T_Z=-FARVAL+NEARVAL,/FARVAL-NEARVAL,, Typically, the matrix mode is `GL_PROJECTION', and (LEFT,BOTTOM-NEARVAL) and (RIGHT,TOP-NEARVAL) specify the points on the near clipping plane that are mapped to the lower left and upper right corners of the window, -respectively, assuming that the eye is located at (0, 0, 0). -FARVAL -specifies the location of the far clipping plane. Both NEARVAL and +respectively, assuming that the eye is located at (0, 0, 0). -FARVAL +specifies the location of the far clipping plane. Both NEARVAL and FARVAL can be either positive or negative. Use `glPushMatrix' and `glPopMatrix' to save and restore the current @@ -16464,17 +16492,17 @@ TOKEN -Feedback is a GL render mode. The mode is selected by calling -`glRenderMode' with `GL_FEEDBACK'. When the GL is in feedback mode, no -pixels are produced by rasterization. Instead, information about +Feedback is a GL render mode. The mode is selected by calling +`glRenderMode' with `GL_FEEDBACK'. When the GL is in feedback mode, no +pixels are produced by rasterization. Instead, information about primitives that would have been rasterized is fed back to the -application using the GL. See the `glFeedbackBuffer' reference page for +application using the GL. See the `glFeedbackBuffer' reference page for a description of the feedback buffer and the values in it. `glPassThrough' inserts a user-defined marker in the feedback buffer -when it is executed in feedback mode. TOKEN is returned as if it were a +when it is executed in feedback mode. TOKEN is returned as if it were a primitive; it is indicated with its own unique identifying value: -`GL_PASS_THROUGH_TOKEN'. The order of `glPassThrough' commands with +`GL_PASS_THROUGH_TOKEN'. The order of `glPassThrough' commands with respect to the specification of graphics primitives is maintained. `GL_INVALID_OPERATION' is generated if `glPassThrough' is executed @@ -16503,7 +16531,7 @@ between the execution of `glBegin' and the corresponding execution of "Set up pixel transfer maps. MAP - Specifies a symbolic map name. Must be one of the following: + Specifies a symbolic map name. Must be one of the following: `GL_PIXEL_MAP_I_TO_I', `GL_PIXEL_MAP_S_TO_S', `GL_PIXEL_MAP_I_TO_R', `GL_PIXEL_MAP_I_TO_G', `GL_PIXEL_MAP_I_TO_B', `GL_PIXEL_MAP_I_TO_A', @@ -16521,15 +16549,15 @@ VALUES `glCopyTexSubImage1D', `glCopyTexSubImage2D', `glCopyTexSubImage3D', `glDrawPixels', `glReadPixels', `glTexImage1D', `glTexImage2D', `glTexImage3D', `glTexSubImage1D', `glTexSubImage2D', and -`glTexSubImage3D'. Additionally, if the `ARB_imaging' subset is +`glTexSubImage3D'. Additionally, if the `ARB_imaging' subset is supported, the routines `glColorTable', `glColorSubTable', `glConvolutionFilter1D', `glConvolutionFilter2D', `glHistogram', -`glMinmax', and `glSeparableFilter2D'. Use of these maps is described +`glMinmax', and `glSeparableFilter2D'. Use of these maps is described completely in the `glPixelTransfer' reference page, and partly in the -reference pages for the pixel and texture image commands. Only the +reference pages for the pixel and texture image commands. Only the specification of the maps is described in this reference page. -MAP is a symbolic map name, indicating one of ten maps to set. MAPSIZE +MAP is a symbolic map name, indicating one of ten maps to set. MAPSIZE specifies the number of entries in the map, and VALUES is a pointer to an array of MAPSIZE map values. @@ -16571,10 +16599,10 @@ The ten maps are as follows: Maps alpha components to alpha components. The entries in a map can be specified as single-precision floating-point -numbers, unsigned short integers, or unsigned int integers. Maps that +numbers, unsigned short integers, or unsigned int integers. Maps that store color component values (all but `GL_PIXEL_MAP_I_TO_I' and `GL_PIXEL_MAP_S_TO_S') retain their values in floating-point format, -with unspecified mantissa and exponent sizes. Floating-point values +with unspecified mantissa and exponent sizes. Floating-point values specified by `glPixelMapfv' are converted directly to the internal floating-point format of these maps, then clamped to the range [0,1]. Unsigned integer values specified by `glPixelMapusv' and `glPixelMapuiv' @@ -16585,13 +16613,13 @@ Maps that store indices, `GL_PIXEL_MAP_I_TO_I' and `GL_PIXEL_MAP_S_TO_S', retain their values in fixed-point format, with an unspecified number of bits to the right of the binary point. Floating-point values specified by `glPixelMapfv' are converted directly -to the internal fixed-point format of these maps. Unsigned integer +to the internal fixed-point format of these maps. Unsigned integer values specified by `glPixelMapusv' and `glPixelMapuiv' specify integer values, with all 0's to the right of the binary point. The following table shows the initial sizes and values for each of the -maps. Maps that are indexed by either color or stencil indices must have -MAPSIZE = 2^N for some N or the results are undefined. The maximum +maps. Maps that are indexed by either color or stencil indices must +have MAPSIZE = 2^N for some N or the results are undefined. The maximum allowable size for each map depends on the implementation and can be determined by calling `glGet' with argument `GL_MAX_PIXEL_MAP_TABLE'. The single maximum applies to all maps; it is at least 32. @@ -16680,11 +16708,11 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Set pixel storage modes. PNAME - Specifies the symbolic name of the parameter to be set. Six values + Specifies the symbolic name of the parameter to be set. Six values affect the packing of pixel data into memory: `GL_PACK_SWAP_BYTES', `GL_PACK_LSB_FIRST', `GL_PACK_ROW_LENGTH', `GL_PACK_IMAGE_HEIGHT', `GL_PACK_SKIP_PIXELS', `GL_PACK_SKIP_ROWS', `GL_PACK_SKIP_IMAGES', - and `GL_PACK_ALIGNMENT'. Six more affect the unpacking of pixel + and `GL_PACK_ALIGNMENT'. Six more affect the unpacking of pixel data FROM memory: `GL_UNPACK_SWAP_BYTES', `GL_UNPACK_LSB_FIRST', `GL_UNPACK_ROW_LENGTH', `GL_UNPACK_IMAGE_HEIGHT', `GL_UNPACK_SKIP_PIXELS', `GL_UNPACK_SKIP_ROWS', @@ -16698,7 +16726,7 @@ subsequent `glDrawPixels' and `glReadPixels' as well as the unpacking of polygon stipple patterns (see `glPolygonStipple'), bitmaps (see `glBitmap'), texture patterns (see `glTexImage1D', `glTexImage2D', `glTexImage3D', `glTexSubImage1D', `glTexSubImage2D', -`glTexSubImage3D'). Additionally, if the `ARB_imaging' extension is +`glTexSubImage3D'). Additionally, if the `ARB_imaging' extension is supported, pixel storage modes affect convolution filters (see `glConvolutionFilter1D', `glConvolutionFilter2D', and `glSeparableFilter2D', color table (see `glColorTable', and @@ -16706,17 +16734,17 @@ supported, pixel storage modes affect convolution filters (see minmax (See `glMinmax') data. PNAME is a symbolic constant indicating the parameter to be set, and -PARAM is the new value. Six of the twelve storage parameters affect how -pixel data is returned to client memory. They are as follows: +PARAM is the new value. Six of the twelve storage parameters affect how +pixel data is returned to client memory. They are as follows: `GL_PACK_SWAP_BYTES' If true, byte ordering for multibyte color components, depth - components, color indices, or stencil indices is reversed. That is, - if a four-byte component consists of bytes B_0 , B_1 , B_2 , B_3 , - it is stored in memory as B_3 , B_2 , B_1 , B_0 if - `GL_PACK_SWAP_BYTES' is true. `GL_PACK_SWAP_BYTES' has no effect on - the memory order of components within a pixel, only on the order of - bytes within components or indices. For example, the three + components, color indices, or stencil indices is reversed. That + is, if a four-byte component consists of bytes B_0 , B_1 , B_2 , + B_3 , it is stored in memory as B_3 , B_2 , B_1 , B_0 if + `GL_PACK_SWAP_BYTES' is true. `GL_PACK_SWAP_BYTES' has no effect + on the memory order of components within a pixel, only on the order + of bytes within components or indices. For example, the three components of a `GL_RGB' format pixel are always stored with red first, green second, and blue third, regardless of the value of `GL_PACK_SWAP_BYTES'. @@ -16724,12 +16752,12 @@ pixel data is returned to client memory. They are as follows: `GL_PACK_LSB_FIRST' If true, bits are ordered within a byte from least significant to most significant; otherwise, the first bit in each byte is the most - significant one. This parameter is significant for bitmap data + significant one. This parameter is significant for bitmap data only. `GL_PACK_ROW_LENGTH' If greater than 0, `GL_PACK_ROW_LENGTH' defines the number of - pixels in a row. If the first pixel of a row is placed at location + pixels in a row. If the first pixel of a row is placed at location P in memory, then the location of the first pixel of the next row is obtained by skipping @@ -16740,7 +16768,7 @@ pixel data is returned to client memory. They are as follows: (`GL_PACK_ROW_LENGTH' if it is greater than 0, the WIDTH argument to the pixel routine otherwise), A is the value of `GL_PACK_ALIGNMENT', and S is the size, in bytes, of a single - component (if A=THRESHOLD), @@ -17404,16 +17433,16 @@ POINTALPHA={(1), ((POINTSIZE/THRESHOLD,)^2)\u2062(POINTSIZE>=THRESHOLD), (OTHERWISE), If point antialiasing is disabled, the actual size is determined by -rounding the supplied size to the nearest integer. (If the rounding +rounding the supplied size to the nearest integer. (If the rounding results in the value 0, it is as if the point size were 1.) If the rounded size is odd, then the center point (X , Y ) of the pixel fragment that represents the point is computed as (⌊X_W,⌋+.5,⌊Y_W,⌋+.5) -where W subscripts indicate window coordinates. All pixels that lie +where W subscripts indicate window coordinates. All pixels that lie within the square grid of the rounded size centered at (X , Y ) make up -the fragment. If the size is even, the center point is +the fragment. If the size is even, the center point is (⌊X_W+.5,⌋,⌊Y_W+.5,⌋) @@ -17426,19 +17455,19 @@ the point. If antialiasing is enabled, then point rasterization produces a fragment for each pixel square that intersects the region lying within the circle having diameter equal to the current point size and centered at the -point's (X_W,Y_W) . The coverage value for each fragment is the window +point's (X_W,Y_W) . The coverage value for each fragment is the window coordinate area of the intersection of the circular region with the -corresponding pixel square. This value is saved and used in the final -rasterization step. The data associated with each fragment is the data +corresponding pixel square. This value is saved and used in the final +rasterization step. The data associated with each fragment is the data associated with the point being rasterized. -Not all sizes are supported when point antialiasing is enabled. If an -unsupported size is requested, the nearest supported size is used. Only +Not all sizes are supported when point antialiasing is enabled. If an +unsupported size is requested, the nearest supported size is used. Only size 1 is guaranteed to be supported; others depend on the -implementation. To query the range of supported sizes and the size +implementation. To query the range of supported sizes and the size difference between supported sizes within the range, call `glGet' with arguments `GL_SMOOTH_POINT_SIZE_RANGE' and -`GL_SMOOTH_POINT_SIZE_GRANULARITY'. For aliased points, query the +`GL_SMOOTH_POINT_SIZE_GRANULARITY'. For aliased points, query the supported ranges and granularity with `glGet' with arguments `GL_ALIASED_POINT_SIZE_RANGE'. @@ -17456,20 +17485,20 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Select a polygon rasterization mode. FACE - Specifies the polygons that MODE applies to. Must be `GL_FRONT' for - front-facing polygons, `GL_BACK' for back-facing polygons, or + Specifies the polygons that MODE applies to. Must be `GL_FRONT' + for front-facing polygons, `GL_BACK' for back-facing polygons, or `GL_FRONT_AND_BACK' for front- and back-facing polygons. MODE - Specifies how polygons will be rasterized. Accepted values are - `GL_POINT', `GL_LINE', and `GL_FILL'. The initial value is + Specifies how polygons will be rasterized. Accepted values are + `GL_POINT', `GL_LINE', and `GL_FILL'. The initial value is `GL_FILL' for both front- and back-facing polygons. `glPolygonMode' controls the interpretation of polygons for -rasterization. FACE describes which polygons MODE applies to: +rasterization. FACE describes which polygons MODE applies to: front-facing polygons (`GL_FRONT'), back-facing polygons (`GL_BACK'), or -both (`GL_FRONT_AND_BACK'). The polygon mode affects only the final -rasterization of polygons. In particular, a polygon's vertices are lit +both (`GL_FRONT_AND_BACK'). The polygon mode affects only the final +rasterization of polygons. In particular, a polygon's vertices are lit and the polygon is clipped and possibly culled before these modes are applied. @@ -17477,22 +17506,22 @@ Three modes are defined and can be specified in MODE: `GL_POINT' Polygon vertices that are marked as the start of a boundary edge - are drawn as points. Point attributes such as `GL_POINT_SIZE' and - `GL_POINT_SMOOTH' control the rasterization of the points. Polygon + are drawn as points. Point attributes such as `GL_POINT_SIZE' and + `GL_POINT_SMOOTH' control the rasterization of the points. Polygon rasterization attributes other than `GL_POLYGON_MODE' have no effect. `GL_LINE' - Boundary edges of the polygon are drawn as line segments. They are + Boundary edges of the polygon are drawn as line segments. They are treated as connected line segments for line stippling; the line stipple counter and pattern are not reset between segments (see - `glLineStipple'). Line attributes such as `GL_LINE_WIDTH' and - `GL_LINE_SMOOTH' control the rasterization of the lines. Polygon + `glLineStipple'). Line attributes such as `GL_LINE_WIDTH' and + `GL_LINE_SMOOTH' control the rasterization of the lines. Polygon rasterization attributes other than `GL_POLYGON_MODE' have no effect. `GL_FILL' - The interior of the polygon is filled. Polygon attributes such as + The interior of the polygon is filled. Polygon attributes such as `GL_POLYGON_STIPPLE' and `GL_POLYGON_SMOOTH' control the rasterization of the polygon. @@ -17513,19 +17542,19 @@ between the execution of `glBegin' and the corresponding execution of FACTOR Specifies a scale factor that is used to create a variable depth - offset for each polygon. The initial value is 0. + offset for each polygon. The initial value is 0. UNITS Is multiplied by an implementation-specific value to create a - constant depth offset. The initial value is 0. + constant depth offset. The initial value is 0. When `GL_POLYGON_OFFSET_FILL', `GL_POLYGON_OFFSET_LINE', or `GL_POLYGON_OFFSET_POINT' is enabled, each fragment's DEPTH value will be offset after it is interpolated from the DEPTH values of the -appropriate vertices. The value of the offset is FACTOR×DZ+R×UNITS , +appropriate vertices. The value of the offset is FACTOR×DZ+R×UNITS , where DZ is a measurement of the change in depth relative to the screen area of the polygon, and R is the smallest value that is guaranteed to -produce a resolvable offset for a given implementation. The offset is +produce a resolvable offset for a given implementation. The offset is added before the depth test is performed and before the value is written into the depth buffer. @@ -17556,11 +17585,11 @@ Stippling is independent of polygon antialiasing. PATTERN is a pointer to a 32×32 stipple pattern that is stored in memory just like the pixel data supplied to a `glDrawPixels' call with height and WIDTH both equal to 32, a pixel format of `GL_COLOR_INDEX', and data -type of `GL_BITMAP'. That is, the stipple pattern is represented as a +type of `GL_BITMAP'. That is, the stipple pattern is represented as a 32×32 array of 1-bit color indices packed in unsigned bytes. `glPixelStore' parameters like `GL_UNPACK_SWAP_BYTES' and `GL_UNPACK_LSB_FIRST' affect the assembling of the bits into a stipple -pattern. Pixel transfer operations (shift, offset, pixel map) are not +pattern. Pixel transfer operations (shift, offset, pixel map) are not applied to the stipple image, however. If a non-zero named buffer object is bound to the @@ -17569,11 +17598,11 @@ pattern is specified, PATTERN is treated as a byte offset into the buffer object's data store. To enable and disable polygon stippling, call `glEnable' and `glDisable' -with argument `GL_POLYGON_STIPPLE'. Polygon stippling is initially -disabled. If it's enabled, a rasterized polygon fragment with window +with argument `GL_POLYGON_STIPPLE'. Polygon stippling is initially +disabled. If it's enabled, a rasterized polygon fragment with window coordinates X_W and Y_W is sent to the next stage of the GL if and only if the (X_W%32 )th bit in the (Y_W%32 )th row of the stipple pattern is -1 (one). When polygon stippling is disabled, it is as if the stipple +1 (one). When polygon stippling is disabled, it is as if the stipple pattern consists of all 1's. `GL_INVALID_OPERATION' is generated if a non-zero buffer object name is @@ -17606,7 +17635,7 @@ TEXTURES prioritized. PRIORITIES - Specifies an array containing the texture priorities. A priority + Specifies an array containing the texture priorities. A priority given in an element of PRIORITIES applies to the texture named by the corresponding element of TEXTURES. @@ -17614,15 +17643,15 @@ PRIORITIES PRIORITIES to the N textures named in TEXTURES. The GL establishes a ``working set'' of textures that are resident in -texture memory. These textures may be bound to a texture target much -more efficiently than textures that are not resident. By specifying a +texture memory. These textures may be bound to a texture target much +more efficiently than textures that are not resident. By specifying a priority for each texture, `glPrioritizeTextures' allows applications to guide the GL implementation in determining which textures should be resident. The priorities given in PRIORITIES are clamped to the range [0,1] before -they are assigned. 0 indicates the lowest priority; textures with -priority 0 are least likely to be resident. 1 indicates the highest +they are assigned. 0 indicates the lowest priority; textures with +priority 0 are least likely to be resident. 1 indicates the highest priority; textures with priority 1 are most likely to be resident. However, textures are not guaranteed to be resident until they are used. @@ -17630,9 +17659,9 @@ However, textures are not guaranteed to be resident until they are used. or any texture name that does not correspond to an existing texture. `glPrioritizeTextures' does not require that any of the textures named -by TEXTURES be bound to a texture target. `glTexParameter' may also be +by TEXTURES be bound to a texture target. `glTexParameter' may also be used to set a texture's priority, but only if the texture is currently -bound. This is the only way to set the priority of a default texture. +bound. This is the only way to set the priority of a default texture. `GL_INVALID_VALUE' is generated if N is negative. @@ -17646,13 +17675,13 @@ execution of `glEnd'.") "Push and pop the server attribute stack. MASK - Specifies a mask that indicates which attributes to save. Values + Specifies a mask that indicates which attributes to save. Values for MASK are listed below. `glPushAttrib' takes one argument, a mask that indicates which groups of -state variables to save on the attribute stack. Symbolic constants are -used to set bits in the mask. MASK is typically constructed by -specifying the bitwise-or of several of these constants together. The +state variables to save on the attribute stack. Symbolic constants are +used to set bits in the mask. MASK is typically constructed by +specifying the bitwise-or of several of these constants together. The special mask `GL_ALL_ATTRIB_BITS' can be used to save all stackable states. @@ -18127,10 +18156,10 @@ The symbolic mask constants and their associated GL state are as follows Viewport origin and extent `glPopAttrib' restores the values of the state variables saved with the -last `glPushAttrib' command. Those not saved are left unchanged. +last `glPushAttrib' command. Those not saved are left unchanged. It is an error to push attributes onto a full stack or to pop attributes -off an empty stack. In either case, the error flag is set and no other +off an empty stack. In either case, the error flag is set and no other change is made to GL state. Initially, the attribute stack is empty. @@ -18151,14 +18180,14 @@ execution of `glEnd'.") "Push and pop the client attribute stack. MASK - Specifies a mask that indicates which attributes to save. Values + Specifies a mask that indicates which attributes to save. Values for MASK are listed below. `glPushClientAttrib' takes one argument, a mask that indicates which groups of client-state variables to save on the client attribute stack. -Symbolic constants are used to set bits in the mask. MASK is typically +Symbolic constants are used to set bits in the mask. MASK is typically constructed by specifying the bitwise-or of several of these constants -together. The special mask `GL_CLIENT_ALL_ATTRIB_BITS' can be used to +together. The special mask `GL_CLIENT_ALL_ATTRIB_BITS' can be used to save all stackable client state. The symbolic mask constants and their associated GL client state are as @@ -18168,11 +18197,11 @@ follows (the second column lists which attributes are saved): `GL_CLIENT_VERTEX_ARRAY_BIT' Vertex arrays (and enables) `glPopClientAttrib' restores the values of the client-state variables -saved with the last `glPushClientAttrib'. Those not saved are left +saved with the last `glPushClientAttrib'. Those not saved are left unchanged. It is an error to push attributes onto a full client attribute stack or -to pop attributes off an empty stack. In either case, the error flag is +to pop attributes off an empty stack. In either case, the error flag is set, and no other change is made to GL state. Initially, the client attribute stack is empty. @@ -18187,14 +18216,14 @@ the attribute stack is empty.") ((glPushMatrix -> void) (glPopMatrix -> void)) "Push and pop the current matrix stack. -There is a stack of matrices for each of the matrix modes. In -`GL_MODELVIEW' mode, the stack depth is at least 32. In the other modes, -`GL_COLOR', `GL_PROJECTION', and `GL_TEXTURE', the depth is at least 2. -The current matrix in any mode is the matrix on the top of the stack for -that mode. +There is a stack of matrices for each of the matrix modes. In +`GL_MODELVIEW' mode, the stack depth is at least 32. In the other +modes, `GL_COLOR', `GL_PROJECTION', and `GL_TEXTURE', the depth is at +least 2. The current matrix in any mode is the matrix on the top of the +stack for that mode. `glPushMatrix' pushes the current matrix stack down by one, duplicating -the current matrix. That is, after a `glPushMatrix' call, the matrix on +the current matrix. That is, after a `glPushMatrix' call, the matrix on top of the stack is identical to the one below it. `glPopMatrix' pops the current matrix stack, replacing the current @@ -18203,8 +18232,8 @@ matrix with the one below it on the stack. Initially, each of the stacks contains one matrix, an identity matrix. It is an error to push a full matrix stack or to pop a matrix stack that -contains only a single matrix. In either case, the error flag is set and -no other change is made to GL state. +contains only a single matrix. In either case, the error flag is set +and no other change is made to GL state. `GL_STACK_OVERFLOW' is generated if `glPushMatrix' is called while the current matrix stack is full. @@ -18225,18 +18254,18 @@ NAME Specifies a name that will be pushed onto the name stack. The name stack is used during selection mode to allow sets of rendering -commands to be uniquely identified. It consists of an ordered set of +commands to be uniquely identified. It consists of an ordered set of unsigned integers and is initially empty. -`glPushName' causes NAME to be pushed onto the name stack. `glPopName' +`glPushName' causes NAME to be pushed onto the name stack. `glPopName' pops one name off the top of the stack. The maximum name stack depth is implementation-dependent; call `GL_MAX_NAME_STACK_DEPTH' to find out the value for a particular -implementation. It is an error to push a name onto a full stack or to -pop a name off an empty stack. It is also an error to manipulate the +implementation. It is an error to push a name onto a full stack or to +pop a name off an empty stack. It is also an error to manipulate the name stack between the execution of `glBegin' and the corresponding -execution of `glEnd'. In any of these cases, the error flag is set and +execution of `glEnd'. In any of these cases, the error flag is set and no other change is made to GL state. The name stack is always empty while the render mode is not `GL_SELECT'. @@ -18334,34 +18363,35 @@ X Specify the X , Y , Z , and W object coordinates (if present) for the raster position. -The GL maintains a 3D position in window coordinates. This position, +The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write -operations. It is maintained with subpixel accuracy. See `glBitmap', +operations. It is maintained with subpixel accuracy. See `glBitmap', `glDrawPixels', and `glCopyPixels'. The current raster position consists of three window coordinates (X , Y , Z ), a clip coordinate value (W ), an eye coordinate distance, a valid -bit, and associated color data and texture coordinates. The W coordinate -is a clip coordinate, because W is not projected to window coordinates. -`glRasterPos4' specifies object coordinates X , Y , Z , and W -explicitly. `glRasterPos3' specifies object coordinate X , Y , and Z -explicitly, while W is implicitly set to 1. `glRasterPos2' uses the -argument values for X and Y while implicitly setting Z and W to 0 and 1. +bit, and associated color data and texture coordinates. The W +coordinate is a clip coordinate, because W is not projected to window +coordinates. `glRasterPos4' specifies object coordinates X , Y , Z , +and W explicitly. `glRasterPos3' specifies object coordinate X , Y , +and Z explicitly, while W is implicitly set to 1. `glRasterPos2' uses +the argument values for X and Y while implicitly setting Z and W to 0 +and 1. The object coordinates presented by `glRasterPos' are treated just like those of a `glVertex' command: They are transformed by the current -modelview and projection matrices and passed to the clipping stage. If +modelview and projection matrices and passed to the clipping stage. If the vertex is not culled, then it is projected and scaled to window coordinates, which become the new current raster position, and the -`GL_CURRENT_RASTER_POSITION_VALID' flag is set. If the vertex IS culled, -then the valid bit is cleared and the current raster position and -associated color and texture coordinates are undefined. +`GL_CURRENT_RASTER_POSITION_VALID' flag is set. If the vertex IS +culled, then the valid bit is cleared and the current raster position +and associated color and texture coordinates are undefined. The current raster position also includes some associated color data and -texture coordinates. If lighting is enabled, then +texture coordinates. If lighting is enabled, then `GL_CURRENT_RASTER_COLOR' (in RGBA mode) or `GL_CURRENT_RASTER_INDEX' (in color index mode) is set to the color produced by the lighting -calculation (see `glLight', `glLightModel', and `glShadeModel'). If +calculation (see `glLight', `glLightModel', and `glShadeModel'). If lighting is disabled, current color (in RGBA mode, state variable `GL_CURRENT_COLOR') or color index (in color index mode, state variable `GL_CURRENT_INDEX') is used to update the current raster color. @@ -18369,14 +18399,14 @@ lighting is disabled, current color (in RGBA mode, state variable Likewise, `GL_CURRENT_RASTER_TEXTURE_COORDS' is updated as a function of `GL_CURRENT_TEXTURE_COORDS', based on the texture matrix and the texture -generation functions (see `glTexGen'). Finally, the distance from the +generation functions (see `glTexGen'). Finally, the distance from the origin of the eye coordinate system to the vertex as transformed by only the modelview matrix replaces `GL_CURRENT_RASTER_DISTANCE'. Initially, the current raster position is (0, 0, 0, 1), the current raster distance is 0, the valid bit is set, the associated RGBA color is (1, 1, 1, 1), the associated color index is 1, and the associated -texture coordinates are (0, 0, 0, 1). In RGBA mode, +texture coordinates are (0, 0, 0, 1). In RGBA mode, `GL_CURRENT_RASTER_INDEX' is always 1; in color index mode, the current raster RGBA color always maintains its initial value. @@ -18388,7 +18418,7 @@ the execution of `glBegin' and the corresponding execution of `glEnd'.") "Select a color buffer source for pixels. MODE - Specifies a color buffer. Accepted values are `GL_FRONT_LEFT', + Specifies a color buffer. Accepted values are `GL_FRONT_LEFT', `GL_FRONT_RIGHT', `GL_BACK_LEFT', `GL_BACK_RIGHT', `GL_FRONT', `GL_BACK', `GL_LEFT', `GL_RIGHT', and `GL_AUX'I, where I is between 0 and the value of `GL_AUX_BUFFERS' minus 1. @@ -18396,17 +18426,18 @@ MODE `glReadBuffer' specifies a color buffer as the source for subsequent `glReadPixels', `glCopyTexImage1D', `glCopyTexImage2D', `glCopyTexSubImage1D', `glCopyTexSubImage2D', `glCopyTexSubImage3D', and -`glCopyPixels' commands. MODE accepts one of twelve or more predefined -values. (`GL_AUX0' through `GL_AUX3' are always defined.) In a fully +`glCopyPixels' commands. MODE accepts one of twelve or more predefined +values. (`GL_AUX0' through `GL_AUX3' are always defined.) In a fully configured system, `GL_FRONT', `GL_LEFT', and `GL_FRONT_LEFT' all name the front left buffer, `GL_FRONT_RIGHT' and `GL_RIGHT' name the front right buffer, and `GL_BACK_LEFT' and `GL_BACK' name the back left buffer. Nonstereo double-buffered configurations have only a front left and a -back left buffer. Single-buffered configurations have a front left and a -front right buffer if stereo, and only a front left buffer if nonstereo. -It is an error to specify a nonexistent buffer to `glReadBuffer'. +back left buffer. Single-buffered configurations have a front left and +a front right buffer if stereo, and only a front left buffer if +nonstereo. It is an error to specify a nonexistent buffer to +`glReadBuffer'. MODE is initially `GL_FRONT' in single-buffered configurations and `GL_BACK' in double-buffered configurations. @@ -18438,24 +18469,24 @@ X Y Specify the window coordinates of the first pixel that is read from - the frame buffer. This location is the lower left corner of a + the frame buffer. This location is the lower left corner of a rectangular block of pixels. WIDTH HEIGHT - Specify the dimensions of the pixel rectangle. WIDTH and HEIGHT of + Specify the dimensions of the pixel rectangle. WIDTH and HEIGHT of one correspond to a single pixel. FORMAT - Specifies the format of the pixel data. The following symbolic + Specifies the format of the pixel data. The following symbolic values are accepted: `GL_COLOR_INDEX', `GL_STENCIL_INDEX', `GL_DEPTH_COMPONENT', `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', `GL_BGRA', `GL_LUMINANCE', and `GL_LUMINANCE_ALPHA'. TYPE - Specifies the data type of the pixel data. Must be one of + Specifies the data type of the pixel data. Must be one of `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -18470,10 +18501,10 @@ DATA `glReadPixels' returns pixel data from the frame buffer, starting with the pixel whose lower left corner is at location (X, Y), into client -memory starting at location DATA. Several parameters control the +memory starting at location DATA. Several parameters control the processing of the pixel data before it is placed into client memory. These parameters are set with three commands: `glPixelStore', -`glPixelTransfer', and `glPixelMap'. This reference page describes the +`glPixelTransfer', and `glPixelMap'. This reference page describes the effects on `glReadPixels' of most, but not all of the parameters specified by these three commands. @@ -18488,8 +18519,8 @@ matrix transformations, convolutions, histograms, and minimum and maximum pixel value computations. `glReadPixels' returns values from each pixel with lower left corner at -(X+I,Y+J) for 0<=I0.04045) Assume C_S is the sRGB component in the range [0,1]. Use the `GL_PROXY_TEXTURE_2D' or `GL_PROXY_TEXTURE_CUBE_MAP' target to -try out a resolution and format. The implementation will update and +try out a resolution and format. The implementation will update and recompute its best match for the requested storage resolution and -format. To then query this state, call `glGetTexLevelParameter'. If the -texture cannot be accommodated, texture state is set to 0. +format. To then query this state, call `glGetTexLevelParameter'. If +the texture cannot be accommodated, texture state is set to 0. A one-component texture image uses only the red component of the RGBA -color extracted from DATA. A two-component image uses the R and A -values. A three-component image uses the R, G, and B values. A +color extracted from DATA. A two-component image uses the R and A +values. A three-component image uses the R, G, and B values. A four-component image uses all of the RGBA components. Depth textures can be treated as LUMINANCE, INTENSITY or ALPHA textures -during texture filtering and application.\xa0Image-based shadowing\xa0can\xa0be +during texture filtering and application. \xa0Image-based shadowing\xa0can\xa0be \xa0enabled\xa0by\xa0comparing texture r coordinates to depth texture values to -generate a boolean result. See `glTexParameter' for details on texture +generate a boolean result. See `glTexParameter' for details on texture comparison. `GL_INVALID_ENUM' is generated if TARGET is not `GL_TEXTURE_2D', @@ -21379,17 +21415,17 @@ between the execution of `glBegin' and the corresponding execution of "Specify a three-dimensional texture image. TARGET - Specifies the target texture. Must be `GL_TEXTURE_3D' or + Specifies the target texture. Must be `GL_TEXTURE_3D' or `GL_PROXY_TEXTURE_3D'. LEVEL - Specifies the level-of-detail number. Level 0 is the base image - level. Level N is the N^TH mipmap reduction image. + Specifies the level-of-detail number. Level 0 is the base image + level. Level N is the N^TH mipmap reduction image. INTERNALFORMAT - Specifies the number of color components in the texture. Must be 1, - 2, 3, or 4, or one of the following symbolic constants: `GL_ALPHA', - `GL_ALPHA4', `GL_ALPHA8', `GL_ALPHA12', `GL_ALPHA16', + Specifies the number of color components in the texture. Must be + 1, 2, 3, or 4, or one of the following symbolic constants: + `GL_ALPHA', `GL_ALPHA4', `GL_ALPHA8', `GL_ALPHA12', `GL_ALPHA16', `GL_COMPRESSED_ALPHA', `GL_COMPRESSED_LUMINANCE', `GL_COMPRESSED_LUMINANCE_ALPHA', `GL_COMPRESSED_INTENSITY', `GL_COMPRESSED_RGB', `GL_COMPRESSED_RGBA', `GL_LUMINANCE', @@ -21408,36 +21444,36 @@ INTERNALFORMAT WIDTH Specifies the width of the texture image including the border if - any. If the GL version does not support non-power-of-two sizes, - this value must be 2^N+2\u2061(BORDER,) for some integer N . All + any. If the GL version does not support non-power-of-two sizes, + this value must be 2^N+2\u2061(BORDER,) for some integer N . All implementations support 3D texture images that are at least 16 texels wide. HEIGHT Specifies the height of the texture image including the border if - any. If the GL version does not support non-power-of-two sizes, - this value must be 2^M+2\u2061(BORDER,) for some integer M . All + any. If the GL version does not support non-power-of-two sizes, + this value must be 2^M+2\u2061(BORDER,) for some integer M . All implementations support 3D texture images that are at least 16 texels high. DEPTH Specifies the depth of the texture image including the border if - any. If the GL version does not support non-power-of-two sizes, - this value must be 2^K+2\u2061(BORDER,) for some integer K . All + any. If the GL version does not support non-power-of-two sizes, + this value must be 2^K+2\u2061(BORDER,) for some integer K . All implementations support 3D texture images that are at least 16 texels deep. BORDER - Specifies the width of the border. Must be either 0 or 1. + Specifies the width of the border. Must be either 0 or 1. FORMAT - Specifies the format of the pixel data. The following symbolic + Specifies the format of the pixel data. The following symbolic values are accepted: `GL_COLOR_INDEX', `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', `GL_BGRA', `GL_LUMINANCE', and `GL_LUMINANCE_ALPHA'. TYPE - Specifies the data type of the pixel data. The following symbolic + Specifies the data type of the pixel data. The following symbolic values are accepted: `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -21451,31 +21487,31 @@ DATA Specifies a pointer to the image data in memory. Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable three-dimensional texturing, call `glEnable' and `glDisable' with argument `GL_TEXTURE_3D'. -To define texture images, call `glTexImage3D'. The arguments describe +To define texture images, call `glTexImage3D'. The arguments describe the parameters of the texture image, such as height, width, depth, width of the border, level-of-detail number (see `glTexParameter'), and number -of color components provided. The last three arguments describe how the +of color components provided. The last three arguments describe how the image is represented in memory; they are identical to the pixel formats used for `glDrawPixels'. If TARGET is `GL_PROXY_TEXTURE_3D', no data is read from DATA, but all of the texture image state is recalculated, checked for consistency, and -checked against the implementation's capabilities. If the implementation -cannot handle a texture of the requested texture size, it sets all of -the image state to 0, but does not generate an error (see `glGetError'). -To query for an entire mipmap array, use an image array level greater -than or equal to 1. +checked against the implementation's capabilities. If the +implementation cannot handle a texture of the requested texture size, it +sets all of the image state to 0, but does not generate an error (see +`glGetError'). To query for an entire mipmap array, use an image array +level greater than or equal to 1. If TARGET is `GL_TEXTURE_3D', data is read from DATA as a sequence of signed or unsigned bytes, shorts, or longs, or single-precision -floating-point values, depending on TYPE. These values are grouped into +floating-point values, depending on TYPE. These values are grouped into sets of one, two, three, or four values, depending on FORMAT, to form -elements. If TYPE is `GL_BITMAP', the data is considered as a string of -unsigned bytes (and FORMAT must be `GL_COLOR_INDEX'). Each data byte is +elements. If TYPE is `GL_BITMAP', the data is considered as a string of +unsigned bytes (and FORMAT must be `GL_COLOR_INDEX'). Each data byte is treated as eight 1-bit elements, with bit ordering determined by `GL_UNPACK_LSB_FIRST' (see `glPixelStore'). @@ -21485,93 +21521,93 @@ image is specified, DATA is treated as a byte offset into the buffer object's data store. The first element corresponds to the lower left corner of the texture -image. Subsequent elements progress left-to-right through the remaining +image. Subsequent elements progress left-to-right through the remaining texels in the lowest row of the texture image, and then in successively -higher rows of the texture image. The final element corresponds to the +higher rows of the texture image. The final element corresponds to the upper right corner of the texture image. -FORMAT determines the composition of each element in DATA. It can assume -one of these symbolic values: +FORMAT determines the composition of each element in DATA. It can +assume one of these symbolic values: `GL_COLOR_INDEX' - Each element is a single value, a color index. The GL converts it + Each element is a single value, a color index. The GL converts it to fixed point (with an unspecified number of zero bits to the right of the binary point), shifted left or right depending on the value and sign of `GL_INDEX_SHIFT', and added to `GL_INDEX_OFFSET' - (see `glPixelTransfer'). The resulting index is converted to a set + (see `glPixelTransfer'). The resulting index is converted to a set of color components using the `GL_PIXEL_MAP_I_TO_R', `GL_PIXEL_MAP_I_TO_G', `GL_PIXEL_MAP_I_TO_B', and `GL_PIXEL_MAP_I_TO_A' tables, and clamped to the range [0,1]. `GL_RED' - Each element is a single red component. The GL converts it to + Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 - for green and blue, and 1 for alpha. Each component is then + for green and blue, and 1 for alpha. Each component is then multiplied by the signed scale factor `GL_c_SCALE', added to the signed bias `GL_c_BIAS', and clamped to the range [0,1] (see `glPixelTransfer'). `GL_GREEN' - Each element is a single green component. The GL converts it to + Each element is a single green component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 - for red and blue, and 1 for alpha. Each component is then + for red and blue, and 1 for alpha. Each component is then multiplied by the signed scale factor `GL_c_SCALE', added to the signed bias `GL_c_BIAS', and clamped to the range [0,1] (see `glPixelTransfer'). `GL_BLUE' - Each element is a single blue component. The GL converts it to + Each element is a single blue component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 - for red and green, and 1 for alpha. Each component is then + for red and green, and 1 for alpha. Each component is then multiplied by the signed scale factor `GL_c_SCALE', added to the signed bias `GL_c_BIAS', and clamped to the range [0,1] (see `glPixelTransfer'). `GL_ALPHA' - Each element is a single alpha component. The GL converts it to + Each element is a single alpha component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 - for red, green, and blue. Each component is then multiplied by the + for red, green, and blue. Each component is then multiplied by the signed scale factor `GL_c_SCALE', added to the signed bias `GL_c_BIAS', and clamped to the range [0,1] (see `glPixelTransfer'). `GL_INTENSITY' - Each element is a single intensity value. The GL converts it to + Each element is a single intensity value. The GL converts it to floating point, then assembles it into an RGBA element by replicating the intensity value three times for red, green, blue, - and alpha. Each component is then multiplied by the signed scale + and alpha. Each component is then multiplied by the signed scale factor `GL_c_SCALE', added to the signed bias `GL_c_BIAS', and clamped to the range [0,1] (see `glPixelTransfer'). `GL_RGB' `GL_BGR' - Each element is an RGB triple. The GL converts it to floating point - and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor - `GL_c_SCALE', added to the signed bias `GL_c_BIAS', and clamped to - the range [0,1] (see `glPixelTransfer'). + Each element is an RGB triple. The GL converts it to floating + point and assembles it into an RGBA element by attaching 1 for + alpha. Each component is then multiplied by the signed scale + factor `GL_c_SCALE', added to the signed bias `GL_c_BIAS', and + clamped to the range [0,1] (see `glPixelTransfer'). `GL_RGBA' `GL_BGRA' - Each element contains all four components. Each component is + Each element contains all four components. Each component is multiplied by the signed scale factor `GL_c_SCALE', added to the signed bias `GL_c_BIAS', and clamped to the range [0,1] (see `glPixelTransfer'). `GL_LUMINANCE' - Each element is a single luminance value. The GL converts it to + Each element is a single luminance value. The GL converts it to floating point, then assembles it into an RGBA element by replicating the luminance value three times for red, green, and - blue and attaching 1 for alpha. Each component is then multiplied + blue and attaching 1 for alpha. Each component is then multiplied by the signed scale factor `GL_c_SCALE', added to the signed bias `GL_c_BIAS', and clamped to the range [0,1] (see `glPixelTransfer'). `GL_LUMINANCE_ALPHA' - Each element is a luminance/alpha pair. The GL converts it to + Each element is a luminance/alpha pair. The GL converts it to floating point, then assembles it into an RGBA element by replicating the luminance value three times for red, green, and - blue. Each component is then multiplied by the signed scale factor + blue. Each component is then multiplied by the signed scale factor `GL_c_SCALE', added to the signed bias `GL_c_BIAS', and clamped to the range [0,1] (see `glPixelTransfer'). @@ -21580,10 +21616,10 @@ acceptable values for the TYPE parameter. If an application wants to store the texture at a certain resolution or in a certain format, it can request the resolution and format with -INTERNALFORMAT. The GL will choose an internal representation that +INTERNALFORMAT. The GL will choose an internal representation that closely approximates that requested by INTERNALFORMAT, but it may not -match exactly. (The representations specified by `GL_LUMINANCE', -`GL_LUMINANCE_ALPHA', `GL_RGB', and `GL_RGBA' must match exactly. The +match exactly. (The representations specified by `GL_LUMINANCE', +`GL_LUMINANCE_ALPHA', `GL_RGB', and `GL_RGBA' must match exactly. The numeric values 1, 2, 3, and 4 may also be used to specify the above representations.) @@ -21592,7 +21628,7 @@ formats, `GL_COMPRESSED_ALPHA', `GL_COMPRESSED_INTENSITY', `GL_COMPRESSED_LUMINANCE', `GL_COMPRESSED_LUMINANCE_ALPHA', `GL_COMPRESSED_RGB', or `GL_COMPRESSED_RGBA', the GL will replace the internal format with the symbolic constant for a specific internal -format and compress the texture before storage. If no corresponding +format and compress the texture before storage. If no corresponding internal format is available, or the GL can not compress that image for any reason, the internal format is instead replaced with a corresponding base internal format. @@ -21601,7 +21637,7 @@ If the INTERNALFORMAT parameter is `GL_SRGB', `GL_SRGB8', `GL_SRGB_ALPHA', `GL_SRGB8_ALPHA8', `GL_SLUMINANCE', `GL_SLUMINANCE8', `GL_SLUMINANCE_ALPHA', or `GL_SLUMINANCE8_ALPHA8', the texture is treated as if the red, green, blue, or luminance components are encoded -in the sRGB color space. Any alpha component is left unchanged. The +in the sRGB color space. Any alpha component is left unchanged. The conversion from the sRGB encoded component C_S to a linear component C_L is: @@ -21612,20 +21648,20 @@ Assume C_S is the sRGB component in the range [0,1]. Use the `GL_PROXY_TEXTURE_3D' target to try out a resolution and format. The implementation will update and recompute its best match for the -requested storage resolution and format. To then query this state, call -`glGetTexLevelParameter'. If the texture cannot be accommodated, texture -state is set to 0. +requested storage resolution and format. To then query this state, call +`glGetTexLevelParameter'. If the texture cannot be accommodated, +texture state is set to 0. A one-component texture image uses only the red component of the RGBA -color extracted from DATA. A two-component image uses the R and A -values. A three-component image uses the R, G, and B values. A +color extracted from DATA. A two-component image uses the R and A +values. A three-component image uses the R, G, and B values. A four-component image uses all of the RGBA components. `GL_INVALID_ENUM' is generated if TARGET is not `GL_TEXTURE_3D' or `GL_PROXY_TEXTURE_3D'. `GL_INVALID_ENUM' is generated if FORMAT is not an accepted format -constant. Format constants other than `GL_STENCIL_INDEX' and +constant. Format constants other than `GL_STENCIL_INDEX' and `GL_DEPTH_COMPONENT' are accepted. `GL_INVALID_ENUM' is generated if TYPE is not a type constant. @@ -21729,52 +21765,52 @@ PARAM Specifies the value of PNAME. Texture mapping is a technique that applies an image onto an object's -surface as if the image were a decal or cellophane shrink-wrap. The -image is created in texture space, with an (S , T ) coordinate system. A +surface as if the image were a decal or cellophane shrink-wrap. The +image is created in texture space, with an (S , T ) coordinate system. A texture is a one- or two-dimensional image and a set of parameters that determine how samples are derived from the image. `glTexParameter' assigns the value or values in PARAMS to the texture -parameter specified as PNAME. TARGET defines the target texture, either -`GL_TEXTURE_1D', `GL_TEXTURE_2D', or `GL_TEXTURE_3D'. The following +parameter specified as PNAME. TARGET defines the target texture, either +`GL_TEXTURE_1D', `GL_TEXTURE_2D', or `GL_TEXTURE_3D'. The following symbols are accepted in PNAME: `GL_TEXTURE_MIN_FILTER' The texture minifying function is used whenever the pixel being - textured maps to an area greater than one texture element. There - are six defined minifying functions. Two of them use the nearest + textured maps to an area greater than one texture element. There + are six defined minifying functions. Two of them use the nearest one or nearest four texture elements to compute the texture value. The other four use mipmaps. A mipmap is an ordered set of arrays representing the same image at - progressively lower resolutions. If the texture has dimensions - 2^N×2^M , there are MAX\u2061(N,M)+1 mipmaps. The first mipmap is the - original texture, with dimensions 2^N×2^M . Each subsequent mipmap + progressively lower resolutions. If the texture has dimensions + 2^N×2^M , there are MAX\u2061(N,M)+1 mipmaps. The first mipmap is the + original texture, with dimensions 2^N×2^M . Each subsequent mipmap has dimensions 2^K-1,×2^L-1, , where 2^K×2^L are the dimensions of - the previous mipmap, until either K=0 or L=0 . At that point, + the previous mipmap, until either K=0 or L=0 . At that point, subsequent mipmaps have dimension 1×2^L-1, or 2^K-1,×1 until the - final mipmap, which has dimension 1×1 . To define the mipmaps, call - `glTexImage1D', `glTexImage2D', `glTexImage3D', `glCopyTexImage1D', - or `glCopyTexImage2D' with the LEVEL argument indicating the order - of the mipmaps. Level 0 is the original texture; level MAX\u2061(N,M) is - the final 1×1 mipmap. + final mipmap, which has dimension 1×1 . To define the mipmaps, + call `glTexImage1D', `glTexImage2D', `glTexImage3D', + `glCopyTexImage1D', or `glCopyTexImage2D' with the LEVEL argument + indicating the order of the mipmaps. Level 0 is the original + texture; level MAX\u2061(N,M) is the final 1×1 mipmap. PARAMS supplies a function for minifying the texture as one of the following: As more texture elements are sampled in the minification process, - fewer aliasing artifacts will be apparent. While the `GL_NEAREST' + fewer aliasing artifacts will be apparent. While the `GL_NEAREST' and `GL_LINEAR' minification functions can be faster than the other four, they sample only one or four texture elements to determine the texture value of the pixel being rendered and can produce moire - patterns or ragged transitions. The initial value of + patterns or ragged transitions. The initial value of `GL_TEXTURE_MIN_FILTER' is `GL_NEAREST_MIPMAP_LINEAR'. `GL_TEXTURE_MAG_FILTER' The texture magnification function is used when the pixel being textured maps to an area less than or equal to one texture element. It sets the texture magnification function to either `GL_NEAREST' - or `GL_LINEAR' (see below). `GL_NEAREST' is generally faster than + or `GL_LINEAR' (see below). `GL_NEAREST' is generally faster than `GL_LINEAR', but it can produce textured images with sharper edges because the transition between texture elements is not as smooth. The initial value of `GL_TEXTURE_MAG_FILTER' is `GL_LINEAR'. @@ -21785,7 +21821,7 @@ symbols are accepted in PNAME: `GL_LINEAR' Returns the weighted average of the four texture elements that are - closest to the center of the pixel being textured. These can + closest to the center of the pixel being textured. These can include border texture elements, depending on the values of `GL_TEXTURE_WRAP_S' and `GL_TEXTURE_WRAP_T', and on the exact mapping. @@ -21806,14 +21842,14 @@ symbols are accepted in PNAME: Chooses the two mipmaps that most closely match the size of the pixel being textured and uses the `GL_NEAREST' criterion (the texture element nearest to the center of the pixel) to produce a - texture value from each mipmap. The final texture value is a + texture value from each mipmap. The final texture value is a weighted average of those two values. `GL_LINEAR_MIPMAP_LINEAR' Chooses the two mipmaps that most closely match the size of the pixel being textured and uses the `GL_LINEAR' criterion (a weighted average of the four texture elements that are closest to the center - of the pixel) to produce a texture value from each mipmap. The + of the pixel) to produce a texture value from each mipmap. The final texture value is a weighted average of those two values. `GL_NEAREST' @@ -21822,7 +21858,7 @@ symbols are accepted in PNAME: `GL_LINEAR' Returns the weighted average of the four texture elements that are - closest to the center of the pixel being textured. These can + closest to the center of the pixel being textured. These can include border texture elements, depending on the values of `GL_TEXTURE_WRAP_S' and `GL_TEXTURE_WRAP_T', and on the exact mapping. @@ -21830,84 +21866,84 @@ symbols are accepted in PNAME: `GL_TEXTURE_MIN_LOD' - Sets the minimum level-of-detail parameter. This floating-point + Sets the minimum level-of-detail parameter. This floating-point value limits the selection of highest resolution mipmap (lowest - mipmap level). The initial value is -1000. + mipmap level). The initial value is -1000. `GL_TEXTURE_MAX_LOD' - Sets the maximum level-of-detail parameter. This floating-point + Sets the maximum level-of-detail parameter. This floating-point value limits the selection of the lowest resolution mipmap (highest - mipmap level). The initial value is 1000. + mipmap level). The initial value is 1000. `GL_TEXTURE_BASE_LEVEL' - Specifies the index of the lowest defined mipmap level. This is an - integer value. The initial value is 0. + Specifies the index of the lowest defined mipmap level. This is an + integer value. The initial value is 0. `GL_TEXTURE_MAX_LEVEL' - Sets the index of the highest defined mipmap level. This is an - integer value. The initial value is 1000. + Sets the index of the highest defined mipmap level. This is an + integer value. The initial value is 1000. `GL_TEXTURE_WRAP_S' Sets the wrap parameter for texture coordinate S to either `GL_CLAMP', `GL_CLAMP_TO_BORDER', `GL_CLAMP_TO_EDGE', - `GL_MIRRORED_REPEAT', or `GL_REPEAT'. `GL_CLAMP' causes S + `GL_MIRRORED_REPEAT', or `GL_REPEAT'. `GL_CLAMP' causes S coordinates to be clamped to the range [0,1] and is useful for preventing wrapping artifacts when mapping a single image onto an - object. `GL_CLAMP_TO_BORDER' causes the S coordinate to be clamped + object. `GL_CLAMP_TO_BORDER' causes the S coordinate to be clamped to the range [-1/2N,,1+1/2N,] , where N is the size of the texture in the direction of clamping.`GL_CLAMP_TO_EDGE' causes S coordinates to be clamped to the range [1/2N,,1-1/2N,] , where N is - the size of the texture in the direction of clamping. `GL_REPEAT' + the size of the texture in the direction of clamping. `GL_REPEAT' causes the integer part of the S coordinate to be ignored; the GL uses only the fractional part, thereby creating a repeating - pattern. `GL_MIRRORED_REPEAT' causes the S coordinate to be set to + pattern. `GL_MIRRORED_REPEAT' causes the S coordinate to be set to the fractional part of the texture coordinate if the integer part of S is even; if the integer part of S is odd, then the S texture coordinate is set to 1-FRAC\u2061(S,) , where FRAC\u2061(S,) represents the - fractional part of S . Border texture elements are accessed only if - wrapping is set to `GL_CLAMP' or `GL_CLAMP_TO_BORDER'. Initially, - `GL_TEXTURE_WRAP_S' is set to `GL_REPEAT'. + fractional part of S . Border texture elements are accessed only + if wrapping is set to `GL_CLAMP' or `GL_CLAMP_TO_BORDER'. + Initially, `GL_TEXTURE_WRAP_S' is set to `GL_REPEAT'. `GL_TEXTURE_WRAP_T' Sets the wrap parameter for texture coordinate T to either `GL_CLAMP', `GL_CLAMP_TO_BORDER', `GL_CLAMP_TO_EDGE', - `GL_MIRRORED_REPEAT', or `GL_REPEAT'. See the discussion under - `GL_TEXTURE_WRAP_S'. Initially, `GL_TEXTURE_WRAP_T' is set to + `GL_MIRRORED_REPEAT', or `GL_REPEAT'. See the discussion under + `GL_TEXTURE_WRAP_S'. Initially, `GL_TEXTURE_WRAP_T' is set to `GL_REPEAT'. `GL_TEXTURE_WRAP_R' Sets the wrap parameter for texture coordinate R to either `GL_CLAMP', `GL_CLAMP_TO_BORDER', `GL_CLAMP_TO_EDGE', - `GL_MIRRORED_REPEAT', or `GL_REPEAT'. See the discussion under - `GL_TEXTURE_WRAP_S'. Initially, `GL_TEXTURE_WRAP_R' is set to + `GL_MIRRORED_REPEAT', or `GL_REPEAT'. See the discussion under + `GL_TEXTURE_WRAP_S'. Initially, `GL_TEXTURE_WRAP_R' is set to `GL_REPEAT'. `GL_TEXTURE_BORDER_COLOR' - Sets a border color. PARAMS contains four values that comprise the - RGBA color of the texture border. Integer color components are + Sets a border color. PARAMS contains four values that comprise the + RGBA color of the texture border. Integer color components are interpreted linearly such that the most positive integer maps to - 1.0, and the most negative integer maps to -1.0. The values are - clamped to the range [0,1] when they are specified. Initially, the + 1.0, and the most negative integer maps to -1.0. The values are + clamped to the range [0,1] when they are specified. Initially, the border color is (0, 0, 0, 0). `GL_TEXTURE_PRIORITY' Specifies the texture residence priority of the currently bound - texture. Permissible values are in the range [0,1] . See + texture. Permissible values are in the range [0,1] . See `glPrioritizeTextures' and `glBindTexture' for more information. `GL_TEXTURE_COMPARE_MODE' Specifies the texture comparison mode for currently bound depth - textures. That is, a texture whose internal format is + textures. That is, a texture whose internal format is `GL_DEPTH_COMPONENT_*'; see `glTexImage2D') Permissible values are: `GL_TEXTURE_COMPARE_FUNC' @@ -21915,8 +21951,8 @@ symbols are accepted in PNAME: `GL_TEXTURE_COMPARE_MODE' is set to `GL_COMPARE_R_TO_TEXTURE'. Permissible values are: where R is the current interpolated texture coordinate, and D_T is the depth texture value sampled from the - currently bound depth texture. RESULT is assigned to the either the - luminance, intensity, or alpha (as specified by + currently bound depth texture. RESULT is assigned to the either + the luminance, intensity, or alpha (as specified by `GL_DEPTH_TEXTURE_MODE'.) `GL_DEPTH_TEXTURE_MODE' @@ -21928,13 +21964,13 @@ symbols are accepted in PNAME: `GL_GENERATE_MIPMAP' Specifies a boolean value that indicates if all levels of a mipmap array should be automatically updated when any modification to the - base level mipmap is done. The initial value is `GL_FALSE'. + base level mipmap is done. The initial value is `GL_FALSE'. `GL_COMPARE_R_TO_TEXTURE' Specifies that the interpolated and clamped R texture coordinate should be compared to the value in the currently bound depth - texture. See the discussion of `GL_TEXTURE_COMPARE_FUNC' for - details of how the comparison is evaluated. The result of the + texture. See the discussion of `GL_TEXTURE_COMPARE_FUNC' for + details of how the comparison is evaluated. The result of the comparison is assigned to luminance, intensity, or alpha (as specified by `GL_DEPTH_TEXTURE_MODE'). @@ -21994,11 +22030,11 @@ between the execution of `glBegin' and the corresponding execution of "Specify a one-dimensional texture subimage. TARGET - Specifies the target texture. Must be `GL_TEXTURE_1D'. + Specifies the target texture. Must be `GL_TEXTURE_1D'. LEVEL - Specifies the level-of-detail number. Level 0 is the base image - level. Level N is the Nth mipmap reduction image. + Specifies the level-of-detail number. Level 0 is the base image + level. Level N is the Nth mipmap reduction image. XOFFSET Specifies a texel offset in the x direction within the texture @@ -22008,13 +22044,13 @@ WIDTH Specifies the width of the texture subimage. FORMAT - Specifies the format of the pixel data. The following symbolic + Specifies the format of the pixel data. The following symbolic values are accepted: `GL_COLOR_INDEX', `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', `GL_BGRA', `GL_LUMINANCE', and `GL_LUMINANCE_ALPHA'. TYPE - Specifies the data type of the pixel data. The following symbolic + Specifies the data type of the pixel data. The following symbolic values are accepted: `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -22028,14 +22064,14 @@ DATA Specifies a pointer to the image data in memory. Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable or disable -one-dimensional texturing, call `glEnable' and `glDisable' with argument -`GL_TEXTURE_1D'. +graphical primitive for which texturing is enabled. To enable or +disable one-dimensional texturing, call `glEnable' and `glDisable' with +argument `GL_TEXTURE_1D'. `glTexSubImage1D' redefines a contiguous subregion of an existing -one-dimensional texture image. The texels referenced by DATA replace the -portion of the existing texture array with x indices XOFFSET and -XOFFSET+WIDTH-1 , inclusive. This region may not include any texels +one-dimensional texture image. The texels referenced by DATA replace +the portion of the existing texture array with x indices XOFFSET and +XOFFSET+WIDTH-1 , inclusive. This region may not include any texels outside the range of the texture array as it was originally specified. It is not an error to specify a subtexture with width of 0, but such a specification has no effect. @@ -22064,7 +22100,7 @@ where MAX is the returned value of `GL_MAX_TEXTURE_SIZE'. `GL_INVALID_VALUE' is generated if XOFFSET<-B , or if (XOFFSET+WIDTH,)>(W-B,) , where W is the `GL_TEXTURE_WIDTH', and B is the width of the `GL_TEXTURE_BORDER' of the texture image being -modified. Note that W includes twice the border width. +modified. Note that W includes twice the border width. `GL_INVALID_VALUE' is generated if WIDTH is less than 0. @@ -22117,15 +22153,15 @@ between the execution of `glBegin' and the corresponding execution of "Specify a two-dimensional texture subimage. TARGET - Specifies the target texture. Must be `GL_TEXTURE_2D', + Specifies the target texture. Must be `GL_TEXTURE_2D', `GL_TEXTURE_CUBE_MAP_POSITIVE_X', `GL_TEXTURE_CUBE_MAP_NEGATIVE_X', `GL_TEXTURE_CUBE_MAP_POSITIVE_Y', `GL_TEXTURE_CUBE_MAP_NEGATIVE_Y', `GL_TEXTURE_CUBE_MAP_POSITIVE_Z', or `GL_TEXTURE_CUBE_MAP_NEGATIVE_Z'. LEVEL - Specifies the level-of-detail number. Level 0 is the base image - level. Level N is the Nth mipmap reduction image. + Specifies the level-of-detail number. Level 0 is the base image + level. Level N is the Nth mipmap reduction image. XOFFSET Specifies a texel offset in the x direction within the texture @@ -22142,13 +22178,13 @@ HEIGHT Specifies the height of the texture subimage. FORMAT - Specifies the format of the pixel data. The following symbolic + Specifies the format of the pixel data. The following symbolic values are accepted: `GL_COLOR_INDEX', `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', `GL_BGRA', `GL_LUMINANCE', and `GL_LUMINANCE_ALPHA'. TYPE - Specifies the data type of the pixel data. The following symbolic + Specifies the data type of the pixel data. The following symbolic values are accepted: `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -22162,18 +22198,18 @@ DATA Specifies a pointer to the image data in memory. Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable two-dimensional texturing, call `glEnable' and `glDisable' with argument `GL_TEXTURE_2D'. `glTexSubImage2D' redefines a contiguous subregion of an existing -two-dimensional texture image. The texels referenced by DATA replace the -portion of the existing texture array with x indices XOFFSET and +two-dimensional texture image. The texels referenced by DATA replace +the portion of the existing texture array with x indices XOFFSET and XOFFSET+WIDTH-1 , inclusive, and y indices YOFFSET and YOFFSET+HEIGHT-1 -, inclusive. This region may not include any texels outside the range of -the texture array as it was originally specified. It is not an error to -specify a subtexture with zero width or height, but such a specification -has no effect. +, inclusive. This region may not include any texels outside the range +of the texture array as it was originally specified. It is not an error +to specify a subtexture with zero width or height, but such a +specification has no effect. If a non-zero named buffer object is bound to the `GL_PIXEL_UNPACK_BUFFER' target (see `glBindBuffer') while a texture @@ -22201,7 +22237,7 @@ where MAX is the returned value of `GL_MAX_TEXTURE_SIZE'. `GL_INVALID_VALUE' is generated if XOFFSET<-B , (XOFFSET+WIDTH,)>(W-B,) , YOFFSET<-B , or (YOFFSET+HEIGHT,)>(H-B,) , where W is the `GL_TEXTURE_WIDTH', H is the `GL_TEXTURE_HEIGHT', and B is the border -width of the texture image being modified. Note that W and H include +width of the texture image being modified. Note that W and H include twice the border width. `GL_INVALID_VALUE' is generated if WIDTH or HEIGHT is less than 0. @@ -22257,11 +22293,11 @@ between the execution of `glBegin' and the corresponding execution of "Specify a three-dimensional texture subimage. TARGET - Specifies the target texture. Must be `GL_TEXTURE_3D'. + Specifies the target texture. Must be `GL_TEXTURE_3D'. LEVEL - Specifies the level-of-detail number. Level 0 is the base image - level. Level N is the Nth mipmap reduction image. + Specifies the level-of-detail number. Level 0 is the base image + level. Level N is the Nth mipmap reduction image. XOFFSET Specifies a texel offset in the x direction within the texture @@ -22285,13 +22321,13 @@ DEPTH Specifies the depth of the texture subimage. FORMAT - Specifies the format of the pixel data. The following symbolic + Specifies the format of the pixel data. The following symbolic values are accepted: `GL_COLOR_INDEX', `GL_RED', `GL_GREEN', `GL_BLUE', `GL_ALPHA', `GL_RGB', `GL_BGR', `GL_RGBA', `GL_BGRA', `GL_LUMINANCE', and `GL_LUMINANCE_ALPHA'. TYPE - Specifies the data type of the pixel data. The following symbolic + Specifies the data type of the pixel data. The following symbolic values are accepted: `GL_UNSIGNED_BYTE', `GL_BYTE', `GL_BITMAP', `GL_UNSIGNED_SHORT', `GL_SHORT', `GL_UNSIGNED_INT', `GL_INT', `GL_FLOAT', `GL_UNSIGNED_BYTE_3_3_2', `GL_UNSIGNED_BYTE_2_3_3_REV', @@ -22305,17 +22341,17 @@ DATA Specifies a pointer to the image data in memory. Texturing maps a portion of a specified texture image onto each -graphical primitive for which texturing is enabled. To enable and +graphical primitive for which texturing is enabled. To enable and disable three-dimensional texturing, call `glEnable' and `glDisable' with argument `GL_TEXTURE_3D'. `glTexSubImage3D' redefines a contiguous subregion of an existing -three-dimensional texture image. The texels referenced by DATA replace +three-dimensional texture image. The texels referenced by DATA replace the portion of the existing texture array with x indices XOFFSET and XOFFSET+WIDTH-1 , inclusive, y indices YOFFSET and YOFFSET+HEIGHT-1 , -inclusive, and z indices ZOFFSET and ZOFFSET+DEPTH-1 , inclusive. This +inclusive, and z indices ZOFFSET and ZOFFSET+DEPTH-1 , inclusive. This region may not include any texels outside the range of the texture array -as it was originally specified. It is not an error to specify a +as it was originally specified. It is not an error to specify a subtexture with zero width, height, or depth but such a specification has no effect. @@ -22343,7 +22379,7 @@ where MAX is the returned value of `GL_MAX_TEXTURE_SIZE'. , YOFFSET<-B , or (YOFFSET+HEIGHT,)>(H-B,) , or ZOFFSET<-B , or (ZOFFSET+DEPTH,)>(D-B,) , where W is the `GL_TEXTURE_WIDTH', H is the `GL_TEXTURE_HEIGHT', D is the `GL_TEXTURE_DEPTH' and B is the border -width of the texture image being modified. Note that W , H , and D +width of the texture image being modified. Note that W , H , and D include twice the border width. `GL_INVALID_VALUE' is generated if WIDTH, HEIGHT, or DEPTH is less than @@ -22404,8 +22440,8 @@ X Specify the X, Y, and Z coordinates of a translation vector. -`glTranslate' produces a translation by (X,YZ) . The current matrix (see -`glMatrixMode') is multiplied by this translation matrix, with the +`glTranslate' produces a translation by (X,YZ) . The current matrix +(see `glMatrixMode') is multiplied by this translation matrix, with the product replacing the current matrix, as if `glMultMatrix' were called with the following matrix for its argument: @@ -22592,48 +22628,48 @@ V0, V1, V2, V3 variable. `glUniform' modifies the value of a uniform variable or a uniform -variable array. The location of the uniform variable to be modified is +variable array. The location of the uniform variable to be modified is specified by LOCATION, which should be a value returned by -`glGetUniformLocation'. `glUniform' operates on the program object that +`glGetUniformLocation'. `glUniform' operates on the program object that was made part of current state by calling `glUseProgram'. The commands `glUniform{1|2|3|4}{f|i}' are used to change the value of the uniform variable specified by LOCATION using the values passed as -arguments. The number specified in the command should match the number +arguments. The number specified in the command should match the number of components in the data type of the specified uniform variable (e.g., -`1' for float, int, bool; `2' for vec2, ivec2, bvec2, etc.). The suffix +`1' for float, int, bool; `2' for vec2, ivec2, bvec2, etc.). The suffix `f' indicates that floating-point values are being passed; the suffix `i' indicates that integer values are being passed, and this type should -also match the data type of the specified uniform variable. The `i' +also match the data type of the specified uniform variable. The `i' variants of this function should be used to provide values for uniform -variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The +variables defined as int, ivec2, ivec3, ivec4, or arrays of these. The `f' variants should be used to provide values for uniform variables of -type float, vec2, vec3, vec4, or arrays of these. Either the `i' or the +type float, vec2, vec3, vec4, or arrays of these. Either the `i' or the `f' variants may be used to provide values for uniform variables of type -bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable will -be set to false if the input value is 0 or 0.0f, and it will be set to -true otherwise. +bool, bvec2, bvec3, bvec4, or arrays of these. The uniform variable +will be set to false if the input value is 0 or 0.0f, and it will be set +to true otherwise. All active uniform variables defined in a program object are initialized -to 0 when the program object is linked successfully. They retain the +to 0 when the program object is linked successfully. They retain the values assigned to them by a call to `glUniform ' until the next successful link operation occurs on the program object, when they are once again initialized to 0. The commands `glUniform{1|2|3|4}{f|i}v' can be used to modify a single -uniform variable or a uniform variable array. These commands pass a +uniform variable or a uniform variable array. These commands pass a count and a pointer to the values to be loaded into a uniform variable -or a uniform variable array. A count of 1 should be used if modifying +or a uniform variable array. A count of 1 should be used if modifying the value of a single uniform variable, and a count of 1 or greater can -be used to modify an entire array or part of an array. When loading N +be used to modify an entire array or part of an array. When loading N elements starting at an arbitrary position M in a uniform variable array, elements M + N - 1 in the array will be replaced with the new -values. If M + N - 1 is larger than the size of the uniform variable +values. If M + N - 1 is larger than the size of the uniform variable array, values for all array elements beyond the end of the array will be -ignored. The number specified in the name of the command indicates the +ignored. The number specified in the name of the command indicates the number of components for each element in VALUE, and it should match the number of components in the data type of the specified uniform variable -(e.g., `1' for float, int, bool; `2' for vec2, ivec2, bvec2, etc.). The +(e.g., `1' for float, int, bool; `2' for vec2, ivec2, bvec2, etc.). The data type specified in the name of the command must match the data type for the specified uniform variable as described previously for `glUniform{1|2|3|4}{f|i}'. @@ -22641,24 +22677,24 @@ for the specified uniform variable as described previously for For uniform variable arrays, each element of the array is considered to be of the type indicated in the name of the command (e.g., `glUniform3f' or `glUniform3fv' can be used to load a uniform variable array of type -vec3). The number of elements of the uniform variable array to be +vec3). The number of elements of the uniform variable array to be modified is specified by COUNT The commands `glUniformMatrix{2|3|4|2x3|3x2|2x4|4x2|3x4|4x3}fv' are used -to modify a matrix or an array of matrices. The numbers in the command -name are interpreted as the dimensionality of the matrix. The number `2' -indicates a 2 × 2 matrix (i.e., 4 values), the number `3' indicates a 3 -× 3 matrix (i.e., 9 values), and the number `4' indicates a 4 × 4 matrix -(i.e., 16 values). Non-square matrix dimensionality is explicit, with -the first number representing the number of columns and the second -number representing the number of rows. For example, `2x4' indicates a 2 -× 4 matrix with 2 columns and 4 rows (i.e., 8 values). If TRANSPOSE is -`GL_FALSE', each matrix is assumed to be supplied in column major order. -If TRANSPOSE is `GL_TRUE', each matrix is assumed to be supplied in row -major order. The COUNT argument indicates the number of matrices to be -passed. A count of 1 should be used if modifying the value of a single -matrix, and a count greater than 1 can be used to modify an array of -matrices. +to modify a matrix or an array of matrices. The numbers in the command +name are interpreted as the dimensionality of the matrix. The number +`2' indicates a 2 × 2 matrix (i.e., 4 values), the number `3' indicates +a 3 × 3 matrix (i.e., 9 values), and the number `4' indicates a 4 × 4 +matrix (i.e., 16 values). Non-square matrix dimensionality is explicit, +with the first number representing the number of columns and the second +number representing the number of rows. For example, `2x4' indicates a +2 × 4 matrix with 2 columns and 4 rows (i.e., 8 values). If TRANSPOSE +is `GL_FALSE', each matrix is assumed to be supplied in column major +order. If TRANSPOSE is `GL_TRUE', each matrix is assumed to be supplied +in row major order. The COUNT argument indicates the number of matrices +to be passed. A count of 1 should be used if modifying the value of a +single matrix, and a count greater than 1 can be used to modify an array +of matrices. `GL_INVALID_OPERATION' is generated if there is no current program object. @@ -22696,7 +22732,7 @@ PROGRAM be used as part of current rendering state. `glUseProgram' installs the program object specified by PROGRAM as part -of current rendering state. One or more executables are created in a +of current rendering state. One or more executables are created in a program object by successfully attaching shader objects to it with `glAttachShader', successfully compiling the shader objects with `glCompileShader', and successfully linking the program object with @@ -22737,7 +22773,7 @@ OpenGL fixed functionality will be disabled as follows. The executable that is installed on the vertex processor is expected to implement any or all of the desired functionality from the preceding -list. Similarly, if an executable is installed on the fragment +list. Similarly, if an executable is installed on the fragment processor, the OpenGL fixed functionality will be disabled as follows. * Texture application is not applied. @@ -22751,26 +22787,26 @@ any or all of the desired functionality from the preceding list. While a program object is in use, applications are free to modify attached shader objects, compile attached shader objects, attach -additional shader objects, and detach or delete shader objects. None of +additional shader objects, and detach or delete shader objects. None of these operations will affect the executables that are part of the -current state. However, relinking the program object that is currently +current state. However, relinking the program object that is currently in use will install the program object as part of the current rendering -state if the link operation was successful (see `glLinkProgram' ). If +state if the link operation was successful (see `glLinkProgram' ). If the program object currently in use is relinked unsuccessfully, its link status will be set to `GL_FALSE', but the executables and associated state will remain part of the current state until a subsequent call to -`glUseProgram' removes it from use. After it is removed from use, it +`glUseProgram' removes it from use. After it is removed from use, it cannot be made part of current state until it has been successfully relinked. If PROGRAM contains shader objects of type `GL_VERTEX_SHADER' but it does not contain shader objects of type `GL_FRAGMENT_SHADER', an executable will be installed on the vertex processor, but fixed -functionality will be used for fragment processing. Similarly, if +functionality will be used for fragment processing. Similarly, if PROGRAM contains shader objects of type `GL_FRAGMENT_SHADER' but it does not contain shader objects of type `GL_VERTEX_SHADER', an executable will be installed on the fragment processor, but fixed functionality -will be used for vertex processing. If PROGRAM is 0, the programmable +will be used for vertex processing. If PROGRAM is 0, the programmable processors will be disabled, and fixed functionality will be used for both vertex and fragment processing. @@ -22794,9 +22830,9 @@ PROGRAM Specifies the handle of the program object to be validated. `glValidateProgram' checks to see whether the executables contained in -PROGRAM can execute given the current OpenGL state. The information +PROGRAM can execute given the current OpenGL state. The information generated by the validation process will be stored in PROGRAM's -information log. The validation information may consist of an empty +information log. The validation information may consist of an empty string, or it may be a string containing information about how the current program object interacts with the rest of current OpenGL state. This provides a way for OpenGL implementers to convey more information @@ -22804,11 +22840,11 @@ about why the current program is inefficient, suboptimal, failing to execute, and so on. The status of the validation operation will be stored as part of the -program object's state. This value will be set to `GL_TRUE' if the -validation succeeded, and `GL_FALSE' otherwise. It can be queried by +program object's state. This value will be set to `GL_TRUE' if the +validation succeeded, and `GL_FALSE' otherwise. It can be queried by calling `glGetProgram' with arguments PROGRAM and `GL_VALIDATE_STATUS'. If validation is successful, PROGRAM is guaranteed to execute given the -current state. Otherwise, PROGRAM is guaranteed to not execute. +current state. Otherwise, PROGRAM is guaranteed to not execute. This function is typically useful only during application development. The informational string stored in the information log is completely @@ -22842,13 +22878,13 @@ INDEX SIZE Specifies the number of components per generic vertex attribute. - Must be 1, 2, 3, or 4. The initial value is 4. + Must be 1, 2, 3, or 4. The initial value is 4. TYPE - Specifies the data type of each component in the array. Symbolic + Specifies the data type of each component in the array. Symbolic constants `GL_BYTE', `GL_UNSIGNED_BYTE', `GL_SHORT', `GL_UNSIGNED_SHORT', `GL_INT', `GL_UNSIGNED_INT', `GL_FLOAT', or - `GL_DOUBLE' are accepted. The initial value is `GL_FLOAT'. + `GL_DOUBLE' are accepted. The initial value is `GL_FLOAT'. NORMALIZED Specifies whether fixed-point data values should be normalized @@ -22857,30 +22893,30 @@ NORMALIZED STRIDE Specifies the byte offset between consecutive generic vertex - attributes. If STRIDE is 0, the generic vertex attributes are - understood to be tightly packed in the array. The initial value is + attributes. If STRIDE is 0, the generic vertex attributes are + understood to be tightly packed in the array. The initial value is 0. POINTER Specifies a pointer to the first component of the first generic - vertex attribute in the array. The initial value is 0. + vertex attribute in the array. The initial value is 0. `glVertexAttribPointer' specifies the location and data format of the array of generic vertex attributes at index INDEX to use when rendering. SIZE specifies the number of components per attribute and must be 1, 2, -3, or 4. TYPE specifies the data type of each component, and STRIDE +3, or 4. TYPE specifies the data type of each component, and STRIDE specifies the byte stride from one attribute to the next, allowing vertices and attributes to be packed into a single array or stored in -separate arrays. If set to `GL_TRUE', NORMALIZED indicates that values +separate arrays. If set to `GL_TRUE', NORMALIZED indicates that values stored in an integer format are to be mapped to the range [-1,1] (for signed values) or [0,1] (for unsigned values) when they are accessed and -converted to floating point. Otherwise, values will be converted to +converted to floating point. Otherwise, values will be converted to floats directly without normalization. If a non-zero named buffer object is bound to the `GL_ARRAY_BUFFER' target (see `glBindBuffer') while a generic vertex attribute array is specified, POINTER is treated as a byte offset into the buffer object's -data store. Also, the buffer object binding (`GL_ARRAY_BUFFER_BINDING') +data store. Also, the buffer object binding (`GL_ARRAY_BUFFER_BINDING') is saved as generic vertex attribute array client-side state (`GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING') for index INDEX. @@ -23116,50 +23152,50 @@ V0, V1, V2, V3 OpenGL defines a number of standard vertex attributes that applications can modify with standard API entry points (color, normal, texture -coordinates, etc.). The `glVertexAttrib' family of entry points allows +coordinates, etc.). The `glVertexAttrib' family of entry points allows an application to pass generic vertex attributes in numbered locations. Generic attributes are defined as four-component values that are -organized into an array. The first entry of this array is numbered 0, +organized into an array. The first entry of this array is numbered 0, and the size of the array is specified by the implementation-dependent -constant `GL_MAX_VERTEX_ATTRIBS'. Individual elements of this array can +constant `GL_MAX_VERTEX_ATTRIBS'. Individual elements of this array can be modified with a `glVertexAttrib' call that specifies the index of the element to be modified and a value for that element. These commands can be used to specify one, two, three, or all four -components of the generic vertex attribute specified by INDEX. A `1' in +components of the generic vertex attribute specified by INDEX. A `1' in the name of the command indicates that only one value is passed, and it will be used to modify the first component of the generic vertex -attribute. The second and third components will be set to 0, and the -fourth component will be set to 1. Similarly, a `2' in the name of the +attribute. The second and third components will be set to 0, and the +fourth component will be set to 1. Similarly, a `2' in the name of the command indicates that values are provided for the first two components, the third component will be set to 0, and the fourth component will be -set to 1. A `3' in the name of the command indicates that values are +set to 1. A `3' in the name of the command indicates that values are provided for the first three components and the fourth component will be set to 1, whereas a `4' in the name indicates that values are provided for all four components. The letters `s', `f', `i', `d', `ub', `us', and `ui' indicate whether the arguments are of type short, float, int, double, unsigned byte, -unsigned short, or unsigned int. When `v' is appended to the name, the -commands can take a pointer to an array of such values. The commands +unsigned short, or unsigned int. When `v' is appended to the name, the +commands can take a pointer to an array of such values. The commands containing `N' indicate that the arguments will be passed as fixed-point values that are scaled to a normalized range according to the component -conversion rules defined by the OpenGL specification. Signed values are +conversion rules defined by the OpenGL specification. Signed values are understood to represent fixed-point values in the range [-1,1], and unsigned values are understood to represent fixed-point values in the range [0,1]. OpenGL Shading Language attribute variables are allowed to be of type -mat2, mat3, or mat4. Attributes of these types may be loaded using the -`glVertexAttrib' entry points. Matrices must be loaded into successive +mat2, mat3, or mat4. Attributes of these types may be loaded using the +`glVertexAttrib' entry points. Matrices must be loaded into successive generic attribute slots in column major order, with one column of the matrix in each generic attribute slot. A user-defined attribute variable declared in a vertex shader can be bound to a generic attribute index by calling `glBindAttribLocation'. This allows an application to use more descriptive variable names in a -vertex shader. A subsequent change to the specified generic vertex +vertex shader. A subsequent change to the specified generic vertex attribute will be immediately reflected as a change to the corresponding attribute variable in the vertex shader. @@ -23171,20 +23207,20 @@ just like standard vertex attributes, and it is maintained even if a different program object is used. An application may freely modify generic vertex attributes that are not -bound to a named vertex shader attribute variable. These values are +bound to a named vertex shader attribute variable. These values are simply maintained as part of current state and will not be accessed by -the vertex shader. If a generic vertex attribute bound to an attribute +the vertex shader. If a generic vertex attribute bound to an attribute variable in a vertex shader is not updated while the vertex shader is executing, the vertex shader will repeatedly use the current value for the generic vertex attribute. The generic vertex attribute with index 0 is the same as the vertex -position attribute previously defined by OpenGL. A `glVertex2', +position attribute previously defined by OpenGL. A `glVertex2', `glVertex3', or `glVertex4' command is completely equivalent to the -corresponding `glVertexAttrib' command with an index argument of 0. A +corresponding `glVertexAttrib' command with an index argument of 0. A vertex shader can access generic vertex attribute 0 by using the -built-in attribute variable GL_VERTEX. There are no current values for -generic vertex attribute 0. This is the only generic vertex attribute +built-in attribute variable GL_VERTEX. There are no current values for +generic vertex attribute 0. This is the only generic vertex attribute with this property; calls to set other standard vertex attributes can be freely mixed with calls to set any of the other generic vertex attributes. @@ -23203,34 +23239,34 @@ attributes. "Define an array of vertex data. SIZE - Specifies the number of coordinates per vertex. Must be 2, 3, or 4. - The initial value is 4. + Specifies the number of coordinates per vertex. Must be 2, 3, or + 4. The initial value is 4. TYPE - Specifies the data type of each coordinate in the array. Symbolic + Specifies the data type of each coordinate in the array. Symbolic constants `GL_SHORT', `GL_INT', `GL_FLOAT', or `GL_DOUBLE' are - accepted. The initial value is `GL_FLOAT'. + accepted. The initial value is `GL_FLOAT'. STRIDE - Specifies the byte offset between consecutive vertices. If STRIDE + Specifies the byte offset between consecutive vertices. If STRIDE is 0, the vertices are understood to be tightly packed in the - array. The initial value is 0. + array. The initial value is 0. POINTER Specifies a pointer to the first coordinate of the first vertex in - the array. The initial value is 0. + the array. The initial value is 0. `glVertexPointer' specifies the location and data format of an array of -vertex coordinates to use when rendering. SIZE specifies the number of -coordinates per vertex, and must be 2, 3, or 4. TYPE specifies the data +vertex coordinates to use when rendering. SIZE specifies the number of +coordinates per vertex, and must be 2, 3, or 4. TYPE specifies the data type of each coordinate, and STRIDE specifies the byte stride from one vertex to the next, allowing vertices and attributes to be packed into a -single array or stored in separate arrays. (Single-array storage may be +single array or stored in separate arrays. (Single-array storage may be more efficient on some implementations; see `glInterleavedArrays'.) If a non-zero named buffer object is bound to the `GL_ARRAY_BUFFER' target (see `glBindBuffer') while a vertex array is specified, POINTER -is treated as a byte offset into the buffer object's data store. Also, +is treated as a byte offset into the buffer object's data store. Also, the buffer object binding (`GL_ARRAY_BUFFER_BINDING') is saved as vertex array client-side state (`GL_VERTEX_ARRAY_BUFFER_BINDING'). @@ -23239,7 +23275,7 @@ saved as client-side state, in addition to the current vertex array buffer object binding. To enable and disable the vertex array, call `glEnableClientState' and -`glDisableClientState' with the argument `GL_VERTEX_ARRAY'. If enabled, +`glDisableClientState' with the argument `GL_VERTEX_ARRAY'. If enabled, the vertex array is used when `glArrayElement', `glDrawArrays', `glMultiDrawArrays', `glDrawElements', `glMultiDrawElements', or `glDrawRangeElements' is called. @@ -23328,11 +23364,11 @@ X W - Specify X, Y, Z, and W coordinates of a vertex. Not all parameters + Specify X, Y, Z, and W coordinates of a vertex. Not all parameters are present in all forms of the command. `glVertex' commands are used within `glBegin'/`glEnd' pairs to specify -point, line, and polygon vertices. The current color, normal, texture +point, line, and polygon vertices. The current color, normal, texture coordinates, and fog coordinate are associated with the vertex when `glVertex' is called. @@ -23358,21 +23394,21 @@ X WIDTH HEIGHT - Specify the width and height of the viewport. When a GL context is + Specify the width and height of the viewport. When a GL context is first attached to a window, WIDTH and HEIGHT are set to the dimensions of that window. `glViewport' specifies the affine transformation of X and Y from -normalized device coordinates to window coordinates. Let (X_ND,Y_ND) be -normalized device coordinates. Then the window coordinates (X_W,Y_W) are -computed as follows: +normalized device coordinates to window coordinates. Let (X_ND,Y_ND) be +normalized device coordinates. Then the window coordinates (X_W,Y_W) +are computed as follows: X_W=(X_ND+1,)\u2062(WIDTH/2,)+X Y_W=(Y_ND+1,)\u2062(HEIGHT/2,)+Y Viewport width and height are silently clamped to a range that depends -on the implementation. To query this range, call `glGet' with argument +on the implementation. To query this range, call `glGet' with argument `GL_MAX_VIEWPORT_DIMS'. `GL_INVALID_VALUE' is generated if either WIDTH or HEIGHT is negative. @@ -23426,36 +23462,36 @@ X Specify the X , Y , Z coordinates for the raster position. -The GL maintains a 3D position in window coordinates. This position, +The GL maintains a 3D position in window coordinates. This position, called the raster position, is used to position pixel and bitmap write -operations. It is maintained with subpixel accuracy. See `glBitmap', +operations. It is maintained with subpixel accuracy. See `glBitmap', `glDrawPixels', and `glCopyPixels'. `glWindowPos2' specifies the X and Y coordinates, while Z is implicitly -set to 0. `glWindowPos3' specifies all three coordinates. The W +set to 0. `glWindowPos3' specifies all three coordinates. The W coordinate of the current raster position is always set to 1.0. `glWindowPos' directly updates the X and Y coordinates of the current -raster position with the values specified. That is, the values are +raster position with the values specified. That is, the values are neither transformed by the current modelview and projection matrices, -nor by the viewport-to-window transform. The Z coordinate of the current -raster position is updated in the following manner: +nor by the viewport-to-window transform. The Z coordinate of the +current raster position is updated in the following manner: Z={(N), (F), (N+Z×(F-N,),)\u2062(IF\u2062Z<=0), (IF\u2062Z>=1), (`otherwise',), where N is `GL_DEPTH_RANGE''s near value, and F is `GL_DEPTH_RANGE''s -far value. See `glDepthRange'. +far value. See `glDepthRange'. The specified coordinates are not clip-tested, causing the raster position to always be valid. The current raster position also includes some associated color data and -texture coordinates. If lighting is enabled, then +texture coordinates. If lighting is enabled, then `GL_CURRENT_RASTER_COLOR' (in RGBA mode) or `GL_CURRENT_RASTER_INDEX' (in color index mode) is set to the color produced by the lighting -calculation (see `glLight', `glLightModel', and `glShadeModel'). If +calculation (see `glLight', `glLightModel', and `glShadeModel'). If lighting is disabled, current color (in RGBA mode, state variable `GL_CURRENT_COLOR') or color index (in color index mode, state variable `GL_CURRENT_INDEX') is used to update the current raster color. @@ -23463,7 +23499,7 @@ lighting is disabled, current color (in RGBA mode, state variable Likewise, `GL_CURRENT_RASTER_TEXTURE_COORDS' is updated as a function of `GL_CURRENT_TEXTURE_COORDS', based on the texture matrix and the texture -generation functions (see `glTexGen'). The `GL_CURRENT_RASTER_DISTANCE' +generation functions (see `glTexGen'). The `GL_CURRENT_RASTER_DISTANCE' is set to the `GL_CURRENT_FOG_COORD'. diff --git a/figl/glu/low-level.scm b/figl/glu/low-level.scm index 2b354b9..211e56d 100644 --- a/figl/glu/low-level.scm +++ b/figl/glu/low-level.scm @@ -17,8 +17,8 @@ ;;; ;;; Derived from upstream OpenGL documentation. ;;; -;;; Copyright (C) 1991-2006 Silicon Graphics, Inc. This document is licensed -;;; under the SGI Free Software B License. For details, see +;;; Copyright (C) 1991-2006 Silicon Graphics, Inc. This document is +;;; licensed under the SGI Free Software B License. For details, see ;;; http://oss.sgi.com/projects/FreeB/ (http://oss.sgi.com/projects/FreeB/). ;;; ;;; Automatically generated; you probably don't want to edit this. To @@ -102,14 +102,14 @@ NURB Use `gluBeginCurve' to mark the beginning of a NURBS curve definition. After calling `gluBeginCurve', make one or more calls to `gluNurbsCurve' -to define the attributes of the curve. Exactly one of the calls to +to define the attributes of the curve. Exactly one of the calls to `gluNurbsCurve' must have a curve type of `GLU_MAP1_VERTEX_3' or -`GLU_MAP1_VERTEX_4'. To mark the end of the NURBS curve definition, call -`gluEndCurve'. +`GLU_MAP1_VERTEX_4'. To mark the end of the NURBS curve definition, +call `gluEndCurve'. GL evaluators are used to render the NURBS curve as a series of line -segments. Evaluator state is preserved during rendering with -`glPushAttrib'(`GLU_EVAL_BIT') and `glPopAttrib'(). See the +segments. Evaluator state is preserved during rendering with +`glPushAttrib'(`GLU_EVAL_BIT') and `glPopAttrib'(). See the `glPushAttrib' reference page for details on exactly what state these calls preserve.") @@ -122,15 +122,15 @@ TESS Specifies the tessellation object (created with `gluNewTess'). `gluBeginPolygon' and `gluEndPolygon' delimit the definition of a -nonconvex polygon. To define such a polygon, first call -`gluBeginPolygon'. Then define the contours of the polygon by calling +nonconvex polygon. To define such a polygon, first call +`gluBeginPolygon'. Then define the contours of the polygon by calling `gluTessVertex' for each vertex and `gluNextContour' to start each new -contour. Finally, call `gluEndPolygon' to signal the end of the -definition. See the `gluTessVertex' and `gluNextContour' reference pages -for more details. +contour. Finally, call `gluEndPolygon' to signal the end of the +definition. See the `gluTessVertex' and `gluNextContour' reference +pages for more details. Once `gluEndPolygon' is called, the polygon is tessellated, and the -resulting triangles are described through callbacks. See +resulting triangles are described through callbacks. See `gluTessCallback' for descriptions of the callback functions.") (define-glu-procedures @@ -142,20 +142,21 @@ NURB Specifies the NURBS object (created with `gluNewNurbsRenderer'). Use `gluBeginSurface' to mark the beginning of a NURBS surface -definition. After calling `gluBeginSurface', make one or more calls to -`gluNurbsSurface' to define the attributes of the surface. Exactly one +definition. After calling `gluBeginSurface', make one or more calls to +`gluNurbsSurface' to define the attributes of the surface. Exactly one of these calls to `gluNurbsSurface' must have a surface type of -`GLU_MAP2_VERTEX_3' or `GLU_MAP2_VERTEX_4'. To mark the end of the NURBS -surface definition, call `gluEndSurface'. +`GLU_MAP2_VERTEX_3' or `GLU_MAP2_VERTEX_4'. To mark the end of the +NURBS surface definition, call `gluEndSurface'. Trimming of NURBS surfaces is supported with `gluBeginTrim', -`gluPwlCurve', `gluNurbsCurve', and `gluEndTrim'. See the `gluBeginTrim' -reference page for details. +`gluPwlCurve', `gluNurbsCurve', and `gluEndTrim'. See the +`gluBeginTrim' reference page for details. GL evaluators are used to render the NURBS surface as a set of polygons. Evaluator state is preserved during rendering with -`glPushAttrib'(`GLU_EVAL_BIT') and `glPopAttrib'. See the `glPushAttrib' -reference page for details on exactly what state these calls preserve.") +`glPushAttrib'(`GLU_EVAL_BIT') and `glPopAttrib'. See the +`glPushAttrib' reference page for details on exactly what state these +calls preserve.") (define-glu-procedures ((gluBeginTrim (nurb GLUnurbs*) -> void) @@ -166,30 +167,30 @@ NURB Specifies the NURBS object (created with `gluNewNurbsRenderer'). Use `gluBeginTrim' to mark the beginning of a trimming loop and -`gluEndTrim' to mark the end of a trimming loop. A trimming loop is a +`gluEndTrim' to mark the end of a trimming loop. A trimming loop is a set of oriented curve segments (forming a closed curve) that define -boundaries of a NURBS surface. You include these trimming loops in the +boundaries of a NURBS surface. You include these trimming loops in the definition of a NURBS surface, between calls to `gluBeginSurface' and `gluEndSurface'. -The definition for a NURBS surface can contain many trimming loops. For +The definition for a NURBS surface can contain many trimming loops. For example, if you wrote a definition for a NURBS surface that resembled a rectangle with a hole punched out, the definition would contain two -trimming loops. One loop would define the outer edge of the rectangle; -the other would define the hole punched out of the rectangle. The +trimming loops. One loop would define the outer edge of the rectangle; +the other would define the hole punched out of the rectangle. The definitions of each of these trimming loops would be bracketed by a `gluBeginTrim'/`gluEndTrim' pair. The definition of a single closed trimming loop can consist of multiple curve segments, each described as a piecewise linear curve (see `gluPwlCurve') or as a single NURBS curve (see `gluNurbsCurve'), or as a -combination of both in any order. The only library calls that can appear -in a trimming loop definition (between the calls to `gluBeginTrim' and -`gluEndTrim') are `gluPwlCurve' and `gluNurbsCurve'. +combination of both in any order. The only library calls that can +appear in a trimming loop definition (between the calls to +`gluBeginTrim' and `gluEndTrim') are `gluPwlCurve' and `gluNurbsCurve'. The area of the NURBS surface that is displayed is the region in the domain to the left of the trimming curve as the curve parameter -increases. Thus, the retained region of the NURBS surface is inside a +increases. Thus, the retained region of the NURBS surface is inside a counterclockwise trimming loop and outside a clockwise trimming loop. For the rectangle mentioned earlier, the trimming loop for the outer edge of the rectangle runs counterclockwise, while the trimming loop for @@ -198,15 +199,15 @@ the punched-out hole runs clockwise. If you use more than one curve to define a single trimming loop, the curve segments must form a closed loop (that is, the endpoint of each curve must be the starting point of the next curve, and the endpoint of -the final curve must be the starting point of the first curve). If the +the final curve must be the starting point of the first curve). If the endpoints of the curve are sufficiently close together but not exactly -coincident, they will be coerced to match. If the endpoints are not +coincident, they will be coerced to match. If the endpoints are not sufficiently close, an error results (see `gluNurbsCallback'). If a trimming loop definition contains multiple curves, the direction of the curves must be consistent (that is, the inside must be to the left -of all of the curves). Nested trimming loops are legal as long as the -curve orientations alternate correctly. If trimming curves are +of all of the curves). Nested trimming loops are legal as long as the +curve orientations alternate correctly. If trimming curves are self-intersecting, or intersect one another, an error results. If no trimming information is given for a NURBS surface, the entire @@ -228,43 +229,43 @@ surface is drawn.") "Builds a subset of one-dimensional mipmap levels. TARGET - Specifies the target texture. Must be `GLU_TEXTURE_1D'. + Specifies the target texture. Must be `GLU_TEXTURE_1D'. INTERNALFORMAT - Requests the internal storage format of the texture image. The most - current version of the SGI implementation of GLU does not check - this value for validity before passing it on to the underlying - OpenGL implementation. A value that is not accepted by the OpenGL - implementation will lead to an OpenGL error. The benefit of not - checking this value at the GLU level is that OpenGL extensions can - add new internal texture formats without requiring a revision of - the GLU implementation. Older implementations of GLU check this - value and raise a GLU error if it is not 1, 2, 3, or 4 or one of - the following symbolic constants: `GLU_ALPHA', `GLU_ALPHA4', - `GLU_ALPHA8', `GLU_ALPHA12', `GLU_ALPHA16', `GLU_LUMINANCE', - `GLU_LUMINANCE4', `GLU_LUMINANCE8', `GLU_LUMINANCE12', - `GLU_LUMINANCE16', `GLU_LUMINANCE_ALPHA', `GLU_LUMINANCE4_ALPHA4', - `GLU_LUMINANCE6_ALPHA2', `GLU_LUMINANCE8_ALPHA8', - `GLU_LUMINANCE12_ALPHA4', `GLU_LUMINANCE12_ALPHA12', - `GLU_LUMINANCE16_ALPHA16', `GLU_INTENSITY', `GLU_INTENSITY4', - `GLU_INTENSITY8', `GLU_INTENSITY12', `GLU_INTENSITY16', `GLU_RGB', - `GLU_R3_G3_B2', `GLU_RGB4', `GLU_RGB5', `GLU_RGB8', `GLU_RGB10', - `GLU_RGB12', `GLU_RGB16', `GLU_RGBA', `GLU_RGBA2', `GLU_RGBA4', - `GLU_RGB5_A1', `GLU_RGBA8', `GLU_RGB10_A2', `GLU_RGBA12', or - `GLU_RGBA16'. + Requests the internal storage format of the texture image. The + most current version of the SGI implementation of GLU does not + check this value for validity before passing it on to the + underlying OpenGL implementation. A value that is not accepted by + the OpenGL implementation will lead to an OpenGL error. The + benefit of not checking this value at the GLU level is that OpenGL + extensions can add new internal texture formats without requiring a + revision of the GLU implementation. Older implementations of GLU + check this value and raise a GLU error if it is not 1, 2, 3, or 4 + or one of the following symbolic constants: `GLU_ALPHA', + `GLU_ALPHA4', `GLU_ALPHA8', `GLU_ALPHA12', `GLU_ALPHA16', + `GLU_LUMINANCE', `GLU_LUMINANCE4', `GLU_LUMINANCE8', + `GLU_LUMINANCE12', `GLU_LUMINANCE16', `GLU_LUMINANCE_ALPHA', + `GLU_LUMINANCE4_ALPHA4', `GLU_LUMINANCE6_ALPHA2', + `GLU_LUMINANCE8_ALPHA8', `GLU_LUMINANCE12_ALPHA4', + `GLU_LUMINANCE12_ALPHA12', `GLU_LUMINANCE16_ALPHA16', + `GLU_INTENSITY', `GLU_INTENSITY4', `GLU_INTENSITY8', + `GLU_INTENSITY12', `GLU_INTENSITY16', `GLU_RGB', `GLU_R3_G3_B2', + `GLU_RGB4', `GLU_RGB5', `GLU_RGB8', `GLU_RGB10', `GLU_RGB12', + `GLU_RGB16', `GLU_RGBA', `GLU_RGBA2', `GLU_RGBA4', `GLU_RGB5_A1', + `GLU_RGBA8', `GLU_RGB10_A2', `GLU_RGBA12', or `GLU_RGBA16'. WIDTH - Specifies the width in pixels of the texture image. This should be + Specifies the width in pixels of the texture image. This should be a power of 2. FORMAT - Specifies the format of the pixel data. Must be one of: + Specifies the format of the pixel data. Must be one of: `GLU_COLOR_INDEX', `GLU_DEPTH_COMPONENT', `GLU_RED', `GLU_GREEN', `GLU_BLUE', `GLU_ALPHA', `GLU_RGB', `GLU_RGBA', `GLU_BGR', `GLU_BGRA', `GLU_LUMINANCE', or `GLU_LUMINANCE_ALPHA'. TYPE - Specifies the data type for DATA. Must be one of: + Specifies the data type for DATA. Must be one of: `GLU_UNSIGNED_BYTE', `GLU_BYTE', `GLU_BITMAP', `GLU_UNSIGNED_SHORT', `GLU_SHORT', `GLU_UNSIGNED_INT', `GLU_INT', `GLU_FLOAT', `GLU_UNSIGNED_BYTE_3_3_2', @@ -288,32 +289,32 @@ DATA Specifies a pointer to the image data in memory. `gluBuild1DMipmapLevels' builds a subset of prefiltered one-dimensional -texture maps of decreasing resolutions called a mipmap. This is used for -the antialiasing of texture mapped primitives. +texture maps of decreasing resolutions called a mipmap. This is used +for the antialiasing of texture mapped primitives. A return value of zero indicates success, otherwise a GLU error code is returned (see `gluErrorString'). A series of mipmap levels from BASE to MAX is built by decimating DATA -in half until size 1×1 is reached. At each level, each texel in the +in half until size 1×1 is reached. At each level, each texel in the halved mipmap level is an average of the corresponding two texels in the -larger mipmap level. `glTexImage1D' is called to load these mipmap -levels from BASE to MAX. If MAX is larger than the highest mipmap level +larger mipmap level. `glTexImage1D' is called to load these mipmap +levels from BASE to MAX. If MAX is larger than the highest mipmap level for the texture of the specified size, then a GLU error code is returned (see `gluErrorString') and nothing is loaded. For example, if LEVEL is 2 and WIDTH is 16, the following levels are -possible: 16×1 , 8×1 , 4×1 , 2×1 , 1×1 . These correspond to levels 2 -through 6 respectively. If BASE is 3 and MAX is 5, then only mipmap -levels 8×1 , 4×1 and 2×1 are loaded. However, if MAX is 7, then an error -is returned and nothing is loaded since MAX is larger than the highest -mipmap level which is, in this case, 6. +possible: 16×1 , 8×1 , 4×1 , 2×1 , 1×1 . These correspond to levels 2 +through 6 respectively. If BASE is 3 and MAX is 5, then only mipmap +levels 8×1 , 4×1 and 2×1 are loaded. However, if MAX is 7, then an +error is returned and nothing is loaded since MAX is larger than the +highest mipmap level which is, in this case, 6. The highest mipmap level can be derived from the formula LOG_2\u2061(WIDTH×2^LEVEL,) . See the `glTexImage1D' reference page for a description of the -acceptable values for TYPE parameter. See the `glDrawPixels' reference +acceptable values for TYPE parameter. See the `glDrawPixels' reference page for a description of the acceptable values for LEVEL parameter. `GLU_INVALID_VALUE' is returned if LEVEL > BASE, BASE < 0, MAX < BASE or @@ -360,42 +361,42 @@ FORMAT is neither `GLU_RGBA' nor `GLU_BGRA'.") "Builds a one-dimensional mipmap. TARGET - Specifies the target texture. Must be `GLU_TEXTURE_1D'. + Specifies the target texture. Must be `GLU_TEXTURE_1D'. INTERNALFORMAT - Requests the internal storage format of the texture image. The most - current version of the SGI implementation of GLU does not check - this value for validity before passing it on to the underlying - OpenGL implementation. A value that is not accepted by the OpenGL - implementation will lead to an OpenGL error. The benefit of not - checking this value at the GLU level is that OpenGL extensions can - add new internal texture formats without requiring a revision of - the GLU implementation. Older implementations of GLU check this - value and raise a GLU error if it is not 1, 2, 3, or 4 or one of - the following symbolic constants: `GLU_ALPHA', `GLU_ALPHA4', - `GLU_ALPHA8', `GLU_ALPHA12', `GLU_ALPHA16', `GLU_LUMINANCE', - `GLU_LUMINANCE4', `GLU_LUMINANCE8', `GLU_LUMINANCE12', - `GLU_LUMINANCE16', `GLU_LUMINANCE_ALPHA', `GLU_LUMINANCE4_ALPHA4', - `GLU_LUMINANCE6_ALPHA2', `GLU_LUMINANCE8_ALPHA8', - `GLU_LUMINANCE12_ALPHA4', `GLU_LUMINANCE12_ALPHA12', - `GLU_LUMINANCE16_ALPHA16', `GLU_INTENSITY', `GLU_INTENSITY4', - `GLU_INTENSITY8', `GLU_INTENSITY12', `GLU_INTENSITY16', `GLU_RGB', - `GLU_R3_G3_B2', `GLU_RGB4', `GLU_RGB5', `GLU_RGB8', `GLU_RGB10', - `GLU_RGB12', `GLU_RGB16', `GLU_RGBA', `GLU_RGBA2', `GLU_RGBA4', - `GLU_RGB5_A1', `GLU_RGBA8', `GLU_RGB10_A2', `GLU_RGBA12', or - `GLU_RGBA16'. + Requests the internal storage format of the texture image. The + most current version of the SGI implementation of GLU does not + check this value for validity before passing it on to the + underlying OpenGL implementation. A value that is not accepted by + the OpenGL implementation will lead to an OpenGL error. The + benefit of not checking this value at the GLU level is that OpenGL + extensions can add new internal texture formats without requiring a + revision of the GLU implementation. Older implementations of GLU + check this value and raise a GLU error if it is not 1, 2, 3, or 4 + or one of the following symbolic constants: `GLU_ALPHA', + `GLU_ALPHA4', `GLU_ALPHA8', `GLU_ALPHA12', `GLU_ALPHA16', + `GLU_LUMINANCE', `GLU_LUMINANCE4', `GLU_LUMINANCE8', + `GLU_LUMINANCE12', `GLU_LUMINANCE16', `GLU_LUMINANCE_ALPHA', + `GLU_LUMINANCE4_ALPHA4', `GLU_LUMINANCE6_ALPHA2', + `GLU_LUMINANCE8_ALPHA8', `GLU_LUMINANCE12_ALPHA4', + `GLU_LUMINANCE12_ALPHA12', `GLU_LUMINANCE16_ALPHA16', + `GLU_INTENSITY', `GLU_INTENSITY4', `GLU_INTENSITY8', + `GLU_INTENSITY12', `GLU_INTENSITY16', `GLU_RGB', `GLU_R3_G3_B2', + `GLU_RGB4', `GLU_RGB5', `GLU_RGB8', `GLU_RGB10', `GLU_RGB12', + `GLU_RGB16', `GLU_RGBA', `GLU_RGBA2', `GLU_RGBA4', `GLU_RGB5_A1', + `GLU_RGBA8', `GLU_RGB10_A2', `GLU_RGBA12', or `GLU_RGBA16'. WIDTH Specifies the width, in pixels, of the texture image. FORMAT - Specifies the format of the pixel data. Must be one of + Specifies the format of the pixel data. Must be one of `GLU_COLOR_INDEX', `GLU_DEPTH_COMPONENT', `GLU_RED', `GLU_GREEN', `GLU_BLUE', `GLU_ALPHA', `GLU_RGB', `GLU_RGBA', `GLU_BGR', `GLU_BGRA', `GLU_LUMINANCE', or `GLU_LUMINANCE_ALPHA'. TYPE - Specifies the data type for DATA. Must be one of + Specifies the data type for DATA. Must be one of `GLU_UNSIGNED_BYTE', `GLU_BYTE', `GLU_BITMAP', `GLU_UNSIGNED_SHORT', `GLU_SHORT', `GLU_UNSIGNED_INT', `GLU_INT', `GLU_FLOAT', `GLU_UNSIGNED_BYTE_3_3_2', @@ -410,36 +411,36 @@ DATA Specifies a pointer to the image data in memory. `gluBuild1DMipmaps' builds a series of prefiltered one-dimensional -texture maps of decreasing resolutions called a mipmap. This is used for -the antialiasing of texture mapped primitives. +texture maps of decreasing resolutions called a mipmap. This is used +for the antialiasing of texture mapped primitives. A return value of zero indicates success, otherwise a GLU error code is returned (see `gluErrorString'). -Initially, the WIDTH of DATA is checked to see if it is a power of 2. If -not, a copy of DATA is scaled up or down to the nearest power of 2. (If +Initially, the WIDTH of DATA is checked to see if it is a power of 2. If +not, a copy of DATA is scaled up or down to the nearest power of 2. (If WIDTH is exactly between powers of 2, then the copy of DATA will scale upwards.) This copy will be used for subsequent mipmapping operations -described below. For example, if WIDTH is 57, then a copy of DATA will +described below. For example, if WIDTH is 57, then a copy of DATA will scale up to 64 before mipmapping takes place. Then, proxy textures (see `glTexImage1D') are used to determine if the -implementation can fit the requested texture. If not, WIDTH is +implementation can fit the requested texture. If not, WIDTH is continually halved until it fits. Next, a series of mipmap levels is built by decimating a copy of DATA in -half until size 1×1 is reached. At each level, each texel in the halved +half until size 1×1 is reached. At each level, each texel in the halved mipmap level is an average of the corresponding two texels in the larger mipmap level. -`glTexImage1D' is called to load each of these mipmap levels. Level 0 is -a copy of DATA. The highest level is LOG_2,\u2061(WIDTH,) . For example, if -WIDTH is 64 and the implementation can store a texture of this size, the -following mipmap levels are built: 64×1 , 32×1 , 16×1 , 8×1 , 4×1 , 2×1 -, and 1×1 . These correspond to levels 0 through 6, respectively. +`glTexImage1D' is called to load each of these mipmap levels. Level 0 +is a copy of DATA. The highest level is LOG_2,\u2061(WIDTH,) . For example, +if WIDTH is 64 and the implementation can store a texture of this size, +the following mipmap levels are built: 64×1 , 32×1 , 16×1 , 8×1 , 4×1 , +2×1 , and 1×1 . These correspond to levels 0 through 6, respectively. See the `glTexImage1D' reference page for a description of the -acceptable values for the TYPE parameter. See the `glDrawPixels' +acceptable values for the TYPE parameter. See the `glDrawPixels' reference page for a description of the acceptable values for the DATA parameter. @@ -487,45 +488,45 @@ FORMAT is neither `GLU_RGBA' nor `GLU_BGRA'.") "Builds a subset of two-dimensional mipmap levels. TARGET - Specifies the target texture. Must be `GLU_TEXTURE_2D'. + Specifies the target texture. Must be `GLU_TEXTURE_2D'. INTERNALFORMAT - Requests the internal storage format of the texture image. The most - current version of the SGI implementation of GLU does not check - this value for validity before passing it on to the underlying - OpenGL implementation. A value that is not accepted by the OpenGL - implementation will lead to an OpenGL error. The benefit of not - checking this value at the GLU level is that OpenGL extensions can - add new internal texture formats without requiring a revision of - the GLU implementation. Older implementations of GLU check this - value and raise a GLU error if it is not 1, 2, 3, or 4 or one of - the following symbolic constants: `GLU_ALPHA', `GLU_ALPHA4', - `GLU_ALPHA8', `GLU_ALPHA12', `GLU_ALPHA16', `GLU_LUMINANCE', - `GLU_LUMINANCE4', `GLU_LUMINANCE8', `GLU_LUMINANCE12', - `GLU_LUMINANCE16', `GLU_LUMINANCE_ALPHA', `GLU_LUMINANCE4_ALPHA4', - `GLU_LUMINANCE6_ALPHA2', `GLU_LUMINANCE8_ALPHA8', - `GLU_LUMINANCE12_ALPHA4', `GLU_LUMINANCE12_ALPHA12', - `GLU_LUMINANCE16_ALPHA16', `GLU_INTENSITY', `GLU_INTENSITY4', - `GLU_INTENSITY8', `GLU_INTENSITY12', `GLU_INTENSITY16', `GLU_RGB', - `GLU_R3_G3_B2', `GLU_RGB4', `GLU_RGB5', `GLU_RGB8', `GLU_RGB10', - `GLU_RGB12', `GLU_RGB16', `GLU_RGBA', `GLU_RGBA2', `GLU_RGBA4', - `GLU_RGB5_A1', `GLU_RGBA8', `GLU_RGB10_A2', `GLU_RGBA12', or - `GLU_RGBA16'. + Requests the internal storage format of the texture image. The + most current version of the SGI implementation of GLU does not + check this value for validity before passing it on to the + underlying OpenGL implementation. A value that is not accepted by + the OpenGL implementation will lead to an OpenGL error. The + benefit of not checking this value at the GLU level is that OpenGL + extensions can add new internal texture formats without requiring a + revision of the GLU implementation. Older implementations of GLU + check this value and raise a GLU error if it is not 1, 2, 3, or 4 + or one of the following symbolic constants: `GLU_ALPHA', + `GLU_ALPHA4', `GLU_ALPHA8', `GLU_ALPHA12', `GLU_ALPHA16', + `GLU_LUMINANCE', `GLU_LUMINANCE4', `GLU_LUMINANCE8', + `GLU_LUMINANCE12', `GLU_LUMINANCE16', `GLU_LUMINANCE_ALPHA', + `GLU_LUMINANCE4_ALPHA4', `GLU_LUMINANCE6_ALPHA2', + `GLU_LUMINANCE8_ALPHA8', `GLU_LUMINANCE12_ALPHA4', + `GLU_LUMINANCE12_ALPHA12', `GLU_LUMINANCE16_ALPHA16', + `GLU_INTENSITY', `GLU_INTENSITY4', `GLU_INTENSITY8', + `GLU_INTENSITY12', `GLU_INTENSITY16', `GLU_RGB', `GLU_R3_G3_B2', + `GLU_RGB4', `GLU_RGB5', `GLU_RGB8', `GLU_RGB10', `GLU_RGB12', + `GLU_RGB16', `GLU_RGBA', `GLU_RGBA2', `GLU_RGBA4', `GLU_RGB5_A1', + `GLU_RGBA8', `GLU_RGB10_A2', `GLU_RGBA12', or `GLU_RGBA16'. WIDTH HEIGHT Specifies the width and height, respectively, in pixels of the - texture image. These should be a power of 2. + texture image. These should be a power of 2. FORMAT - Specifies the format of the pixel data. Must be one of + Specifies the format of the pixel data. Must be one of `GLU_COLOR_INDEX', `GLU_DEPTH_COMPONENT', `GLU_RED', `GLU_GREEN', `GLU_BLUE', `GLU_ALPHA', `GLU_RGB', `GLU_RGBA', `GLU_BGR', `GLU_BGRA', `GLU_LUMINANCE', or `GLU_LUMINANCE_ALPHA'. TYPE - Specifies the data type for DATA. Must be one of + Specifies the data type for DATA. Must be one of `GLU_UNSIGNED_BYTE', `GLU_BYTE', `GLU_BITMAP', `GLU_UNSIGNED_SHORT', `GLU_SHORT', `GLU_UNSIGNED_INT', `GLU_INT', `GLU_FLOAT', `GLU_UNSIGNED_BYTE_3_3_2', @@ -549,27 +550,27 @@ DATA Specifies a pointer to the image data in memory. `gluBuild2DMipmapLevels' builds a subset of prefiltered two-dimensional -texture maps of decreasing resolutions called a mipmap. This is used for -the antialiasing of texture mapped primitives. +texture maps of decreasing resolutions called a mipmap. This is used +for the antialiasing of texture mapped primitives. A return value of zero indicates success, otherwise a GLU error code is returned (see `gluErrorString'). A series of mipmap levels from BASE to MAX is built by decimating DATA -in half along both dimensions until size 1×1 is reached. At each level, +in half along both dimensions until size 1×1 is reached. At each level, each texel in the halved mipmap level is an average of the corresponding -four texels in the larger mipmap level. (In the case of rectangular +four texels in the larger mipmap level. (In the case of rectangular images, the decimation will ultimately reach an N×1 or 1×N -configuration. Here, two texels are averaged instead.) `glTexImage2D' is -called to load these mipmap levels from BASE to MAX. If MAX is larger -than the highest mipmap level for the texture of the specified size, -then a GLU error code is returned (see `gluErrorString') and nothing is -loaded. +configuration. Here, two texels are averaged instead.) `glTexImage2D' +is called to load these mipmap levels from BASE to MAX. If MAX is +larger than the highest mipmap level for the texture of the specified +size, then a GLU error code is returned (see `gluErrorString') and +nothing is loaded. For example, if LEVEL is 2 and WIDTH is 16 and HEIGHT is 8, the -following levels are possible: 16×8 , 8×4 , 4×2 , 2×1 , 1×1 . These -correspond to levels 2 through 6 respectively. If BASE is 3 and MAX is -5, then only mipmap levels 8×4 , 4×2 , and 2×1 are loaded. However, if +following levels are possible: 16×8 , 8×4 , 4×2 , 2×1 , 1×1 . These +correspond to levels 2 through 6 respectively. If BASE is 3 and MAX is +5, then only mipmap levels 8×4 , 4×2 , and 2×1 are loaded. However, if MAX is 7, then an error is returned and nothing is loaded since MAX is larger than the highest mipmap level which is, in this case, 6. @@ -577,8 +578,9 @@ The highest mipmap level can be derived from the formula LOG_2\u2061(MAX\u2061(WIDTH,HEIGHT)×2^LEVEL,) . See the `glTexImage1D' reference page for a description of the -acceptable values for FORMAT parameter. See the `glDrawPixels' reference -page for a description of the acceptable values for TYPE parameter. +acceptable values for FORMAT parameter. See the `glDrawPixels' +reference page for a description of the acceptable values for TYPE +parameter. `GLU_INVALID_VALUE' is returned if LEVEL > BASE, BASE < 0, MAX < BASE, or MAX is > the highest mipmap level for DATA. @@ -625,30 +627,30 @@ FORMAT is neither `GLU_RGBA' nor `GLU_BGRA'.") "Builds a two-dimensional mipmap. TARGET - Specifies the target texture. Must be `GLU_TEXTURE_2D'. + Specifies the target texture. Must be `GLU_TEXTURE_2D'. INTERNALFORMAT - Requests the internal storage format of the texture image. The most - current version of the SGI implementation of GLU does not check - this value for validity before passing it on to the underlying - OpenGL implementation. A value that is not accepted by the OpenGL - implementation will lead to an OpenGL error. The benefit of not - checking this value at the GLU level is that OpenGL extensions can - add new internal texture formats without requiring a revision of - the GLU implementation. Older implementations of GLU check this - value and raise a GLU error if it is not 1, 2, 3, or 4 or one of - the following symbolic constants: `GLU_ALPHA', `GLU_ALPHA4', - `GLU_ALPHA8', `GLU_ALPHA12', `GLU_ALPHA16', `GLU_LUMINANCE', - `GLU_LUMINANCE4', `GLU_LUMINANCE8', `GLU_LUMINANCE12', - `GLU_LUMINANCE16', `GLU_LUMINANCE_ALPHA', `GLU_LUMINANCE4_ALPHA4', - `GLU_LUMINANCE6_ALPHA2', `GLU_LUMINANCE8_ALPHA8', - `GLU_LUMINANCE12_ALPHA4', `GLU_LUMINANCE12_ALPHA12', - `GLU_LUMINANCE16_ALPHA16', `GLU_INTENSITY', `GLU_INTENSITY4', - `GLU_INTENSITY8', `GLU_INTENSITY12', `GLU_INTENSITY16', `GLU_RGB', - `GLU_R3_G3_B2', `GLU_RGB4', `GLU_RGB5', `GLU_RGB8', `GLU_RGB10', - `GLU_RGB12', `GLU_RGB16', `GLU_RGBA', `GLU_RGBA2', `GLU_RGBA4', - `GLU_RGB5_A1', `GLU_RGBA8', `GLU_RGB10_A2', `GLU_RGBA12', or - `GLU_RGBA16'. + Requests the internal storage format of the texture image. The + most current version of the SGI implementation of GLU does not + check this value for validity before passing it on to the + underlying OpenGL implementation. A value that is not accepted by + the OpenGL implementation will lead to an OpenGL error. The + benefit of not checking this value at the GLU level is that OpenGL + extensions can add new internal texture formats without requiring a + revision of the GLU implementation. Older implementations of GLU + check this value and raise a GLU error if it is not 1, 2, 3, or 4 + or one of the following symbolic constants: `GLU_ALPHA', + `GLU_ALPHA4', `GLU_ALPHA8', `GLU_ALPHA12', `GLU_ALPHA16', + `GLU_LUMINANCE', `GLU_LUMINANCE4', `GLU_LUMINANCE8', + `GLU_LUMINANCE12', `GLU_LUMINANCE16', `GLU_LUMINANCE_ALPHA', + `GLU_LUMINANCE4_ALPHA4', `GLU_LUMINANCE6_ALPHA2', + `GLU_LUMINANCE8_ALPHA8', `GLU_LUMINANCE12_ALPHA4', + `GLU_LUMINANCE12_ALPHA12', `GLU_LUMINANCE16_ALPHA16', + `GLU_INTENSITY', `GLU_INTENSITY4', `GLU_INTENSITY8', + `GLU_INTENSITY12', `GLU_INTENSITY16', `GLU_RGB', `GLU_R3_G3_B2', + `GLU_RGB4', `GLU_RGB5', `GLU_RGB8', `GLU_RGB10', `GLU_RGB12', + `GLU_RGB16', `GLU_RGBA', `GLU_RGBA2', `GLU_RGBA4', `GLU_RGB5_A1', + `GLU_RGBA8', `GLU_RGB10_A2', `GLU_RGBA12', or `GLU_RGBA16'. WIDTH HEIGHT @@ -657,13 +659,13 @@ WIDTH texture image. FORMAT - Specifies the format of the pixel data. Must be one of + Specifies the format of the pixel data. Must be one of `GLU_COLOR_INDEX', `GLU_DEPTH_COMPONENT', `GLU_RED', `GLU_GREEN', `GLU_BLUE', `GLU_ALPHA', `GLU_RGB', `GLU_RGBA', `GLU_BGR', `GLU_BGRA', `GLU_LUMINANCE', or `GLU_LUMINANCE_ALPHA'. TYPE - Specifies the data type for DATA. Must be one of + Specifies the data type for DATA. Must be one of `GLU_UNSIGNED_BYTE', `GLU_BYTE', `GLU_BITMAP', `GLU_UNSIGNED_SHORT', `GLU_SHORT', `GLU_UNSIGNED_INT', `GLU_INT', `GLU_FLOAT', `GLU_UNSIGNED_BYTE_3_3_2', @@ -678,43 +680,45 @@ DATA Specifies a pointer to the image data in memory. `gluBuild2DMipmaps' builds a series of prefiltered two-dimensional -texture maps of decreasing resolutions called a mipmap. This is used for -the antialiasing of texture-mapped primitives. +texture maps of decreasing resolutions called a mipmap. This is used +for the antialiasing of texture-mapped primitives. A return value of zero indicates success, otherwise a GLU error code is returned (see `gluErrorString'). Initially, the WIDTH and HEIGHT of DATA are checked to see if they are a -power of 2. If not, a copy of DATA (not DATA), is scaled up or down to -the nearest power of 2. This copy will be used for subsequent mipmapping -operations described below. (If WIDTH or HEIGHT is exactly between -powers of 2, then the copy of DATA will scale upwards.) For example, if -WIDTH is 57 and HEIGHT is 23, then a copy of DATA will scale up to 64 in -WIDTH and down to 16 in depth, before mipmapping takes place. +power of 2. If not, a copy of DATA (not DATA), is scaled up or down to +the nearest power of 2. This copy will be used for subsequent +mipmapping operations described below. (If WIDTH or HEIGHT is exactly +between powers of 2, then the copy of DATA will scale upwards.) For +example, if WIDTH is 57 and HEIGHT is 23, then a copy of DATA will scale +up to 64 in WIDTH and down to 16 in depth, before mipmapping takes +place. Then, proxy textures (see `glTexImage2D') are used to determine if the -implementation can fit the requested texture. If not, both dimensions -are continually halved until it fits. (If the OpenGL version is \\(<= +implementation can fit the requested texture. If not, both dimensions +are continually halved until it fits. (If the OpenGL version is \\(<= 1.0, both maximum texture dimensions are clamped to the value returned by `glGetIntegerv' with the argument `GLU_MAX_TEXTURE_SIZE'.) Next, a series of mipmap levels is built by decimating a copy of DATA in -half along both dimensions until size 1×1 is reached. At each level, +half along both dimensions until size 1×1 is reached. At each level, each texel in the halved mipmap level is an average of the corresponding -four texels in the larger mipmap level. (In the case of rectangular +four texels in the larger mipmap level. (In the case of rectangular images, the decimation will ultimately reach an N×1 or 1×N -configuration. Here, two texels are averaged instead.) +configuration. Here, two texels are averaged instead.) -`glTexImage2D' is called to load each of these mipmap levels. Level 0 is -a copy of DATA. The highest level is LOG_2,\u2061(MAX\u2061(WIDTH,HEIGHT),) . For -example, if WIDTH is 64 and HEIGHT is 16 and the implementation can +`glTexImage2D' is called to load each of these mipmap levels. Level 0 +is a copy of DATA. The highest level is LOG_2,\u2061(MAX\u2061(WIDTH,HEIGHT),) . +For example, if WIDTH is 64 and HEIGHT is 16 and the implementation can store a texture of this size, the following mipmap levels are built: 64×16 , 32×8 , 16×4 , 8×2 , 4×1 , 2×1 , and 1×1 These correspond to levels 0 through 6, respectively. See the `glTexImage1D' reference page for a description of the -acceptable values for FORMAT parameter. See the `glDrawPixels' reference -page for a description of the acceptable values for TYPE parameter. +acceptable values for FORMAT parameter. See the `glDrawPixels' +reference page for a description of the acceptable values for TYPE +parameter. `GLU_INVALID_VALUE' is returned if WIDTH or HEIGHT is < 1. @@ -762,30 +766,30 @@ FORMAT is neither `GLU_RGBA' nor `GLU_BGRA'.") "Builds a subset of three-dimensional mipmap levels. TARGET - Specifies the target texture. Must be `GLU_TEXTURE_3D'. + Specifies the target texture. Must be `GLU_TEXTURE_3D'. INTERNALFORMAT - Requests the internal storage format of the texture image. The most - current version of the SGI implementation of GLU does not check - this value for validity before passing it on to the underlying - OpenGL implementation. A value that is not accepted by the OpenGL - implementation will lead to an OpenGL error. The benefit of not - checking this value at the GLU level is that OpenGL extensions can - add new internal texture formats without requiring a revision of - the GLU implementation. Older implementations of GLU check this - value and raise a GLU error if it is not 1, 2, 3, or 4 or one of - the following symbolic constants: `GLU_ALPHA', `GLU_ALPHA4', - `GLU_ALPHA8', `GLU_ALPHA12', `GLU_ALPHA16', `GLU_LUMINANCE', - `GLU_LUMINANCE4', `GLU_LUMINANCE8', `GLU_LUMINANCE12', - `GLU_LUMINANCE16', `GLU_LUMINANCE_ALPHA', `GLU_LUMINANCE4_ALPHA4', - `GLU_LUMINANCE6_ALPHA2', `GLU_LUMINANCE8_ALPHA8', - `GLU_LUMINANCE12_ALPHA4', `GLU_LUMINANCE12_ALPHA12', - `GLU_LUMINANCE16_ALPHA16', `GLU_INTENSITY', `GLU_INTENSITY4', - `GLU_INTENSITY8', `GLU_INTENSITY12', `GLU_INTENSITY16', `GLU_RGB', - `GLU_R3_G3_B2', `GLU_RGB4', `GLU_RGB5', `GLU_RGB8', `GLU_RGB10', - `GLU_RGB12', `GLU_RGB16', `GLU_RGBA', `GLU_RGBA2', `GLU_RGBA4', - `GLU_RGB5_A1', `GLU_RGBA8', `GLU_RGB10_A2', `GLU_RGBA12', or - `GLU_RGBA16'. + Requests the internal storage format of the texture image. The + most current version of the SGI implementation of GLU does not + check this value for validity before passing it on to the + underlying OpenGL implementation. A value that is not accepted by + the OpenGL implementation will lead to an OpenGL error. The + benefit of not checking this value at the GLU level is that OpenGL + extensions can add new internal texture formats without requiring a + revision of the GLU implementation. Older implementations of GLU + check this value and raise a GLU error if it is not 1, 2, 3, or 4 + or one of the following symbolic constants: `GLU_ALPHA', + `GLU_ALPHA4', `GLU_ALPHA8', `GLU_ALPHA12', `GLU_ALPHA16', + `GLU_LUMINANCE', `GLU_LUMINANCE4', `GLU_LUMINANCE8', + `GLU_LUMINANCE12', `GLU_LUMINANCE16', `GLU_LUMINANCE_ALPHA', + `GLU_LUMINANCE4_ALPHA4', `GLU_LUMINANCE6_ALPHA2', + `GLU_LUMINANCE8_ALPHA8', `GLU_LUMINANCE12_ALPHA4', + `GLU_LUMINANCE12_ALPHA12', `GLU_LUMINANCE16_ALPHA16', + `GLU_INTENSITY', `GLU_INTENSITY4', `GLU_INTENSITY8', + `GLU_INTENSITY12', `GLU_INTENSITY16', `GLU_RGB', `GLU_R3_G3_B2', + `GLU_RGB4', `GLU_RGB5', `GLU_RGB8', `GLU_RGB10', `GLU_RGB12', + `GLU_RGB16', `GLU_RGBA', `GLU_RGBA2', `GLU_RGBA4', `GLU_RGB5_A1', + `GLU_RGBA8', `GLU_RGB10_A2', `GLU_RGBA12', or `GLU_RGBA16'. WIDTH HEIGHT @@ -793,16 +797,16 @@ WIDTH DEPTH Specifies in pixels the width, height and depth respectively, of - the texture image. These should be a power of 2. + the texture image. These should be a power of 2. FORMAT - Specifies the format of the pixel data. Must be one of + Specifies the format of the pixel data. Must be one of `GLU_COLOR_INDEX', `GLU_DEPTH_COMPONENT', `GLU_RED', `GLU_GREEN', `GLU_BLUE', `GLU_ALPHA', `GLU_RGB', `GLU_RGBA', `GLU_BGR', `GLU_BGRA', `GLU_LUMINANCE', or `GLU_LUMINANCE_ALPHA'. TYPE - Specifies the data type for DATA. Must be one of + Specifies the data type for DATA. Must be one of `GLU_UNSIGNED_BYTE', `GLU_BYTE', `GLU_BITMAP', `GLU_UNSIGNED_SHORT', `GLU_SHORT', `GLU_UNSIGNED_INT', `GLU_INT', `GLU_FLOAT', `GLU_UNSIGNED_BYTE_3_3_2', @@ -827,26 +831,26 @@ DATA `gluBuild3DMipmapLevels' builds a subset of prefiltered three-dimensional texture maps of decreasing resolutions called a -mipmap. This is used for the antialiasing of texture mapped primitives. +mipmap. This is used for the antialiasing of texture mapped primitives. A return value of zero indicates success, otherwise a GLU error code is returned (see `gluErrorString'). A series of mipmap levels from BASE to MAX is built by decimating DATA -in half along both dimensions until size 1×1×1 is reached. At each +in half along both dimensions until size 1×1×1 is reached. At each level, each texel in the halved mipmap level is an average of the -corresponding eight texels in the larger mipmap level. (If exactly one -of the dimensions is 1, four texels are averaged. If exactly two of the +corresponding eight texels in the larger mipmap level. (If exactly one +of the dimensions is 1, four texels are averaged. If exactly two of the dimensions are 1, two texels are averaged.) `glTexImage3D' is called to -load these mipmap levels from BASE to MAX. If MAX is larger than the +load these mipmap levels from BASE to MAX. If MAX is larger than the highest mipmap level for the texture of the specified size, then a GLU error code is returned (see `gluErrorString') and nothing is loaded. For example, if LEVEL is 2 and WIDTH is 16, HEIGHT is 8 and DEPTH is 4, the following levels are possible: 16×8×4 , 8×4×2 , 4×2×1 , 2×1×1 , -1×1×1 . These correspond to levels 2 through 6 respectively. If BASE is -3 and MAX is 5, then only mipmap levels 8×4×2 , 4×2×1 , and 2×1×1 are -loaded. However, if MAX is 7, then an error is returned and nothing is +1×1×1 . These correspond to levels 2 through 6 respectively. If BASE +is 3 and MAX is 5, then only mipmap levels 8×4×2 , 4×2×1 , and 2×1×1 are +loaded. However, if MAX is 7, then an error is returned and nothing is loaded, since MAX is larger than the highest mipmap level which is, in this case, 6. @@ -854,8 +858,9 @@ The highest mipmap level can be derived from the formula LOG_2\u2061(MAX\u2061(WIDTH,HEIGHTDEPTH)×2^LEVEL,) . See the `glTexImage1D' reference page for a description of the -acceptable values for FORMAT parameter. See the `glDrawPixels' reference -page for a description of the acceptable values for TYPE parameter. +acceptable values for FORMAT parameter. See the `glDrawPixels' +reference page for a description of the acceptable values for TYPE +parameter. `GLU_INVALID_VALUE' is returned if LEVEL > BASE, BASE < 0, MAX < BASE, or MAX is > the highest mipmap level for DATA. @@ -903,30 +908,30 @@ FORMAT is neither `GLU_RGBA' nor `GLU_BGRA'.") "Builds a three-dimensional mipmap. TARGET - Specifies the target texture. Must be `GLU_TEXTURE_3D'. + Specifies the target texture. Must be `GLU_TEXTURE_3D'. INTERNALFORMAT - Requests the internal storage format of the texture image. The most - current version of the SGI implementation of GLU does not check - this value for validity before passing it on to the underlying - OpenGL implementation. A value that is not accepted by the OpenGL - implementation will lead to an OpenGL error. The benefit of not - checking this value at the GLU level is that OpenGL extensions can - add new internal texture formats without requiring a revision of - the GLU implementation. Older implementations of GLU check this - value and raise a GLU error if it is not 1, 2, 3, or 4 or one of - the following symbolic constants: `GLU_ALPHA', `GLU_ALPHA4', - `GLU_ALPHA8', `GLU_ALPHA12', `GLU_ALPHA16', `GLU_LUMINANCE', - `GLU_LUMINANCE4', `GLU_LUMINANCE8', `GLU_LUMINANCE12', - `GLU_LUMINANCE16', `GLU_LUMINANCE_ALPHA', `GLU_LUMINANCE4_ALPHA4', - `GLU_LUMINANCE6_ALPHA2', `GLU_LUMINANCE8_ALPHA8', - `GLU_LUMINANCE12_ALPHA4', `GLU_LUMINANCE12_ALPHA12', - `GLU_LUMINANCE16_ALPHA16', `GLU_INTENSITY', `GLU_INTENSITY4', - `GLU_INTENSITY8', `GLU_INTENSITY12', `GLU_INTENSITY16', `GLU_RGB', - `GLU_R3_G3_B2', `GLU_RGB4', `GLU_RGB5', `GLU_RGB8', `GLU_RGB10', - `GLU_RGB12', `GLU_RGB16', `GLU_RGBA', `GLU_RGBA2', `GLU_RGBA4', - `GLU_RGB5_A1', `GLU_RGBA8', `GLU_RGB10_A2', `GLU_RGBA12', or - `GLU_RGBA16'. + Requests the internal storage format of the texture image. The + most current version of the SGI implementation of GLU does not + check this value for validity before passing it on to the + underlying OpenGL implementation. A value that is not accepted by + the OpenGL implementation will lead to an OpenGL error. The + benefit of not checking this value at the GLU level is that OpenGL + extensions can add new internal texture formats without requiring a + revision of the GLU implementation. Older implementations of GLU + check this value and raise a GLU error if it is not 1, 2, 3, or 4 + or one of the following symbolic constants: `GLU_ALPHA', + `GLU_ALPHA4', `GLU_ALPHA8', `GLU_ALPHA12', `GLU_ALPHA16', + `GLU_LUMINANCE', `GLU_LUMINANCE4', `GLU_LUMINANCE8', + `GLU_LUMINANCE12', `GLU_LUMINANCE16', `GLU_LUMINANCE_ALPHA', + `GLU_LUMINANCE4_ALPHA4', `GLU_LUMINANCE6_ALPHA2', + `GLU_LUMINANCE8_ALPHA8', `GLU_LUMINANCE12_ALPHA4', + `GLU_LUMINANCE12_ALPHA12', `GLU_LUMINANCE16_ALPHA16', + `GLU_INTENSITY', `GLU_INTENSITY4', `GLU_INTENSITY8', + `GLU_INTENSITY12', `GLU_INTENSITY16', `GLU_RGB', `GLU_R3_G3_B2', + `GLU_RGB4', `GLU_RGB5', `GLU_RGB8', `GLU_RGB10', `GLU_RGB12', + `GLU_RGB16', `GLU_RGBA', `GLU_RGBA2', `GLU_RGBA4', `GLU_RGB5_A1', + `GLU_RGBA8', `GLU_RGB10_A2', `GLU_RGBA12', or `GLU_RGBA16'. WIDTH HEIGHT @@ -937,13 +942,13 @@ WIDTH pixels of the texture image. FORMAT - Specifies the format of the pixel data. Must be one of + Specifies the format of the pixel data. Must be one of `GLU_COLOR_INDEX', `GLU_DEPTH_COMPONENT', `GLU_RED', `GLU_GREEN', `GLU_BLUE', `GLU_ALPHA', `GLU_RGB', `GLU_RGBA', `GLU_BGR', `GLU_BGRA', `GLU_LUMINANCE', or `GLU_LUMINANCE_ALPHA'. TYPE - Specifies the data type for DATA. Must be one of: + Specifies the data type for DATA. Must be one of: `GLU_UNSIGNED_BYTE', `GLU_BYTE', `GLU_BITMAP', `GLU_UNSIGNED_SHORT', `GLU_SHORT', `GLU_UNSIGNED_INT', `GLU_INT', `GLU_FLOAT', `GLU_UNSIGNED_BYTE_3_3_2', @@ -958,15 +963,15 @@ DATA Specifies a pointer to the image data in memory. `gluBuild3DMipmaps' builds a series of prefiltered three-dimensional -texture maps of decreasing resolutions called a mipmap. This is used for -the antialiasing of texture-mapped primitives. +texture maps of decreasing resolutions called a mipmap. This is used +for the antialiasing of texture-mapped primitives. A return value of zero indicates success, otherwise a GLU error code is returned (see `gluErrorString'). Initially, the WIDTH, HEIGHT and DEPTH of DATA are checked to see if -they are a power of 2. If not, a copy of DATA is made and scaled up or -down to the nearest power of 2. (If WIDTH, HEIGHT, or DEPTH is exactly +they are a power of 2. If not, a copy of DATA is made and scaled up or +down to the nearest power of 2. (If WIDTH, HEIGHT, or DEPTH is exactly between powers of 2, then the copy of DATA will scale upwards.) This copy will be used for subsequent mipmapping operations described below. For example, if WIDTH is 57, HEIGHT is 23, and DEPTH is 24, then a copy @@ -974,26 +979,28 @@ of DATA will scale up to 64 in width, down to 16 in height, and up to 32 in depth before mipmapping takes place. Then, proxy textures (see `glTexImage3D') are used to determine if the -implementation can fit the requested texture. If not, all three +implementation can fit the requested texture. If not, all three dimensions are continually halved until it fits. Next, a series of mipmap levels is built by decimating a copy of DATA in -half along all three dimensions until size 1×1×1 is reached. At each +half along all three dimensions until size 1×1×1 is reached. At each level, each texel in the halved mipmap level is an average of the -corresponding eight texels in the larger mipmap level. (If exactly one -of the dimensions is 1, four texels are averaged. If exactly two of the +corresponding eight texels in the larger mipmap level. (If exactly one +of the dimensions is 1, four texels are averaged. If exactly two of the dimensions are 1, two texels are averaged.) -`glTexImage3D' is called to load each of these mipmap levels. Level 0 is -a copy of DATA. The highest level is LOG_2,\u2061(MAX\u2061(WIDTH,HEIGHTDEPTH),) . -For example, if WIDTH is 64, HEIGHT is 16, and DEPTH is 32, and the -implementation can store a texture of this size, the following mipmap -levels are built: 64×16×32 , 32×8×16 , 16×4×8 , 8×2×4 , 4×1×2 , 2×1×1 , -and 1×1×1 . These correspond to levels 0 through 6, respectively. +`glTexImage3D' is called to load each of these mipmap levels. Level 0 +is a copy of DATA. The highest level is +LOG_2,\u2061(MAX\u2061(WIDTH,HEIGHTDEPTH),) . For example, if WIDTH is 64, HEIGHT +is 16, and DEPTH is 32, and the implementation can store a texture of +this size, the following mipmap levels are built: 64×16×32 , 32×8×16 , +16×4×8 , 8×2×4 , 4×1×2 , 2×1×1 , and 1×1×1 . These correspond to levels +0 through 6, respectively. See the `glTexImage1D' reference page for a description of the -acceptable values for FORMAT parameter. See the `glDrawPixels' reference -page for a description of the acceptable values for TYPE parameter. +acceptable values for FORMAT parameter. See the `glDrawPixels' +reference page for a description of the acceptable values for TYPE +parameter. `GLU_INVALID_VALUE' is returned if WIDTH, HEIGHT, or DEPTH is < 1. @@ -1075,16 +1082,16 @@ SLICES STACKS Specifies the number of subdivisions along the Z axis. -`gluCylinder' draws a cylinder oriented along the Z axis. The base of -the cylinder is placed at Z = 0 and the top at Z=HEIGHT . Like a sphere, -a cylinder is subdivided around the Z axis into slices and along the Z -axis into stacks. +`gluCylinder' draws a cylinder oriented along the Z axis. The base of +the cylinder is placed at Z = 0 and the top at Z=HEIGHT . Like a +sphere, a cylinder is subdivided around the Z axis into slices and along +the Z axis into stacks. Note that if TOP is set to 0.0, this routine generates a cone. If the orientation is set to `GLU_OUTSIDE' (with `gluQuadricOrientation'), then any generated normals point away from the -Z axis. Otherwise, they point toward the Z axis. +Z axis. Otherwise, they point toward the Z axis. If texturing is turned on (with `gluQuadricTexture'), then texture coordinates are generated so that T ranges linearly from 0.0 at Z = 0 to @@ -1100,7 +1107,7 @@ NURB Specifies the NURBS object to be destroyed. `gluDeleteNurbsRenderer' destroys the NURBS object (which was created -with `gluNewNurbsRenderer') and frees any memory it uses. Once +with `gluNewNurbsRenderer') and frees any memory it uses. Once `gluDeleteNurbsRenderer' has been called, NURB cannot be used again.") (define-glu-procedures @@ -1111,7 +1118,7 @@ QUAD Specifies the quadrics object to be destroyed. `gluDeleteQuadric' destroys the quadrics object (created with -`gluNewQuadric') and frees any memory it uses. Once `gluDeleteQuadric' +`gluNewQuadric') and frees any memory it uses. Once `gluDeleteQuadric' has been called, QUAD cannot be used again.") (define-glu-procedures @@ -1151,16 +1158,16 @@ LOOPS Specifies the number of concentric rings about the origin into which the disk is subdivided. -`gluDisk' renders a disk on the Z = 0 plane. The disk has a radius of -OUTER and contains a concentric circular hole with a radius of INNER. If -INNER is 0, then no hole is generated. The disk is subdivided around the -Z axis into slices (like pizza slices) and also about the Z axis into -rings (as specified by SLICES and LOOPS, respectively). +`gluDisk' renders a disk on the Z = 0 plane. The disk has a radius of +OUTER and contains a concentric circular hole with a radius of INNER. If +INNER is 0, then no hole is generated. The disk is subdivided around +the Z axis into slices (like pizza slices) and also about the Z axis +into rings (as specified by SLICES and LOOPS, respectively). With respect to orientation, the +Z side of the disk is considered to be -``outside'' (see `gluQuadricOrientation'). This means that if the +``outside'' (see `gluQuadricOrientation'). This means that if the orientation is set to `GLU_OUTSIDE', then any normals generated point -along the +Z axis. Otherwise, they point along the \\-Z axis. +along the +Z axis. Otherwise, they point along the \\-Z axis. If texturing has been turned on (with `gluQuadricTexture'), texture coordinates are generated linearly such that where R=OUTER , the value @@ -1178,12 +1185,12 @@ ERROR Specifies a GL or GLU error code. `gluErrorString' produces an error string from a GL or GLU error code. -The string is in ISO Latin 1 format. For example, +The string is in ISO Latin 1 format. For example, `gluErrorString'(`GLU_OUT_OF_MEMORY') returns the string OUT OF MEMORY. The standard GLU error codes are `GLU_INVALID_ENUM', -`GLU_INVALID_VALUE', and `GLU_OUT_OF_MEMORY'. Certain other GLU -functions can return specialized error codes through callbacks. See the +`GLU_INVALID_VALUE', and `GLU_OUT_OF_MEMORY'. Certain other GLU +functions can return specialized error codes through callbacks. See the `glGetError' reference page for the list of GL error codes. `NULL' is returned if ERROR is not a valid GL or GLU error code.") @@ -1201,7 +1208,7 @@ NURB Specifies the NURBS object (created with `gluNewNurbsRenderer'). PROPERTY - Specifies the property whose value is to be fetched. Valid values + Specifies the property whose value is to be fetched. Valid values are `GLU_CULLING', `GLU_SAMPLING_TOLERANCE', `GLU_DISPLAY_MODE', `GLU_AUTO_LOAD_MATRIX', `GLU_PARAMETRIC_TOLERANCE', `GLU_SAMPLING_METHOD', `GLU_U_STEP', `GLU_V_STEP', and @@ -1213,7 +1220,7 @@ DATA `gluGetNurbsProperty' retrieves properties stored in a NURBS object. These properties affect the way that NURBS curves and surfaces are -rendered. See the `gluNurbsProperty' reference page for information +rendered. See the `gluNurbsProperty' reference page for information about what the properties are and what they do.") (define-glu-procedures @@ -1235,14 +1242,14 @@ The version string is of the following form: VERSION NUMBERVENDOR-SPECIFIC INFORMATION -Vendor-specific information is optional. Its format and contents depend +Vendor-specific information is optional. Its format and contents depend on the implementation. -The standard GLU contains a basic set of features and capabilities. If a -company or group of companies wish to support other features, these may -be included as extensions to the GLU. If NAME is `GLU_EXTENSIONS', then -`gluGetString' returns a space-separated list of names of supported GLU -extensions. (Extension names never contain spaces.) +The standard GLU contains a basic set of features and capabilities. If +a company or group of companies wish to support other features, these +may be included as extensions to the GLU. If NAME is `GLU_EXTENSIONS', +then `gluGetString' returns a space-separated list of names of supported +GLU extensions. (Extension names never contain spaces.) All strings are null-terminated. @@ -1261,7 +1268,7 @@ TESS Specifies the tessellation object (created with `gluNewTess'). WHICH - Specifies the property whose value is to be fetched. Valid values + Specifies the property whose value is to be fetched. Valid values are `GLU_TESS_WINDING_RULE', `GLU_TESS_BOUNDARY_ONLY', and `GLU_TESS_TOLERANCE'. @@ -1270,8 +1277,8 @@ DATA named property is written. `gluGetTessProperty' retrieves properties stored in a tessellation -object. These properties affect the way that tessellation objects are -interpreted and rendered. See the `gluTessProperty' reference page for +object. These properties affect the way that tessellation objects are +interpreted and rendered. See the `gluTessProperty' reference page for information about the properties and what they do.") (define-glu-procedures @@ -1297,17 +1304,17 @@ VIEW Specifies a viewport (as from a `glGetIntegerv' call). `gluLoadSamplingMatrices' uses MODEL, PERSPECTIVE, and VIEW to recompute -the sampling and culling matrices stored in NURB. The sampling matrix +the sampling and culling matrices stored in NURB. The sampling matrix determines how finely a NURBS curve or surface must be tessellated to satisfy the sampling tolerance (as determined by the -`GLU_SAMPLING_TOLERANCE' property). The culling matrix is used in +`GLU_SAMPLING_TOLERANCE' property). The culling matrix is used in deciding if a NURBS curve or surface should be culled before rendering (when the `GLU_CULLING' property is turned on). `gluLoadSamplingMatrices' is necessary only if the `GLU_AUTO_LOAD_MATRIX' property is turned off (see `gluNurbsProperty'). Although it can be convenient to leave the `GLU_AUTO_LOAD_MATRIX' -property turned on, there can be a performance penalty for doing so. (A +property turned on, there can be a performance penalty for doing so. (A round trip to the GL server is needed to fetch the current values of the modelview matrix, projection matrix, and viewport.)") @@ -1351,12 +1358,12 @@ UPX reference point indicating the center of the scene, and an UP vector. The matrix maps the reference point to the negative Z axis and the eye -point to the origin. When a typical projection matrix is used, the +point to the origin. When a typical projection matrix is used, the center of the scene therefore maps to the center of the viewport. Similarly, the direction described by the UP vector projected onto the viewing plane is mapped to the positive Y axis so that it points upward -in the viewport. The UP vector must not be parallel to the line of sight -from the eye point to the reference point. +in the viewport. The UP vector must not be parallel to the line of +sight from the eye point to the reference point. Let @@ -1390,9 +1397,9 @@ and `gluLookAt' is equivalent to "Create a NURBS object. `gluNewNurbsRenderer' creates and returns a pointer to a new NURBS -object. This object must be referred to when calling NURBS rendering and -control functions. A return value of 0 means that there is not enough -memory to allocate the object.") +object. This object must be referred to when calling NURBS rendering +and control functions. A return value of 0 means that there is not +enough memory to allocate the object.") (define-glu-procedures ((gluNewQuadric -> GLUquadric*)) @@ -1400,7 +1407,7 @@ memory to allocate the object.") `gluNewQuadric' creates and returns a pointer to a new quadrics object. This object must be referred to when calling quadrics rendering and -control functions. A return value of 0 means that there is not enough +control functions. A return value of 0 means that there is not enough memory to allocate the object.") (define-glu-procedures @@ -1408,7 +1415,7 @@ memory to allocate the object.") "Create a tessellation object. `gluNewTess' creates and returns a pointer to a new tessellation object. -This object must be referred to when calling tessellation functions. A +This object must be referred to when calling tessellation functions. A return value of 0 means that there is not enough memory to allocate the object.") @@ -1424,7 +1431,7 @@ TESS Specifies the tessellation object (created with `gluNewTess'). TYPE - Specifies the type of the contour being defined. Valid values are + Specifies the type of the contour being defined. Valid values are `GLU_EXTERIOR', `GLU_INTERIOR', `GLU_UNKNOWN', `GLU_CCW', and `GLU_CW'. @@ -1432,11 +1439,11 @@ TYPE After the first contour has been described through a series of `gluTessVertex' calls, a `gluNextContour' call indicates that the previous contour is complete and that the next contour is about to -begin. Another series of `gluTessVertex' calls is then used to describe -the new contour. This process can be repeated until all contours have +begin. Another series of `gluTessVertex' calls is then used to describe +the new contour. This process can be repeated until all contours have been described. -TYPE defines what type of contour follows. The legal contour types are +TYPE defines what type of contour follows. The legal contour types are as follows: `GLU_EXTERIOR' @@ -1453,7 +1460,7 @@ as follows: `GLU_CCW', `GLU_CW' The first `GLU_CCW' or `GLU_CW' contour defined is considered to be - exterior. All other contours are considered to be exterior if they + exterior. All other contours are considered to be exterior if they are oriented in the same direction (clockwise or counterclockwise) as the first contour, and interior if they are not. @@ -1465,12 +1472,12 @@ Note that there is no real difference between the `GLU_CCW' and `GLU_CW' contour types. Before the first contour is described, `gluNextContour' can be called to -define the type of the first contour. If `gluNextContour' is not called +define the type of the first contour. If `gluNextContour' is not called before the first contour, then the first contour is marked `GLU_EXTERIOR'. This command is obsolete and is provided for backward compatibility -only. Calls to `gluNextContour' are mapped to `gluTessEndContour' +only. Calls to `gluNextContour' are mapped to `gluTessEndContour' followed by `gluTessBeginContour'.") (define-glu-procedures @@ -1488,7 +1495,7 @@ USERDATA Specifies a pointer to the user's data. `gluNurbsCallbackDataEXT' is used to pass a pointer to the application's -data to NURBS tessellator. A copy of this pointer will be passed by the +data to NURBS tessellator. A copy of this pointer will be passed by the tessellator in the NURBS callback functions (set by `gluNurbsCallback').") (define-glu-procedures @@ -1506,7 +1513,7 @@ USERDATA Specifies a pointer to the user's data. `gluNurbsCallbackData' is used to pass a pointer to the application's -data to NURBS tessellator. A copy of this pointer will be passed by the +data to NURBS tessellator. A copy of this pointer will be passed by the tessellator in the NURBS callback functions (set by `gluNurbsCallback').") (define-glu-procedures @@ -1522,7 +1529,7 @@ NURB Specifies the NURBS object (created with `gluNewNurbsRenderer'). WHICH - Specifies the callback being defined. Valid values are + Specifies the callback being defined. Valid values are `GLU_NURBS_BEGIN', `GLU_NURBS_VERTEX', `GLU_NURBS_NORMAL', `GLU_NURBS_COLOR', `GLU_NURBS_TEXTURE_COORD', `GLU_NURBS_END', `GLU_NURBS_BEGIN_DATA', `GLU_NURBS_VERTEX_DATA', @@ -1534,21 +1541,21 @@ CALLBACKFUNC Specifies the function that the callback calls. `gluNurbsCallback' is used to define a callback to be used by a NURBS -object. If the specified callback is already defined, then it is -replaced. If CALLBACKFUNC is NULL, then this callback will not get +object. If the specified callback is already defined, then it is +replaced. If CALLBACKFUNC is NULL, then this callback will not get invoked and the related data, if any, will be lost. Except the error callback, these callbacks are used by NURBS tessellator (when `GLU_NURBS_MODE' is set to be `GLU_NURBS_TESSELLATOR') to return -back the OpenGL polygon primitives resulting from the tessellation. Note +back the OpenGL polygon primitives resulting from the tessellation. Note that there are two versions of each callback: one with a user data -pointer and one without. If both versions for a particular callback are +pointer and one without. If both versions for a particular callback are specified then the callback with the user data pointer will be used. Note that ``userData'' is a copy of the pointer that was specified at the last call to `gluNurbsCallbackData'. The error callback function is effective no matter which value that -`GLU_NURBS_MODE' is set to. All other callback functions are effective +`GLU_NURBS_MODE' is set to. All other callback functions are effective only when `GLU_NURBS_MODE' is set to `GLU_NURBS_TESSELLATOR'. The legal callbacks are as follows: @@ -1556,39 +1563,39 @@ The legal callbacks are as follows: `GLU_NURBS_BEGIN' - The begin callback indicates the start of a primitive. The function - takes a single argument of type GLenum, which can be one of - `GLU_LINES', `GLU_LINE_STRIP', `GLU_TRIANGLE_FAN', - `GLU_TRIANGLE_STRIP', `GLU_TRIANGLES', or `GLU_QUAD_STRIP'. The - default begin callback function is NULL. The function prototype for - this callback looks like: + The begin callback indicates the start of a primitive. The + function takes a single argument of type GLenum, which can be one + of `GLU_LINES', `GLU_LINE_STRIP', `GLU_TRIANGLE_FAN', + `GLU_TRIANGLE_STRIP', `GLU_TRIANGLES', or `GLU_QUAD_STRIP'. The + default begin callback function is NULL. The function prototype + for this callback looks like: `GLU_NURBS_BEGIN_DATA' The same as the `GLU_NURBS_BEGIN' callback except that it takes an - additional pointer argument. This pointer is a copy of the pointer - that was specified at the last call to `gluNurbsCallbackData'. The - default callback function is NULL. The function prototype for this + additional pointer argument. This pointer is a copy of the pointer + that was specified at the last call to `gluNurbsCallbackData'. The + default callback function is NULL. The function prototype for this callback function looks like: `GLU_NURBS_VERTEX' - The vertex callback indicates a vertex of the primitive. The + The vertex callback indicates a vertex of the primitive. The coordinates of the vertex are stored in the parameter ``vertex''. All the generated vertices have dimension 3; that is, homogeneous - coordinates have been transformed into affine coordinates. The - default vertex callback function is NULL. The function prototype + coordinates have been transformed into affine coordinates. The + default vertex callback function is NULL. The function prototype for this callback function looks like: `GLU_NURBS_VERTEX_DATA' This is the same as the `GLU_NURBS_VERTEX' callback, except that it - takes an additional pointer argument. This pointer is a copy of the - pointer that was specified at the last call to - `gluNurbsCallbackData'. The default callback function is NULL. The + takes an additional pointer argument. This pointer is a copy of + the pointer that was specified at the last call to + `gluNurbsCallbackData'. The default callback function is NULL. The function prototype for this callback function looks like: `GLU_NURBS_NORMAL' @@ -1598,90 +1605,90 @@ The legal callbacks are as follows: The components of the normal are stored in the parameter ``normal.'' In the case of a NURBS curve, the callback function is effective only when the user provides a normal map - (`GLU_MAP1_NORMAL'). In the case of a NURBS surface, if a normal + (`GLU_MAP1_NORMAL'). In the case of a NURBS surface, if a normal map (`GLU_MAP2_NORMAL') is provided, then the generated normal is - computed from the normal map. If a normal map is not provided, then - a surface normal is computed in a manner similar to that described - for evaluators when `GLU_AUTO_NORMAL' is enabled. The default - normal callback function is NULL. The function prototype for this - callback function looks like: + computed from the normal map. If a normal map is not provided, + then a surface normal is computed in a manner similar to that + described for evaluators when `GLU_AUTO_NORMAL' is enabled. The + default normal callback function is NULL. The function prototype + for this callback function looks like: `GLU_NURBS_NORMAL_DATA' The same as the `GLU_NURBS_NORMAL' callback except that it takes an - additional pointer argument. This pointer is a copy of the pointer - that was specified at the last call to `gluNurbsCallbackData'. The - default callback function is NULL. The function prototype for this + additional pointer argument. This pointer is a copy of the pointer + that was specified at the last call to `gluNurbsCallbackData'. The + default callback function is NULL. The function prototype for this callback function looks like: `GLU_NURBS_COLOR' The color callback is invoked as the color of a vertex is - generated. The components of the color are stored in the parameter + generated. The components of the color are stored in the parameter ``color.'' This callback is effective only when the user provides a - color map (`GLU_MAP1_COLOR_4' or `GLU_MAP2_COLOR_4'). ``color'' - contains four components: R, G, B, A. The default color callback - function is NULL. The prototype for this callback function looks + color map (`GLU_MAP1_COLOR_4' or `GLU_MAP2_COLOR_4'). ``color'' + contains four components: R, G, B, A. The default color callback + function is NULL. The prototype for this callback function looks like: `GLU_NURBS_COLOR_DATA' The same as the `GLU_NURBS_COLOR' callback except that it takes an - additional pointer argument. This pointer is a copy of the pointer - that was specified at the last call to `gluNurbsCallbackData'. The - default callback function is NULL. The function prototype for this + additional pointer argument. This pointer is a copy of the pointer + that was specified at the last call to `gluNurbsCallbackData'. The + default callback function is NULL. The function prototype for this callback function looks like: `GLU_NURBS_TEXTURE_COORD' The texture callback is invoked as the texture coordinates of a - vertex are generated. These coordinates are stored in the parameter - ``texCoord.'' The number of texture coordinates can be 1, 2, 3, or - 4 depending on which type of texture map is specified + vertex are generated. These coordinates are stored in the + parameter ``texCoord.'' The number of texture coordinates can be 1, + 2, 3, or 4 depending on which type of texture map is specified (`GLU_MAP1_TEXTURE_COORD_1', `GLU_MAP1_TEXTURE_COORD_2', `GLU_MAP1_TEXTURE_COORD_3', `GLU_MAP1_TEXTURE_COORD_4', `GLU_MAP2_TEXTURE_COORD_1', `GLU_MAP2_TEXTURE_COORD_2', - `GLU_MAP2_TEXTURE_COORD_3', `GLU_MAP2_TEXTURE_COORD_4'). If no + `GLU_MAP2_TEXTURE_COORD_3', `GLU_MAP2_TEXTURE_COORD_4'). If no texture map is specified, this callback function will not be - called. The default texture callback function is NULL. The function - prototype for this callback function looks like: + called. The default texture callback function is NULL. The + function prototype for this callback function looks like: `GLU_NURBS_TEXTURE_COORD_DATA' This is the same as the `GLU_NURBS_TEXTURE_COORD' callback, except - that it takes an additional pointer argument. This pointer is a + that it takes an additional pointer argument. This pointer is a copy of the pointer that was specified at the last call to - `gluNurbsCallbackData'. The default callback function is NULL. The + `gluNurbsCallbackData'. The default callback function is NULL. The function prototype for this callback function looks like: `GLU_NURBS_END' - The end callback is invoked at the end of a primitive. The default - end callback function is NULL. The function prototype for this + The end callback is invoked at the end of a primitive. The default + end callback function is NULL. The function prototype for this callback function looks like: `GLU_NURBS_END_DATA' This is the same as the `GLU_NURBS_END' callback, except that it - takes an additional pointer argument. This pointer is a copy of the - pointer that was specified at the last call to - `gluNurbsCallbackData'. The default callback function is NULL. The + takes an additional pointer argument. This pointer is a copy of + the pointer that was specified at the last call to + `gluNurbsCallbackData'. The default callback function is NULL. The function prototype for this callback function looks like: `GLU_NURBS_ERROR' - The error function is called when an error is encountered. Its + The error function is called when an error is encountered. Its single argument is of type GLenum, and it indicates the specific - error that occurred. There are 37 errors unique to NURBS, named - `GLU_NURBS_ERROR1' through `GLU_NURBS_ERROR37'. Character strings + error that occurred. There are 37 errors unique to NURBS, named + `GLU_NURBS_ERROR1' through `GLU_NURBS_ERROR37'. Character strings describing these errors can be retrieved with `gluErrorString'. @@ -1737,8 +1744,8 @@ NURB Specifies the NURBS object (created with `gluNewNurbsRenderer'). KNOTCOUNT - Specifies the number of knots in KNOTS. KNOTCOUNT equals the number - of control points plus the order. + Specifies the number of knots in KNOTS. KNOTCOUNT equals the + number of control points plus the order. KNOTS Specifies an array of KNOTCOUNT nondecreasing knot values. @@ -1748,37 +1755,38 @@ STRIDE floating-point values) between successive curve control points. CONTROL - Specifies a pointer to an array of control points. The coordinates + Specifies a pointer to an array of control points. The coordinates must agree with TYPE, specified below. ORDER - Specifies the order of the NURBS curve. ORDER equals degree + 1, + Specifies the order of the NURBS curve. ORDER equals degree + 1, hence a cubic curve has an order of 4. TYPE - Specifies the type of the curve. If this curve is defined within a + Specifies the type of the curve. If this curve is defined within a `gluBeginCurve'/`gluEndCurve' pair, then the type can be any of the valid one-dimensional evaluator types (such as `GLU_MAP1_VERTEX_3' - or `GLU_MAP1_COLOR_4'). Between a `gluBeginTrim'/`gluEndTrim' pair, - the only valid types are `GLU_MAP1_TRIM_2' and `GLU_MAP1_TRIM_3'. + or `GLU_MAP1_COLOR_4'). Between a `gluBeginTrim'/`gluEndTrim' + pair, the only valid types are `GLU_MAP1_TRIM_2' and + `GLU_MAP1_TRIM_3'. Use `gluNurbsCurve' to describe a NURBS curve. When `gluNurbsCurve' appears between a `gluBeginCurve'/`gluEndCurve' -pair, it is used to describe a curve to be rendered. Positional, +pair, it is used to describe a curve to be rendered. Positional, texture, and color coordinates are associated by presenting each as a separate `gluNurbsCurve' between a `gluBeginCurve'/`gluEndCurve' pair. No more than one call to `gluNurbsCurve' for each of color, position, and texture data can be made within a single -`gluBeginCurve'/`gluEndCurve' pair. Exactly one call must be made to +`gluBeginCurve'/`gluEndCurve' pair. Exactly one call must be made to describe the position of the curve (a TYPE of `GLU_MAP1_VERTEX_3' or `GLU_MAP1_VERTEX_4'). When `gluNurbsCurve' appears between a `gluBeginTrim'/`gluEndTrim' pair, -it is used to describe a trimming curve on a NURBS surface. If TYPE is +it is used to describe a trimming curve on a NURBS surface. If TYPE is `GLU_MAP1_TRIM_2', then it describes a curve in two-dimensional (U and -V) parameter space. If it is `GLU_MAP1_TRIM_3', then it describes a -curve in two-dimensional homogeneous (U, V, and W) parameter space. See +V) parameter space. If it is `GLU_MAP1_TRIM_3', then it describes a +curve in two-dimensional homogeneous (U, V, and W) parameter space. See the `gluBeginTrim' reference page for more discussion about trimming curves.") @@ -1795,39 +1803,39 @@ NURB Specifies the NURBS object (created with `gluNewNurbsRenderer'). PROPERTY - Specifies the property to be set. Valid values are + Specifies the property to be set. Valid values are `GLU_SAMPLING_TOLERANCE', `GLU_DISPLAY_MODE', `GLU_CULLING', `GLU_AUTO_LOAD_MATRIX', `GLU_PARAMETRIC_TOLERANCE', `GLU_SAMPLING_METHOD', `GLU_U_STEP', `GLU_V_STEP', or `GLU_NURBS_MODE'. VALUE - Specifies the value of the indicated property. It may be a numeric + Specifies the value of the indicated property. It may be a numeric value or one of `GLU_OUTLINE_POLYGON', `GLU_FILL', `GLU_OUTLINE_PATCH', `GLU_TRUE', `GLU_FALSE', `GLU_PATH_LENGTH', `GLU_PARAMETRIC_ERROR', `GLU_DOMAIN_DISTANCE', `GLU_NURBS_RENDERER', or `GLU_NURBS_TESSELLATOR'. `gluNurbsProperty' is used to control properties stored in a NURBS -object. These properties affect the way that a NURBS curve is rendered. +object. These properties affect the way that a NURBS curve is rendered. The accepted values for PROPERTY are as follows: `GLU_NURBS_MODE' VALUE should be set to be either `GLU_NURBS_RENDERER' or - `GLU_NURBS_TESSELLATOR'. When set to `GLU_NURBS_RENDERER', NURBS + `GLU_NURBS_TESSELLATOR'. When set to `GLU_NURBS_RENDERER', NURBS objects are tessellated into OpenGL primitives and sent to the - pipeline for rendering. When set to `GLU_NURBS_TESSELLATOR', NURBS + pipeline for rendering. When set to `GLU_NURBS_TESSELLATOR', NURBS objects are tessellated into OpenGL primitives but the vertices, normals, colors, and/or textures are retrieved back through a - callback interface (see `gluNurbsCallback'). This allows the user - to cache the tessellated results for further processing. The + callback interface (see `gluNurbsCallback'). This allows the user + to cache the tessellated results for further processing. The initial value is `GLU_NURBS_RENDERER'. `GLU_SAMPLING_METHOD' - Specifies how a NURBS surface should be tessellated. VALUE may be + Specifies how a NURBS surface should be tessellated. VALUE may be one of `GLU_PATH_LENGTH', `GLU_PARAMETRIC_ERROR', `GLU_DOMAIN_DISTANCE', `GLU_OBJECT_PATH_LENGTH', or - `GLU_OBJECT_PARAMETRIC_ERROR'. When set to `GLU_PATH_LENGTH', the + `GLU_OBJECT_PARAMETRIC_ERROR'. When set to `GLU_PATH_LENGTH', the surface is rendered so that the maximum length, in pixels, of the edges of the tessellation polygons is no greater than what is specified by `GLU_SAMPLING_TOLERANCE'. @@ -1859,42 +1867,42 @@ The accepted values for PROPERTY are as follows: `GLU_SAMPLING_TOLERANCE' Specifies the maximum length, in pixels or in object space length unit, to use when the sampling method is set to `GLU_PATH_LENGTH' - or `GLU_OBJECT_PATH_LENGTH'. The NURBS code is conservative when + or `GLU_OBJECT_PATH_LENGTH'. The NURBS code is conservative when rendering a curve or surface, so the actual length can be somewhat - shorter. The initial value is 50.0 pixels. + shorter. The initial value is 50.0 pixels. `GLU_PARAMETRIC_TOLERANCE' Specifies the maximum distance, in pixels or in object space length unit, to use when the sampling method is `GLU_PARAMETRIC_ERROR' or - `GLU_OBJECT_PARAMETRIC_ERROR'. The initial value is 0.5. + `GLU_OBJECT_PARAMETRIC_ERROR'. The initial value is 0.5. `GLU_U_STEP' Specifies the number of sample points per unit length taken along - the U axis in parametric coordinates. It is needed when - `GLU_SAMPLING_METHOD' is set to `GLU_DOMAIN_DISTANCE'. The initial + the U axis in parametric coordinates. It is needed when + `GLU_SAMPLING_METHOD' is set to `GLU_DOMAIN_DISTANCE'. The initial value is 100. `GLU_V_STEP' Specifies the number of sample points per unit length taken along - the V axis in parametric coordinate. It is needed when - `GLU_SAMPLING_METHOD' is set to `GLU_DOMAIN_DISTANCE'. The initial + the V axis in parametric coordinate. It is needed when + `GLU_SAMPLING_METHOD' is set to `GLU_DOMAIN_DISTANCE'. The initial value is 100. `GLU_DISPLAY_MODE' VALUE can be set to `GLU_OUTLINE_POLYGON', `GLU_FILL', or - `GLU_OUTLINE_PATCH'. When `GLU_NURBS_MODE' is set to be + `GLU_OUTLINE_PATCH'. When `GLU_NURBS_MODE' is set to be `GLU_NURBS_RENDERER', VALUE defines how a NURBS surface should be - rendered. When VALUE is set to `GLU_FILL', the surface is rendered - as a set of polygons. When VALUE is set to `GLU_OUTLINE_POLYGON', + rendered. When VALUE is set to `GLU_FILL', the surface is rendered + as a set of polygons. When VALUE is set to `GLU_OUTLINE_POLYGON', the NURBS library draws only the outlines of the polygons created - by tessellation. When VALUE is set to `GLU_OUTLINE_PATCH' just the + by tessellation. When VALUE is set to `GLU_OUTLINE_PATCH' just the outlines of patches and trim curves defined by the user are drawn. When `GLU_NURBS_MODE' is set to be `GLU_NURBS_TESSELLATOR', VALUE - defines how a NURBS surface should be tessellated. When + defines how a NURBS surface should be tessellated. When `GLU_DISPLAY_MODE' is set to `GLU_FILL' or `GLU_OUTLINE_POLYGON', the NURBS surface is tessellated into OpenGL triangle primitives - that can be retrieved back through callback functions. If + that can be retrieved back through callback functions. If `GLU_DISPLAY_MODE' is set to `GLU_OUTLINE_PATCH', only the outlines of the patches and trim curves are generated as a sequence of line strips that can be retrieved back through callback functions. @@ -1904,14 +1912,14 @@ The accepted values for PROPERTY are as follows: `GLU_CULLING' VALUE is a boolean value that, when set to `GLU_TRUE', indicates that a NURBS curve should be discarded prior to tessellation if its - control points lie outside the current viewport. The initial value + control points lie outside the current viewport. The initial value is `GLU_FALSE'. `GLU_AUTO_LOAD_MATRIX' - VALUE is a boolean value. When set to `GLU_TRUE', the NURBS code + VALUE is a boolean value. When set to `GLU_TRUE', the NURBS code downloads the projection matrix, the modelview matrix, and the viewport from the GL server to compute sampling and culling - matrices for each NURBS curve that is rendered. Sampling and + matrices for each NURBS curve that is rendered. Sampling and culling matrices are required to determine the tessellation of a NURBS surface into line segments or polygons and to cull a NURBS surface if it lies outside the viewport. @@ -1919,8 +1927,8 @@ The accepted values for PROPERTY are as follows: If this mode is set to `GLU_FALSE', then the program needs to provide a projection matrix, a modelview matrix, and a viewport for the NURBS renderer to use to construct sampling and culling - matrices. This can be done with the `gluLoadSamplingMatrices' - function. This mode is initially set to `GLU_TRUE'. Changing it + matrices. This can be done with the `gluLoadSamplingMatrices' + function. This mode is initially set to `GLU_TRUE'. Changing it from `GLU_TRUE' to `GLU_FALSE' does not affect the sampling and culling matrices until `gluLoadSamplingMatrices' is called.") @@ -1975,32 +1983,32 @@ CONTROL SORDER Specifies the order of the NURBS surface in the parametric U - direction. The order is one more than the degree, hence a surface + direction. The order is one more than the degree, hence a surface that is cubic in U has a U order of 4. TORDER Specifies the order of the NURBS surface in the parametric V - direction. The order is one more than the degree, hence a surface + direction. The order is one more than the degree, hence a surface that is cubic in V has a V order of 4. TYPE - Specifies type of the surface. TYPE can be any of the valid + Specifies type of the surface. TYPE can be any of the valid two-dimensional evaluator types (such as `GLU_MAP2_VERTEX_3' or `GLU_MAP2_COLOR_4'). Use `gluNurbsSurface' within a NURBS (Non-Uniform Rational B-Spline) surface definition to describe the shape of a NURBS surface (before any -trimming). To mark the beginning of a NURBS surface definition, use the -`gluBeginSurface' command. To mark the end of a NURBS surface -definition, use the `gluEndSurface' command. Call `gluNurbsSurface' +trimming). To mark the beginning of a NURBS surface definition, use the +`gluBeginSurface' command. To mark the end of a NURBS surface +definition, use the `gluEndSurface' command. Call `gluNurbsSurface' within a NURBS surface definition only. Positional, texture, and color coordinates are associated with a surface by presenting each as a separate `gluNurbsSurface' between a -`gluBeginSurface'/`gluEndSurface' pair. No more than one call to +`gluBeginSurface'/`gluEndSurface' pair. No more than one call to `gluNurbsSurface' for each of color, position, and texture data can be -made within a single `gluBeginSurface'/`gluEndSurface' pair. Exactly one -call must be made to describe the position of the surface (a TYPE of +made within a single `gluBeginSurface'/`gluEndSurface' pair. Exactly +one call must be made to describe the position of the surface (a TYPE of `GLU_MAP2_VERTEX_3' or `GLU_MAP2_VERTEX_4'). A NURBS surface can be trimmed by using the commands `gluNurbsCurve' and @@ -2033,7 +2041,7 @@ BOTTOM Specify the coordinates for the bottom and top horizontal clipping planes. -`gluOrtho2D' sets up a two-dimensional orthographic viewing region. This +`gluOrtho2D' sets up a two-dimensional orthographic viewing region. This is equivalent to calling `glOrtho' with NEAR=-1 and FAR=1 .") (define-glu-procedures @@ -2071,22 +2079,22 @@ START SWEEP Specifies the sweep angle, in degrees, of the disk portion. -`gluPartialDisk' renders a partial disk on the Z=0 plane. A partial disk -is similar to a full disk, except that only the subset of the disk from -START through START + SWEEP is included (where 0 degrees is along the -+\\f2y\\f axis, 90 degrees along the +X axis, 180 degrees along the \\-Y -axis, and 270 degrees along the \\-X axis). +`gluPartialDisk' renders a partial disk on the Z=0 plane. A partial +disk is similar to a full disk, except that only the subset of the disk +from START through START + SWEEP is included (where 0 degrees is along +the +\\f2y\\f axis, 90 degrees along the +X axis, 180 degrees along the +\\-Y axis, and 270 degrees along the \\-X axis). The partial disk has a radius of OUTER and contains a concentric -circular hole with a radius of INNER. If INNER is 0, then no hole is -generated. The partial disk is subdivided around the Z axis into slices +circular hole with a radius of INNER. If INNER is 0, then no hole is +generated. The partial disk is subdivided around the Z axis into slices (like pizza slices) and also about the Z axis into rings (as specified by SLICES and LOOPS, respectively). With respect to orientation, the +Z side of the partial disk is -considered to be outside (see `gluQuadricOrientation'). This means that +considered to be outside (see `gluQuadricOrientation'). This means that if the orientation is set to `GLU_OUTSIDE', then any normals generated -point along the +Z axis. Otherwise, they point along the \\-Z axis. +point along the +Z axis. Otherwise, they point along the \\-Z axis. If texturing is turned on (with `gluQuadricTexture'), texture coordinates are generated linearly such that where R=OUTER , the value @@ -2108,7 +2116,7 @@ FOVY ASPECT Specifies the aspect ratio that determines the field of view in the - X direction. The aspect ratio is the ratio of X (width) to Y + X direction. The aspect ratio is the ratio of X (width) to Y (height). ZNEAR @@ -2120,9 +2128,9 @@ ZFAR (always positive). `gluPerspective' specifies a viewing frustum into the world coordinate -system. In general, the aspect ratio in `gluPerspective' should match -the aspect ratio of the associated viewport. For example, ASPECT=2.0 -means the viewer's angle of view is twice as wide in X as it is in Y. If +system. In general, the aspect ratio in `gluPerspective' should match +the aspect ratio of the associated viewport. For example, ASPECT=2.0 +means the viewer's angle of view is twice as wide in X as it is in Y. If the viewport is twice as wide as it is tall, it displays the image without distortion. @@ -2164,22 +2172,22 @@ VIEWPORT Specifies the current viewport (as from a `glGetIntegerv' call). `gluPickMatrix' creates a projection matrix that can be used to restrict -drawing to a small region of the viewport. This is typically useful to -determine what objects are being drawn near the cursor. Use +drawing to a small region of the viewport. This is typically useful to +determine what objects are being drawn near the cursor. Use `gluPickMatrix' to restrict drawing to a small region around the cursor. Then, enter selection mode (with `glRenderMode') and rerender the scene. All primitives that would have been drawn near the cursor are identified and stored in the selection buffer. The matrix created by `gluPickMatrix' is multiplied by the current -matrix just as if `glMultMatrix' is called with the generated matrix. To +matrix just as if `glMultMatrix' is called with the generated matrix. To effectively use the generated pick matrix for picking, first call `glLoadIdentity' to load an identity matrix onto the perspective matrix -stack. Then call `gluPickMatrix', and, finally, call a command (such as +stack. Then call `gluPickMatrix', and, finally, call a command (such as `gluPerspective') to multiply the perspective matrix by the pick matrix. When using `gluPickMatrix' to pick NURBS, be careful to turn off the -NURBS property `GLU_AUTO_LOAD_MATRIX'. If `GLU_AUTO_LOAD_MATRIX' is not +NURBS property `GLU_AUTO_LOAD_MATRIX'. If `GLU_AUTO_LOAD_MATRIX' is not turned off, then any NURBS surface rendered is subdivided differently with the pick matrix than the way it was subdivided without the pick matrix.") @@ -2225,12 +2233,12 @@ WINX Return the computed window coordinates. `gluProject' transforms the specified object coordinates into window -coordinates using MODEL, PROJ, and VIEW. The result is stored in WINX, -WINY, and WINZ. A return value of `GLU_TRUE' indicates success, a return -value of `GLU_FALSE' indicates failure. +coordinates using MODEL, PROJ, and VIEW. The result is stored in WINX, +WINY, and WINZ. A return value of `GLU_TRUE' indicates success, a +return value of `GLU_FALSE' indicates failure. To compute the coordinates, let V=(OBJX,OBJYOBJZ1.0) represented as a -matrix with 4 rows and 1 column. Then `gluProject' computes V^″ as +matrix with 4 rows and 1 column. Then `gluProject' computes V^″ as follows: V^″=P×M×V @@ -2269,21 +2277,21 @@ STRIDE values) between points on the curve. TYPE - Specifies the type of curve. Must be either `GLU_MAP1_TRIM_2' or + Specifies the type of curve. Must be either `GLU_MAP1_TRIM_2' or `GLU_MAP1_TRIM_3'. `gluPwlCurve' describes a piecewise linear trimming curve for a NURBS -surface. A piecewise linear curve consists of a list of coordinates of -points in the parameter space for the NURBS surface to be trimmed. These -points are connected with line segments to form a curve. If the curve is -an approximation to a curve that is not piecewise linear, the points +surface. A piecewise linear curve consists of a list of coordinates of +points in the parameter space for the NURBS surface to be trimmed. These +points are connected with line segments to form a curve. If the curve +is an approximation to a curve that is not piecewise linear, the points should be close enough in parameter space that the resulting path appears curved at the resolution used in the application. If TYPE is `GLU_MAP1_TRIM_2', then it describes a curve in -two-dimensional (U and V) parameter space. If it is `GLU_MAP1_TRIM_3', +two-dimensional (U and V) parameter space. If it is `GLU_MAP1_TRIM_3', then it describes a curve in two-dimensional homogeneous (U, V, and W) -parameter space. See the `gluBeginTrim' reference page for more +parameter space. See the `gluBeginTrim' reference page for more information about trimming curves.") (define-glu-procedures @@ -2299,23 +2307,23 @@ QUAD Specifies the quadrics object (created with `gluNewQuadric'). WHICH - Specifies the callback being defined. The only valid value is + Specifies the callback being defined. The only valid value is `GLU_ERROR'. CALLBACKFUNC Specifies the function to be called. `gluQuadricCallback' is used to define a new callback to be used by a -quadrics object. If the specified callback is already defined, then it -is replaced. If CALLBACKFUNC is NULL, then any existing callback is +quadrics object. If the specified callback is already defined, then it +is replaced. If CALLBACKFUNC is NULL, then any existing callback is erased. The one legal callback is `GLU_ERROR': `GLU_ERROR' - The function is called when an error is encountered. Its single + The function is called when an error is encountered. Its single argument is of type GLenum, and it indicates the specific error - that occurred. Character strings describing these errors can be + that occurred. Character strings describing these errors can be retrieved with the `gluErrorString' call.") (define-glu-procedures @@ -2330,14 +2338,14 @@ QUAD Specifies the quadrics object (created with `gluNewQuadric'). DRAW - Specifies the desired draw style. Valid values are `GLU_FILL', + Specifies the desired draw style. Valid values are `GLU_FILL', `GLU_LINE', `GLU_SILHOUETTE', and `GLU_POINT'. `gluQuadricDrawStyle' specifies the draw style for quadrics rendered -with QUAD. The legal values are as follows: +with QUAD. The legal values are as follows: `GLU_FILL' - Quadrics are rendered with polygon primitives. The polygons are + Quadrics are rendered with polygon primitives. The polygons are drawn in a counterclockwise fashion with respect to their normals (as defined with `gluQuadricOrientation'). @@ -2363,11 +2371,11 @@ QUAD Specifies the quadrics object (created with `gluNewQuadric'). NORMAL - Specifies the desired type of normals. Valid values are `GLU_NONE', - `GLU_FLAT', and `GLU_SMOOTH'. + Specifies the desired type of normals. Valid values are + `GLU_NONE', `GLU_FLAT', and `GLU_SMOOTH'. `gluQuadricNormals' specifies what kind of normals are desired for -quadrics rendered with QUAD. The legal values are as follows: +quadrics rendered with QUAD. The legal values are as follows: `GLU_NONE' No normals are generated. @@ -2376,7 +2384,7 @@ quadrics rendered with QUAD. The legal values are as follows: One normal is generated for every facet of a quadric. `GLU_SMOOTH' - One normal is generated for every vertex of a quadric. This is the + One normal is generated for every vertex of a quadric. This is the initial value.") (define-glu-procedures @@ -2391,11 +2399,11 @@ QUAD Specifies the quadrics object (created with `gluNewQuadric'). ORIENTATION - Specifies the desired orientation. Valid values are `GLU_OUTSIDE' + Specifies the desired orientation. Valid values are `GLU_OUTSIDE' and `GLU_INSIDE'. `gluQuadricOrientation' specifies what kind of orientation is desired -for quadrics rendered with QUAD. The ORIENTATION values are as follows: +for quadrics rendered with QUAD. The ORIENTATION values are as follows: `GLU_OUTSIDE' Quadrics are drawn with normals pointing outward (the initial @@ -2423,9 +2431,9 @@ TEXTURE generated. `gluQuadricTexture' specifies if texture coordinates should be generated -for quadrics rendered with QUAD. If the value of TEXTURE is `GLU_TRUE', +for quadrics rendered with QUAD. If the value of TEXTURE is `GLU_TRUE', then texture coordinates are generated, and if TEXTURE is `GLU_FALSE', -they are not. The initial value is `GLU_FALSE'. +they are not. The initial value is `GLU_FALSE'. The manner in which texture coordinates are generated depends upon the specific quadric rendered.") @@ -2446,7 +2454,7 @@ specific quadric rendered.") "Scale an image to an arbitrary size. FORMAT - Specifies the format of the pixel data. The following symbolic + Specifies the format of the pixel data. The following symbolic values are valid: `GLU_COLOR_INDEX', `GLU_STENCIL_INDEX', `GLU_DEPTH_COMPONENT', `GLU_RED', `GLU_GREEN', `GLU_BLUE', `GLU_ALPHA', `GLU_RGB', `GLU_RGBA', `GLU_BGR', `GLU_BGRA', @@ -2459,7 +2467,7 @@ WIN image. TYPEIN - Specifies the data type for DATAIN. Must be one of + Specifies the data type for DATAIN. Must be one of `GLU_UNSIGNED_BYTE', `GLU_BYTE', `GLU_BITMAP', `GLU_UNSIGNED_SHORT', `GLU_SHORT', `GLU_UNSIGNED_INT', `GLU_INT', `GLU_FLOAT', `GLU_UNSIGNED_BYTE_3_3_2', @@ -2480,7 +2488,7 @@ WOUT destination image. TYPEOUT - Specifies the data type for DATAOUT. Must be one of + Specifies the data type for DATAOUT. Must be one of `GLU_UNSIGNED_BYTE', `GLU_BYTE', `GLU_BITMAP', `GLU_UNSIGNED_SHORT', `GLU_SHORT', `GLU_UNSIGNED_INT', `GLU_INT', `GLU_FLOAT', `GLU_UNSIGNED_BYTE_3_3_2', @@ -2499,7 +2507,7 @@ modes to unpack data from the source image and pack data into the destination image. When shrinking an image, `gluScaleImage' uses a box filter to sample the -source image and create pixels for the destination image. When +source image and create pixels for the destination image. When magnifying an image, the pixels from the source image are linearly interpolated to create the destination image. @@ -2563,12 +2571,13 @@ STACKS lines of latitude). `gluSphere' draws a sphere of the given radius centered around the -origin. The sphere is subdivided around the Z axis into slices and along -the Z axis into stacks (similar to lines of longitude and latitude). +origin. The sphere is subdivided around the Z axis into slices and +along the Z axis into stacks (similar to lines of longitude and +latitude). If the orientation is set to `GLU_OUTSIDE' (with `gluQuadricOrientation'), then any normals generated point away from the -center of the sphere. Otherwise, they point toward the center of the +center of the sphere. Otherwise, they point toward the center of the sphere. If texturing is turned on (with `gluQuadricTexture'), then texture @@ -2589,12 +2598,13 @@ TESS Specifies the tessellation object (created with `gluNewTess'). `gluTessBeginContour' and `gluTessEndContour' delimit the definition of -a polygon contour. Within each `gluTessBeginContour'/`gluTessEndContour' -pair, there can be zero or more calls to `gluTessVertex'. The vertices -specify a closed contour (the last vertex of each contour is -automatically linked to the first). See the `gluTessVertex' reference -page for more details. `gluTessBeginContour' can only be called between -`gluTessBeginPolygon' and `gluTessEndPolygon'.") +a polygon contour. Within each +`gluTessBeginContour'/`gluTessEndContour' pair, there can be zero or +more calls to `gluTessVertex'. The vertices specify a closed contour +(the last vertex of each contour is automatically linked to the first). +See the `gluTessVertex' reference page for more details. +`gluTessBeginContour' can only be called between `gluTessBeginPolygon' +and `gluTessEndPolygon'.") (define-glu-procedures ((gluTessBeginPolygon @@ -2611,22 +2621,22 @@ DATA Specifies a pointer to user polygon data. `gluTessBeginPolygon' and `gluTessEndPolygon' delimit the definition of -a convex, concave or self-intersecting polygon. Within each +a convex, concave or self-intersecting polygon. Within each `gluTessBeginPolygon'/`gluTessEndPolygon' pair, there must be one or -more calls to `gluTessBeginContour'/`gluTessEndContour'. Within each -contour, there are zero or more calls to `gluTessVertex'. The vertices +more calls to `gluTessBeginContour'/`gluTessEndContour'. Within each +contour, there are zero or more calls to `gluTessVertex'. The vertices specify a closed contour (the last vertex of each contour is -automatically linked to the first). See the `gluTessVertex', +automatically linked to the first). See the `gluTessVertex', `gluTessBeginContour', and `gluTessEndContour' reference pages for more details. -DATA is a pointer to a user-defined data structure. If the appropriate +DATA is a pointer to a user-defined data structure. If the appropriate callback(s) are specified (see `gluTessCallback'), then this pointer is -returned to the callback function(s). Thus, it is a convenient way to +returned to the callback function(s). Thus, it is a convenient way to store per-polygon information. Once `gluTessEndPolygon' is called, the polygon is tessellated, and the -resulting triangles are described through callbacks. See +resulting triangles are described through callbacks. See `gluTessCallback' for descriptions of the callback functions.") (define-glu-procedures @@ -2642,7 +2652,7 @@ TESS Specifies the tessellation object (created with `gluNewTess'). WHICH - Specifies the callback being defined. The following values are + Specifies the callback being defined. The following values are valid: `GLU_TESS_BEGIN', `GLU_TESS_BEGIN_DATA', `GLU_TESS_EDGE_FLAG', `GLU_TESS_EDGE_FLAG_DATA', `GLU_TESS_VERTEX', `GLU_TESS_VERTEX_DATA', `GLU_TESS_END', `GLU_TESS_END_DATA', @@ -2653,81 +2663,83 @@ CALLBACKFUNC Specifies the function to be called. `gluTessCallback' is used to indicate a callback to be used by a -tessellation object. If the specified callback is already defined, then -it is replaced. If CALLBACKFUNC is NULL, then the existing callback +tessellation object. If the specified callback is already defined, then +it is replaced. If CALLBACKFUNC is NULL, then the existing callback becomes undefined. These callbacks are used by the tessellation object to describe how a -polygon specified by the user is broken into triangles. Note that there +polygon specified by the user is broken into triangles. Note that there are two versions of each callback: one with user-specified polygon data -and one without. If both versions of a particular callback are +and one without. If both versions of a particular callback are specified, then the callback with user-specified polygon data will be -used. Note that the POLYGON_DATA parameter used by some of the functions -is a copy of the pointer that was specified when `gluTessBeginPolygon' -was called. The legal callbacks are as follows: +used. Note that the POLYGON_DATA parameter used by some of the +functions is a copy of the pointer that was specified when +`gluTessBeginPolygon' was called. The legal callbacks are as follows: `GLU_TESS_BEGIN' The begin callback is invoked like `glBegin' to indicate the start - of a (triangle) primitive. The function takes a single argument of - type GLenum. If the `GLU_TESS_BOUNDARY_ONLY' property is set to + of a (triangle) primitive. The function takes a single argument of + type GLenum. If the `GLU_TESS_BOUNDARY_ONLY' property is set to `GLU_FALSE', then the argument is set to either `GLU_TRIANGLE_FAN', - `GLU_TRIANGLE_STRIP', or `GLU_TRIANGLES'. If the + `GLU_TRIANGLE_STRIP', or `GLU_TRIANGLES'. If the `GLU_TESS_BOUNDARY_ONLY' property is set to `GLU_TRUE', then the - argument will be set to `GLU_LINE_LOOP'. The function prototype for - this callback is: + argument will be set to `GLU_LINE_LOOP'. The function prototype + for this callback is: `GLU_TESS_BEGIN_DATA' The same as the `GLU_TESS_BEGIN' callback except that it takes an - additional pointer argument. This pointer is identical to the - opaque pointer provided when `gluTessBeginPolygon' was called. The + additional pointer argument. This pointer is identical to the + opaque pointer provided when `gluTessBeginPolygon' was called. The function prototype for this callback is: `GLU_TESS_EDGE_FLAG' - The edge flag callback is similar to `glEdgeFlag'. The function + The edge flag callback is similar to `glEdgeFlag'. The function takes a single boolean flag that indicates which edges lie on the - polygon boundary. If the flag is `GLU_TRUE', then each vertex that + polygon boundary. If the flag is `GLU_TRUE', then each vertex that follows begins an edge that lies on the polygon boundary, that is, - an edge that separates an interior region from an exterior one. If + an edge that separates an interior region from an exterior one. If the flag is `GLU_FALSE', then each vertex that follows begins an - edge that lies in the polygon interior. The edge flag callback (if + edge that lies in the polygon interior. The edge flag callback (if defined) is invoked before the first vertex callback. Since triangle fans and triangle strips do not support edge flags, the begin callback is not called with `GLU_TRIANGLE_FAN' or `GLU_TRIANGLE_STRIP' if a non-NULL edge flag callback is provided. (If the callback is initialized to NULL, there is no impact on - performance). Instead, the fans and strips are converted to - independent triangles. The function prototype for this callback is: + performance). Instead, the fans and strips are converted to + independent triangles. The function prototype for this callback + is: `GLU_TESS_EDGE_FLAG_DATA' The same as the `GLU_TESS_EDGE_FLAG' callback except that it takes - an additional pointer argument. This pointer is identical to the - opaque pointer provided when `gluTessBeginPolygon' was called. The + an additional pointer argument. This pointer is identical to the + opaque pointer provided when `gluTessBeginPolygon' was called. The function prototype for this callback is: `GLU_TESS_VERTEX' The vertex callback is invoked between the begin and end callbacks. It is similar to `glVertex', and it defines the vertices of the - triangles created by the tessellation process. The function takes a - pointer as its only argument. This pointer is identical to the + triangles created by the tessellation process. The function takes + a pointer as its only argument. This pointer is identical to the opaque pointer provided by the user when the vertex was described - (see `gluTessVertex'). The function prototype for this callback is: + (see `gluTessVertex'). The function prototype for this callback + is: `GLU_TESS_VERTEX_DATA' The same as the `GLU_TESS_VERTEX' callback except that it takes an - additional pointer argument. This pointer is identical to the - opaque pointer provided when `gluTessBeginPolygon' was called. The + additional pointer argument. This pointer is identical to the + opaque pointer provided when `gluTessBeginPolygon' was called. The function prototype for this callback is: `GLU_TESS_END' - The end callback serves the same purpose as `glEnd'. It indicates - the end of a primitive and it takes no arguments. The function + The end callback serves the same purpose as `glEnd'. It indicates + the end of a primitive and it takes no arguments. The function prototype for this callback is: `GLU_TESS_END_DATA' The same as the `GLU_TESS_END' callback except that it takes an - additional pointer argument. This pointer is identical to the - opaque pointer provided when `gluTessBeginPolygon' was called. The + additional pointer argument. This pointer is identical to the + opaque pointer provided when `gluTessBeginPolygon' was called. The function prototype for this callback is: `GLU_TESS_COMBINE' @@ -2735,18 +2747,18 @@ was called. The legal callbacks are as follows: tessellation detects an intersection or wishes to merge features. The function takes four arguments: an array of three elements each of type GLdouble, an array of four pointers, an array of four - elements each of type GLfloat, and a pointer to a pointer. The + elements each of type GLfloat, and a pointer to a pointer. The prototype is: The vertex is defined as a linear combination of up to four - existing vertices, stored in VERTEX_DATA. The coefficients of the + existing vertices, stored in VERTEX_DATA. The coefficients of the linear combination are given by WEIGHT; these weights always add up - to 1. All vertex pointers are valid even when some of the weights - are 0. COORDS gives the location of the new vertex. + to 1. All vertex pointers are valid even when some of the weights + are 0. COORDS gives the location of the new vertex. The user must allocate another vertex, interpolate parameters using VERTEX_DATA and WEIGHT, and return the new vertex pointer in - OUTDATA. This handle is supplied during rendering callbacks. The + OUTDATA. This handle is supplied during rendering callbacks. The user is responsible for freeing the memory some time after `gluTessEndPolygon' is called. @@ -2762,37 +2774,37 @@ was called. The legal callbacks are as follows: `GLU_TESS_COMBINE_DATA' The same as the `GLU_TESS_COMBINE' callback except that it takes an - additional pointer argument. This pointer is identical to the - opaque pointer provided when `gluTessBeginPolygon' was called. The + additional pointer argument. This pointer is identical to the + opaque pointer provided when `gluTessBeginPolygon' was called. The function prototype for this callback is: `GLU_TESS_ERROR' - The error callback is called when an error is encountered. The one + The error callback is called when an error is encountered. The one argument is of type GLenum; it indicates the specific error that occurred and will be set to one of `GLU_TESS_MISSING_BEGIN_POLYGON', `GLU_TESS_MISSING_END_POLYGON', `GLU_TESS_MISSING_BEGIN_CONTOUR', `GLU_TESS_MISSING_END_CONTOUR', `GLU_TESS_COORD_TOO_LARGE', `GLU_TESS_NEED_COMBINE_CALLBACK', or - `GLU_OUT_OF_MEMORY'. Character strings describing these errors can - be retrieved with the `gluErrorString' call. The function prototype - for this callback is: + `GLU_OUT_OF_MEMORY'. Character strings describing these errors can + be retrieved with the `gluErrorString' call. The function + prototype for this callback is: The GLU library will recover from the first four errors by - inserting the missing call(s). `GLU_TESS_COORD_TOO_LARGE' indicates - that some vertex coordinate exceeded the predefined constant - `GLU_TESS_MAX_COORD' in absolute value, and that the value has been - clamped. (Coordinate values must be small enough so that two can be - multiplied together without overflow.) + inserting the missing call(s). `GLU_TESS_COORD_TOO_LARGE' + indicates that some vertex coordinate exceeded the predefined + constant `GLU_TESS_MAX_COORD' in absolute value, and that the value + has been clamped. (Coordinate values must be small enough so that + two can be multiplied together without overflow.) `GLU_TESS_NEED_COMBINE_CALLBACK' indicates that the tessellation detected an intersection between two edges in the input data, and the `GLU_TESS_COMBINE' or `GLU_TESS_COMBINE_DATA' callback was not - provided. No output is generated. `GLU_OUT_OF_MEMORY' indicates + provided. No output is generated. `GLU_OUT_OF_MEMORY' indicates that there is not enough memory so no output is generated. `GLU_TESS_ERROR_DATA' The same as the `GLU_TESS_ERROR' callback except that it takes an - additional pointer argument. This pointer is identical to the - opaque pointer provided when `gluTessBeginPolygon' was called. The + additional pointer argument. This pointer is identical to the + opaque pointer provided when `gluTessBeginPolygon' was called. The function prototype for this callback is: @@ -2858,17 +2870,17 @@ TESS Specifies the tessellation object (created with `gluNewTess'). `gluTessBeginPolygon' and `gluTessEndPolygon' delimit the definition of -a convex, concave, or self-intersecting polygon. Within each +a convex, concave, or self-intersecting polygon. Within each `gluTessBeginPolygon'/`gluTessEndPolygon' pair, there must be one or -more calls to `gluTessBeginContour'/`gluTessEndContour'. Within each -contour, there are zero or more calls to `gluTessVertex'. The vertices +more calls to `gluTessBeginContour'/`gluTessEndContour'. Within each +contour, there are zero or more calls to `gluTessVertex'. The vertices specify a closed contour (the last vertex of each contour is -automatically linked to the first). See the `gluTessVertex', +automatically linked to the first). See the `gluTessVertex', `gluTessBeginContour', and `gluTessEndContour' reference pages for more details. Once `gluTessEndPolygon' is called, the polygon is tessellated, and the -resulting triangles are described through callbacks. See +resulting triangles are described through callbacks. See `gluTessCallback' for descriptions of the callback functions.") (define-glu-procedures @@ -2894,20 +2906,20 @@ VALUEZ Specifies the third component of the normal. `gluTessNormal' describes a normal for a polygon that the program is -defining. All input data will be projected onto a plane perpendicular to -one of the three coordinate axes before tessellation and all output +defining. All input data will be projected onto a plane perpendicular +to one of the three coordinate axes before tessellation and all output triangles will be oriented CCW with respect to the normal (CW orientation can be obtained by reversing the sign of the supplied -normal). For example, if you know that all polygons lie in the x-y +normal). For example, if you know that all polygons lie in the x-y plane, call `gluTessNormal'(tess, 0.0, 0.0, 1.0) before rendering any polygons. If the supplied normal is (0.0, 0.0, 0.0) (the initial value), the -normal is determined as follows. The direction of the normal, up to its +normal is determined as follows. The direction of the normal, up to its sign, is found by fitting a plane to the vertices, without regard to how -the vertices are connected. It is expected that the input data lies +the vertices are connected. It is expected that the input data lies approximately in the plane; otherwise, projection perpendicular to one -of the three coordinate axes may substantially change the geometry. The +of the three coordinate axes may substantially change the geometry. The sign of the normal is chosen so that the sum of the signed areas of all input contours is nonnegative (where a CCW contour has positive area). @@ -2927,7 +2939,7 @@ TESS Specifies the tessellation object (created with `gluNewTess'). WHICH - Specifies the property to be set. Valid values are + Specifies the property to be set. Valid values are `GLU_TESS_WINDING_RULE', `GLU_TESS_BOUNDARY_ONLY', and `GLU_TESS_TOLERANCE'. @@ -2935,62 +2947,62 @@ DATA Specifies the value of the indicated property. `gluTessProperty' is used to control properties stored in a tessellation -object. These properties affect the way that the polygons are -interpreted and rendered. The legal values for WHICH are as follows: +object. These properties affect the way that the polygons are +interpreted and rendered. The legal values for WHICH are as follows: `GLU_TESS_WINDING_RULE' - Determines which parts of the polygon are on the ``interior''. DATA + Determines which parts of the polygon are on the ``interior''. DATA may be set to one of `GLU_TESS_WINDING_ODD', `GLU_TESS_WINDING_NONZERO', `GLU_TESS_WINDING_POSITIVE', `GLU_TESS_WINDING_NEGATIVE', or `GLU_TESS_WINDING_ABS_GEQ_TWO'. To understand how the winding rule works, consider that the input - contours partition the plane into regions. The winding rule + contours partition the plane into regions. The winding rule determines which of these regions are inside the polygon. For a single contour C, the winding number of a point x is simply the signed number of revolutions we make around x as we travel once - around C (where CCW is positive). When there are several contours, - the individual winding numbers are summed. This procedure + around C (where CCW is positive). When there are several contours, + the individual winding numbers are summed. This procedure associates a signed integer value with each point x in the plane. Note that the winding number is the same for all points in a single region. The winding rule classifies a region as ``inside'' if its winding number belongs to the chosen category (odd, nonzero, positive, - negative, or absolute value of at least two). The previous GLU - tessellator (prior to GLU 1.2) used the ``odd'' rule. The - ``nonzero'' rule is another common way to define the interior. The + negative, or absolute value of at least two). The previous GLU + tessellator (prior to GLU 1.2) used the ``odd'' rule. The + ``nonzero'' rule is another common way to define the interior. The other three rules are useful for polygon CSG operations. `GLU_TESS_BOUNDARY_ONLY' Is a boolean value (``value'' should be set to GL_TRUE or - GL_FALSE). When set to GL_TRUE, a set of closed contours separating - the polygon interior and exterior are returned instead of a - tessellation. Exterior contours are oriented CCW with respect to - the normal; interior contours are oriented CW. The `GLU_TESS_BEGIN' - and `GLU_TESS_BEGIN_DATA' callbacks use the type GL_LINE_LOOP for - each contour. + GL_FALSE). When set to GL_TRUE, a set of closed contours + separating the polygon interior and exterior are returned instead + of a tessellation. Exterior contours are oriented CCW with respect + to the normal; interior contours are oriented CW. The + `GLU_TESS_BEGIN' and `GLU_TESS_BEGIN_DATA' callbacks use the type + GL_LINE_LOOP for each contour. `GLU_TESS_TOLERANCE' Specifies a tolerance for merging features to reduce the size of - the output. For example, two vertices that are very close to each - other might be replaced by a single vertex. The tolerance is + the output. For example, two vertices that are very close to each + other might be replaced by a single vertex. The tolerance is multiplied by the largest coordinate magnitude of any input vertex; this specifies the maximum distance that any feature can move as - the result of a single merge operation. If a single feature takes + the result of a single merge operation. If a single feature takes part in several merge operations, the total distance moved could be larger. Feature merging is completely optional; the tolerance is only a - hint. The implementation is free to merge in some cases and not in - others, or to never merge features at all. The initial tolerance is - 0. + hint. The implementation is free to merge in some cases and not in + others, or to never merge features at all. The initial tolerance + is 0. The current implementation merges vertices only if they are exactly - coincident, regardless of the current tolerance. A vertex is + coincident, regardless of the current tolerance. A vertex is spliced into an edge only if the implementation is unable to - distinguish which side of the edge the vertex lies on. Two edges + distinguish which side of the edge the vertex lies on. Two edges are merged only when both endpoints are identical.") (define-glu-procedures @@ -3013,13 +3025,13 @@ DATA vertex callback (as specified by `gluTessCallback'). `gluTessVertex' describes a vertex on a polygon that the program -defines. Successive `gluTessVertex' calls describe a closed contour. For -example, to describe a quadrilateral, `gluTessVertex' should be called -four times. `gluTessVertex' can only be called between +defines. Successive `gluTessVertex' calls describe a closed contour. +For example, to describe a quadrilateral, `gluTessVertex' should be +called four times. `gluTessVertex' can only be called between `gluTessBeginContour' and `gluTessEndContour'. DATA normally points to a structure containing the vertex location, as -well as other per-vertex attributes such as color and normal. This +well as other per-vertex attributes such as color and normal. This pointer is passed back to the user through the `GLU_TESS_VERTEX' or `GLU_TESS_VERTEX_DATA' callback after tessellation (see the `gluTessCallback' reference page).") @@ -3078,11 +3090,11 @@ OBJX `gluUnProject4' maps the specified window coordinatesi: WINX, WINY, and WINZ and its clip w coordinate CLIPW into object coordinates -(OBJX,OBJYOBJZOBJW) using MODEL, PROJ, and VIEW. CLIPW can be other than -1 as for vertices in `glFeedbackBuffer' when data type -`GLU_4D_COLOR_TEXTURE' is returned. This also handles the case where the -NEARVAL and FARVAL planes are different from the default, 0 and 1, -respectively. A return value of `GLU_TRUE' indicates success; a return +(OBJX,OBJYOBJZOBJW) using MODEL, PROJ, and VIEW. CLIPW can be other +than 1 as for vertices in `glFeedbackBuffer' when data type +`GLU_4D_COLOR_TEXTURE' is returned. This also handles the case where +the NEARVAL and FARVAL planes are different from the default, 0 and 1, +respectively. A return value of `GLU_TRUE' indicates success; a return value of `GLU_FALSE' indicates failure. To compute the coordinates (OBJX,OBJYOBJZOBJW) , `gluUnProject4' @@ -3138,9 +3150,9 @@ OBJX Returns the computed object coordinates. `gluUnProject' maps the specified window coordinates into object -coordinates using MODEL, PROJ, and VIEW. The result is stored in OBJX, -OBJY, and OBJZ. A return value of `GLU_TRUE' indicates success; a return -value of `GLU_FALSE' indicates failure. +coordinates using MODEL, PROJ, and VIEW. The result is stored in OBJX, +OBJY, and OBJZ. A return value of `GLU_TRUE' indicates success; a +return value of `GLU_FALSE' indicates failure. To compute the coordinates (OBJX,OBJYOBJZ) , `gluUnProject' multiplies the normalized device coordinates by the inverse of MODEL * PROJ as @@ -3149,6 +3161,6 @@ follows: ((OBJX), (OBJY), (OBJZ), (W),)=INV\u2061(P\u2062M,)\u2062((2\u2061(WINX-VIEW\u2061[0,],),/VIEW\u2061[2,],-1), (2\u2061(WINY-VIEW\u2061[1,],),/VIEW\u2061[3,],-1), (2\u2061(WINZ,)-1), (1),) INV denotes -matrix inversion. W is an unused variable, included for consistent +matrix inversion. W is an unused variable, included for consistent matrix notation.") diff --git a/figl/glx/low-level.scm b/figl/glx/low-level.scm index 50517ab..98fa5f3 100644 --- a/figl/glx/low-level.scm +++ b/figl/glx/low-level.scm @@ -17,8 +17,8 @@ ;;; ;;; Derived from upstream OpenGL documentation. ;;; -;;; Copyright (C) 1991-2006 Silicon Graphics, Inc. This document is licensed -;;; under the SGI Free Software B License. For details, see +;;; Copyright (C) 1991-2006 Silicon Graphics, Inc. This document is +;;; licensed under the SGI Free Software B License. For details, see ;;; http://oss.sgi.com/projects/FreeB/ (http://oss.sgi.com/projects/FreeB/). ;;; ;;; Automatically generated; you probably don't want to edit this. To @@ -94,7 +94,7 @@ SCREEN Specifies the screen number. ATTRIB_LIST - Specifies a list of attribute/value pairs. The last attribute must + Specifies a list of attribute/value pairs. The last attribute must be `None'. NELEMENTS @@ -103,28 +103,28 @@ NELEMENTS `glXChooseFBConfig' returns GLX frame buffer configurations that match the attributes specified in ATTRIB_LIST, or `NULL' if no matches are -found. If ATTRIB_LIST is `NULL', then `glXChooseFBConfig' returns an +found. If ATTRIB_LIST is `NULL', then `glXChooseFBConfig' returns an array of GLX frame buffer configurations that are available on the -specified screen. If an error occurs, no frame buffer configurations +specified screen. If an error occurs, no frame buffer configurations exist on the specified screen, or if no frame buffer configurations -match the specified attributes, then `NULL' is returned. Use `XFree' to +match the specified attributes, then `NULL' is returned. Use `XFree' to free the memory returned by `glXChooseFBConfig'. All attributes in ATTRIB_LIST, including boolean attributes, are -immediately followed by the corresponding desired value. The list is -terminated with `None'. If an attribute is not specified in ATTRIB_LIST, -then the default value (see below) is used (and the attribute is said to -be specified implicitly). For example, if `GLX_STEREO' is not specified, -then it is assumed to be `False'. For some attributes, the default is -`GLX_DONT_CARE', meaning that any value is OK for this attribute, so the -attribute will not be checked. - -Attributes are matched in an attribute-specific manner. Some of the +immediately followed by the corresponding desired value. The list is +terminated with `None'. If an attribute is not specified in +ATTRIB_LIST, then the default value (see below) is used (and the +attribute is said to be specified implicitly). For example, if +`GLX_STEREO' is not specified, then it is assumed to be `False'. For +some attributes, the default is `GLX_DONT_CARE', meaning that any value +is OK for this attribute, so the attribute will not be checked. + +Attributes are matched in an attribute-specific manner. Some of the attributes, such as `GLX_LEVEL', must match the specified value exactly; others, such as, `GLX_RED_SIZE' must meet or exceed the specified -minimum values. If more than one GLX frame buffer configuration is +minimum values. If more than one GLX frame buffer configuration is found, then a list of configurations, sorted according to the ``best'' -match criteria, is returned. The match criteria for each attribute and +match criteria, is returned. The match criteria for each attribute and the exact sorting order is defined below. The interpretations of the various GLX visual attributes are as follows: @@ -133,197 +133,198 @@ The interpretations of the various GLX visual attributes are as follows: Must be followed by a valid XID that indicates the desired GLX - frame buffer configuration. When a `GLX_FBCONFIG_ID' is specified, - all attributes are ignored. The default value is `GLX_DONT_CARE'. + frame buffer configuration. When a `GLX_FBCONFIG_ID' is specified, + all attributes are ignored. The default value is `GLX_DONT_CARE'. `GLX_BUFFER_SIZE' Must be followed by a nonnegative integer that indicates the - desired color index buffer size. The smallest index buffer of at - least the specified size is preferred. This attribute is ignored if - `GLX_COLOR_INDEX_BIT' is not set in `GLX_RENDER_TYPE'. The default - value is 0. + desired color index buffer size. The smallest index buffer of at + least the specified size is preferred. This attribute is ignored + if `GLX_COLOR_INDEX_BIT' is not set in `GLX_RENDER_TYPE'. The + default value is 0. `GLX_LEVEL' - Must be followed by an integer buffer-level specification. This - specification is honored exactly. Buffer level 0 corresponds to the - default frame buffer of the display. Buffer level 1 is the first - overlay frame buffer, level two the second overlay frame buffer, - and so on. Negative buffer levels correspond to underlay frame - buffers. The default value is 0. + Must be followed by an integer buffer-level specification. This + specification is honored exactly. Buffer level 0 corresponds to + the default frame buffer of the display. Buffer level 1 is the + first overlay frame buffer, level two the second overlay frame + buffer, and so on. Negative buffer levels correspond to underlay + frame buffers. The default value is 0. `GLX_DOUBLEBUFFER' - Must be followed by `True' or `False'. If `True' is specified, then - only double-buffered frame buffer configurations are considered; if - `False' is specified, then only single-buffered frame buffer - configurations are considered. The default value is + Must be followed by `True' or `False'. If `True' is specified, + then only double-buffered frame buffer configurations are + considered; if `False' is specified, then only single-buffered + frame buffer configurations are considered. The default value is `GLX_DONT_CARE'. `GLX_STEREO' - Must be followed by `True' or `False'. If `True' is specified, then - only stereo frame buffer configurations are considered; if `False' - is specified, then only monoscopic frame buffer configurations are - considered. The default value is `False'. + Must be followed by `True' or `False'. If `True' is specified, + then only stereo frame buffer configurations are considered; if + `False' is specified, then only monoscopic frame buffer + configurations are considered. The default value is `False'. `GLX_AUX_BUFFERS' Must be followed by a nonnegative integer that indicates the - desired number of auxiliary buffers. Configurations with the + desired number of auxiliary buffers. Configurations with the smallest number of auxiliary buffers that meet or exceed the - specified number are preferred. The default value is 0. + specified number are preferred. The default value is 0. `GLX_RED_SIZE', `GLX_GREEN_SIZE', `GLX_BLUE_SIZE', `GLX_ALPHA_SIZE' Each attribute, if present, must be followed by a nonnegative - minimum size specification or `GLX_DONT_CARE'. The largest + minimum size specification or `GLX_DONT_CARE'. The largest available total RGBA color buffer size (sum of `GLX_RED_SIZE', `GLX_GREEN_SIZE', `GLX_BLUE_SIZE', and `GLX_ALPHA_SIZE') of at least the minimum size specified for each color component is - preferred. If the requested number of bits for a color component is - 0 or `GLX_DONT_CARE', it is not considered. The default value for - each color component is 0. + preferred. If the requested number of bits for a color component + is 0 or `GLX_DONT_CARE', it is not considered. The default value + for each color component is 0. `GLX_DEPTH_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, frame buffer configurations with no depth - buffer are preferred. Otherwise, the largest available depth buffer - of at least the minimum size is preferred. The default value is 0. + buffer are preferred. Otherwise, the largest available depth + buffer of at least the minimum size is preferred. The default + value is 0. `GLX_STENCIL_SIZE' Must be followed by a nonnegative integer that indicates the - desired number of stencil bitplanes. The smallest stencil buffer of - at least the specified size is preferred. If the desired value is - zero, frame buffer configurations with no stencil buffer are - preferred. The default value is 0. + desired number of stencil bitplanes. The smallest stencil buffer + of at least the specified size is preferred. If the desired value + is zero, frame buffer configurations with no stencil buffer are + preferred. The default value is 0. `GLX_ACCUM_RED_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, frame buffer configurations with no red - accumulation buffer are preferred. Otherwise, the largest possible + accumulation buffer are preferred. Otherwise, the largest possible red accumulation buffer of at least the minimum size is preferred. The default value is 0. `GLX_ACCUM_GREEN_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, frame buffer configurations with no green - accumulation buffer are preferred. Otherwise, the largest possible + accumulation buffer are preferred. Otherwise, the largest possible green accumulation buffer of at least the minimum size is - preferred. The default value is 0. + preferred. The default value is 0. `GLX_ACCUM_BLUE_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, frame buffer configurations with no blue - accumulation buffer are preferred. Otherwise, the largest possible + accumulation buffer are preferred. Otherwise, the largest possible blue accumulation buffer of at least the minimum size is preferred. The default value is 0. `GLX_ACCUM_ALPHA_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, frame buffer configurations with no alpha - accumulation buffer are preferred. Otherwise, the largest possible + accumulation buffer are preferred. Otherwise, the largest possible alpha accumulation buffer of at least the minimum size is - preferred. The default value is 0. + preferred. The default value is 0. `GLX_RENDER_TYPE' Must be followed by a mask indicating which OpenGL rendering modes - the frame buffer configuration must support. Valid bits are - `GLX_RGBA_BIT' and `GLX_COLOR_INDEX_BIT'. If the mask is set to + the frame buffer configuration must support. Valid bits are + `GLX_RGBA_BIT' and `GLX_COLOR_INDEX_BIT'. If the mask is set to `GLX_RGBA_BIT' | `GLX_COLOR_INDEX_BIT', then only frame buffer configurations that can be bound to both RGBA contexts and color - index contexts will be considered. The default value is + index contexts will be considered. The default value is `GLX_RGBA_BIT'. `GLX_DRAWABLE_TYPE' Must be followed by a mask indicating which GLX drawable types the - frame buffer configuration must support. Valid bits are - `GLX_WINDOW_BIT', `GLX_PIXMAP_BIT', and `GLX_PBUFFER_BIT'. For + frame buffer configuration must support. Valid bits are + `GLX_WINDOW_BIT', `GLX_PIXMAP_BIT', and `GLX_PBUFFER_BIT'. For example, if mask is set to `GLX_WINDOW_BIT' | `GLX_PIXMAP_BIT', only frame buffer configurations that support both windows and GLX - pixmaps will be considered. The default value is `GLX_WINDOW_BIT'. + pixmaps will be considered. The default value is `GLX_WINDOW_BIT'. `GLX_X_RENDERABLE' - Must be followed by `True' or `False'. If `True' is specified, then - only frame buffer configurations that have associated X visuals - (and can be used to render to Windows and/or GLX pixmaps) will be - considered. The default value is `GLX_DONT_CARE'. + Must be followed by `True' or `False'. If `True' is specified, + then only frame buffer configurations that have associated X + visuals (and can be used to render to Windows and/or GLX pixmaps) + will be considered. The default value is `GLX_DONT_CARE'. `GLX_X_VISUAL_TYPE' Must be followed by one of `GLX_TRUE_COLOR', `GLX_DIRECT_COLOR', `GLX_PSEUDO_COLOR', `GLX_STATIC_COLOR', `GLX_GRAY_SCALE', or - `GLX_STATIC_GRAY', indicating the desired X visual type. Not all - frame buffer configurations have an associated X visual. If + `GLX_STATIC_GRAY', indicating the desired X visual type. Not all + frame buffer configurations have an associated X visual. If `GLX_DRAWABLE_TYPE' is specified in ATTRIB_LIST and the mask that follows does not have `GLX_WINDOW_BIT' set, then this value is - ignored. It is also ignored if `GLX_X_RENDERABLE' is specified as - `False'. RGBA rendering may be supported for visuals of type + ignored. It is also ignored if `GLX_X_RENDERABLE' is specified as + `False'. RGBA rendering may be supported for visuals of type `GLX_TRUE_COLOR', `GLX_DIRECT_COLOR', `GLX_PSEUDO_COLOR', or `GLX_STATIC_COLOR', but color index rendering is only supported for visuals of type `GLX_PSEUDO_COLOR' or `GLX_STATIC_COLOR' (i.e., - single-channel visuals). The tokens `GLX_GRAY_SCALE' and + single-channel visuals). The tokens `GLX_GRAY_SCALE' and `GLX_STATIC_GRAY' will not match current OpenGL enabled visuals, - but are included for future use. The default value for + but are included for future use. The default value for `GLX_X_VISUAL_TYPE' is `GLX_DONT_CARE'. `GLX_CONFIG_CAVEAT' Must be followed by one of `GLX_NONE', `GLX_SLOW_CONFIG', - `GLX_NON_CONFORMANT_CONFIG'. If `GLX_NONE' is specified, then only + `GLX_NON_CONFORMANT_CONFIG'. If `GLX_NONE' is specified, then only frame buffer configurations with no caveats will be considered; if `GLX_SLOW_CONFIG' is specified, then only slow frame buffer configurations will be considered; if `GLX_NON_CONFORMANT_CONFIG' is specified, then only nonconformant frame buffer configurations - will be considered. The default value is `GLX_DONT_CARE'. + will be considered. The default value is `GLX_DONT_CARE'. `GLX_TRANSPARENT_TYPE' Must be followed by one of `GLX_NONE', `GLX_TRANSPARENT_RGB', - `GLX_TRANSPARENT_INDEX'. If `GLX_NONE' is specified, then only + `GLX_TRANSPARENT_INDEX'. If `GLX_NONE' is specified, then only opaque frame buffer configurations will be considered; if `GLX_TRANSPARENT_RGB' is specified, then only transparent frame buffer configurations that support RGBA rendering will be considered; if `GLX_TRANSPARENT_INDEX' is specified, then only transparent frame buffer configurations that support color index - rendering will be considered. The default value is `GLX_NONE'. + rendering will be considered. The default value is `GLX_NONE'. `GLX_TRANSPARENT_INDEX_VALUE' Must be followed by an integer value indicating the transparent index value; the value must be between 0 and the maximum frame - buffer value for indices. Only frame buffer configurations that use - the specified transparent index value will be considered. The - default value is `GLX_DONT_CARE'. This attribute is ignored unless + buffer value for indices. Only frame buffer configurations that + use the specified transparent index value will be considered. The + default value is `GLX_DONT_CARE'. This attribute is ignored unless `GLX_TRANSPARENT_TYPE' is included in ATTRIB_LIST and specified as `GLX_TRANSPARENT_INDEX'. @@ -332,9 +333,9 @@ The interpretations of the various GLX visual attributes are as follows: Must be followed by an integer value indicating the transparent red value; the value must be between 0 and the maximum frame buffer - value for red. Only frame buffer configurations that use the - specified transparent red value will be considered. The default - value is `GLX_DONT_CARE'. This attribute is ignored unless + value for red. Only frame buffer configurations that use the + specified transparent red value will be considered. The default + value is `GLX_DONT_CARE'. This attribute is ignored unless `GLX_TRANSPARENT_TYPE' is included in ATTRIB_LIST and specified as `GLX_TRANSPARENT_RGB'. @@ -343,9 +344,9 @@ The interpretations of the various GLX visual attributes are as follows: Must be followed by an integer value indicating the transparent green value; the value must be between 0 and the maximum frame - buffer value for green. Only frame buffer configurations that use - the specified transparent green value will be considered. The - default value is `GLX_DONT_CARE'. This attribute is ignored unless + buffer value for green. Only frame buffer configurations that use + the specified transparent green value will be considered. The + default value is `GLX_DONT_CARE'. This attribute is ignored unless `GLX_TRANSPARENT_TYPE' is included in ATTRIB_LIST and specified as `GLX_TRANSPARENT_RGB'. @@ -354,9 +355,9 @@ The interpretations of the various GLX visual attributes are as follows: Must be followed by an integer value indicating the transparent blue value; the value must be between 0 and the maximum frame - buffer value for blue. Only frame buffer configurations that use - the specified transparent blue value will be considered. The - default value is `GLX_DONT_CARE'. This attribute is ignored unless + buffer value for blue. Only frame buffer configurations that use + the specified transparent blue value will be considered. The + default value is `GLX_DONT_CARE'. This attribute is ignored unless `GLX_TRANSPARENT_TYPE' is included in ATTRIB_LIST and specified as `GLX_TRANSPARENT_RGB'. @@ -365,12 +366,12 @@ The interpretations of the various GLX visual attributes are as follows: Must be followed by an integer value indicating the transparent alpha value; the value must be between 0 and the maximum frame - buffer value for alpha. Only frame buffer configurations that use - the specified transparent alpha value will be considered. The + buffer value for alpha. Only frame buffer configurations that use + the specified transparent alpha value will be considered. The default value is `GLX_DONT_CARE'. When more than one GLX frame buffer configuration matches the specified -attributes, a list of matching configurations is returned. The list is +attributes, a list of matching configurations is returned. The list is sorted according to the following precedence rules, which are applied in ascending order (i.e., configurations that are considered equal by a lower numbered rule are sorted by the higher numbered rule): @@ -382,7 +383,7 @@ lower numbered rule are sorted by the higher numbered rule): 2. Larger total number of RGBA color components (`GLX_RED_SIZE', `GLX_GREEN_SIZE', `GLX_BLUE_SIZE', plus `GLX_ALPHA_SIZE') that have - higher number of bits. If the requested number of bits in + higher number of bits. If the requested number of bits in ATTRIB_LIST is zero or `GLX_DONT_CARE' for a particular color component, then the number of bits for that component is not considered. @@ -407,7 +408,7 @@ lower numbered rule are sorted by the higher numbered rule): Larger total number of accumulation buffer color components (`GLX_ACCUM_RED_SIZE', `GLX_ACCUM_GREEN_SIZE', `GLX_ACCUM_BLUE_SIZE', plus `GLX_ACCUM_ALPHA_SIZE') that have - higher number of bits. If the requested number of bits in + higher number of bits. If the requested number of bits in ATTRIB_LIST is zero or `GLX_DONT_CARE' for a particular color component, then the number of bits for that component is not considered. @@ -438,121 +439,122 @@ SCREEN ATTRIBLIST Specifies a list of boolean attributes and integer attribute/value - pairs. The last attribute must be `None'. + pairs. The last attribute must be `None'. `glXChooseVisual' returns a pointer to an XVisualInfo structure -describing the visual that best meets a minimum specification. The +describing the visual that best meets a minimum specification. The boolean GLX attributes of the visual that is returned will match the specified values, and the integer GLX attributes will meet or exceed the -specified minimum values. If all other attributes are equivalent, then +specified minimum values. If all other attributes are equivalent, then TrueColor and PseudoColor visuals have priority over DirectColor and -StaticColor visuals, respectively. If no conforming visual exists, -`NULL' is returned. To free the data returned by this function, use +StaticColor visuals, respectively. If no conforming visual exists, +`NULL' is returned. To free the data returned by this function, use `XFree'. All boolean GLX attributes default to `False' except `GLX_USE_GL', which -defaults to `True'. All integer GLX attributes default to zero. Default +defaults to `True'. All integer GLX attributes default to zero. Default specifications are superseded by attributes included in ATTRIBLIST. Boolean attributes included in ATTRIBLIST are understood to be `True'. Integer attributes and enumerated type attributes are followed -immediately by the corresponding desired or minimum value. The list must -be terminated with `None'. +immediately by the corresponding desired or minimum value. The list +must be terminated with `None'. The interpretations of the various GLX visual attributes are as follows: `GLX_USE_GL' - Ignored. Only visuals that can be rendered with GLX are considered. + Ignored. Only visuals that can be rendered with GLX are + considered. `GLX_BUFFER_SIZE' Must be followed by a nonnegative integer that indicates the - desired color index buffer size. The smallest index buffer of at - least the specified size is preferred. Ignored if `GLX_RGBA' is + desired color index buffer size. The smallest index buffer of at + least the specified size is preferred. Ignored if `GLX_RGBA' is asserted. `GLX_LEVEL' - Must be followed by an integer buffer-level specification. This - specification is honored exactly. Buffer level zero corresponds to - the main frame buffer of the display. Buffer level one is the first - overlay frame buffer, level two the second overlay frame buffer, - and so on. Negative buffer levels correspond to underlay frame - buffers. + Must be followed by an integer buffer-level specification. This + specification is honored exactly. Buffer level zero corresponds to + the main frame buffer of the display. Buffer level one is the + first overlay frame buffer, level two the second overlay frame + buffer, and so on. Negative buffer levels correspond to underlay + frame buffers. `GLX_RGBA' If present, only TrueColor and DirectColor visuals are considered. Otherwise, only PseudoColor and StaticColor visuals are considered. `GLX_DOUBLEBUFFER' - If present, only double-buffered visuals are considered. Otherwise, + If present, only double-buffered visuals are considered. Otherwise, only single-buffered visuals are considered. `GLX_STEREO' - If present, only stereo visuals are considered. Otherwise, only + If present, only stereo visuals are considered. Otherwise, only monoscopic visuals are considered. `GLX_AUX_BUFFERS' Must be followed by a nonnegative integer that indicates the - desired number of auxiliary buffers. Visuals with the smallest + desired number of auxiliary buffers. Visuals with the smallest number of auxiliary buffers that meets or exceeds the specified number are preferred. `GLX_RED_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, the smallest available red buffer is preferred. Otherwise, the largest available red buffer of at least the minimum size is preferred. `GLX_GREEN_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, the smallest available green buffer is - preferred. Otherwise, the largest available green buffer of at + preferred. Otherwise, the largest available green buffer of at least the minimum size is preferred. `GLX_BLUE_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, the smallest available blue buffer is - preferred. Otherwise, the largest available blue buffer of at least - the minimum size is preferred. + preferred. Otherwise, the largest available blue buffer of at + least the minimum size is preferred. `GLX_ALPHA_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, the smallest available alpha buffer is - preferred. Otherwise, the largest available alpha buffer of at + preferred. Otherwise, the largest available alpha buffer of at least the minimum size is preferred. `GLX_DEPTH_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, visuals with no depth buffer are preferred. Otherwise, the largest available depth buffer of at least the minimum size is preferred. `GLX_STENCIL_SIZE' Must be followed by a nonnegative integer that indicates the - desired number of stencil bitplanes. The smallest stencil buffer of - at least the specified size is preferred. If the desired value is - zero, visuals with no stencil buffer are preferred. + desired number of stencil bitplanes. The smallest stencil buffer + of at least the specified size is preferred. If the desired value + is zero, visuals with no stencil buffer are preferred. `GLX_ACCUM_RED_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, visuals with no red accumulation buffer are - preferred. Otherwise, the largest possible red accumulation buffer + preferred. Otherwise, the largest possible red accumulation buffer of at least the minimum size is preferred. `GLX_ACCUM_GREEN_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, visuals with no green accumulation buffer are - preferred. Otherwise, the largest possible green accumulation + preferred. Otherwise, the largest possible green accumulation buffer of at least the minimum size is preferred. `GLX_ACCUM_BLUE_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, visuals with no blue accumulation buffer are - preferred. Otherwise, the largest possible blue accumulation buffer - of at least the minimum size is preferred. + preferred. Otherwise, the largest possible blue accumulation + buffer of at least the minimum size is preferred. `GLX_ACCUM_ALPHA_SIZE' - Must be followed by a nonnegative minimum size specification. If + Must be followed by a nonnegative minimum size specification. If this value is zero, visuals with no alpha accumulation buffer are - preferred. Otherwise, the largest possible alpha accumulation + preferred. Otherwise, the largest possible alpha accumulation buffer of at least the minimum size is preferred. `NULL' is returned if an undefined GLX attribute is encountered in @@ -581,22 +583,22 @@ MASK Specifies which portions of SRC state are to be copied to DST. `glXCopyContext' copies selected groups of state variables from SRC to -DST. MASK indicates which groups of state variables are to be copied. +DST. MASK indicates which groups of state variables are to be copied. MASK contains the bitwise OR of the same symbolic names that are passed -to the GL command `glPushAttrib'. The single symbolic constant +to the GL command `glPushAttrib'. The single symbolic constant `GLX_ALL_ATTRIB_BITS' can be used to copy the maximum possible portion of rendering state. The copy can be done only if the renderers named by SRC and DST share an -address space. Two rendering contexts share an address space if both are -nondirect using the same server, or if both are direct and owned by a -single process. Note that in the nondirect case it is not necessary for -the calling threads to share an address space, only for their related -rendering contexts to share an address space. +address space. Two rendering contexts share an address space if both +are nondirect using the same server, or if both are direct and owned by +a single process. Note that in the nondirect case it is not necessary +for the calling threads to share an address space, only for their +related rendering contexts to share an address space. -Not all values for GL state can be copied. For example, pixel pack and +Not all values for GL state can be copied. For example, pixel pack and unpack state, render mode state, and select and feedback state are not -copied. The state that can be copied is exactly the state that is +copied. The state that can be copied is exactly the state that is manipulated by the GL command `glPushAttrib'. An implicit `glFlush' is done by `glXCopyContext' if SRC is the current @@ -629,12 +631,12 @@ DPY VIS Specifies the visual that defines the frame buffer resources - available to the rendering context. It is a pointer to an + available to the rendering context. It is a pointer to an `XVisualInfo' structure, not a visual ID or a pointer to a `Visual'. SHARELIST - Specifies the context with which to share display lists. `NULL' + Specifies the context with which to share display lists. `NULL' indicates that no sharing is to take place. DIRECT @@ -643,8 +645,8 @@ DIRECT (`False'). `glXCreateContext' creates a GLX rendering context and returns its -handle. This context can be used to render into both windows and GLX -pixmaps. If `glXCreateContext' fails to create a rendering context, +handle. This context can be used to render into both windows and GLX +pixmaps. If `glXCreateContext' fails to create a rendering context, `NULL' is returned. If DIRECT is `True', then a direct rendering context is created if the @@ -652,21 +654,21 @@ implementation supports direct rendering, if the connection is to an X server that is local, and if a direct rendering context is available. (An implementation may return an indirect context when DIRECT is `True'.) If DIRECT is `False', then a rendering context that renders -through the X server is always created. Direct rendering provides a -performance advantage in some implementations. However, direct rendering -contexts cannot be shared outside a single process, and they may be -unable to render to GLX pixmaps. +through the X server is always created. Direct rendering provides a +performance advantage in some implementations. However, direct +rendering contexts cannot be shared outside a single process, and they +may be unable to render to GLX pixmaps. If SHARELIST is not `NULL', then all display-list indexes and definitions are shared by context SHARELIST and by the newly created -context. An arbitrary number of contexts can share a single display-list -space. However, all rendering contexts that share a single display-list -space must themselves exist in the same address space. Two rendering -contexts share an address space if both are nondirect using the same -server, or if both are direct and owned by a single process. Note that -in the nondirect case, it is not necessary for the calling threads to -share an address space, only for their related rendering contexts to -share an address space. +context. An arbitrary number of contexts can share a single +display-list space. However, all rendering contexts that share a single +display-list space must themselves exist in the same address space. Two +rendering contexts share an address space if both are nondirect using +the same server, or if both are direct and owned by a single process. +Note that in the nondirect case, it is not necessary for the calling +threads to share an address space, only for their related rendering +contexts to share an address space. If the GL version is 1.1 or greater, then all texture objects except object 0 are shared by any contexts that share display lists. @@ -699,7 +701,7 @@ DPY VIS Specifies the visual that defines the structure of the rendering - area. It is a pointer to an `XVisualInfo' structure, not a visual + area. It is a pointer to an `XVisualInfo' structure, not a visual ID or a pointer to a `Visual'. PIXMAP @@ -707,15 +709,15 @@ PIXMAP buffer of the off-screen rendering area. `glXCreateGLXPixmap' creates an off-screen rendering area and returns -its XID. Any GLX rendering context that was created with respect to VIS -can be used to render into this off-screen area. Use `glXMakeCurrent' to -associate the rendering area with a GLX rendering context. +its XID. Any GLX rendering context that was created with respect to VIS +can be used to render into this off-screen area. Use `glXMakeCurrent' +to associate the rendering area with a GLX rendering context. The X pixmap identified by PIXMAP is used as the front left buffer of -the resulting off-screen rendering area. All other buffers specified by +the resulting off-screen rendering area. All other buffers specified by VIS, including color buffers other than the front left buffer, are -created without externally visible names. GLX pixmaps with -double-buffering are supported. However, `glXSwapBuffers' is ignored by +created without externally visible names. GLX pixmaps with +double-buffering are supported. However, `glXSwapBuffers' is ignored by these pixmaps. Some implementations may not support GLX pixmaps with direct rendering @@ -752,11 +754,11 @@ CONFIG the context. RENDER_TYPE - Specifies the type of the context to be created. Must be one of + Specifies the type of the context to be created. Must be one of `GLX_RGBA_TYPE' or `GLX_COLOR_INDEX_TYPE'. SHARE_LIST - Specifies the context with which to share display lists. `NULL' + Specifies the context with which to share display lists. `NULL' indicates that no sharing is to take place. SHARE_LIST @@ -765,34 +767,34 @@ SHARE_LIST (`False'). `glXCreateNewContext' creates a GLX rendering context and returns its -handle. This context can be used to render into GLX windows, pixmaps, or -pixel buffers. If `glXCreateNewContext' fails to create a rendering +handle. This context can be used to render into GLX windows, pixmaps, +or pixel buffers. If `glXCreateNewContext' fails to create a rendering context, `NULL' is returned. If RENDER_TYPE is `GLX_RGBA_TYPE', then a context that supports RGBA -rendering is created. If CONFIG is `GLX_COLOR_INDEX_TYPE', then context +rendering is created. If CONFIG is `GLX_COLOR_INDEX_TYPE', then context supporting color-index rendering is created. If RENDER_TYPE is not `NULL', then all display-list indexes and definitions are shared by context RENDER_TYPE and by the newly created -context. An arbitrary number of contexts can share a single display-list -space. However, all rendering contexts that share a single display-list -space must themselves exist in the same address space. Two rendering -contexts share an address space if both are nondirect using the same -server, or if both are direct and owned by a single process. Note that -in the nondirect case, it is not necessary for the calling threads to -share an address space, only for their related rendering contexts to -share an address space. +context. An arbitrary number of contexts can share a single +display-list space. However, all rendering contexts that share a single +display-list space must themselves exist in the same address space. Two +rendering contexts share an address space if both are nondirect using +the same server, or if both are direct and owned by a single process. +Note that in the nondirect case, it is not necessary for the calling +threads to share an address space, only for their related rendering +contexts to share an address space. If SHARE_LIST is `True', then a direct-rendering context is created if the implementation supports direct rendering, if the connection is to an X server that is local, and if a direct-rendering context is available. (An implementation may return an indirect context when SHARE_LIST is `True'.) If SHARE_LIST is `False', then a rendering context that renders -through the X server is always created. Direct rendering provides a -performance advantage in some implementations. However, direct-rendering -contexts cannot be shared outside a single process, and they may be -unable to render to GLX pixmaps. +through the X server is always created. Direct rendering provides a +performance advantage in some implementations. However, +direct-rendering contexts cannot be shared outside a single process, and +they may be unable to render to GLX pixmaps. `NULL' is returned if execution fails on the client side. @@ -828,40 +830,40 @@ CONFIG ATTRIB_LIST Specifies a list of attribute value pairs, which must be terminated - with `None' or `NULL'. Accepted attributes are `GLX_PBUFFER_WIDTH', - `GLX_PBUFFER_HEIGHT', `GLX_PRESERVED_CONTENTS', and - `GLX_LARGEST_PBUFFER'. + with `None' or `NULL'. Accepted attributes are + `GLX_PBUFFER_WIDTH', `GLX_PBUFFER_HEIGHT', + `GLX_PRESERVED_CONTENTS', and `GLX_LARGEST_PBUFFER'. `glXCreatePbuffer' creates an off-screen rendering area and returns its -XID. Any GLX rendering context that was created with respect to CONFIG -can be used to render into this window. Use `glXMakeContextCurrent' to +XID. Any GLX rendering context that was created with respect to CONFIG +can be used to render into this window. Use `glXMakeContextCurrent' to associate the rendering area with a GLX rendering context. The accepted attributes for a GLXPbuffer are: `GLX_PBUFFER_WIDTH' - Specify the pixel width of the requested GLXPbuffer. The default + Specify the pixel width of the requested GLXPbuffer. The default value is 0. `GLX_PBUFFER_HEIGHT' - Specify the pixel height of the requested GLXPbuffer. The default + Specify the pixel height of the requested GLXPbuffer. The default value is 0. `GLX_LARGEST_PBUFFER' Specify to obtain the largest available pixel buffer, if the - requested allocation would have failed. The width and height of the - allocated pixel buffer will never exceed the specified - `GLX_PBUFFER_WIDTH' or `GLX_PBUFFER_HEIGHT', respectively. Use + requested allocation would have failed. The width and height of + the allocated pixel buffer will never exceed the specified + `GLX_PBUFFER_WIDTH' or `GLX_PBUFFER_HEIGHT', respectively. Use `glXQueryDrawable' to retrieve the dimensions of the allocated - pixel buffer. The default value is `False'. + pixel buffer. The default value is `False'. `GLX_PRESERVED_CONTENTS' Specify if the contents of the pixel buffer should be preserved - when a resource conflict occurs. If set to `False', the contents of - the pixel buffer may be lost at any time. If set to `True', or not - specified in ATTRIB_LIST, then the contents of the pixel buffer + when a resource conflict occurs. If set to `False', the contents + of the pixel buffer may be lost at any time. If set to `True', or + not specified in ATTRIB_LIST, then the contents of the pixel buffer will be preserved (most likely by copying the contents into main - system memory from the frame buffer). In either case, the client + system memory from the frame buffer). In either case, the client can register (using `glXSelectEvent', to receive pixel buffer clobber events that are generated when the pbuffer contents have been preserved or damaged. @@ -899,12 +901,12 @@ PIXMAP Specifies the X pixmap to be used as the rendering area. ATTRIB_LIST - Currently unused. This must be set to `NULL' or be an empty list + Currently unused. This must be set to `NULL' or be an empty list (i.e., one in which the first element is `None'). `glXCreatePixmap' creates an off-screen rendering area and returns its -XID. Any GLX rendering context that was created with respect to CONFIG -can be used to render into this window. Use `glXMakeCurrent' to +XID. Any GLX rendering context that was created with respect to CONFIG +can be used to render into this window. Use `glXMakeCurrent' to associate the rendering area with a GLX rendering context. `BadMatch' is generated if PIXMAP was not created with a visual that @@ -913,7 +915,7 @@ corresponds to CONFIG. `BadMatch' is generated if CONFIG does not support rendering to windows (e.g., `GLX_DRAWABLE_TYPE' does not contain `GLX_WINDOW_BIT'). -`BadWindow' is generated if PIXMAP is not a valid window XID. `BadAlloc' +`BadWindow' is generated if PIXMAP is not a valid window XID. `BadAlloc' is generated if there is already a GLXFBConfig associated with PIXMAP. `BadAlloc' is generated if the X server cannot allocate a new GLX @@ -942,13 +944,13 @@ WIN Specifies the X window to be used as the rendering area. ATTRIB_LIST - Currently unused. This must be set to `NULL' or be an empty list + Currently unused. This must be set to `NULL' or be an empty list (i.e., one in which the first element is `None'). `glXCreateWindow' creates an on-screen rendering area from an existing X -window that was created with a visual matching CONFIG. The XID of the -GLXWindow is returned. Any GLX rendering context that was created with -respect to CONFIG can be used to render into this window. Use +window that was created with a visual matching CONFIG. The XID of the +GLXWindow is returned. Any GLX rendering context that was created with +respect to CONFIG can be used to render into this window. Use `glXMakeContextCurrent' to associate the rendering area with a GLX rendering context. @@ -983,9 +985,9 @@ CTX Specifies the GLX context to be destroyed. If the GLX rendering context CTX is not current to any thread, -`glXDestroyContext' destroys it immediately. Otherwise, CTX is destroyed -when it becomes not current to any thread. In either case, the resource -ID referenced by CTX is freed immediately. +`glXDestroyContext' destroys it immediately. Otherwise, CTX is +destroyed when it becomes not current to any thread. In either case, +the resource ID referenced by CTX is freed immediately. `GLXBadContext' is generated if CTX is not a valid GLX context.") @@ -1004,9 +1006,9 @@ PIX Specifies the GLX pixmap to be destroyed. If the GLX pixmap PIX is not current to any client, -`glXDestroyGLXPixmap' destroys it immediately. Otherwise, PIX is -destroyed when it becomes not current to any client. In either case, the -resource ID is freed immediately. +`glXDestroyGLXPixmap' destroys it immediately. Otherwise, PIX is +destroyed when it becomes not current to any client. In either case, +the resource ID is freed immediately. `GLXBadPixmap' is generated if PIX is not a valid GLX pixmap.") @@ -1079,12 +1081,12 @@ CTX Specifies a GLX rendering context. `glXFreeContextEXT' frees the client-side part of a GLXContext that was -created with `glXImportContextEXT'. `glXFreeContextEXT' does not free +created with `glXImportContextEXT'. `glXFreeContextEXT' does not free the server-side context information or the XID associated with the server-side context. `glXFreeContextEXT' is part of the `EXT_import_context' extension, not -part of the core GLX command set. If _glxextstring(EXT_import_context) +part of the core GLX command set. If _glxextstring(EXT_import_context) is included in the string returned by `glXQueryExtensionsString', when called with argument `GLX_EXTENSIONS', extension `EXT_vertex_array' is supported. @@ -1103,17 +1105,17 @@ DPY Specifies the connection to the X server. NAME - Specifies which string is returned. The symbolic constants + Specifies which string is returned. The symbolic constants `GLX_VENDOR', `GLX_VERSION', and `GLX_EXTENSIONS' are accepted. `glXGetClientString' returns a string describing some aspect of the -client library. The possible values for NAME are `GLX_VENDOR', -`GLX_VERSION', and `GLX_EXTENSIONS'. If NAME is not set to one of these -values, `glXGetClientString' returns `NULL'. The format and contents of +client library. The possible values for NAME are `GLX_VENDOR', +`GLX_VERSION', and `GLX_EXTENSIONS'. If NAME is not set to one of these +values, `glXGetClientString' returns `NULL'. The format and contents of the vendor string is implementation dependent. The extensions string is null-terminated and contains a space-separated -list of extension names. (The extension names never contain spaces.) If +list of extension names. (The extension names never contain spaces.) If there are no extensions to GLX, then the empty string is returned. The version string is laid out as follows: @@ -1121,7 +1123,7 @@ The version string is laid out as follows: Both the major and minor portions of the version number are of arbitrary -length. The vendor-specific information is optional. However, if it is +length. The vendor-specific information is optional. However, if it is present, the format and contents are implementation specific.") (define-glx-procedures @@ -1138,7 +1140,7 @@ DPY Specifies the connection to the X server. VIS - Specifies the visual to be queried. It is a pointer to an + Specifies the visual to be queried. It is a pointer to an `XVisualInfo' structure, not a visual ID or a pointer to a `Visual'. @@ -1149,8 +1151,8 @@ VALUE Returns the requested value. `glXGetConfig' sets VALUE to the ATTRIB value of windows or GLX pixmaps -created with respect to VIS. `glXGetConfig' returns an error code if it -fails for any reason. Otherwise, zero is returned. +created with respect to VIS. `glXGetConfig' returns an error code if it +fails for any reason. Otherwise, zero is returned. ATTRIB is one of the following: @@ -1161,14 +1163,14 @@ ATTRIB is one of the following: otherwise. `GLX_BUFFER_SIZE' - Number of bits per color buffer. For RGBA visuals, + Number of bits per color buffer. For RGBA visuals, `GLX_BUFFER_SIZE' is the sum of `GLX_RED_SIZE', `GLX_GREEN_SIZE', - `GLX_BLUE_SIZE', and `GLX_ALPHA_SIZE'. For color index visuals, + `GLX_BLUE_SIZE', and `GLX_ALPHA_SIZE'. For color index visuals, `GLX_BUFFER_SIZE' is the size of the color indexes. `GLX_LEVEL' - Frame buffer level of the visual. Level zero is the default frame - buffer. Positive levels correspond to frame buffers that overlay + Frame buffer level of the visual. Level zero is the default frame + buffer. Positive levels correspond to frame buffers that overlay the default buffer, and negative levels correspond to frame buffers that underlay the default buffer. @@ -1185,23 +1187,23 @@ ATTRIB is one of the following: otherwise. `GLX_AUX_BUFFERS' - Number of auxiliary color buffers that are available. Zero + Number of auxiliary color buffers that are available. Zero indicates that no auxiliary color buffers exist. `GLX_RED_SIZE' - Number of bits of red stored in each color buffer. Undefined if + Number of bits of red stored in each color buffer. Undefined if `GLX_RGBA' is `False'. `GLX_GREEN_SIZE' - Number of bits of green stored in each color buffer. Undefined if + Number of bits of green stored in each color buffer. Undefined if `GLX_RGBA' is `False'. `GLX_BLUE_SIZE' - Number of bits of blue stored in each color buffer. Undefined if + Number of bits of blue stored in each color buffer. Undefined if `GLX_RGBA' is `False'. `GLX_ALPHA_SIZE' - Number of bits of alpha stored in each color buffer. Undefined if + Number of bits of alpha stored in each color buffer. Undefined if `GLX_RGBA' is `False'. `GLX_DEPTH_SIZE' @@ -1223,28 +1225,28 @@ ATTRIB is one of the following: Number of bits of alpha stored in the accumulation buffer. The X protocol allows a single visual ID to be instantiated with -different numbers of bits per pixel. Windows or GLX pixmaps that will be -rendered with OpenGL, however, must be instantiated with a color buffer -depth of `GLX_BUFFER_SIZE'. +different numbers of bits per pixel. Windows or GLX pixmaps that will +be rendered with OpenGL, however, must be instantiated with a color +buffer depth of `GLX_BUFFER_SIZE'. Although a GLX implementation can export many visuals that support GL -rendering, it must support at least one RGBA visual. This visual must +rendering, it must support at least one RGBA visual. This visual must have at least one color buffer, a stencil buffer of at least 1 bit, a -depth buffer of at least 12 bits, and an accumulation buffer. Alpha -bitplanes are optional in this visual. However, its color buffer size +depth buffer of at least 12 bits, and an accumulation buffer. Alpha +bitplanes are optional in this visual. However, its color buffer size must be as great as that of the deepest `TrueColor', `DirectColor', `PseudoColor', or `StaticColor' visual supported on level zero, and it must itself be made available on level zero. In addition, if the X server exports a `PseudoColor' or `StaticColor' visual on framebuffer level 0, a color index visual is also required on -that level. It must have at least one color buffer, a stencil buffer of -at least 1 bit, and a depth buffer of at least 12 bits. This visual must -have as many color bitplanes as the deepest `PseudoColor' or +that level. It must have at least one color buffer, a stencil buffer of +at least 1 bit, and a depth buffer of at least 12 bits. This visual +must have as many color bitplanes as the deepest `PseudoColor' or `StaticColor' visual supported on level 0. Applications are best written to select the visual that most closely -meets their requirements. Creating windows or GLX pixmaps with +meets their requirements. Creating windows or GLX pixmaps with unnecessary buffers can result in reduced rendering performance as well as poor resource allocation. @@ -1275,7 +1277,7 @@ No round trip is forced to the server; unlike most X calls that return a value, `glXGetContextIDEXT' does not flush any pending events. `glXGetContextIDEXT' is part of the `EXT_import_context' extension, not -part of the core GLX command set. If _glxextstring(EXT_import_context) +part of the core GLX command set. If _glxextstring(EXT_import_context) is included in the string returned by `glXQueryExtensionsString', when called with argument `GLX_EXTENSIONS', extension `EXT_import_context' is supported. @@ -1287,30 +1289,30 @@ supported. "Return the current context. `glXGetCurrentContext' returns the current context, as specified by -`glXMakeCurrent'. If there is no current context, `NULL' is returned. +`glXMakeCurrent'. If there is no current context, `NULL' is returned. -`glXGetCurrentContext' returns client-side information. It does not make -a round trip to the server.") +`glXGetCurrentContext' returns client-side information. It does not +make a round trip to the server.") (define-glx-procedures ((glXGetCurrentDisplay -> Display-*)) "Get display for current context. -`glXGetCurrentDisplay' returns the display for the current context. If +`glXGetCurrentDisplay' returns the display for the current context. If no context is current, `NULL' is returned. -`glXGetCurrentDisplay' returns client-side information. It does not make -a round-trip to the server, and therefore does not flush any pending -events.") +`glXGetCurrentDisplay' returns client-side information. It does not +make a round-trip to the server, and therefore does not flush any +pending events.") (define-glx-procedures ((glXGetCurrentDrawable -> GLXDrawable)) "Return the current drawable. `glXGetCurrentDrawable' returns the current drawable, as specified by -`glXMakeCurrent'. If there is no current drawable, `None' is returned. +`glXMakeCurrent'. If there is no current drawable, `None' is returned. -`glXGetCurrentDrawable' returns client-side information. It does not +`glXGetCurrentDrawable' returns client-side information. It does not make a round trip to the server.") (define-glx-procedures @@ -1318,11 +1320,11 @@ make a round trip to the server.") "Return the current drawable. `glXGetCurrentReadDrawable' returns the current read drawable, as -specified by `read' parameter of `glXMakeContextCurrent'. If there is no -current drawable, `None' is returned. +specified by `read' parameter of `glXMakeContextCurrent'. If there is +no current drawable, `None' is returned. -`glXGetCurrentReadDrawable' returns client-side information. It does not -make a round-trip to the server.") +`glXGetCurrentReadDrawable' returns client-side information. It does +not make a round-trip to the server.") (define-glx-procedures ((glXGetFBConfigAttrib @@ -1347,9 +1349,9 @@ VALUE Returns the requested value. `glXGetFBConfigAttrib' sets VALUE to the ATTRIBUTE value of GLX -drawables created with respect to CONFIG. `glXGetFBConfigAttrib' returns -an error code if it fails for any reason. Otherwise, `Success' is -returned. +drawables created with respect to CONFIG. `glXGetFBConfigAttrib' +returns an error code if it fails for any reason. Otherwise, `Success' +is returned. ATTRIBUTE is one of the following: @@ -1361,18 +1363,18 @@ ATTRIBUTE is one of the following: `GLX_BUFFER_SIZE' - Number of bits per color buffer. If the frame buffer configuration + Number of bits per color buffer. If the frame buffer configuration supports RGBA contexts, then `GLX_BUFFER_SIZE' is the sum of `GLX_RED_SIZE', `GLX_GREEN_SIZE', `GLX_BLUE_SIZE', and - `GLX_ALPHA_SIZE'. If the frame buffer configuration supports only + `GLX_ALPHA_SIZE'. If the frame buffer configuration supports only color index contexts, `GLX_BUFFER_SIZE' is the size of the color indexes. `GLX_LEVEL' - Frame buffer level of the configuration. Level zero is the default - frame buffer. Positive levels correspond to frame buffers that + Frame buffer level of the configuration. Level zero is the default + frame buffer. Positive levels correspond to frame buffers that overlay the default buffer, and negative levels correspond to frame buffers that underlie the default buffer. @@ -1391,31 +1393,31 @@ ATTRIBUTE is one of the following: `GLX_AUX_BUFFERS' - Number of auxiliary color buffers that are available. Zero + Number of auxiliary color buffers that are available. Zero indicates that no auxiliary color buffers exist. `GLX_RED_SIZE' - Number of bits of red stored in each color buffer. Undefined if + Number of bits of red stored in each color buffer. Undefined if RGBA contexts are not supported by the frame buffer configuration. `GLX_GREEN_SIZE' - Number of bits of green stored in each color buffer. Undefined if + Number of bits of green stored in each color buffer. Undefined if RGBA contexts are not supported by the frame buffer configuration. `GLX_BLUE_SIZE' - Number of bits of blue stored in each color buffer. Undefined if + Number of bits of blue stored in each color buffer. Undefined if RGBA contexts are not supported by the frame buffer configuration. `GLX_ALPHA_SIZE' - Number of bits of alpha stored in each color buffer. Undefined if + Number of bits of alpha stored in each color buffer. Undefined if RGBA contexts are not supported by the frame buffer configuration. `GLX_DEPTH_SIZE' @@ -1452,14 +1454,14 @@ ATTRIBUTE is one of the following: Mask indicating what type of GLX contexts can be made current to - the frame buffer configuration. Valid bits are `GLX_RGBA_BIT' and + the frame buffer configuration. Valid bits are `GLX_RGBA_BIT' and `GLX_COLOR_INDEX_BIT'. `GLX_DRAWABLE_TYPE' Mask indicating what drawable types the frame buffer configuration - supports. Valid bits are `GLX_WINDOW_BIT', `GLX_PIXMAP_BIT', and + supports. Valid bits are `GLX_WINDOW_BIT', `GLX_PIXMAP_BIT', and `GLX_PBUFFER_BIT'. `GLX_X_RENDERABLE' @@ -1478,7 +1480,7 @@ ATTRIBUTE is one of the following: `GLX_X_VISUAL_TYPE' - Visual type of associated visual. The returned value will be one + Visual type of associated visual. The returned value will be one of: `GLX_TRUE_COLOR', `GLX_DIRECT_COLOR', `GLX_PSEUDO_COLOR', `GLX_STATIC_COLOR', `GLX_GRAY_SCALE', `GLX_STATIC_GRAY', or `GLX_NONE', if there is no associated visual (i.e., if @@ -1508,7 +1510,7 @@ ATTRIBUTE is one of the following: Integer value between 0 and the maximum frame buffer value for indices, indicating the transparent index value for the frame - buffer configuration. Undefined if `GLX_TRANSPARENT_TYPE' is not + buffer configuration. Undefined if `GLX_TRANSPARENT_TYPE' is not `GLX_TRANSPARENT_INDEX'. `GLX_TRANSPARENT_RED_VALUE' @@ -1516,7 +1518,7 @@ ATTRIBUTE is one of the following: Integer value between 0 and the maximum frame buffer value for red, indicating the transparent red value for the frame buffer - configuration. Undefined if `GLX_TRANSPARENT_TYPE' is not + configuration. Undefined if `GLX_TRANSPARENT_TYPE' is not `GLX_TRANSPARENT_RGB'. `GLX_TRANSPARENT_GREEN_VALUE' @@ -1524,7 +1526,7 @@ ATTRIBUTE is one of the following: Integer value between 0 and the maximum frame buffer value for green, indicating the transparent green value for the frame buffer - configuration. Undefined if `GLX_TRANSPARENT_TYPE' is not + configuration. Undefined if `GLX_TRANSPARENT_TYPE' is not `GLX_TRANSPARENT_RGB'. `GLX_TRANSPARENT_BLUE_VALUE' @@ -1532,7 +1534,7 @@ ATTRIBUTE is one of the following: Integer value between 0 and the maximum frame buffer value for blue, indicating the transparent blue value for the frame buffer - configuration. Undefined if `GLX_TRANSPARENT_TYPE' is not + configuration. Undefined if `GLX_TRANSPARENT_TYPE' is not `GLX_TRANSPARENT_RGB'. `GLX_TRANSPARENT_ALPHA_VALUE' @@ -1540,7 +1542,7 @@ ATTRIBUTE is one of the following: Integer value between 0 and the maximum frame buffer value for alpha, indicating the transparent blue value for the frame buffer - configuration. Undefined if `GLX_TRANSPARENT_TYPE' is not + configuration. Undefined if `GLX_TRANSPARENT_TYPE' is not `GLX_TRANSPARENT_RGB'. `GLX_MAX_PBUFFER_WIDTH' @@ -1557,20 +1559,20 @@ ATTRIBUTE is one of the following: The maximum number of pixels (width times height) for a pixel - buffer. Note that this value may be less than - `GLX_MAX_PBUFFER_WIDTH' times `GLX_MAX_PBUFFER_HEIGHT'. Also, this + buffer. Note that this value may be less than + `GLX_MAX_PBUFFER_WIDTH' times `GLX_MAX_PBUFFER_HEIGHT'. Also, this value is static and assumes that no other pixel buffers or X - resources are contending for the frame buffer memory. As a result, + resources are contending for the frame buffer memory. As a result, it may not be possible to allocate a pixel buffer of the size given by `GLX_MAX_PBUFFER_PIXELS'. Applications should choose the frame buffer configuration that most -closely meets their requirements. Creating windows, GLX pixmaps, or GLX +closely meets their requirements. Creating windows, GLX pixmaps, or GLX pixel buffers with unnecessary buffers can result in reduced rendering performance as well as poor resource allocation. `GLX_NO_EXTENSION' is returned if DPY does not support the GLX -extension. `GLX_BAD_ATTRIBUTE' is returned if ATTRIBUTE is not a valid +extension. `GLX_BAD_ATTRIBUTE' is returned if ATTRIBUTE is not a valid GLX attribute.") (define-glx-procedures @@ -1592,7 +1594,7 @@ NELEMENTS Returns the number of GLXFBConfigs returned. `glXGetFBConfigs' returns a list of all GLXFBConfigs available on the -screen specified by SCREEN. Use `glXGetFBConfigAttrib' to obtain +screen specified by SCREEN. Use `glXGetFBConfigAttrib' to obtain attribute values from a specific GLXFBConfig.") (define-glx-procedures @@ -1607,7 +1609,7 @@ PROCNAME to be returned. `glXGetProcAddress' returns the address of the function specified in -PROCNAME. This is necessary in environments where the OpenGL link +PROCNAME. This is necessary in environments where the OpenGL link library exports a different set of functions than the runtime library.") (define-glx-procedures @@ -1623,7 +1625,7 @@ DPY Specifies the connection to the X server. DRAW - Specifies a GLX drawable. Must be a GLX pixel buffer or a window. + Specifies a GLX drawable. Must be a GLX pixel buffer or a window. EVENT_MASK Returns the events that are selected for DRAW. @@ -1650,7 +1652,7 @@ CONFIG If CONFIG is a valid GLX frame buffer configuration and it has an associated X Visual, then information describing that visual is -returned; otherwise `NULL' is returned. Use `XFree' to free the data +returned; otherwise `NULL' is returned. Use `XFree' to free the data returned. Returns `NULL' if CONFIG is not a valid GLXFBConfig.") @@ -1670,27 +1672,27 @@ CONTEXTID Specifies a GLX rendering context. `glXImportContextEXT' creates a GLXContext given the XID of an existing -GLXContext. It may be used in place of `glXCreateContext', to share +GLXContext. It may be used in place of `glXCreateContext', to share another process's indirect rendering context. Only the server-side context information can be shared between X clients; client-side state, such as pixel storage modes, cannot be -shared. Thus, `glXImportContextEXT' must allocate memory to store -client-side information. This memory is freed by calling +shared. Thus, `glXImportContextEXT' must allocate memory to store +client-side information. This memory is freed by calling `glXFreeContextEXT'. -This call does not create a new XID. It merely makes an existing object -available to the importing client (Display *). Like any XID, it goes +This call does not create a new XID. It merely makes an existing object +available to the importing client (Display *). Like any XID, it goes away when the creating client drops its connection or the ID is -explicitly deleted. Note that this is when the XID goes away. The object -goes away when the XID goes away AND the context is not current to any -thread. +explicitly deleted. Note that this is when the XID goes away. The +object goes away when the XID goes away AND the context is not current +to any thread. If CONTEXTID refers to a direct rendering context then no error is generated but `glXImportContextEXT' returns NULL. `glXImportContextEXT' is part of the `EXT_import_context' extension, not -part of the core GLX command set. If _glxextstring(EXT_import_context) +part of the core GLX command set. If _glxextstring(EXT_import_context) is included in the string returned by `glXQueryExtensionsString', when called with argument `GLX_EXTENSIONS', extension `EXT_import_context' is supported. @@ -1713,9 +1715,9 @@ CTX Specifies the GLX context that is being queried. `glXIsDirect' returns `True' if CTX is a direct rendering context, -`False' otherwise. Direct rendering contexts pass rendering commands +`False' otherwise. Direct rendering contexts pass rendering commands directly from the calling process's address space to the rendering -system, bypassing the X server. Nondirect rendering contexts pass all +system, bypassing the X server. Nondirect rendering contexts pass all rendering commands to the X server. `GLXBadContext' is generated if CTX is not a valid GLX context.") @@ -1734,18 +1736,18 @@ DISPLAY Specifies the connection to the X server. DRAW - Specifies a GLX drawable to render into. Must be an XID + Specifies a GLX drawable to render into. Must be an XID representing a GLXWindow, GLXPixmap, or GLXPbuffer. READ - Specifies a GLX drawable to read from. Must be an XID representing + Specifies a GLX drawable to read from. Must be an XID representing a GLXWindow, GLXPixmap, or GLXPbuffer. CTX Specifies the GLX context to be bound to READ and CTX. `glXMakeContextCurrent' binds CTX to the current rendering thread and to -the DRAW and READ GLX drawables. DRAW and READ may be the same. +the DRAW and READ GLX drawables. DRAW and READ may be the same. DRAW is used for all OpenGL operations except: @@ -1764,7 +1766,7 @@ If the current rendering thread has a current rendering context, that context is flushed and replaced by CTX. The first time that CTX is made current, the viewport and scissor -dimensions are set to the size of the DRAW drawable. The viewport and +dimensions are set to the size of the DRAW drawable. The viewport and scissor are not modified when CTX is subsequently made current. To release the current context without assigning a new one, call @@ -1772,7 +1774,7 @@ To release the current context without assigning a new one, call `NULL'. `glXMakeContextCurrent' returns `True' if it is successful, `False' -otherwise. If `False' is returned, the previously current rendering +otherwise. If `False' is returned, the previously current rendering context and drawable (if any) remain unchanged. `BadMatch' is generated if DRAW and READ are not compatible. @@ -1823,7 +1825,7 @@ DPY Specifies the connection to the X server. DRAWABLE - Specifies a GLX drawable. Must be either an X window ID or a GLX + Specifies a GLX drawable. Must be either an X window ID or a GLX pixmap ID. CTX @@ -1833,9 +1835,9 @@ CTX `glXMakeCurrent' does two things: It makes CTX the current GLX rendering context of the calling thread, replacing the previously current context if there was one, and it attaches CTX to a GLX drawable, either a window -or a GLX pixmap. As a result of these two actions, subsequent GL +or a GLX pixmap. As a result of these two actions, subsequent GL rendering calls use rendering context CTX to modify GLX drawable -DRAWABLE (for reading and writing). Because `glXMakeCurrent' always +DRAWABLE (for reading and writing). Because `glXMakeCurrent' always replaces the current rendering context with CTX, there can be only one current context per thread. @@ -1843,7 +1845,7 @@ Pending commands to the previous context, if any, are flushed before it is released. The first time CTX is made current to any thread, its viewport is set to -the full size of DRAWABLE. Subsequent calls by any thread to +the full size of DRAWABLE. Subsequent calls by any thread to `glXMakeCurrent' with CTX have no effect on its viewport. To release the current context without assigning a new one, call @@ -1854,8 +1856,8 @@ If `False' is returned, the previously current rendering context and drawable (if any) remain unchanged. `BadMatch' is generated if DRAWABLE was not created with the same X -screen and visual as CTX. It is also generated if DRAWABLE is `None' and -CTX is not `NULL'. +screen and visual as CTX. It is also generated if DRAWABLE is `None' +and CTX is not `NULL'. `BadAccess' is generated if CTX was current to another thread at the time `glXMakeCurrent' was called. @@ -1897,16 +1899,16 @@ CTX Specifies a GLX rendering context. ATTRIBUTE - Specifies that a context parameter should be retrieved. Must be one - of `GLX_SHARED_CONTEXT_EXT', `GLX_VISUAL_ID_EXT', or + Specifies that a context parameter should be retrieved. Must be + one of `GLX_SHARED_CONTEXT_EXT', `GLX_VISUAL_ID_EXT', or `GLX_SCREEN_EXT'. VALUE Contains the return value for ATTRIBUTE. `glXQueryContextInfoEXT' sets VALUE to the value of ATTRIBUTE with -respect to CTX. `glXQueryContextInfoEXT' returns an error code if it -fails for any reason. Otherwise, `Success' is returned. +respect to CTX. `glXQueryContextInfoEXT' returns an error code if it +fails for any reason. Otherwise, `Success' is returned. ATTRIBUTE may be one of the following: @@ -1923,7 +1925,7 @@ ATTRIBUTE may be one of the following: This call may cause a round-trip to the server. `glXQueryContextInfoEXT' is part of the `EXT_import_context' extension, -not part of the core GLX command set. If +not part of the core GLX command set. If _glxextstring(EXT_import_context) is included in the string returned by `glXQueryExtensionsString', when called with argument `GLX_EXTENSIONS', extension `EXT_import_context' is supported. @@ -1952,14 +1954,14 @@ CTX Specifies a GLX rendering context. ATTRIBUTE - Specifies that a context parameter should be retrieved. Must be one - of `GLX_FBCONFIG_ID', `GLX_RENDER_TYPE', or `GLX_SCREEN'. + Specifies that a context parameter should be retrieved. Must be + one of `GLX_FBCONFIG_ID', `GLX_RENDER_TYPE', or `GLX_SCREEN'. VALUE Contains the return value for ATTRIBUTE. `glXQueryContext' sets VALUE to the value of ATTRIBUTE with respect to -CTX. ATTRIBUTE may be one of the following: +CTX. ATTRIBUTE may be one of the following: `GLX_FBCONFIG_ID' Returns the XID of the GLXFBConfig associated with CTX. @@ -1994,9 +1996,9 @@ DRAW Specifies the GLX drawable to be queried. ATTRIBUTE - Specifies the attribute to be returned. Must be one of `GLX_WIDTH', - `GLX_HEIGHT', `GLX_PRESERVED_CONTENTS', `GLX_LARGEST_PBUFFER', or - `GLX_FBCONFIG_ID'. + Specifies the attribute to be returned. Must be one of + `GLX_WIDTH', `GLX_HEIGHT', `GLX_PRESERVED_CONTENTS', + `GLX_LARGEST_PBUFFER', or `GLX_FBCONFIG_ID'. VALUE Contains the return value for ATTRIBUTE. @@ -2018,10 +2020,10 @@ ATTRIBUTE may be one of the following: `GLX_LARGEST_PBUFFER' Returns the value set when `glXCreatePbuffer' was called to create - the GLXPbuffer. If `False' is returned, then the call to + the GLXPbuffer. If `False' is returned, then the call to `glXCreatePbuffer' will fail to create a GLXPbuffer if the requested size is larger than the implementation maximum or - available resources. If `True' is returned, a GLXPbuffer of the + available resources. If `True' is returned, a GLXPbuffer of the maximum availble size (if less than the requested width and height) is created. @@ -2030,7 +2032,7 @@ ATTRIBUTE may be one of the following: If DRAW is a GLXWindow or GLXPixmap and ATTRIBUTE is set to `GLX_PRESERVED_CONTENTS' or `GLX_LARGETST_PBUFFER', the contents of -VALUE are undefined. If ATTRIBUTE is not one of the attributes listed +VALUE are undefined. If ATTRIBUTE is not one of the attributes listed above, the contents of VALUE are unedfined. A `GLXBadDrawable' is generated if DRAW is not a valid GLXDrawable.") @@ -2050,7 +2052,7 @@ SCREEN Specifies the screen number. `glXQueryExtensionsString' returns a pointer to a string describing -which GLX extensions are supported on the connection. The string is +which GLX extensions are supported on the connection. The string is null-terminated and contains a space-separated list of extension names. (The extension names themselves never contain spaces.) If there are no extensions to GLX, then the empty string is returned.") @@ -2074,10 +2076,10 @@ EVENTBASE Returns the base event code of the GLX server extension. `glXQueryExtension' returns `True' if the X server of connection DPY -supports the GLX extension, `False' otherwise. If `True' is returned, +supports the GLX extension, `False' otherwise. If `True' is returned, then ERRORBASE and EVENTBASE return the error base and event base of the -GLX extension. These values should be added to the constant error and -event values to determine the actual event or error values. Otherwise, +GLX extension. These values should be added to the constant error and +event values to determine the actual event or error values. Otherwise, ERRORBASE and EVENTBASE are unchanged. ERRORBASE and EVENTBASE do not return values if they are specified as @@ -2103,9 +2105,9 @@ NAME `GLX_VERSION', or `GLX_EXTENSIONS'. `glXQueryServerString' returns a pointer to a static, null-terminated -string describing some aspect of the server's GLX extension. The +string describing some aspect of the server's GLX extension. The possible values for NAME and the format of the strings is the same as -for `glXGetClientString'. If NAME is not set to a recognized value, +for `glXGetClientString'. If NAME is not set to a recognized value, `NULL' is returned.") (define-glx-procedures @@ -2151,19 +2153,19 @@ DPY Specifies the connection to the X server. DRAW - Specifies a GLX drawable. Must be a GLX pixel buffer or a window. + Specifies a GLX drawable. Must be a GLX pixel buffer or a window. EVENT_MASK Specifies the events to be returned for DRAW. `glXSelectEvent' sets the GLX event mask for a GLX pixel buffer or a -window. Calling `glXSelectEvent' overrides any previous event mask that -was set by the client for DRAW. Note that it does not affect the event +window. Calling `glXSelectEvent' overrides any previous event mask that +was set by the client for DRAW. Note that it does not affect the event masks that other clients may have specified for DRAW since each client rendering to DRAW has a separate event mask for it. Currently, only one GLX event, `GLX_PBUFFER_CLOBBER_MASK', can be -selected. The following data is returned to the client when a +selected. The following data is returned to the client when a `GLX_PBUFFER_CLOBBER_MASK' event occurs: typedef struct { @@ -2184,7 +2186,7 @@ Display *DISPLAY; /* display the event was read from */ GLXDrawable DRAWABLE; - /* i.d. of Drawable */ + /* i.d. of Drawable */ unsigned int BUFFER_MASK; /* mask indicating affected buffers */ @@ -2230,40 +2232,40 @@ int COUNT; Accumulation buffer A single X server operation can cause several buffer clobber events to -be sent. (e.g., a single GLX pixel buffer may be damaged and cause -multiple buffer clobber events to be generated). Each event specifies +be sent. (e.g., a single GLX pixel buffer may be damaged and cause +multiple buffer clobber events to be generated). Each event specifies one region of the GLX drawable that was affected by the X Server -operation. The BUFFER_MASK field indicates which color buffers and -ancillary buffers were affected. All the buffer clobber events generated -by a single X server action are guaranteed to be contiguous in the event -queue. The conditions under which this event is generated and the -EVENT_TYPE varies, depending on the type of the GLX drawable. +operation. The BUFFER_MASK field indicates which color buffers and +ancillary buffers were affected. All the buffer clobber events +generated by a single X server action are guaranteed to be contiguous in +the event queue. The conditions under which this event is generated and +the EVENT_TYPE varies, depending on the type of the GLX drawable. When the `GLX_AUX_BUFFERS_BIT' is set in BUFFER_MASK, then AUX_BUFFER is -set to indicate which buffer was affected. If more than one aux buffer +set to indicate which buffer was affected. If more than one aux buffer was affected, then additional events are generated as part of the same -contiguous event group. Each additional event will have only the +contiguous event group. Each additional event will have only the `GLX_AUX_BUFFERS_BIT' set in BUFFER_MASK, and the AUX_BUFFER field will -be set appropriately. For nonstereo drawables, +be set appropriately. For nonstereo drawables, `GLX_FRONT_LEFT_BUFFER_BIT' and `GLX_BACK_LEFT_BUFFER_BIT' are used to specify the front and back color buffers. For preserved GLX pixel buffers, a buffer clobber event with type `GLX_SAVED' is generated whenever the contents of the GLX pixel buffer -is moved out of offscreen memory. The event(s) describes which portions -of the GLX pixel buffer were affected. Clients who receive many buffer +is moved out of offscreen memory. The event(s) describes which portions +of the GLX pixel buffer were affected. Clients who receive many buffer clobber events, referring to different save actions, should consider freeing the GLX pixel buffer resource in order to prevent the system from thrashing due to insufficient resources. For an unpreserved GLXPbuffer, a buffer clobber event, with type `GLX_DAMAGED', is generated whenever a portion of the GLX pixel buffer -becomes invalid. The client may wish to regenerate the invalid portions +becomes invalid. The client may wish to regenerate the invalid portions of the GLX pixel buffer. For Windows, buffer clobber events, with type `GLX_SAVED', occur whenever an ancillary buffer, associated with the window, gets clobbered -or moved out of off-screen memory. The event contains information +or moved out of off-screen memory. The event contains information indicating which color buffers and ancillary buffers\\(emand which portions of those buffers\\(emwere affected. @@ -2285,8 +2287,8 @@ DRAWABLE Specifies the drawable whose buffers are to be swapped. `glXSwapBuffers' promotes the contents of the back buffer of DRAWABLE to -become the contents of the front buffer of DRAWABLE. The contents of the -back buffer then become undefined. The update typically takes place +become the contents of the front buffer of DRAWABLE. The contents of +the back buffer then become undefined. The update typically takes place during the vertical retrace of the monitor, rather than immediately after `glXSwapBuffers' is called. @@ -2328,12 +2330,12 @@ LISTBASE Specifies the index of the first display list to be generated. `glXUseXFont' generates COUNT display lists, named LISTBASE through -LISTBASE+COUNT-1 , each containing a single `glBitmap' command. The +LISTBASE+COUNT-1 , each containing a single `glBitmap' command. The parameters of the `glBitmap' command of display list LISTBASE+I are -derived from glyph FIRST+I . Bitmap parameters XORIG , YORIG , WIDTH , +derived from glyph FIRST+I . Bitmap parameters XORIG , YORIG , WIDTH , and HEIGHT are computed from font metrics as DESCENT-1 , -LBEARING , -RBEARING-LBEARING , and ASCENT+DESCENT , respectively. XMOVE is taken -from the glyph's WIDTH metric, and YMOVE is set to zero. Finally, the +RBEARING-LBEARING , and ASCENT+DESCENT , respectively. XMOVE is taken +from the glyph's WIDTH metric, and YMOVE is set to zero. Finally, the glyph's image is converted to the appropriate format for `glBitmap'. Using `glXUseXFont' may be more efficient than accessing the X font and @@ -2343,8 +2345,8 @@ data, and because the server may choose to delay the creation of each bitmap until it is accessed. Empty display lists are created for all glyphs that are requested and -are not defined in FONT. `glXUseXFont' is ignored if there is no current -GLX context. +are not defined in FONT. `glXUseXFont' is ignored if there is no +current GLX context. `BadFont' is generated if FONT is not a valid font. @@ -2360,7 +2362,7 @@ longer valid.") "Complete GL execution prior to subsequent X calls. GL rendering calls made prior to `glXWaitGL' are guaranteed to be -executed before X rendering calls made after `glXWaitGL'. Although this +executed before X rendering calls made after `glXWaitGL'. Although this same result can be achieved using `glFinish', `glXWaitGL' does not require a round trip to the server, and it is therefore more efficient in cases where client and server are on separate machines. @@ -2376,7 +2378,7 @@ longer valid.") "Complete X execution prior to subsequent GL calls. X rendering calls made prior to `glXWaitX' are guaranteed to be executed -before GL rendering calls made after `glXWaitX'. Although the same +before GL rendering calls made after `glXWaitX'. Although the same result can be achieved using `XSync', `glXWaitX' does not require a round trip to the server, and it is therefore more efficient in cases where client and server are on separate machines. diff --git a/upstream-doc/man3/glBindBuffer.xml b/upstream-doc/man3/glBindBuffer.xml index c5e6015..e94b832 100644 --- a/upstream-doc/man3/glBindBuffer.xml +++ b/upstream-doc/man3/glBindBuffer.xml @@ -138,7 +138,7 @@ but will not directly affect transform feedback state. Instead, the indexed GL_TRANSFORM_FEEDBACK_BUFFER bindings must be used through a call to glBindBufferBase or glBindBufferRange. This will affect the generic - GL_TRANSFORM_FEEDABCK_BUFFER binding. + GL_TRANSFORM_FEEDBACK_BUFFER binding. Likewise, the GL_UNIFORM_BUFFER buffer binding point may be used, but does not directly affect diff --git a/upstream-doc/man3/glBindFragDataLocationIndexed.xml b/upstream-doc/man3/glBindFragDataLocationIndexed.xml index 4fcec2c..85128b5 100644 --- a/upstream-doc/man3/glBindFragDataLocationIndexed.xml +++ b/upstream-doc/man3/glBindFragDataLocationIndexed.xml @@ -112,8 +112,8 @@ GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DRAW_BUFFERS. - GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DUAL_SOURCE_DRAW_BUFERS - and index is greater than or equal to one. + GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DUAL_SOURCE_DRAW_BUFFERS + and index is greater than or equal to the value of GL_MAX_DUAL_SOURCE_DRAW_BUFFERS. GL_INVALID_VALUE is generated if index is greater than one. diff --git a/upstream-doc/man3/glBindSampler.xml b/upstream-doc/man3/glBindSampler.xml index 40e50cf..336931a 100644 --- a/upstream-doc/man3/glBindSampler.xml +++ b/upstream-doc/man3/glBindSampler.xml @@ -67,7 +67,7 @@ Errors GL_INVALID_VALUE is generated if unit is greater than or equal to the value of - GL_MAX_COMBIED_TEXTURE_IMAGE_UNITS. + GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS. GL_INVALID_OPERATION is generated if sampler is not zero or a name previously diff --git a/upstream-doc/man3/glBlendFunc.xml b/upstream-doc/man3/glBlendFunc.xml index ebf9284..25199f4 100644 --- a/upstream-doc/man3/glBlendFunc.xml +++ b/upstream-doc/man3/glBlendFunc.xml @@ -1418,10 +1418,16 @@ Associated Gets - glGet with argument GL_BLEND_SRC + glGet with argument GL_BLEND_SRC_RGB - glGet with argument GL_BLEND_DST + glGet with argument GL_BLEND_SRC_ALPHA + + + glGet with argument GL_BLEND_DST_RGB + + + glGet with argument GL_BLEND_DST_ALPHA glIsEnabled with argument GL_BLEND diff --git a/upstream-doc/man3/glCheckFramebufferStatus.xml b/upstream-doc/man3/glCheckFramebufferStatus.xml index 922e8f9..f86b59b 100644 --- a/upstream-doc/man3/glCheckFramebufferStatus.xml +++ b/upstream-doc/man3/glCheckFramebufferStatus.xml @@ -64,7 +64,7 @@ GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER is returned if the value of GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE - is GL_NONE for any color attachment point(s) named by GL_DRAWBUFFERi. + is GL_NONE for any color attachment point(s) named by GL_DRAW_BUFFERi. diff --git a/upstream-doc/man3/glClearBuffer.xml b/upstream-doc/man3/glClearBuffer.xml index dc06beb..6f59916 100644 --- a/upstream-doc/man3/glClearBuffer.xml +++ b/upstream-doc/man3/glClearBuffer.xml @@ -100,7 +100,7 @@ Description glClearBuffer* clears the specified buffer to the specified value(s). If buffer is - GL_COLOR, a particular draw buffer GL_DRAWBUFFERi is specified + GL_COLOR, a particular draw buffer GL_DRAW_BUFFERi is specified by passing i as drawBuffer. In this case, value points to a four-element vector specifying the R, G, B and A color to clear that draw buffer to. If buffer is one of GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, diff --git a/upstream-doc/man3/glCompressedTexImage2D.xml b/upstream-doc/man3/glCompressedTexImage2D.xml index cf05ff0..78adac2 100644 --- a/upstream-doc/man3/glCompressedTexImage2D.xml +++ b/upstream-doc/man3/glCompressedTexImage2D.xml @@ -132,7 +132,7 @@ If target is GL_PROXY_TEXTURE_2D, GL_PROXY_TEXTURE_1D_ARRAY - or GL_PROXY_CUBE_MAP, no data is read from data, but + or GL_PROXY_TEXTURE_CUBE_MAP, no data is read from data, but all of the texture image state is recalculated, checked for consistency, and checked against the implementation's capabilities. If the implementation cannot handle a texture of the requested texture size, it diff --git a/upstream-doc/man3/glCopyTexImage1D.xml b/upstream-doc/man3/glCopyTexImage1D.xml index 462fafc..f7f024c 100644 --- a/upstream-doc/man3/glCopyTexImage1D.xml +++ b/upstream-doc/man3/glCopyTexImage1D.xml @@ -108,25 +108,6 @@ Specifies the width of the texture image. - Must be 0 or - - - - 2 - n - - + - - 2 - - - border - - - - - for some integer - n. The height of the texture image is 1. @@ -135,8 +116,7 @@ border - Specifies the width of the border. - Must be either 0 or 1. + Must be 0. @@ -161,14 +141,6 @@ width - + - - 2 - - - border - - defines the texture array @@ -249,27 +221,7 @@ GL_MAX_TEXTURE_SIZE. - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width cannot be represented as - - - - 2 - n - - + - - 2 - - - border - - - - - for some integer value of n. - - - GL_INVALID_VALUE is generated if border is not 0 or 1. + GL_INVALID_VALUE is generated if border is not 0. GL_INVALID_OPERATION is generated if internalformat is diff --git a/upstream-doc/man3/glCopyTexImage2D.xml b/upstream-doc/man3/glCopyTexImage2D.xml index 17b5e00..1d5143b 100644 --- a/upstream-doc/man3/glCopyTexImage2D.xml +++ b/upstream-doc/man3/glCopyTexImage2D.xml @@ -115,25 +115,6 @@ Specifies the width of the texture image. - Must be 0 or - - - - 2 - n - - + - - 2 - - - border - - - - - for some integer - n. @@ -142,25 +123,6 @@ Specifies the height of the texture image. - Must be 0 or - - - - 2 - m - - + - - 2 - - - border - - - - - for some integer - m. @@ -168,8 +130,7 @@ border - Specifies the width of the border. - Must be either 0 or 1. + Must be 0. @@ -188,14 +149,6 @@ width - + - - 2 - - - border - - and a height of @@ -203,14 +156,6 @@ height - + - - 2 - - - border - - defines the texture array @@ -292,33 +237,12 @@ is the returned value of GL_MAX_TEXTURE_SIZE. - GL_INVALID_VALUE is generated if width is less than 0 + GL_INVALID_VALUE is generated if either width or height is less than 0 or greater than GL_MAX_TEXTURE_SIZE. - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width or depth cannot be represented as - - - - 2 - k - - + - - 2 - - - border - - - - - for some integer - k. - - - GL_INVALID_VALUE is generated if border is not 0 or 1. + GL_INVALID_VALUE is generated if border is not 0. GL_INVALID_VALUE is generated if internalformat is not an diff --git a/upstream-doc/man3/glCopyTexSubImage1D.xml b/upstream-doc/man3/glCopyTexSubImage1D.xml index 18671d6..471c4ac 100644 --- a/upstream-doc/man3/glCopyTexSubImage1D.xml +++ b/upstream-doc/man3/glCopyTexSubImage1D.xml @@ -88,7 +88,7 @@ than from main memory, as is the case for glTexSubImage1D). - The screen-aligned pixel row with left corner at (x,\ y), and with + The screen-aligned pixel row with left corner at (x, y), and with length width replaces the portion of the texture array with x indices xoffset through @@ -128,8 +128,7 @@ rendering context, then the values obtained for those pixels are undefined. - No change is made to the internalformat, width, - or border parameters of the specified texture + No change is made to the internalformat or width parameters of the specified texture array or to texel values outside the specified subregion. @@ -140,7 +139,7 @@ Errors - GL_INVALID_ENUM is generated if /target is not GL_TEXTURE_1D. + GL_INVALID_ENUM is generated if target is not GL_TEXTURE_1D. GL_INVALID_OPERATION is generated if the texture array has not @@ -176,10 +175,7 @@ xoffset < - - - - b - + 0 , or @@ -194,26 +190,13 @@ > - - - w - - - b - - + w , where w - is the GL_TEXTURE_WIDTH and - b - is the GL_TEXTURE_BORDER + is the GL_TEXTURE_WIDTH of the texture image being modified. - Note that - w - includes twice the border width. - - Associated Gets diff --git a/upstream-doc/man3/glCopyTexSubImage2D.xml b/upstream-doc/man3/glCopyTexSubImage2D.xml index 332b0e2..8f098c1 100644 --- a/upstream-doc/man3/glCopyTexSubImage2D.xml +++ b/upstream-doc/man3/glCopyTexSubImage2D.xml @@ -173,8 +173,8 @@ rendering context, then the values obtained for those pixels are undefined. - No change is made to the internalformat, width, - height, or border parameters of the specified texture + No change is made to the internalformat, width or + height parameters of the specified texture array or to texel values outside the specified subregion. @@ -190,8 +190,9 @@ GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, - GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or - GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + GL_TEXTURE_CUBE_MAP_POSITIVE_Z, + GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or + GL_TEXTURE_1D_ARRAY. GL_INVALID_OPERATION is generated if the texture array has not been @@ -229,10 +230,7 @@ xoffset < - - - - b - + 0 , @@ -246,13 +244,9 @@ > - - - w - - - b - - + + w + , @@ -260,10 +254,7 @@ yoffset < - - - - b - + 0 , or @@ -278,29 +269,15 @@ > - - - h - - - b - - + h , where w - is the GL_TEXTURE_WIDTH, + is the GL_TEXTURE_WIDTH, and h - is the GL_TEXTURE_HEIGHT, - and - b - is the GL_TEXTURE_BORDER + is the GL_TEXTURE_HEIGHT of the texture image being modified. - Note that - w - and - h - include twice the border width. Associated Gets diff --git a/upstream-doc/man3/glCopyTexSubImage3D.xml b/upstream-doc/man3/glCopyTexSubImage3D.xml index 08a7a04..742ab1a 100644 --- a/upstream-doc/man3/glCopyTexSubImage3D.xml +++ b/upstream-doc/man3/glCopyTexSubImage3D.xml @@ -170,7 +170,7 @@ No change is made to the internalformat, width, - height, depth, or border parameters of the specified texture + height, or depth parameters of the specified texture array or to texel values outside the specified subregion. @@ -181,7 +181,7 @@ Errors - GL_INVALID_ENUM is generated if /target is not GL_TEXTURE_3D. + GL_INVALID_ENUM is generated if target is not GL_TEXTURE_3D or GL_TEXTURE_2D_ARRAY. GL_INVALID_OPERATION is generated if the texture array has not @@ -220,10 +220,7 @@ xoffset < - - - - b - + 0 , @@ -237,13 +234,7 @@ > - - - w - - - b - - + w , @@ -251,10 +242,7 @@ yoffset < - - - - b - + 0 , @@ -268,13 +256,7 @@ > - - - h - - - b - - + h , @@ -282,10 +264,7 @@ zoffset < - - - - b - + 0 , or @@ -300,32 +279,17 @@ > - - - d - - - b - - + d , where w is the GL_TEXTURE_WIDTH, h - is the GL_TEXTURE_HEIGHT, + is the GL_TEXTURE_HEIGHT, and d - is the GL_TEXTURE_DEPTH, - and - b - is the GL_TEXTURE_BORDER + is the GL_TEXTURE_DEPTH of the texture image being modified. - Note that - w, - h, - and - d - include twice the border width. Associated Gets diff --git a/upstream-doc/man3/glDrawBuffers.xml b/upstream-doc/man3/glDrawBuffers.xml index f54a5d1..8dad505 100644 --- a/upstream-doc/man3/glDrawBuffers.xml +++ b/upstream-doc/man3/glDrawBuffers.xml @@ -138,7 +138,7 @@ GL_INVALID_ENUM is generated if the GL is bound to a framebuffer object and one or more of the values in bufs is anything other than GL_NONE or one of the - GL_COLOR_ATTACHMENTSn tokens. + GL_COLOR_ATTACHMENTn tokens. GL_INVALID_ENUM is generated if n is less than 0. diff --git a/upstream-doc/man3/glFlushMappedBufferRange.xml b/upstream-doc/man3/glFlushMappedBufferRange.xml index 75258d6..73f7c79 100644 --- a/upstream-doc/man3/glFlushMappedBufferRange.xml +++ b/upstream-doc/man3/glFlushMappedBufferRange.xml @@ -61,7 +61,7 @@ Description glFlushMappedBufferRange indicates that modifications have been made to a range of a mapped buffer. - The buffer must previously have been mapped with the GL_MAP_FLUSH_EXPLICIT flag. offset + The buffer must previously have been mapped with the GL_MAP_FLUSH_EXPLICIT_BIT flag. offset and length indicate the modified subrange of the mapping, in basic units. The specified subrange to flush is relative to the start of the currently mapped range of the buffer. glFlushMappedBufferRange may be called multiple times to indicate distinct subranges of the mapping which require flushing. @@ -77,7 +77,7 @@ GL_INVALID_OPERATION is generated if the buffer bound to target is not - mapped, or is mapped without the GL_MAP_FLUSH_EXPLICIT flag. + mapped, or is mapped without the GL_MAP_FLUSH_EXPLICIT_BIT flag. See Also diff --git a/upstream-doc/man3/glFramebufferTexture.xml b/upstream-doc/man3/glFramebufferTexture.xml index 9505fee..d19d684 100644 --- a/upstream-doc/man3/glFramebufferTexture.xml +++ b/upstream-doc/man3/glFramebufferTexture.xml @@ -71,7 +71,7 @@ Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, - GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. + GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT. @@ -114,7 +114,7 @@ attachment specifies the logical attachment of the framebuffer and must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, - GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. + GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT. i in GL_COLOR_ATTACHMENTi may range from zero to the value of GL_MAX_COLOR_ATTACHMENTS - 1. Attaching a level of a texture to GL_DEPTH_STENCIL_ATTACHMENT is equivalent to attaching that level to both the diff --git a/upstream-doc/man3/glFramebufferTextureLayer.xml b/upstream-doc/man3/glFramebufferTextureLayer.xml index 18805ae..40cb774 100644 --- a/upstream-doc/man3/glFramebufferTextureLayer.xml +++ b/upstream-doc/man3/glFramebufferTextureLayer.xml @@ -47,7 +47,7 @@ Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, - GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. + GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT. diff --git a/upstream-doc/man3/glGet.xml b/upstream-doc/man3/glGet.xml index ed98aa8..995c4dc 100644 --- a/upstream-doc/man3/glGet.xml +++ b/upstream-doc/man3/glGet.xml @@ -661,31 +661,6 @@ - - GL_LINE_WIDTH_GRANULARITY - - - - - params returns one value, - the width difference between adjacent supported widths for antialiased lines. - See glLineWidth. - - - - - GL_LINE_WIDTH_RANGE - - - - - params returns two values: - the smallest and largest supported widths for antialiased - lines. - See glLineWidth. - - - GL_LOGIC_OP_MODE @@ -830,7 +805,7 @@ - GL_MAX_DUALSOURCE_DRAW_BUFFERS + GL_MAX_DUAL_SOURCE_DRAW_BUFFERS @@ -933,7 +908,7 @@ params returns one value. The value gives a rough estimate of the largest rectangular texture that the GL can handle. The value must be at least 1024. - Use GL_PROXY_RECTANGLE_TEXTURE + Use GL_PROXY_TEXTURE_RECTANGLE to determine if a texture is too large. See glTexImage2D. @@ -1441,6 +1416,21 @@ + + GL_PROGRAM_POINT_SIZE + + + + + params returns a single boolean value indicating whether vertex + program point size mode is enabled. If enabled, then the + point size is taken from the shader built-in gl_PointSize. If disabled, + then the point size is taken from the point state as specified + by glPointSize. + The initial value is GL_FALSE. + + + GL_PROVOKING_VERTEX @@ -2076,7 +2066,7 @@ - GL_TEXTURE_BUFFER_BINDING + GL_TEXTURE_BINDING_BUFFER @@ -2348,21 +2338,6 @@ - - GL_VERTEX_PROGRAM_POINT_SIZE - - - - - params returns a single boolean value indicating whether vertex - program point size mode is enabled. If enabled, and a vertex shader is active, then the - point size is taken from the shader built-in gl_PointSize. If disabled, - and a vertex shader is active, then the point size is taken from the point state as specified - by glPointSize. - The initial value is GL_FALSE. - - - GL_VIEWPORT @@ -2402,7 +2377,7 @@ GL_MAX_RECTANGLE_TEXTURE_SIZE, GL_MAX_TEXTURE_BUFFER_SIZE, - GL_UNIFORM_BUFFER_BINDING, GL_TEXTURE_BUFFER_BINDING, + GL_UNIFORM_BUFFER_BINDING, GL_TEXTURE_BINDING_BUFFER, GL_MAX_VERTEX_UNIFORM_BLOCKS, GL_MAX_FRAGMENT_UNIFORM_BLOCKS, GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS, GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS GL_MAX_COMBINED_UNIFORM_BLOCKS, GL_MAX_UNIFORM_BLOCK_SIZE, @@ -2420,7 +2395,7 @@ the GL version is 3.2 or greater. - GL_MAX_DUALSOURCE_DRAW_BUFFERS, GL_SAMPLER_BINDING, and + GL_MAX_DUAL_SOURCE_DRAW_BUFFERS, GL_SAMPLER_BINDING, and GL_TIMESTAMP are available only if the GL version is 3.3 or greater. diff --git a/upstream-doc/man3/glGetActiveAttrib.xml b/upstream-doc/man3/glGetActiveAttrib.xml index 070225b..78c8df7 100644 --- a/upstream-doc/man3/glGetActiveAttrib.xml +++ b/upstream-doc/man3/glGetActiveAttrib.xml @@ -153,7 +153,7 @@ GL_INT_VEC2, GL_INT_VEC3, GL_INT_VEC4, - GL_UNSIGNED_INT_VEC, + GL_UNSIGNED_INT, GL_UNSIGNED_INT_VEC2, GL_UNSIGNED_INT_VEC3, or GL_UNSIGNED_INT_VEC4 may be returned. The diff --git a/upstream-doc/man3/glGetActiveUniform.xml b/upstream-doc/man3/glGetActiveUniform.xml index 6df305e..ac5b8f6 100644 --- a/upstream-doc/man3/glGetActiveUniform.xml +++ b/upstream-doc/man3/glGetActiveUniform.xml @@ -708,10 +708,13 @@ Associated Gets glGet - with argument GL_MAX_VERTEX_UNIFORM_COMPONENTS, + with argument + GL_MAX_VERTEX_UNIFORM_COMPONENTS, GL_MAX_GEOMETRY_UNIFORM_COMPONENTS, - GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, or - GL_MAX_COMBINED_UNIFORM_COMPONENTS. + GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, + GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS, + GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS, + GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS. glGetProgram with argument GL_ACTIVE_UNIFORMS or diff --git a/upstream-doc/man3/glGetActiveUniformBlock.xml b/upstream-doc/man3/glGetActiveUniformBlock.xml index 54740c8..16c0dbc 100755 --- a/upstream-doc/man3/glGetActiveUniformBlock.xml +++ b/upstream-doc/man3/glGetActiveUniformBlock.xml @@ -23,7 +23,7 @@ GLuint program GLuint uniformBlockIndex GLenum pname - GLint params + GLint *params @@ -140,7 +140,7 @@ Copyright - Copyright 2010 Khronos Group. + Copyright 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man3/glGetActiveUniformsiv.xml b/upstream-doc/man3/glGetActiveUniformsiv.xml index 3b5e551..f27a1c5 100644 --- a/upstream-doc/man3/glGetActiveUniformsiv.xml +++ b/upstream-doc/man3/glGetActiveUniformsiv.xml @@ -645,8 +645,10 @@ glGet with argument GL_MAX_VERTEX_UNIFORM_COMPONENTS, GL_MAX_GEOMETRY_UNIFORM_COMPONENTS, - GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, or - GL_MAX_COMBINED_UNIFORM_COMPONENTS. + GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, + GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS, + GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS, + GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS. glGetProgram with argument GL_ACTIVE_UNIFORMS or diff --git a/upstream-doc/man3/glGetBufferParameter.xml b/upstream-doc/man3/glGetBufferParameter.xml index cb3df4e..00f775f 100644 --- a/upstream-doc/man3/glGetBufferParameter.xml +++ b/upstream-doc/man3/glGetBufferParameter.xml @@ -1,7 +1,7 @@ - + @@ -25,6 +25,14 @@ GLint * data + + + void glGetBufferParameteri64v + GLenum target + GLenum value + GLint64 * data + + Parameters @@ -117,6 +125,9 @@ If an error is generated, no change is made to the contents of data. + + glGetBufferParameteri64v is available only if the GL version is 3.2 or higher. + Errors @@ -138,6 +149,7 @@ Copyright Copyright 2005 Addison-Wesley. + Copyright 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man3/glGetBufferParameteriv.xml b/upstream-doc/man3/glGetBufferParameteriv.xml deleted file mode 100644 index 07538db..0000000 --- a/upstream-doc/man3/glGetBufferParameteriv.xml +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - - 2005 - Sams Publishing - - - glGetBufferParameteriv - 3G - - - glGetBufferParameteriv - return parameters of a buffer object - - C Specification - - - void glGetBufferParameteriv - GLenum target - GLenum value - GLint * data - - - - - void glGetBufferParameteri64v - GLenum target - GLenum value - GLint64 * data - - - - Parameters - - - target - - - Specifies the target buffer object. - The symbolic constant must be GL_ARRAY_BUFFER, - GL_ELEMENT_ARRAY_BUFFER, - GL_PIXEL_PACK_BUFFER, or - GL_PIXEL_UNPACK_BUFFER. - - - - - value - - - Specifies the symbolic name of a buffer object parameter. - Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, - GL_BUFFER_SIZE, or GL_BUFFER_USAGE. - - - - - data - - - Returns the requested parameter. - - - - - - Description - - glGetBufferParameteriv returns in data a selected parameter of the buffer object - specified by target. - - - value names a specific buffer object parameter, as follows: - - - - GL_BUFFER_ACCESS - - - params returns the access policy set while mapping the buffer object. - The initial value is GL_READ_WRITE. - - - - - GL_BUFFER_MAPPED - - - params returns a flag indicating whether the buffer object is currently - mapped. The initial value is GL_FALSE. - - - - - GL_BUFFER_SIZE - - - params returns the size of the buffer object, measured in bytes. - The initial value is 0. - - - - - GL_BUFFER_USAGE - - - params returns the buffer object's usage pattern. The initial value is - GL_STATIC_DRAW. - - - - - - Notes - - If an error is generated, - no change is made to the contents of data. - - - Errors - - GL_INVALID_ENUM is generated if target or value is not an - accepted value. - - - GL_INVALID_OPERATION is generated if the reserved buffer object name 0 is bound to target. - - - See Also - - glBindBuffer, - glBufferData, - glMapBuffer, - glUnmapBuffer - - - Copyright - - Copyright 2005 Addison-Wesley. - This material may be distributed subject to the terms and conditions set forth in - the Open Publication License, v 1.0, 8 June 1999. - http://opencontent.org/openpub/. - - - diff --git a/upstream-doc/man3/glGetFramebufferAttachmentParameter.xml b/upstream-doc/man3/glGetFramebufferAttachmentParameter.xml index 9d72d4a..d98fd17 100644 --- a/upstream-doc/man3/glGetFramebufferAttachmentParameter.xml +++ b/upstream-doc/man3/glGetFramebufferAttachmentParameter.xml @@ -19,7 +19,7 @@ C Specification - void glGetFramebufferAttachmentParameter + void glGetFramebufferAttachmentParameteriv GLenum target GLenum attachment GLenum pname @@ -66,7 +66,7 @@ Description - glGetFramebufferAttachmentParameter returns information about attachments of a bound framebuffer + glGetFramebufferAttachmentParameteriv returns information about attachments of a bound framebuffer object. target specifies the framebuffer binding point and must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER. @@ -218,7 +218,7 @@ Copyright - Copyright 2010 Khronos Group. + Copyright 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man3/glGetTexLevelParameter.xml b/upstream-doc/man3/glGetTexLevelParameter.xml index 7b054dc..fce1c38 100644 --- a/upstream-doc/man3/glGetTexLevelParameter.xml +++ b/upstream-doc/man3/glGetTexLevelParameter.xml @@ -5,8 +5,8 @@ - 1991-2006 - Silicon Graphics, Inc. + 2013 + Khronos Group glGetTexLevelParameter @@ -95,7 +95,6 @@ GL_TEXTURE_HEIGHT, GL_TEXTURE_DEPTH, GL_TEXTURE_INTERNAL_FORMAT, - GL_TEXTURE_BORDER, GL_TEXTURE_RED_SIZE, GL_TEXTURE_GREEN_SIZE, GL_TEXTURE_BLUE_SIZE, @@ -139,8 +138,8 @@ GL_MAX_TEXTURE_SIZE, and GL_MAX_3D_TEXTURE_SIZE are not really descriptive enough. It has to report the largest square texture image that can be - accommodated with mipmaps and borders, - but a long skinny texture, or a texture without mipmaps and borders, may + accommodated with mipmaps + but a long skinny texture, or a texture without mipmaps may easily fit in texture memory. The proxy targets allow the user to more accurately query whether the GL can accommodate a texture of a given configuration. @@ -165,8 +164,7 @@ params returns a single value, the width of the texture image. - This value includes the border of the texture image. The initial value is - 0. + The initial value is 0. @@ -178,8 +176,7 @@ params returns a single value, the height of the texture image. - This value includes the border of the texture image. The initial value is - 0. + The initial value is 0. @@ -191,8 +188,7 @@ params returns a single value, the depth of the texture image. - This value includes the border of the texture image. The initial value is - 0. + The initial value is 0. @@ -361,7 +357,7 @@ Copyright Copyright 1991-2006 - Silicon Graphics, Inc. Copyright 2010 + Silicon Graphics, Inc. Copyright 2010-2013 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man3/glGetTransformFeedbackVarying.xml b/upstream-doc/man3/glGetTransformFeedbackVarying.xml index c5e63c2..a8a8260 100644 --- a/upstream-doc/man3/glGetTransformFeedbackVarying.xml +++ b/upstream-doc/man3/glGetTransformFeedbackVarying.xml @@ -24,7 +24,7 @@ GLuintindex GLsizeibufSize GLsizei *length - GLsizeisize + GLsizei *size GLenum *type char *name @@ -99,7 +99,7 @@ variable selected by index. An index of 0 selects the first varying variable specified in the varyings array passed to glTransformFeedbackVaryings, and - an index of GL_TRANSFORM_FEEDBACK_VARYINGS-1 selects + an index of GL_TRANSFORM_FEEDBACK_VARYINGS - 1 selects the last such variable. @@ -152,7 +152,7 @@ Copyright - Copyright 2010 Khronos Group. + Copyright 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man3/glIsEnabled.xml b/upstream-doc/man3/glIsEnabled.xml index 015e197..152cf92 100644 --- a/upstream-doc/man3/glIsEnabled.xml +++ b/upstream-doc/man3/glIsEnabled.xml @@ -258,7 +258,7 @@ - GL_TEXTURE_CUBEMAP_SEAMLESS + GL_TEXTURE_CUBE_MAP_SEAMLESS glEnable diff --git a/upstream-doc/man3/glLinkProgram.xml b/upstream-doc/man3/glLinkProgram.xml index 67330ca..2c19372 100644 --- a/upstream-doc/man3/glLinkProgram.xml +++ b/upstream-doc/man3/glLinkProgram.xml @@ -165,7 +165,7 @@ The total number of components to capture in any transform feedback varying variable is greater than the constant GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS - and the buffer mode is SEPARATE_ATTRIBS. + and the buffer mode is GL_SEPARATE_ATTRIBS. diff --git a/upstream-doc/man3/glPointSize.xml b/upstream-doc/man3/glPointSize.xml index 77dcecb..5a64cdd 100644 --- a/upstream-doc/man3/glPointSize.xml +++ b/upstream-doc/man3/glPointSize.xml @@ -67,12 +67,6 @@ glGet with argument GL_POINT_SIZE - - glGet with argument GL_POINT_SIZE_MIN - - - glGet with argument GL_POINT_SIZE_MAX - glGet with argument GL_POINT_FADE_THRESHOLD_SIZE diff --git a/upstream-doc/man3/glReadPixels.xml b/upstream-doc/man3/glReadPixels.xml index 798a87e..8cd12d0 100644 --- a/upstream-doc/man3/glReadPixels.xml +++ b/upstream-doc/man3/glReadPixels.xml @@ -191,11 +191,7 @@ Stencil values are read from the stencil buffer. - Each index is converted to fixed point, - shifted left or right depending on the value and sign of GL_INDEX_SHIFT, - and added to GL_INDEX_OFFSET. - If GL_MAP_STENCIL is GL_TRUE, - indices are replaced by their mappings in the table GL_PIXEL_MAP_S_TO_S. + Each index is converted to fixed point. @@ -206,9 +202,7 @@ Depth values are read from the depth buffer. Each component is converted to floating point such that the minimum depth value maps to 0 and the maximum value maps to 1. - Each component is then multiplied by GL_DEPTH_SCALE, - added to GL_DEPTH_BIAS, - and finally clamped to the range + Each component is clamped to the range @@ -1164,9 +1158,6 @@ Associated Gets - - glGet with argument GL_INDEX_MODE - glGet with argument GL_PIXEL_PACK_BUFFER_BINDING diff --git a/upstream-doc/man3/glTexBuffer.xml b/upstream-doc/man3/glTexBuffer.xml index c9f7420..0b80fc2 100644 --- a/upstream-doc/man3/glTexBuffer.xml +++ b/upstream-doc/man3/glTexBuffer.xml @@ -22,7 +22,7 @@ void glTexBuffer GLenum target GLenum internalFormat - Gluintbuffer + GLuint buffer @@ -459,7 +459,7 @@ Copyright - Copyright 2010 Khronos Group. + Copyright 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man3/glTexImage1D.xml b/upstream-doc/man3/glTexImage1D.xml index b83ec76..4ac43ce 100644 --- a/upstream-doc/man3/glTexImage1D.xml +++ b/upstream-doc/man3/glTexImage1D.xml @@ -235,9 +235,7 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -248,9 +246,7 @@ Each element is a single red/green double The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -266,9 +262,7 @@ Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -282,9 +276,7 @@ Each element contains all four components. - Each component is multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -293,8 +285,7 @@ Each element is a single depth value. - The GL converts it to floating point, multiplies by the signed scale factor - GL_DEPTH_SCALE, adds the signed bias GL_DEPTH_BIAS, + The GL converts it to floating point and clamps to the range [0,1]. diff --git a/upstream-doc/man3/glTexImage2D.xml b/upstream-doc/man3/glTexImage2D.xml index f6c589b..09d5baa 100644 --- a/upstream-doc/man3/glTexImage2D.xml +++ b/upstream-doc/man3/glTexImage2D.xml @@ -225,9 +225,7 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -238,9 +236,7 @@ Each element is a red/green double. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -256,9 +252,7 @@ Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component clamped to the range [0,1]. @@ -272,9 +266,7 @@ Each element contains all four components. - Each component is multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -283,8 +275,7 @@ Each element is a single depth value. - The GL converts it to floating point, multiplies by the signed scale factor - GL_DEPTH_SCALE, adds the signed bias GL_DEPTH_BIAS, + The GL converts it to floating point, and clamps to the range [0,1]. diff --git a/upstream-doc/man3/glTexImage3D.xml b/upstream-doc/man3/glTexImage3D.xml index 7a9ac09..554a959 100644 --- a/upstream-doc/man3/glTexImage3D.xml +++ b/upstream-doc/man3/glTexImage3D.xml @@ -84,8 +84,8 @@ GL_RGBA8UI, GL_SRGB8_ALPHA8, GL_RGB10_A2, - GL_RGBA10_A2UI, - GL_R11_G11_B10F, + GL_RGB10_A2UI, + GL_R11F_G11F_B10F, GL_RG32F, GL_RG32I, GL_RG32UI, @@ -96,7 +96,7 @@ GL_RG8, GL_RG8I, GL_RG8UI, - GL_R23F, + GL_R32F, GL_R32I, GL_R32UI, GL_R16F, @@ -105,7 +105,7 @@ GL_R8, GL_R8I, GL_R8UI, - GL_RGBA16_UNORM, + GL_RGBA16_SNORM, GL_RGBA8_SNORM, GL_RGB32F, GL_RGB32I, @@ -300,9 +300,7 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -313,9 +311,7 @@ Each element is a red and green pair. The GL converts each to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -331,9 +327,7 @@ Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -347,9 +341,7 @@ Each element contains all four components. - Each component is multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. diff --git a/upstream-doc/man3/glTexSubImage1D.xml b/upstream-doc/man3/glTexSubImage1D.xml index 3d8e082..91bb9f2 100644 --- a/upstream-doc/man3/glTexSubImage1D.xml +++ b/upstream-doc/man3/glTexSubImage1D.xml @@ -200,10 +200,7 @@ xoffset < - - - - b - + 0 , or if @@ -218,25 +215,13 @@ > - - - w - - - b - - + w , where w - is the GL_TEXTURE_WIDTH, and - b - is - the width of the GL_TEXTURE_BORDER + is the GL_TEXTURE_WIDTH of the texture image being modified. - Note that - w - includes twice the border width. GL_INVALID_VALUE is generated if width is less than 0. diff --git a/upstream-doc/man3/glTexSubImage2D.xml b/upstream-doc/man3/glTexSubImage2D.xml index 717c660..918c671 100644 --- a/upstream-doc/man3/glTexSubImage2D.xml +++ b/upstream-doc/man3/glTexSubImage2D.xml @@ -240,11 +240,8 @@ xoffset < - - - - b + 0 - , @@ -257,13 +254,7 @@ > - - - w - - - b - - + w , @@ -271,10 +262,7 @@ yoffset < - - - - b - + 0 , or @@ -289,28 +277,15 @@ > - - - h - - - b - - + h , where w - is the GL_TEXTURE_WIDTH, + is the GL_TEXTURE_WIDTH, and h - is the GL_TEXTURE_HEIGHT, and - b - is the border width + is the GL_TEXTURE_HEIGHT of the texture image being modified. - Note that - w - and - h - include twice the border width. GL_INVALID_VALUE is generated if width or height is less than 0. diff --git a/upstream-doc/man3/glTexSubImage3D.xml b/upstream-doc/man3/glTexSubImage3D.xml index 1be8dd8..113d0fc 100644 --- a/upstream-doc/man3/glTexSubImage3D.xml +++ b/upstream-doc/man3/glTexSubImage3D.xml @@ -260,10 +260,7 @@ xoffset < - - - - b - + 0 , @@ -277,13 +274,7 @@ > - - - w - - - b - - + w , @@ -291,10 +282,7 @@ yoffset < - - - - b - + 0 , or @@ -309,13 +297,7 @@ > - - - h - - - b - - + h , or @@ -324,10 +306,7 @@ zoffset < - - - - b - + 0 , or @@ -342,31 +321,17 @@ > - - - d - - - b - - + d , where w is the GL_TEXTURE_WIDTH, h - is the GL_TEXTURE_HEIGHT, + is the GL_TEXTURE_HEIGHT, and d is the GL_TEXTURE_DEPTH - and - b - is the border width of the texture image being modified. - Note that - w, - h, - and - d - include twice the border width. + of the texture image being modified. GL_INVALID_VALUE is generated if width, height, or depth diff --git a/upstream-doc/man3/glVertexAttrib.xml b/upstream-doc/man3/glVertexAttrib.xml index f4a00a1..6802961 100644 --- a/upstream-doc/man3/glVertexAttrib.xml +++ b/upstream-doc/man3/glVertexAttrib.xml @@ -98,9 +98,9 @@ void glVertexAttribI3ui GLuint index - GLoint v0 - GLoint v1 - GLoint v2 + GLuint v0 + GLuint v1 + GLuint v2 void glVertexAttrib4f @@ -417,7 +417,7 @@ type Type of packing used on the data. This parameter must be - GL_INT_10_10_10_2 or GL_UNSIGNED_INT_10_10_10_2 + GL_INT_2_10_10_10_REV or GL_UNSIGNED_INT_2_10_10_10_REV to specify signed or unsigned data, respectively. @@ -577,8 +577,8 @@ GL_INVALID_ENUM is generated if glVertexAttribP is used with a type other than - GL_INT_10_10_10_2 or - GL_UNSIGNED_INT_10_10_10_2. + GL_INT_2_10_10_10_REV or + GL_UNSIGNED_INT_2_10_10_10_REV. Associated Gets glGet @@ -602,7 +602,8 @@ Copyright - Copyright 2003-2005 3Dlabs Inc. Ltd. + Copyright 2003-2005 3Dlabs Inc. Ltd. + Copyright 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man3/glVertexAttribDivisor.xml b/upstream-doc/man3/glVertexAttribDivisor.xml index 6a4f8a6..6ee2caa 100644 --- a/upstream-doc/man3/glVertexAttribDivisor.xml +++ b/upstream-doc/man3/glVertexAttribDivisor.xml @@ -54,7 +54,7 @@ is referred to as instanced if its GL_VERTEX_ATTRIB_ARRAY_DIVISOR value is non-zero. - index must be less than the value of GL_MAX_VERTEX_ATTRIBUTES. + index must be less than the value of GL_MAX_VERTEX_ATTRIBS. Notes @@ -65,7 +65,7 @@ Errors GL_INVALID_VALUE is generated if index is greater - than or equal to the value of GL_MAX_VERTEX_ATTRIBUTES. + than or equal to the value of GL_MAX_VERTEX_ATTRIBS. See Also diff --git a/upstream-doc/man3/xhtml/glBindBuffer.xml b/upstream-doc/man3/xhtml/glBindBuffer.xml index 59f895f..aecf833 100644 --- a/upstream-doc/man3/xhtml/glBindBuffer.xml +++ b/upstream-doc/man3/xhtml/glBindBuffer.xml @@ -1,7 +1,7 @@ -glBindBuffer

Name

glBindBuffer — bind a named buffer object

C Specification

void glBindBuffer(GLenum target,
 GLuint buffer);
 

Parameters

target

+glBindBuffer - OpenGL 3.3 Reference Pages

Name

glBindBuffer — bind a named buffer object

C Specification

void glBindBuffer(GLenum  target,
 GLuint  buffer);

Parameters

target

Specifies the target to which the buffer object is bound. The symbolic constant must be GL_ARRAY_BUFFER, @@ -15,7 +15,7 @@ GL_UNIFORM_BUFFER.

buffer

Specifies the name of a buffer object. -

Description

+

Description

glBindBuffer binds a buffer object to the specified buffer binding point. Calling glBindBuffer with target set to one of the accepted symbolic constants and buffer set to the name of a buffer object binds that buffer object name to the target. If no buffer object with name buffer @@ -31,7 +31,7 @@ two rendering contexts share buffer object names only if they explicitly enable sharing between contexts through the appropriate GL windows interfaces functions.

- glGenBuffers must be used to generate a set of unused buffer object names. + glGenBuffers must be used to generate a set of unused buffer object names.

The state of a buffer object immediately after it is first bound is an unmapped zero-sized memory buffer with GL_READ_WRITE access and GL_STATIC_DRAW usage. @@ -47,97 +47,97 @@ buffer object measured in basic machine units.

While a non-zero buffer object is bound to the GL_ELEMENT_ARRAY_BUFFER target, - the indices parameter of glDrawElements, - glDrawElementsInstanced, - glDrawElementsBaseVertex, - glDrawRangeElements, - glDrawRangeElementsBaseVertex, - glMultiDrawElements, or - glMultiDrawElementsBaseVertex is interpreted as an + the indices parameter of glDrawElements, + glDrawElementsInstanced, + glDrawElementsBaseVertex, + glDrawRangeElements, + glDrawRangeElementsBaseVertex, + glMultiDrawElements, or + glMultiDrawElementsBaseVertex is interpreted as an offset within the buffer object measured in basic machine units.

While a non-zero buffer object is bound to the GL_PIXEL_PACK_BUFFER target, - the following commands are affected: glGetCompressedTexImage, - glGetTexImage, and - glReadPixels. The pointer parameter is + the following commands are affected: glGetCompressedTexImage, + glGetTexImage, and + glReadPixels. The pointer parameter is interpreted as an offset within the buffer object measured in basic machine units.

While a non-zero buffer object is bound to the GL_PIXEL_UNPACK_BUFFER target, the following commands are affected: - glCompressedTexImage1D, - glCompressedTexImage2D, - glCompressedTexImage3D, - glCompressedTexSubImage1D, - glCompressedTexSubImage2D, - glCompressedTexSubImage3D, - glTexImage1D, - glTexImage2D, - glTexImage3D, - glTexSubImage1D, - glTexSubImage2D, and - glTexSubImage3D. The pointer parameter is + glCompressedTexImage1D, + glCompressedTexImage2D, + glCompressedTexImage3D, + glCompressedTexSubImage1D, + glCompressedTexSubImage2D, + glCompressedTexSubImage3D, + glTexImage1D, + glTexImage2D, + glTexImage3D, + glTexSubImage1D, + glTexSubImage2D, and + glTexSubImage3D. The pointer parameter is interpreted as an offset within the buffer object measured in basic machine units.

The buffer targets GL_COPY_READ_BUFFER and GL_COPY_WRITE_BUFFER - are provided to allow glCopyBufferSubData - to be used without disturbing the state of other bindings. However, glCopyBufferSubData + are provided to allow glCopyBufferSubData + to be used without disturbing the state of other bindings. However, glCopyBufferSubData may be used with any pair of buffer binding points.

The GL_TRANSFORM_FEEDBACK_BUFFER buffer binding point may be passed to glBindBuffer, but will not directly affect transform feedback state. Instead, the indexed GL_TRANSFORM_FEEDBACK_BUFFER - bindings must be used through a call to glBindBufferBase - or glBindBufferRange. This will affect the generic - GL_TRANSFORM_FEEDABCK_BUFFER binding. + bindings must be used through a call to glBindBufferBase + or glBindBufferRange. This will affect the generic + GL_TRANSFORM_FEEDBACK_BUFFER binding.

Likewise, the GL_UNIFORM_BUFFER buffer binding point may be used, but does not directly affect - uniform buffer state. glBindBufferBase - or glBindBufferRange must be used to bind a buffer to + uniform buffer state. glBindBufferBase + or glBindBufferRange must be used to bind a buffer to an indexed uniform buffer binding point.

A buffer object binding created with glBindBuffer remains active until a different buffer object name is bound to the same target, or until the bound buffer object is - deleted with glDeleteBuffers. + deleted with glDeleteBuffers.

Once created, a named buffer object may be re-bound to any target as often as needed. However, the GL implementation may make choices about how to optimize the storage of a buffer object based on its initial binding target. -

Notes

+

Notes

The GL_COPY_READ_BUFFER, GL_UNIFORM_BUFFER and GL_TEXTURE_BUFFER targets are available only if the GL version is 3.1 or greater. -

Errors

+

Errors

GL_INVALID_ENUM is generated if target is not one of the allowable values.

GL_INVALID_VALUE is generated if buffer is not a name previously returned - from a call to glGenBuffers. -

Associated Gets

- glGet with argument GL_ARRAY_BUFFER_BINDING + from a call to glGenBuffers. +

Associated Gets

+ glGet with argument GL_ARRAY_BUFFER_BINDING

- glGet with argument GL_COPY_READ_BUFFER_BINDING + glGet with argument GL_COPY_READ_BUFFER_BINDING

- glGet with argument GL_COPY_WRITE_BUFFER_BINDING + glGet with argument GL_COPY_WRITE_BUFFER_BINDING

- glGet with argument GL_ELEMENT_ARRAY_BUFFER_BINDING + glGet with argument GL_ELEMENT_ARRAY_BUFFER_BINDING

- glGet with argument GL_PIXEL_PACK_BUFFER_BINDING + glGet with argument GL_PIXEL_PACK_BUFFER_BINDING

- glGet with argument GL_PIXEL_UNPACK_BUFFER_BINDING + glGet with argument GL_PIXEL_UNPACK_BUFFER_BINDING

- glGet with argument GL_TRANSFORM_FEEDBACK_BUFFER_BINDING + glGet with argument GL_TRANSFORM_FEEDBACK_BUFFER_BINDING

- glGet with argument GL_UNIFORM_BUFFER_BINDING -

Copyright

+ glGet with argument GL_UNIFORM_BUFFER_BINDING +

Copyright

Copyright © 2005 Addison-Wesley. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. - http://opencontent.org/openpub/. + http://opencontent.org/openpub/.

diff --git a/upstream-doc/man3/xhtml/glBindFragDataLocationIndexed.xml b/upstream-doc/man3/xhtml/glBindFragDataLocationIndexed.xml index ea6f1a3..caf4327 100644 --- a/upstream-doc/man3/xhtml/glBindFragDataLocationIndexed.xml +++ b/upstream-doc/man3/xhtml/glBindFragDataLocationIndexed.xml @@ -1,7 +1,7 @@ -glBindFragDataLocationIndexed

Name

glBindFragDataLocationIndexed — bind a user-defined varying out variable to a fragment shader color number and index

C Specification

void glBindFragDataLocationIndexed(GLuint  program,
 GLuint  colorNumber,
 GLuint  index,
 const char * name);

Parameters

program

+glBindFragDataLocationIndexed - OpenGL 3.3 Reference Pages

Name

glBindFragDataLocationIndexed — bind a user-defined varying out variable to a fragment shader color number and index

C Specification

void glBindFragDataLocationIndexed(GLuint  program,
 GLuint  colorNumber,
 GLuint  index,
 const char * name);

Parameters

program

The name of the program containing varying out variable whose binding to modify

colorNumber

The color number to bind the user-defined varying out variable to @@ -40,8 +40,8 @@

Errors

GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DRAW_BUFFERS.

- GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DUAL_SOURCE_DRAW_BUFERS - and index is greater than or equal to one. + GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DUAL_SOURCE_DRAW_BUFFERS + and index is greater than or equal to the value of GL_MAX_DUAL_SOURCE_DRAW_BUFFERS.

GL_INVALID_VALUE is generated if index is greater than one.

diff --git a/upstream-doc/man3/xhtml/glBindSampler.xml b/upstream-doc/man3/xhtml/glBindSampler.xml index 30dbe91..bc229df 100644 --- a/upstream-doc/man3/xhtml/glBindSampler.xml +++ b/upstream-doc/man3/xhtml/glBindSampler.xml @@ -1,7 +1,7 @@ -glBindSampler

Name

glBindSampler — bind a named sampler to a texturing target

C Specification

void glBindSampler(GLuint  unit,
 GLuint  sampler);

Parameters

unit

+glBindSampler - OpenGL 3.3 Reference Pages

Name

glBindSampler — bind a named sampler to a texturing target

C Specification

void glBindSampler(GLuint  unit,
 GLuint  sampler);

Parameters

unit

Specifies the index of the texture unit to which the sampler is bound.

sampler

Specifies the name of a sampler. @@ -19,7 +19,7 @@ glBindSampler is available only if the GL version is 3.3 or higher.

Errors

GL_INVALID_VALUE is generated if unit is greater than or equal to the value of - GL_MAX_COMBIED_TEXTURE_IMAGE_UNITS. + GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS.

GL_INVALID_OPERATION is generated if sampler is not zero or a name previously returned from a call to glGenSamplers, or if such a name has diff --git a/upstream-doc/man3/xhtml/glBlendFunc.xml b/upstream-doc/man3/xhtml/glBlendFunc.xml index 238c251..0e5f9a7 100644 --- a/upstream-doc/man3/xhtml/glBlendFunc.xml +++ b/upstream-doc/man3/xhtml/glBlendFunc.xml @@ -1,7 +1,7 @@ -glBlendFunc

Name

glBlendFunc — specify pixel arithmetic

C Specification

void glBlendFunc(GLenum  sfactor,
 GLenum  dfactor);

Parameters

sfactor

+glBlendFunc - OpenGL 3.3 Reference Pages

Name

glBlendFunc — specify pixel arithmetic

C Specification

void glBlendFunc(GLenum  sfactor,
 GLenum  dfactor);

Parameters

sfactor

Specifies how the red, green, blue, and alpha source blending factors are computed. The initial value is GL_ONE. @@ -1257,9 +1257,13 @@ GL_INVALID_ENUM is generated if either sfactor or dfactor is not an accepted value.

Associated Gets

- glGet with argument GL_BLEND_SRC + glGet with argument GL_BLEND_SRC_RGB

- glGet with argument GL_BLEND_DST + glGet with argument GL_BLEND_SRC_ALPHA +

+ glGet with argument GL_BLEND_DST_RGB +

+ glGet with argument GL_BLEND_DST_ALPHA

glIsEnabled with argument GL_BLEND

diff --git a/upstream-doc/man3/xhtml/glCheckFramebufferStatus.xml b/upstream-doc/man3/xhtml/glCheckFramebufferStatus.xml index 9ace113..8940f2b 100644 --- a/upstream-doc/man3/xhtml/glCheckFramebufferStatus.xml +++ b/upstream-doc/man3/xhtml/glCheckFramebufferStatus.xml @@ -1,7 +1,7 @@ -glCheckFramebufferStatus

Name

glCheckFramebufferStatus — check the completeness status of a framebuffer

C Specification

GLenum glCheckFramebufferStatus(GLenum  target);

Parameters

target

+glCheckFramebufferStatus - OpenGL 3.3 Reference Pages

Name

glCheckFramebufferStatus — check the completeness status of a framebuffer

C Specification

GLenum glCheckFramebufferStatus(GLenum  target);

Parameters

target

Specify the target of the framebuffer completeness check.

Description

glCheckFramebufferStatus queries the completeness status of the framebuffer object currently bound to target. @@ -18,7 +18,7 @@ GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT is returned if the framebuffer does not have at least one image attached to it.

  • GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER is returned if the value of GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE - is GL_NONE for any color attachment point(s) named by GL_DRAWBUFFERi. + is GL_NONE for any color attachment point(s) named by GL_DRAW_BUFFERi.

  • GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER is returned if GL_READ_BUFFER is not GL_NONE and the value of GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is GL_NONE for the color attachment point named diff --git a/upstream-doc/man3/xhtml/glClearBuffer.xml b/upstream-doc/man3/xhtml/glClearBuffer.xml index e64ea96..9a9dd04 100644 --- a/upstream-doc/man3/xhtml/glClearBuffer.xml +++ b/upstream-doc/man3/xhtml/glClearBuffer.xml @@ -15,7 +15,7 @@ The value to clear a stencil render buffer to.

  • Description

    glClearBuffer* clears the specified buffer to the specified value(s). If buffer is - GL_COLOR, a particular draw buffer GL_DRAWBUFFERi is specified + GL_COLOR, a particular draw buffer GL_DRAW_BUFFERi is specified by passing i as drawBuffer. In this case, value points to a four-element vector specifying the R, G, B and A color to clear that draw buffer to. If buffer is one of GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, diff --git a/upstream-doc/man3/xhtml/glCompressedTexImage2D.xml b/upstream-doc/man3/xhtml/glCompressedTexImage2D.xml index 34c78eb..10288d7 100644 --- a/upstream-doc/man3/xhtml/glCompressedTexImage2D.xml +++ b/upstream-doc/man3/xhtml/glCompressedTexImage2D.xml @@ -1,7 +1,7 @@ -glCompressedTexImage2D

    Name

    glCompressedTexImage2D — specify a two-dimensional texture image in a compressed format

    C Specification

    void glCompressedTexImage2D(GLenum  target,
     GLint  level,
     GLenum  internalformat,
     GLsizei  width,
     GLsizei  height,
     GLint  border,
     GLsizei  imageSize,
     const GLvoid *  data);

    Parameters

    target

    +glCompressedTexImage2D - OpenGL 3.3 Reference Pages

    Name

    glCompressedTexImage2D — specify a two-dimensional texture image in a compressed format

    C Specification

    void glCompressedTexImage2D(GLenum  target,
     GLint  level,
     GLenum  internalformat,
     GLsizei  width,
     GLsizei  height,
     GLint  border,
     GLsizei  imageSize,
     const GLvoid *  data);

    Parameters

    target

    Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_1D_ARRAY, GL_PROXY_TEXTURE_1D_ARRAY, @@ -45,7 +45,7 @@ is treated as an array of compressed 1D textures.

    If target is GL_PROXY_TEXTURE_2D, GL_PROXY_TEXTURE_1D_ARRAY - or GL_PROXY_CUBE_MAP, no data is read from data, but + or GL_PROXY_TEXTURE_CUBE_MAP, no data is read from data, but all of the texture image state is recalculated, checked for consistency, and checked against the implementation's capabilities. If the implementation cannot handle a texture of the requested texture size, it diff --git a/upstream-doc/man3/xhtml/glCopyTexImage1D.xml b/upstream-doc/man3/xhtml/glCopyTexImage1D.xml index cca15be..a7371a0 100644 --- a/upstream-doc/man3/xhtml/glCopyTexImage1D.xml +++ b/upstream-doc/man3/xhtml/glCopyTexImage1D.xml @@ -1,7 +1,7 @@ -glCopyTexImage1D

    Name

    glCopyTexImage1D — copy pixels into a 1D texture image

    C Specification

    void glCopyTexImage1D(GLenum  target,
     GLint  level,
     GLenum  internalformat,
     GLint  x,
     GLint  y,
     GLsizei  width,
     GLint  border);

    Parameters

    target

    +glCopyTexImage1D - OpenGL 3.3 Reference Pages

    Name

    glCopyTexImage1D — copy pixels into a 1D texture image

    C Specification

    void glCopyTexImage1D(GLenum  target,
     GLint  level,
     GLenum  internalformat,
     GLint  x,
     GLint  y,
     GLsizei  width,
     GLint  border);

    Parameters

    target

    Specifies the target texture. Must be GL_TEXTURE_1D.

    level

    @@ -48,29 +48,9 @@ of the row of pixels to be copied.

    width

    Specifies the width of the texture image. - Must be 0 or - - - - 2 - n - - + - - 2 - ⁡ - - border - - - - - for some integer - n. The height of the texture image is 1.

    border

    - Specifies the width of the border. - Must be either 0 or 1. + Must be 0.

    Description

    glCopyTexImage1D defines a one-dimensional texture image with pixels from the current GL_READ_BUFFER. @@ -88,14 +68,6 @@ width - + - - 2 - ⁡ - - border - - defines the texture array @@ -159,26 +131,7 @@ GL_INVALID_VALUE is generated if width is less than 0 or greater than GL_MAX_TEXTURE_SIZE.

    - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width cannot be represented as - - - - 2 - n - - + - - 2 - ⁡ - - border - - - - - for some integer value of n. -

    - GL_INVALID_VALUE is generated if border is not 0 or 1. + GL_INVALID_VALUE is generated if border is not 0.

    GL_INVALID_OPERATION is generated if internalformat is GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, diff --git a/upstream-doc/man3/xhtml/glCopyTexImage2D.xml b/upstream-doc/man3/xhtml/glCopyTexImage2D.xml index d57ce88..49191fb 100644 --- a/upstream-doc/man3/xhtml/glCopyTexImage2D.xml +++ b/upstream-doc/man3/xhtml/glCopyTexImage2D.xml @@ -1,7 +1,7 @@ -glCopyTexImage2D

    Name

    glCopyTexImage2D — copy pixels into a 2D texture image

    C Specification

    void glCopyTexImage2D(GLenum  target,
     GLint  level,
     GLenum  internalformat,
     GLint  x,
     GLint  y,
     GLsizei  width,
     GLsizei  height,
     GLint  border);

    Parameters

    target

    +glCopyTexImage2D - OpenGL 3.3 Reference Pages

    Name

    glCopyTexImage2D — copy pixels into a 2D texture image

    C Specification

    void glCopyTexImage2D(GLenum  target,
     GLint  level,
     GLenum  internalformat,
     GLint  x,
     GLint  y,
     GLsizei  width,
     GLsizei  height,
     GLint  border);

    Parameters

    target

    Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, @@ -54,49 +54,10 @@ of the rectangular region of pixels to be copied.

    width

    Specifies the width of the texture image. - Must be 0 or - - - - 2 - n - - + - - 2 - ⁡ - - border - - - - - for some integer - n.

    height

    Specifies the height of the texture image. - Must be 0 or - - - - 2 - m - - + - - 2 - ⁡ - - border - - - - - for some integer - m.

    border

    - Specifies the width of the border. - Must be either 0 or 1. + Must be 0.

    Description

    glCopyTexImage2D defines a two-dimensional texture image, or cube-map texture image with pixels from the current @@ -108,14 +69,6 @@ width - + - - 2 - ⁡ - - border - - and a height of @@ -123,14 +76,6 @@ height - + - - 2 - ⁡ - - border - - defines the texture array @@ -198,31 +143,11 @@ max is the returned value of GL_MAX_TEXTURE_SIZE.

    - GL_INVALID_VALUE is generated if width is less than 0 + GL_INVALID_VALUE is generated if either width or height is less than 0 or greater than GL_MAX_TEXTURE_SIZE.

    - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width or depth cannot be represented as - - - - 2 - k - - + - - 2 - ⁡ - - border - - - - - for some integer - k. -

    - GL_INVALID_VALUE is generated if border is not 0 or 1. + GL_INVALID_VALUE is generated if border is not 0.

    GL_INVALID_VALUE is generated if internalformat is not an accepted format. diff --git a/upstream-doc/man3/xhtml/glCopyTexSubImage1D.xml b/upstream-doc/man3/xhtml/glCopyTexSubImage1D.xml index 71e2871..263ea1a 100644 --- a/upstream-doc/man3/xhtml/glCopyTexSubImage1D.xml +++ b/upstream-doc/man3/xhtml/glCopyTexSubImage1D.xml @@ -1,7 +1,7 @@ -glCopyTexSubImage1D

    Name

    glCopyTexSubImage1D — copy a one-dimensional texture subimage

    C Specification

    void glCopyTexSubImage1D(GLenum  target,
     GLint  level,
     GLint  xoffset,
     GLint  x,
     GLint  y,
     GLsizei  width);

    +glCopyTexSubImage1D - OpenGL 3.3 Reference Pages

    Name

    glCopyTexSubImage1D — copy a one-dimensional texture subimage

    C Specification

    void glCopyTexSubImage1D(GLenum  target,
     GLint  level,
     GLint  xoffset,
     GLint  x,
     GLint  y,
     GLsizei  width);

    Parameters

    target

    Specifies the target texture. Must be GL_TEXTURE_1D. @@ -21,7 +21,7 @@ texture image with pixels from the current GL_READ_BUFFER (rather than from main memory, as is the case for glTexSubImage1D).

    - The screen-aligned pixel row with left corner at (x,\ y), and with + The screen-aligned pixel row with left corner at (x, y), and with length width replaces the portion of the texture array with x indices xoffset through @@ -58,13 +58,12 @@ GL_READ_BUFFER are outside the read window associated with the current rendering context, then the values obtained for those pixels are undefined.

    - No change is made to the internalformat, width, - or border parameters of the specified texture + No change is made to the internalformat or width parameters of the specified texture array or to texel values outside the specified subregion.

    Notes

    The glPixelStore mode affects texture images.

    Errors

    - GL_INVALID_ENUM is generated if /target is not GL_TEXTURE_1D. + GL_INVALID_ENUM is generated if target is not GL_TEXTURE_1D.

    GL_INVALID_OPERATION is generated if the texture array has not been defined by a previous glTexImage1D or glCopyTexImage1D operation. @@ -96,10 +95,7 @@ xoffset < - - - - b - + 0 , or @@ -114,25 +110,13 @@ > - - - w - - - b - - + w , where w - is the GL_TEXTURE_WIDTH and - b - is the GL_TEXTURE_BORDER + is the GL_TEXTURE_WIDTH of the texture image being modified. - Note that - w - includes twice the border width. -

    Associated Gets

    glGetTexImage

    See Also

    diff --git a/upstream-doc/man3/xhtml/glCopyTexSubImage2D.xml b/upstream-doc/man3/xhtml/glCopyTexSubImage2D.xml index ab595d3..c839413 100644 --- a/upstream-doc/man3/xhtml/glCopyTexSubImage2D.xml +++ b/upstream-doc/man3/xhtml/glCopyTexSubImage2D.xml @@ -1,7 +1,7 @@ -glCopyTexSubImage2D

    Name

    glCopyTexSubImage2D — copy a two-dimensional texture subimage

    C Specification

    void glCopyTexSubImage2D(GLenum  target,
     GLint  level,
     GLint  xoffset,
     GLint  yoffset,
     GLint  x,
     GLint  y,
     GLsizei  width,
     GLsizei  height);

    +glCopyTexSubImage2D - OpenGL 3.3 Reference Pages

    Name

    glCopyTexSubImage2D — copy a two-dimensional texture subimage

    C Specification

    void glCopyTexSubImage2D(GLenum  target,
     GLint  level,
     GLint  xoffset,
     GLint  yoffset,
     GLint  x,
     GLint  y,
     GLsizei  width,
     GLsizei  height);

    Parameters

    target

    Specifies the target texture. Must be GL_TEXTURE_2D, @@ -88,8 +88,8 @@ GL_READ_BUFFER are outside the read window associated with the current rendering context, then the values obtained for those pixels are undefined.

    - No change is made to the internalformat, width, - height, or border parameters of the specified texture + No change is made to the internalformat, width or + height parameters of the specified texture array or to texel values outside the specified subregion.

    Notes

    glPixelStore modes affect texture images. @@ -99,8 +99,9 @@ GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, - GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or - GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + GL_TEXTURE_CUBE_MAP_POSITIVE_Z, + GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or + GL_TEXTURE_1D_ARRAY.

    GL_INVALID_OPERATION is generated if the texture array has not been defined by a previous glTexImage2D or glCopyTexImage2D operation. @@ -134,10 +135,7 @@ xoffset < - - - - b - + 0 , @@ -151,13 +149,9 @@ > - - - w - - - b - - + + w + , @@ -165,10 +159,7 @@ yoffset < - - - - b - + 0 , or @@ -183,29 +174,15 @@ > - - - h - - - b - - + h , where w - is the GL_TEXTURE_WIDTH, + is the GL_TEXTURE_WIDTH, and h - is the GL_TEXTURE_HEIGHT, - and - b - is the GL_TEXTURE_BORDER + is the GL_TEXTURE_HEIGHT of the texture image being modified. - Note that - w - and - h - include twice the border width.

    Associated Gets

    glGetTexImage

    See Also

    diff --git a/upstream-doc/man3/xhtml/glCopyTexSubImage3D.xml b/upstream-doc/man3/xhtml/glCopyTexSubImage3D.xml index 2c1ea06..c15669d 100644 --- a/upstream-doc/man3/xhtml/glCopyTexSubImage3D.xml +++ b/upstream-doc/man3/xhtml/glCopyTexSubImage3D.xml @@ -78,12 +78,12 @@ rendering context, then the values obtained for those pixels are undefined.

    No change is made to the internalformat, width, - height, depth, or border parameters of the specified texture + height, or depth parameters of the specified texture array or to texel values outside the specified subregion.

    Notes

    glPixelStore modes affect texture images.

    Errors

    - GL_INVALID_ENUM is generated if /target is not GL_TEXTURE_3D. + GL_INVALID_ENUM is generated if target is not GL_TEXTURE_3D or GL_TEXTURE_2D_ARRAY.

    GL_INVALID_OPERATION is generated if the texture array has not been defined by a previous glTexImage3D operation. @@ -118,10 +118,7 @@ xoffset < - - - - b - + 0 , @@ -135,13 +132,7 @@ > - - - w - - - b - - + w , @@ -149,10 +140,7 @@ yoffset < - - - - b - + 0 , @@ -166,13 +154,7 @@ > - - - h - - - b - - + h , @@ -180,10 +162,7 @@ zoffset < - - - - b - + 0 , or @@ -198,32 +177,17 @@ > - - - d - - - b - - + d , where w is the GL_TEXTURE_WIDTH, h - is the GL_TEXTURE_HEIGHT, + is the GL_TEXTURE_HEIGHT, and d - is the GL_TEXTURE_DEPTH, - and - b - is the GL_TEXTURE_BORDER + is the GL_TEXTURE_DEPTH of the texture image being modified. - Note that - w, - h, - and - d - include twice the border width.

    Associated Gets

    glGetTexImage

    See Also

    diff --git a/upstream-doc/man3/xhtml/glDrawBuffers.xml b/upstream-doc/man3/xhtml/glDrawBuffers.xml index b3e73db..3e29325 100644 --- a/upstream-doc/man3/xhtml/glDrawBuffers.xml +++ b/upstream-doc/man3/xhtml/glDrawBuffers.xml @@ -1,7 +1,7 @@ -glDrawBuffers

    Name

    glDrawBuffers — Specifies a list of color buffers to be drawn into

    C Specification

    void glDrawBuffers(GLsizei  n,
     const GLenum * bufs);

    Parameters

    n

    Specifies the number of buffers in +glDrawBuffers - OpenGL 3.3 Reference Pages

    Name

    glDrawBuffers — Specifies a list of color buffers to be drawn into

    C Specification

    void glDrawBuffers(GLsizei  n,
     const GLenum * bufs);

    Parameters

    n

    Specifies the number of buffers in bufs.

    bufs

    Points to an array of symbolic constants specifying the buffers into which fragment colors or data values will be written.

    Description

    glDrawBuffers defines an array of @@ -47,7 +47,7 @@ tokens.

    GL_INVALID_ENUM is generated if the GL is bound to a framebuffer object and one or more of the values in bufs is anything other than GL_NONE or one of the - GL_COLOR_ATTACHMENTSn tokens.

    GL_INVALID_ENUM is generated if + GL_COLOR_ATTACHMENTn tokens.

    GL_INVALID_ENUM is generated if n is less than 0.

    GL_INVALID_OPERATION is generated if a symbolic constant other than GL_NONE appears more than once in bufs.

    GL_INVALID_OPERATION is generated if any of diff --git a/upstream-doc/man3/xhtml/glFlushMappedBufferRange.xml b/upstream-doc/man3/xhtml/glFlushMappedBufferRange.xml index e1d07c1..6308b9c 100644 --- a/upstream-doc/man3/xhtml/glFlushMappedBufferRange.xml +++ b/upstream-doc/man3/xhtml/glFlushMappedBufferRange.xml @@ -12,7 +12,7 @@ Specifies the length of the buffer subrange, in basic machine units.

    Description

    glFlushMappedBufferRange indicates that modifications have been made to a range of a mapped buffer. - The buffer must previously have been mapped with the GL_MAP_FLUSH_EXPLICIT flag. offset + The buffer must previously have been mapped with the GL_MAP_FLUSH_EXPLICIT_BIT flag. offset and length indicate the modified subrange of the mapping, in basic units. The specified subrange to flush is relative to the start of the currently mapped range of the buffer. glFlushMappedBufferRange may be called multiple times to indicate distinct subranges of the mapping which require flushing. @@ -23,7 +23,7 @@ GL_INVALID_OPERATION is generated if zero is bound to target.

    GL_INVALID_OPERATION is generated if the buffer bound to target is not - mapped, or is mapped without the GL_MAP_FLUSH_EXPLICIT flag. + mapped, or is mapped without the GL_MAP_FLUSH_EXPLICIT_BIT flag.

    See Also

    glMapBufferRange, glMapBuffer, diff --git a/upstream-doc/man3/xhtml/glFramebufferTexture.xml b/upstream-doc/man3/xhtml/glFramebufferTexture.xml index 967daa1..c3fed00 100644 --- a/upstream-doc/man3/xhtml/glFramebufferTexture.xml +++ b/upstream-doc/man3/xhtml/glFramebufferTexture.xml @@ -8,7 +8,7 @@

    attachment

    Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, - GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. + GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT.

    textarget

    For glFramebufferTexture1D, glFramebufferTexture2D and glFramebufferTexture3D, specifies what type of texture is expected @@ -26,7 +26,7 @@

    attachment specifies the logical attachment of the framebuffer and must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, - GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. + GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT. i in GL_COLOR_ATTACHMENTi may range from zero to the value of GL_MAX_COLOR_ATTACHMENTS - 1. Attaching a level of a texture to GL_DEPTH_STENCIL_ATTACHMENT is equivalent to attaching that level to both the diff --git a/upstream-doc/man3/xhtml/glFramebufferTextureLayer.xml b/upstream-doc/man3/xhtml/glFramebufferTextureLayer.xml index 8095cf2..d5af4e1 100644 --- a/upstream-doc/man3/xhtml/glFramebufferTextureLayer.xml +++ b/upstream-doc/man3/xhtml/glFramebufferTextureLayer.xml @@ -1,14 +1,14 @@ -glFramebufferTextureLayer

    Name

    glFramebufferTextureLayer — attach a single layer of a texture to a framebuffer

    C Specification

    void glFramebufferTextureLayer(GLenum  target,
     GLenum  attachment,
     GLuint  texture,
     GLint  level,
     GLint  layer);

    Parameters

    target

    +glFramebufferTextureLayer - OpenGL 3.3 Reference Pages

    Name

    glFramebufferTextureLayer — attach a single layer of a texture to a framebuffer

    C Specification

    void glFramebufferTextureLayer(GLenum  target,
     GLenum  attachment,
     GLuint  texture,
     GLint  level,
     GLint  layer);

    Parameters

    target

    Specifies the framebuffer target. target must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER, or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER.

    attachment

    Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, - GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. + GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT.

    texture

    Specifies the texture object to attach to the framebuffer attachment point named by attachment.

    level

    diff --git a/upstream-doc/man3/xhtml/glGet.xml b/upstream-doc/man3/xhtml/glGet.xml index 1b3a0ec..5a715e7 100644 --- a/upstream-doc/man3/xhtml/glGet.xml +++ b/upstream-doc/man3/xhtml/glGet.xml @@ -274,17 +274,6 @@ params returns one value, the line width as specified with glLineWidth. The initial value is 1. -

    GL_LINE_WIDTH_GRANULARITY

    -

    - params returns one value, - the width difference between adjacent supported widths for antialiased lines. - See glLineWidth. -

    GL_LINE_WIDTH_RANGE

    -

    - params returns two values: - the smallest and largest supported widths for antialiased - lines. - See glLineWidth.

    GL_LOGIC_OP_MODE

    params returns one value, @@ -351,7 +340,7 @@ of simultaneous outputs that may be written in a fragment shader. The value must be at least 8. See glDrawBuffers. -

    GL_MAX_DUALSOURCE_DRAW_BUFFERS

    +

    GL_MAX_DUAL_SOURCE_DRAW_BUFFERS

    params returns one value, the maximum number of active draw buffers when using dual-source blending. The value must be at least 1. @@ -395,7 +384,7 @@ params returns one value. The value gives a rough estimate of the largest rectangular texture that the GL can handle. The value must be at least 1024. - Use GL_PROXY_RECTANGLE_TEXTURE + Use GL_PROXY_TEXTURE_RECTANGLE to determine if a texture is too large. See glTexImage2D.

    GL_MAX_TEXTURE_IMAGE_UNITS

    @@ -613,6 +602,14 @@ params returns one value, the current primitive restart index. The initial value is 0. See glPrimitiveRestartIndex. +

    GL_PROGRAM_POINT_SIZE

    +

    + params returns a single boolean value indicating whether vertex + program point size mode is enabled. If enabled, then the + point size is taken from the shader built-in gl_PointSize. If disabled, + then the point size is taken from the point state as specified + by glPointSize. + The initial value is GL_FALSE.

    GL_PROVOKING_VERTEX

    params returns one value, @@ -911,7 +908,7 @@

    params returns a single value indicating the mode of the texture compression hint. The initial value is GL_DONT_CARE. -

    GL_TEXTURE_BUFFER_BINDING

    +

    GL_TEXTURE_BINDING_BUFFER

    params returns a single value, the name of the texture buffer object currently bound. The initial value is 0. @@ -1037,14 +1034,6 @@

    params returns one value, the flags with which the context was created (such as debugging functionality). -

    GL_VERTEX_PROGRAM_POINT_SIZE

    -

    - params returns a single boolean value indicating whether vertex - program point size mode is enabled. If enabled, and a vertex shader is active, then the - point size is taken from the shader built-in gl_PointSize. If disabled, - and a vertex shader is active, then the point size is taken from the point state as specified - by glPointSize. - The initial value is GL_FALSE.

    GL_VIEWPORT

    params returns four values: @@ -1072,7 +1061,7 @@ GL_TEXTURE_3D and GL_TEXTURE_BINDING_3D.

    GL_MAX_RECTANGLE_TEXTURE_SIZE, GL_MAX_TEXTURE_BUFFER_SIZE, - GL_UNIFORM_BUFFER_BINDING, GL_TEXTURE_BUFFER_BINDING, + GL_UNIFORM_BUFFER_BINDING, GL_TEXTURE_BINDING_BUFFER, GL_MAX_VERTEX_UNIFORM_BLOCKS, GL_MAX_FRAGMENT_UNIFORM_BLOCKS, GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS, GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS GL_MAX_COMBINED_UNIFORM_BLOCKS, GL_MAX_UNIFORM_BLOCK_SIZE, @@ -1087,7 +1076,7 @@ glGetInteger64v and glGetInteger64i_v are available only if the GL version is 3.2 or greater.

    - GL_MAX_DUALSOURCE_DRAW_BUFFERS, GL_SAMPLER_BINDING, and + GL_MAX_DUAL_SOURCE_DRAW_BUFFERS, GL_SAMPLER_BINDING, and GL_TIMESTAMP are available only if the GL version is 3.3 or greater.

    Errors

    GL_INVALID_ENUM is generated if pname is not an accepted value. diff --git a/upstream-doc/man3/xhtml/glGetActiveAttrib.xml b/upstream-doc/man3/xhtml/glGetActiveAttrib.xml index d64d996..681ec4d 100644 --- a/upstream-doc/man3/xhtml/glGetActiveAttrib.xml +++ b/upstream-doc/man3/xhtml/glGetActiveAttrib.xml @@ -1,7 +1,7 @@ -glGetActiveAttrib

    Name

    glGetActiveAttrib — Returns information about an active attribute variable for the specified program object

    C Specification

    void glGetActiveAttrib(GLuint  program,
     GLuint  index,
     GLsizei  bufSize,
     GLsizei * length,
     GLint * size,
     GLenum * type,
     GLchar * name);

    Parameters

    program

    Specifies the program object to be +glGetActiveAttrib - OpenGL 3.3 Reference Pages

    Name

    glGetActiveAttrib — Returns information about an active attribute variable for the specified program object

    C Specification

    void glGetActiveAttrib(GLuint  program,
     GLuint  index,
     GLsizei  bufSize,
     GLsizei * length,
     GLint * size,
     GLenum * type,
     GLchar * name);

    Parameters

    program

    Specifies the program object to be queried.

    index

    Specifies the index of the attribute variable to be queried.

    bufSize

    Specifies the maximum number of characters OpenGL is allowed to write in the character buffer @@ -75,7 +75,7 @@ GL_INT_VEC2, GL_INT_VEC3, GL_INT_VEC4, - GL_UNSIGNED_INT_VEC, + GL_UNSIGNED_INT, GL_UNSIGNED_INT_VEC2, GL_UNSIGNED_INT_VEC3, or GL_UNSIGNED_INT_VEC4 may be returned. The diff --git a/upstream-doc/man3/xhtml/glGetActiveUniform.xml b/upstream-doc/man3/xhtml/glGetActiveUniform.xml index 15d6693..c3a0b64 100644 --- a/upstream-doc/man3/xhtml/glGetActiveUniform.xml +++ b/upstream-doc/man3/xhtml/glGetActiveUniform.xml @@ -1,7 +1,7 @@ -glGetActiveUniform

    Name

    glGetActiveUniform — Returns information about an active uniform variable for the specified program object

    C Specification

    void glGetActiveUniform(GLuint program,
     GLuint index,
     GLsizei bufSize,
     GLsizei *length,
     GLint *size,
     GLenum *type,
     GLchar *name);
     

    Parameters

    program

    Specifies the program object to be +glGetActiveUniform - OpenGL 3.3 Reference Pages

    Name

    glGetActiveUniform — Returns information about an active uniform variable for the specified program object

    C Specification

    void glGetActiveUniform(GLuint  program,
     GLuint  index,
     GLsizei  bufSize,
     GLsizei * length,
     GLint * size,
     GLenum * type,
     GLchar * name);

    Parameters

    program

    Specifies the program object to be queried.

    index

    Specifies the index of the uniform variable to be queried.

    bufSize

    Specifies the maximum number of characters OpenGL is allowed to write in the character buffer @@ -12,11 +12,11 @@ NULL is passed.

    size

    Returns the size of the uniform variable.

    type

    Returns the data type of the uniform variable.

    name

    Returns a null terminated string containing - the name of the uniform variable.

    Description

    glGetActiveUniform returns + the name of the uniform variable.

    Description

    glGetActiveUniform returns information about an active uniform variable in the program object specified by program. The number of active uniform variables can be obtained by calling - glGetProgram + glGetProgram with the value GL_ACTIVE_UNIFORMS. A value of 0 for index selects the first active uniform variable. Permissible values for @@ -29,18 +29,18 @@ Shading Language specification for a complete list.) User-defined uniform variables have arbitrary names and obtain their values from the application through calls to - glUniform. + glUniform. A uniform variable (either built-in or user-defined) is considered active if it is determined during the link operation that it may be accessed during program execution. Therefore, program should have previously been the target of a call to - glLinkProgram, + glLinkProgram, but it is not necessary for it to have been linked successfully.

    The size of the character buffer required to store the longest uniform variable name in program can be obtained by calling - glGetProgram + glGetProgram with the value GL_ACTIVE_UNIFORM_MAX_LENGTH. This value should be used to allocate a buffer of sufficient size to store @@ -321,7 +321,7 @@ reduced to its fundamental components containing the "." and "[]" operators such that each of the names is valid as an argument to - glGetUniformLocation. + glGetUniformLocation. Each of these reduced uniform variables is counted as one active uniform variable and is assigned an index. A valid name cannot be a structure, an array of structures, or a subcomponent of a @@ -343,27 +343,30 @@ operation that failed. If an error occurs, the return values length, size, type, and name - will be unmodified.

    Errors

    GL_INVALID_VALUE is generated if + will be unmodified.

    Errors

    GL_INVALID_VALUE is generated if program is not a value generated by OpenGL.

    GL_INVALID_OPERATION is generated if program is not a program object.

    GL_INVALID_VALUE is generated if index is greater than or equal to the number of active uniform variables in program.

    GL_INVALID_VALUE is generated if - bufSize is less than 0.

    Associated Gets

    glGet - with argument GL_MAX_VERTEX_UNIFORM_COMPONENTS, + bufSize is less than 0.

    Associated Gets

    glGet + with argument + GL_MAX_VERTEX_UNIFORM_COMPONENTS, GL_MAX_GEOMETRY_UNIFORM_COMPONENTS, - GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, or - GL_MAX_COMBINED_UNIFORM_COMPONENTS.

    glGetProgram + GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, + GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS, + GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS, + GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS.

    glGetProgram with argument GL_ACTIVE_UNIFORMS or - GL_ACTIVE_UNIFORM_MAX_LENGTH.

    glIsProgram

    Copyright

    + GL_ACTIVE_UNIFORM_MAX_LENGTH.

    glIsProgram

    Copyright

    Copyright © 2003-2005 3Dlabs Inc. Ltd. Copyright © 2010 Khronos Group This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. - http://opencontent.org/openpub/. + http://opencontent.org/openpub/.

    diff --git a/upstream-doc/man3/xhtml/glGetActiveUniformBlock.xml b/upstream-doc/man3/xhtml/glGetActiveUniformBlock.xml index 7eca2b9..7c88f42 100644 --- a/upstream-doc/man3/xhtml/glGetActiveUniformBlock.xml +++ b/upstream-doc/man3/xhtml/glGetActiveUniformBlock.xml @@ -1,7 +1,7 @@ -glGetActiveUniformBlock

    Name

    glGetActiveUniformBlock — query information about an active uniform block

    C Specification

    void glGetActiveUniformBlockiv(GLuint program,
     GLuint uniformBlockIndex,
     GLenum pname,
     GLint params);
     

    Parameters

    program

    +glGetActiveUniformBlock - OpenGL 3.3 Reference Pages

    Name

    glGetActiveUniformBlock — query information about an active uniform block

    C Specification

    void glGetActiveUniformBlockiv(GLuint  program,
     GLuint  uniformBlockIndex,
     GLenum  pname,
     GLint * params);

    Parameters

    program

    Specifies the name of a program containing the uniform block.

    uniformBlockIndex

    Specifies the index of the uniform block within program. @@ -9,12 +9,12 @@ Specifies the name of the parameter to query.

    params

    Specifies the address of a variable to receive the result of the query. -

    Description

    +

    Description

    glGetActiveUniformBlockiv retrieves information about an active uniform block within program.

    program must be the name of a program object for which the command - glLinkProgram must have been called in the past, although it is not required that - glLinkProgram must have succeeded. The link could have failed because the number + glLinkProgram must have been called in the past, although it is not required that + glLinkProgram must have succeeded. The link could have failed because the number of active uniforms exceeded the limit.

    uniformBlockIndex is an active uniform block index of program, and must be less than the value @@ -47,23 +47,23 @@ If pname is GL_UNIFORM_BLOCK_REFERENCED_BY_VERTEX_SHADER, GL_UNIFORM_BLOCK_REFERENCED_BY_GEOMETRY_SHADER, or GL_UNIFORM_BLOCK_REFERENCED_BY_FRAGMENT_SHADER, then a boolean value indicating whether the uniform block identified by uniformBlockIndex is referenced by the vertex, geometry, or fragment programming stages of program, respectively, is returned. -

    Errors

    +

    Errors

    GL_INVALID_VALUE is generated if uniformBlockIndex is greater than or equal to the value of GL_ACTIVE_UNIFORM_BLOCKS or is not the index of an active uniform block in program.

    GL_INVALID_ENUM is generated if pname is not one of the accepted tokens.

    GL_INVALID_OPERATION is generated if program is not the name of a program object for which - glLinkProgram has been called in the past. -

    Notes

    + glLinkProgram has been called in the past. +

    Notes

    glGetActiveUniformBlockiv is available only if the GL version is 3.1 or greater. -

    Copyright

    - Copyright © 2010 Khronos Group. +

    Copyright

    + Copyright © 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. - http://opencontent.org/openpub/. + http://opencontent.org/openpub/.

    diff --git a/upstream-doc/man3/xhtml/glGetActiveUniformsiv.xml b/upstream-doc/man3/xhtml/glGetActiveUniformsiv.xml index 9b9cc7d..be24270 100644 --- a/upstream-doc/man3/xhtml/glGetActiveUniformsiv.xml +++ b/upstream-doc/man3/xhtml/glGetActiveUniformsiv.xml @@ -312,8 +312,10 @@ is not an accepted token.

    Associated Gets

    glGet with argument GL_MAX_VERTEX_UNIFORM_COMPONENTS, GL_MAX_GEOMETRY_UNIFORM_COMPONENTS, - GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, or - GL_MAX_COMBINED_UNIFORM_COMPONENTS.

    glGetProgram + GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, + GL_MAX_COMBINED_VERTEX_UNIFORM_COMPONENTS, + GL_MAX_COMBINED_GEOMETRY_UNIFORM_COMPONENTS, + GL_MAX_COMBINED_FRAGMENT_UNIFORM_COMPONENTS.

    glGetProgram with argument GL_ACTIVE_UNIFORMS or GL_ACTIVE_UNIFORM_MAX_LENGTH.

    glIsProgram

    See Also

    glGetUniform, glGetActiveUniform, diff --git a/upstream-doc/man3/xhtml/glGetBufferParameter.xml b/upstream-doc/man3/xhtml/glGetBufferParameter.xml index 06f809d..34caa3b 100644 --- a/upstream-doc/man3/xhtml/glGetBufferParameter.xml +++ b/upstream-doc/man3/xhtml/glGetBufferParameter.xml @@ -1,7 +1,7 @@ -glGetBufferParameteriv

    Name

    glGetBufferParameteriv — return parameters of a buffer object

    C Specification

    void glGetBufferParameteriv(GLenum  target,
     GLenum  value,
     GLint *  data);

    Parameters

    target

    +glGetBufferParameteriv - OpenGL 3.3 Reference Pages

    Name

    glGetBufferParameteriv — return parameters of a buffer object

    C Specification

    void glGetBufferParameteriv(GLenum  target,
     GLenum  value,
     GLint *  data);
    void glGetBufferParameteri64v(GLenum  target,
     GLenum  value,
     GLint64 *  data);

    Parameters

    target

    Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_COPY_READ_BUFFER, @@ -38,6 +38,8 @@

    Notes

    If an error is generated, no change is made to the contents of data. +

    + glGetBufferParameteri64v is available only if the GL version is 3.2 or higher.

    Errors

    GL_INVALID_ENUM is generated if target or value is not an accepted value. @@ -50,6 +52,7 @@ glUnmapBuffer

    Copyright

    Copyright © 2005 Addison-Wesley. + Copyright © 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man3/xhtml/glGetFramebufferAttachmentParameter.xml b/upstream-doc/man3/xhtml/glGetFramebufferAttachmentParameter.xml index c04d65e..5b53351 100644 --- a/upstream-doc/man3/xhtml/glGetFramebufferAttachmentParameter.xml +++ b/upstream-doc/man3/xhtml/glGetFramebufferAttachmentParameter.xml @@ -1,7 +1,7 @@ -glGetFramebufferAttachmentParameteriv

    Name

    glGetFramebufferAttachmentParameteriv — retrieve information about attachments of a bound framebuffer object

    C Specification

    void glGetFramebufferAttachmentParameter(GLenum target,
     GLenum attachment,
     GLenum pname,
     GLint *params);
     

    Parameters

    target

    +glGetFramebufferAttachmentParameteriv - OpenGL 3.3 Reference Pages

    Name

    glGetFramebufferAttachmentParameteriv — retrieve information about attachments of a bound framebuffer object

    C Specification

    void glGetFramebufferAttachmentParameteriv(GLenum  target,
     GLenum  attachment,
     GLenum  pname,
     GLint * params);

    Parameters

    target

    Specifies the target of the query operation.

    attachment

    Specifies the attachment within target @@ -9,8 +9,8 @@ Specifies the parameter of attachment to query.

    params

    Specifies the address of a variable receive the value of pname for attachment. -

    Description

    - glGetFramebufferAttachmentParameter returns information about attachments of a bound framebuffer +

    Description

    + glGetFramebufferAttachmentParameteriv returns information about attachments of a bound framebuffer object. target specifies the framebuffer binding point and must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER. @@ -40,20 +40,20 @@

    If the value of GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is not GL_NONE, these queries apply to all other framebuffer types: -

    • +

      • If pname is GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE, GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE, GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE, GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE, GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE, or GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE, then params will contain the number of bits in the corresponding red, green, blue, alpha, depth, or stencil component of the specified attachment. Zero is returned if the requested component is not present in attachment. -

      • +

      • If pname is GL_FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE, params will contain the format of components of the specified attachment, one of GL_FLOAT, GL_INT, GL_UNSIGNED_INT, GL_SIGNED_NORMALIZED, or GL_UNSIGNED_NORMALIZED for floating-point, signed integer, unsigned integer, signed normalized fixed-point, or unsigned normalized fixed-point components respectively. Only color buffers may have integer components. -

      • +

      • If pname is GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING, param will contain the encoding of components of the specified attachment, one of GL_LINEAR or GL_SRGB for linear or sRGB-encoded components, respectively. Only color buffer components may be sRGB-encoded; such components @@ -62,34 +62,34 @@ formats.

      If the value of GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is GL_RENDERBUFFER, then: -

      • +

        • If pname is GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, params will contain the name of the renderbuffer object which contains the attached image.

        If the value of GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is GL_TEXTURE, then: -

        • +

          • If pname is GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME, then params will contain the name of the texture object which contains the attached image. -

          • +

          • If pname is GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL, then params will contain the mipmap level of the texture object which contains the attached image. -

          • +

          • If pname is GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE and the texture object named GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME is a cube map texture, then params will contain the cube map face of the cubemap texture object which contains the attached image. Otherwise params will contain the value zero. -

          • +

          • If pname is GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER and the texture object named GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME is a layer of a three-dimensional texture or a one-or two-dimensional array texture, then params will contain the number of the texture layer which contains the attached image. Otherwise params will contain the value zero. -

          • +

          • If pname is GL_FRAMEBUFFER_ATTACHMENT_LAYERED, then params will contain GL_TRUE if an entire level of a three-dimesional texture, cube map texture, or one-or two-dimensional array texture is attached. Otherwise, params will contain GL_FALSE.

          Any combinations of framebuffer type and pname not described above will generate an error. -

        Errors

        +

        Errors

        GL_INVALID_ENUM is generated if target is not one of the accepted tokens.

        GL_INVALID_ENUM is generated if pname is not valid for the value of @@ -103,12 +103,12 @@

        GL_INVALID_OPERATION is generated if the value of GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is GL_NONE and pname is not GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME. -

        Copyright

        - Copyright © 2010 Khronos Group. +

        Copyright

        + Copyright © 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. - http://opencontent.org/openpub/. + http://opencontent.org/openpub/.

      diff --git a/upstream-doc/man3/xhtml/glGetTexLevelParameter.xml b/upstream-doc/man3/xhtml/glGetTexLevelParameter.xml index a61ccf1..0cf0c73 100644 --- a/upstream-doc/man3/xhtml/glGetTexLevelParameter.xml +++ b/upstream-doc/man3/xhtml/glGetTexLevelParameter.xml @@ -1,7 +1,7 @@ -glGetTexLevelParameter

      Name

      glGetTexLevelParameter — return texture parameter values for a specific level of detail

      C Specification

      void glGetTexLevelParameterfv(GLenum  target,
       GLint  level,
       GLenum  pname,
       GLfloat *  params);
      void glGetTexLevelParameteriv(GLenum  target,
       GLint  level,
       GLenum  pname,
       GLint *  params);

      Parameters

      target

      +glGetTexLevelParameter - OpenGL 3.3 Reference Pages

      Name

      glGetTexLevelParameter — return texture parameter values for a specific level of detail

      C Specification

      void glGetTexLevelParameterfv(GLenum  target,
       GLint  level,
       GLenum  pname,
       GLfloat *  params);
      void glGetTexLevelParameteriv(GLenum  target,
       GLint  level,
       GLenum  pname,
       GLint *  params);

      Parameters

      target

      Specifies the symbolic name of the target texture, one of GL_TEXTURE_1D, @@ -42,7 +42,6 @@ GL_TEXTURE_HEIGHT, GL_TEXTURE_DEPTH, GL_TEXTURE_INTERNAL_FORMAT, - GL_TEXTURE_BORDER, GL_TEXTURE_RED_SIZE, GL_TEXTURE_GREEN_SIZE, GL_TEXTURE_BLUE_SIZE, @@ -73,8 +72,8 @@ GL_MAX_TEXTURE_SIZE, and GL_MAX_3D_TEXTURE_SIZE are not really descriptive enough. It has to report the largest square texture image that can be - accommodated with mipmaps and borders, - but a long skinny texture, or a texture without mipmaps and borders, may + accommodated with mipmaps + but a long skinny texture, or a texture without mipmaps may easily fit in texture memory. The proxy targets allow the user to more accurately query whether the GL can accommodate a texture of a given configuration. @@ -91,20 +90,17 @@

      params returns a single value, the width of the texture image. - This value includes the border of the texture image. The initial value is - 0. + The initial value is 0.

      GL_TEXTURE_HEIGHT

      params returns a single value, the height of the texture image. - This value includes the border of the texture image. The initial value is - 0. + The initial value is 0.

      GL_TEXTURE_DEPTH

      params returns a single value, the depth of the texture image. - This value includes the border of the texture image. The initial value is - 0. + The initial value is 0.

      GL_TEXTURE_INTERNAL_FORMAT

      params returns a single value, diff --git a/upstream-doc/man3/xhtml/glGetTransformFeedbackVarying.xml b/upstream-doc/man3/xhtml/glGetTransformFeedbackVarying.xml index 4892163..c9d60ca 100644 --- a/upstream-doc/man3/xhtml/glGetTransformFeedbackVarying.xml +++ b/upstream-doc/man3/xhtml/glGetTransformFeedbackVarying.xml @@ -1,7 +1,7 @@ -glGetTransformFeedbackVarying

      Name

      glGetTransformFeedbackVarying — retrieve information about varying variables selected for transform feedback

      C Specification

      void glGetTransformFeedbackVarying(GLuint program,
       GLuint index,
       GLsizei bufSize,
       GLsizei * length,
       GLsizei size,
       GLenum * type,
       char * name);

      Parameters

      program

      +glGetTransformFeedbackVarying - OpenGL 3.3 Reference Pages

      Name

      glGetTransformFeedbackVarying — retrieve information about varying variables selected for transform feedback

      C Specification

      void glGetTransformFeedbackVarying(GLuint program,
       GLuint index,
       GLsizei bufSize,
       GLsizei * length,
       GLsizei * size,
       GLenum * type,
       char * name);

      Parameters

      program

      The name of the target program object.

      index

      The index of the varying variable whose information to retrieve. @@ -23,7 +23,7 @@ variable selected by index. An index of 0 selects the first varying variable specified in the varyings array passed to glTransformFeedbackVaryings, and - an index of GL_TRANSFORM_FEEDBACK_VARYINGS-1 selects + an index of GL_TRANSFORM_FEEDBACK_VARYINGS - 1 selects the last such variable.

      The name of the selected varying is returned as a null-terminated string in @@ -60,7 +60,7 @@ glTransformFeedbackVaryings, glGetProgram

      Copyright

      - Copyright © 2010 Khronos Group. + Copyright © 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man3/xhtml/glIsEnabled.xml b/upstream-doc/man3/xhtml/glIsEnabled.xml index a49c9bf..ac03a8e 100644 --- a/upstream-doc/man3/xhtml/glIsEnabled.xml +++ b/upstream-doc/man3/xhtml/glIsEnabled.xml @@ -108,7 +108,7 @@ glStencilFunc, glStencilOp - GL_TEXTURE_CUBEMAP_SEAMLESS + GL_TEXTURE_CUBE_MAP_SEAMLESS glEnable

      diff --git a/upstream-doc/man3/xhtml/glLinkProgram.xml b/upstream-doc/man3/xhtml/glLinkProgram.xml index 3627ab3..fdbc3eb 100644 --- a/upstream-doc/man3/xhtml/glLinkProgram.xml +++ b/upstream-doc/man3/xhtml/glLinkProgram.xml @@ -1,7 +1,7 @@ -glLinkProgram

      Name

      glLinkProgram — Links a program object

      C Specification

      void glLinkProgram(GLuint program);

      Parameters

      program

      Specifies the handle of the program object to be linked.

      Description

      glLinkProgram links the program +glLinkProgram - OpenGL 3.3 Reference Pages

      Name

      glLinkProgram — Links a program object

      C Specification

      void glLinkProgram(GLuint program);

      Parameters

      program

      Specifies the handle of the program object to be linked.

      Description

      glLinkProgram links the program object specified by program. If any shader objects of type GL_VERTEX_SHADER are attached to program, they will be used to @@ -63,7 +63,7 @@ glTransformFeedbackVaryings specify the same varying variable.

    • The total number of components to capture in any transform feedback varying variable is greater than the constant GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS - and the buffer mode is SEPARATE_ATTRIBS.

    When a program object has been successfully linked, the + and the buffer mode is GL_SEPARATE_ATTRIBS.

    When a program object has been successfully linked, the program object can be made part of current state by calling glUseProgram. Whether or not the link operation was successful, the program diff --git a/upstream-doc/man3/xhtml/glPointSize.xml b/upstream-doc/man3/xhtml/glPointSize.xml index 4f7b7b8..70a5e53 100644 --- a/upstream-doc/man3/xhtml/glPointSize.xml +++ b/upstream-doc/man3/xhtml/glPointSize.xml @@ -1,7 +1,7 @@ -glPointSize

    Name

    glPointSize — specify the diameter of rasterized points

    C Specification

    void glPointSize(GLfloat size);

    Parameters

    size

    +glPointSize - OpenGL 3.3 Reference Pages

    Name

    glPointSize — specify the diameter of rasterized points

    C Specification

    void glPointSize(GLfloat size);

    Parameters

    size

    Specifies the diameter of rasterized points. The initial value is 1.

    Description

    @@ -20,10 +20,6 @@ glGet with argument GL_POINT_SIZE_GRANULARITY

    glGet with argument GL_POINT_SIZE -

    - glGet with argument GL_POINT_SIZE_MIN -

    - glGet with argument GL_POINT_SIZE_MAX

    glGet with argument GL_POINT_FADE_THRESHOLD_SIZE

    diff --git a/upstream-doc/man3/xhtml/glReadPixels.xml b/upstream-doc/man3/xhtml/glReadPixels.xml index dadd728..5c25a01 100644 --- a/upstream-doc/man3/xhtml/glReadPixels.xml +++ b/upstream-doc/man3/xhtml/glReadPixels.xml @@ -1,7 +1,7 @@ -glReadPixels

    Name

    glReadPixels — read a block of pixels from the frame buffer

    C Specification

    void glReadPixels(GLint x,
     GLint y,
     GLsizei width,
     GLsizei height,
     GLenum format,
     GLenum type,
     GLvoid * data);
     

    Parameters

    x, y

    +glReadPixels - OpenGL 3.3 Reference Pages

    Name

    glReadPixels — read a block of pixels from the frame buffer

    C Specification

    void glReadPixels(GLint  x,
     GLint  y,
     GLsizei  width,
     GLsizei  height,
     GLenum  format,
     GLenum  type,
     GLvoid *  data);

    Parameters

    x, y

    Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. @@ -50,19 +50,19 @@ GL_FLOAT_32_UNSIGNED_INT_24_8_REV.

    data

    Returns the pixel data. -

    Description

    +

    Description

    glReadPixels returns pixel data from the frame buffer, starting with the pixel whose lower left corner is at location (x, y), into client memory starting at location data. Several parameters control the processing of the pixel data before it is placed into client memory. - These parameters are set with glPixelStore. + These parameters are set with glPixelStore. This reference page describes the effects on glReadPixels of most, but not all of the parameters specified by these three commands.

    If a non-zero named buffer object is bound to the GL_PIXEL_PACK_BUFFER target - (see glBindBuffer) while a block of pixels is + (see glBindBuffer) while a block of pixels is requested, data is treated as a byte offset into the buffer object's data store rather than a pointer to client memory.

    @@ -116,18 +116,12 @@ accepted values are:

    GL_STENCIL_INDEX

    Stencil values are read from the stencil buffer. - Each index is converted to fixed point, - shifted left or right depending on the value and sign of GL_INDEX_SHIFT, - and added to GL_INDEX_OFFSET. - If GL_MAP_STENCIL is GL_TRUE, - indices are replaced by their mappings in the table GL_PIXEL_MAP_S_TO_S. + Each index is converted to fixed point.

    GL_DEPTH_COMPONENT

    Depth values are read from the depth buffer. Each component is converted to floating point such that the minimum depth value maps to 0 and the maximum value maps to 1. - Each component is then multiplied by GL_DEPTH_SCALE, - added to GL_DEPTH_BIAS, - and finally clamped to the range + Each component is clamped to the range @@ -818,17 +812,17 @@ GL_RGBA and GL_BGRA return four values for each pixel, with all values corresponding to a single pixel occupying contiguous space in data. - Storage parameters set by glPixelStore, + Storage parameters set by glPixelStore, such as GL_PACK_LSB_FIRST and GL_PACK_SWAP_BYTES, affect the way that data is written into memory. - See glPixelStore for a description. -

    Notes

    + See glPixelStore for a description. +

    Notes

    Values for pixels that lie outside the window connected to the current GL context are undefined.

    If an error is generated, no change is made to the contents of data. -

    Errors

    +

    Errors

    GL_INVALID_ENUM is generated if format or type is not an accepted value.

    @@ -878,16 +872,14 @@ GL_INVALID_OPERATION is generated if GL_READ_FRAMEBUFFER_BINDING is non-zero, the read framebuffer is complete, and the value of GL_SAMPLE_BUFFERS for the read framebuffer is greater than zero. -

    Associated Gets

    - glGet with argument GL_INDEX_MODE -

    - glGet with argument GL_PIXEL_PACK_BUFFER_BINDING -

    See Also

    - glPixelStore, - glReadBuffer -

    Copyright

    +

    Associated Gets

    + glGet with argument GL_PIXEL_PACK_BUFFER_BINDING +

    See Also

    + glPixelStore, + glReadBuffer +

    Copyright

    Copyright © 1991-2006 Silicon Graphics, Inc. This document is licensed under the SGI Free Software B License. For details, see - http://oss.sgi.com/projects/FreeB/. + http://oss.sgi.com/projects/FreeB/.

    diff --git a/upstream-doc/man3/xhtml/glTexBuffer.xml b/upstream-doc/man3/xhtml/glTexBuffer.xml index df221d5..e62e743 100644 --- a/upstream-doc/man3/xhtml/glTexBuffer.xml +++ b/upstream-doc/man3/xhtml/glTexBuffer.xml @@ -1,7 +1,7 @@ -glTexBuffer

    Name

    glTexBuffer — attach the storage for a buffer object to the active buffer texture

    C Specification

    void glTexBuffer(GLenum  target,
     GLenum  internalFormat,
     Gluint buffer);

    Parameters

    target

    +glTexBuffer - OpenGL 3.3 Reference Pages

    Name

    glTexBuffer — attach the storage for a buffer object to the active buffer texture

    C Specification

    void glTexBuffer(GLenum  target,
     GLenum  internalFormat,
     GLuint  buffer);

    Parameters

    target

    Specifies the target of the operation and must be GL_TEXTURE_BUFFER.

    internalFormat

    Specifies the internal format of the data in the store belonging to buffer. @@ -54,7 +54,7 @@ glBindTexture, glDeleteTextures

    Copyright

    - Copyright © 2010 Khronos Group. + Copyright © 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man3/xhtml/glTexImage1D.xml b/upstream-doc/man3/xhtml/glTexImage1D.xml index 5931770..9458acc 100644 --- a/upstream-doc/man3/xhtml/glTexImage1D.xml +++ b/upstream-doc/man3/xhtml/glTexImage1D.xml @@ -1,7 +1,7 @@ -glTexImage1D

    Name

    glTexImage1D — specify a one-dimensional texture image

    C Specification

    void glTexImage1D(GLenum  target,
     GLint  level,
     GLint  internalFormat,
     GLsizei  width,
     GLint  border,
     GLenum  format,
     GLenum  type,
     const GLvoid *  data);

    +glTexImage1D - OpenGL 3.3 Reference Pages

    Name

    glTexImage1D — specify a one-dimensional texture image

    C Specification

    void glTexImage1D(GLenum  target,
     GLint  level,
     GLint  internalFormat,
     GLsizei  width,
     GLint  border,
     GLenum  format,
     GLenum  type,
     const GLvoid *  data);

    Parameters

    target

    Specifies the target texture. Must be GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D. @@ -139,32 +139,23 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RG

    Each element is a single red/green double The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RGB
    GL_BGR

    Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RGBA
    GL_BGRA

    Each element contains all four components. - Each component is multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_DEPTH_COMPONENT

    Each element is a single depth value. - The GL converts it to floating point, multiplies by the signed scale factor - GL_DEPTH_SCALE, adds the signed bias GL_DEPTH_BIAS, + The GL converts it to floating point and clamps to the range [0,1].

    If an application wants to store the texture at a certain diff --git a/upstream-doc/man3/xhtml/glTexImage2D.xml b/upstream-doc/man3/xhtml/glTexImage2D.xml index a160e54..0f5a827 100644 --- a/upstream-doc/man3/xhtml/glTexImage2D.xml +++ b/upstream-doc/man3/xhtml/glTexImage2D.xml @@ -121,32 +121,23 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RG

    Each element is a red/green double. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RGB
    GL_BGR

    Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component clamped to the range [0,1].

    GL_RGBA
    GL_BGRA

    Each element contains all four components. - Each component is multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_DEPTH_COMPONENT

    Each element is a single depth value. - The GL converts it to floating point, multiplies by the signed scale factor - GL_DEPTH_SCALE, adds the signed bias GL_DEPTH_BIAS, + The GL converts it to floating point, and clamps to the range [0,1].

    GL_DEPTH_STENCIL

    Each element is a pair of depth and stencil values. The depth component of diff --git a/upstream-doc/man3/xhtml/glTexImage3D.xml b/upstream-doc/man3/xhtml/glTexImage3D.xml index e097ecd..19d4ee9 100644 --- a/upstream-doc/man3/xhtml/glTexImage3D.xml +++ b/upstream-doc/man3/xhtml/glTexImage3D.xml @@ -1,7 +1,7 @@ -glTexImage3D

    Name

    glTexImage3D — specify a three-dimensional texture image

    C Specification

    void glTexImage3D(GLenum  target,
     GLint  level,
     GLint  internalFormat,
     GLsizei  width,
     GLsizei  height,
     GLsizei  depth,
     GLint  border,
     GLenum  format,
     GLenum  type,
     const GLvoid *  data);

    +glTexImage3D - OpenGL 3.3 Reference Pages

    Name

    glTexImage3D — specify a three-dimensional texture image

    C Specification

    void glTexImage3D(GLenum  target,
     GLint  level,
     GLint  internalFormat,
     GLsizei  width,
     GLsizei  height,
     GLsizei  depth,
     GLint  border,
     GLenum  format,
     GLenum  type,
     const GLvoid *  data);

    Parameters

    target

    Specifies the target texture. Must be one of GL_TEXTURE_3D, GL_PROXY_TEXTURE_3D, @@ -33,8 +33,8 @@ GL_RGBA8UI, GL_SRGB8_ALPHA8, GL_RGB10_A2, - GL_RGBA10_A2UI, - GL_R11_G11_B10F, + GL_RGB10_A2UI, + GL_R11F_G11F_B10F, GL_RG32F, GL_RG32I, GL_RG32UI, @@ -45,7 +45,7 @@ GL_RG8, GL_RG8I, GL_RG8UI, - GL_R23F, + GL_R32F, GL_R32I, GL_R32UI, GL_R16F, @@ -54,7 +54,7 @@ GL_R8, GL_R8I, GL_R8UI, - GL_RGBA16_UNORM, + GL_RGBA16_SNORM, GL_RGBA8_SNORM, GL_RGB32F, GL_RGB32I, @@ -190,28 +190,20 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RG

    Each element is a red and green pair. The GL converts each to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RGB
    GL_BGR

    Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RGBA
    GL_BGRA

    Each element contains all four components. - Each component is multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    If an application wants to store the texture at a certain resolution or in a certain format, it can request the resolution diff --git a/upstream-doc/man3/xhtml/glTexSubImage1D.xml b/upstream-doc/man3/xhtml/glTexSubImage1D.xml index 67a4943..22cb16a 100644 --- a/upstream-doc/man3/xhtml/glTexSubImage1D.xml +++ b/upstream-doc/man3/xhtml/glTexSubImage1D.xml @@ -1,7 +1,7 @@ -glTexSubImage1D

    Name

    glTexSubImage1D — specify a one-dimensional texture subimage

    C Specification

    void glTexSubImage1D(GLenum  target,
     GLint  level,
     GLint  xoffset,
     GLsizei  width,
     GLenum  format,
     GLenum  type,
     const GLvoid *  data);

    +glTexSubImage1D - OpenGL 3.3 Reference Pages

    Name

    glTexSubImage1D — specify a one-dimensional texture subimage

    C Specification

    void glTexSubImage1D(GLenum  target,
     GLint  level,
     GLint  xoffset,
     GLsizei  width,
     GLenum  format,
     GLenum  type,
     const GLvoid *  data);

    Parameters

    target

    Specifies the target texture. Must be GL_TEXTURE_1D. @@ -108,10 +108,7 @@ xoffset < - - - - b - + 0 , or if @@ -126,25 +123,13 @@ > - - - w - - - b - - + w , where w - is the GL_TEXTURE_WIDTH, and - b - is - the width of the GL_TEXTURE_BORDER + is the GL_TEXTURE_WIDTH of the texture image being modified. - Note that - w - includes twice the border width.

    GL_INVALID_VALUE is generated if width is less than 0.

    diff --git a/upstream-doc/man3/xhtml/glTexSubImage2D.xml b/upstream-doc/man3/xhtml/glTexSubImage2D.xml index 8925b24..8b93be7 100644 --- a/upstream-doc/man3/xhtml/glTexSubImage2D.xml +++ b/upstream-doc/man3/xhtml/glTexSubImage2D.xml @@ -134,11 +134,8 @@ xoffset < - - - - b + 0 - , @@ -151,13 +148,7 @@ > - - - w - - - b - - + w , @@ -165,10 +156,7 @@ yoffset < - - - - b - + 0 , or @@ -183,28 +171,15 @@ > - - - h - - - b - - + h , where w - is the GL_TEXTURE_WIDTH, + is the GL_TEXTURE_WIDTH, and h - is the GL_TEXTURE_HEIGHT, and - b - is the border width + is the GL_TEXTURE_HEIGHT of the texture image being modified. - Note that - w - and - h - include twice the border width.

    GL_INVALID_VALUE is generated if width or height is less than 0.

    diff --git a/upstream-doc/man3/xhtml/glTexSubImage3D.xml b/upstream-doc/man3/xhtml/glTexSubImage3D.xml index d0328f7..67f2950 100644 --- a/upstream-doc/man3/xhtml/glTexSubImage3D.xml +++ b/upstream-doc/man3/xhtml/glTexSubImage3D.xml @@ -140,10 +140,7 @@ xoffset < - - - - b - + 0 , @@ -157,13 +154,7 @@ > - - - w - - - b - - + w , @@ -171,10 +162,7 @@ yoffset < - - - - b - + 0 , or @@ -189,13 +177,7 @@ > - - - h - - - b - - + h , or @@ -204,10 +186,7 @@ zoffset < - - - - b - + 0 , or @@ -222,31 +201,17 @@ > - - - d - - - b - - + d , where w is the GL_TEXTURE_WIDTH, h - is the GL_TEXTURE_HEIGHT, + is the GL_TEXTURE_HEIGHT, and d is the GL_TEXTURE_DEPTH - and - b - is the border width of the texture image being modified. - Note that - w, - h, - and - d - include twice the border width. + of the texture image being modified.

    GL_INVALID_VALUE is generated if width, height, or depth is less than 0. diff --git a/upstream-doc/man3/xhtml/glVertexAttrib.xml b/upstream-doc/man3/xhtml/glVertexAttrib.xml index e59f9e6..fa062a3 100644 --- a/upstream-doc/man3/xhtml/glVertexAttrib.xml +++ b/upstream-doc/man3/xhtml/glVertexAttrib.xml @@ -1,7 +1,7 @@ -glVertexAttrib

    Name

    glVertexAttrib — Specifies the value of a generic vertex attribute

    C Specification

    void glVertexAttrib1f(GLuint  index,
     GLfloat  v0);
    void glVertexAttrib1s(GLuint  index,
     GLshort  v0);
    void glVertexAttrib1d(GLuint  index,
     GLdouble  v0);
    void glVertexAttribI1i(GLuint  index,
     GLint  v0);
    void glVertexAttribI1ui(GLuint  index,
     GLuint  v0);
    void glVertexAttrib2f(GLuint  index,
     GLfloat  v0,
     GLfloat  v1);
    void glVertexAttrib2s(GLuint  index,
     GLshort  v0,
     GLshort  v1);
    void glVertexAttrib2d(GLuint  index,
     GLdouble  v0,
     GLdouble  v1);
    void glVertexAttribI2i(GLuint  index,
     GLint  v0,
     GLint  v1);
    void glVertexAttribI2ui(GLuint  index,
     GLuint  v0,
     GLuint  v1);
    void glVertexAttrib3f(GLuint  index,
     GLfloat  v0,
     GLfloat  v1,
     GLfloat  v2);
    void glVertexAttrib3s(GLuint  index,
     GLshort  v0,
     GLshort  v1,
     GLshort  v2);
    void glVertexAttrib3d(GLuint  index,
     GLdouble  v0,
     GLdouble  v1,
     GLdouble  v2);
    void glVertexAttribI3i(GLuint  index,
     GLint  v0,
     GLint  v1,
     GLint  v2);
    void glVertexAttribI3ui(GLuint  index,
     GLoint  v0,
     GLoint  v1,
     GLoint  v2);
    void glVertexAttrib4f(GLuint  index,
     GLfloat  v0,
     GLfloat  v1,
     GLfloat  v2,
     GLfloat  v3);
    void glVertexAttrib4s(GLuint  index,
     GLshort  v0,
     GLshort  v1,
     GLshort  v2,
     GLshort  v3);
    void glVertexAttrib4d(GLuint  index,
     GLdouble  v0,
     GLdouble  v1,
     GLdouble  v2,
     GLdouble  v3);
    void glVertexAttrib4Nub(GLuint  index,
     GLubyte  v0,
     GLubyte  v1,
     GLubyte  v2,
     GLubyte  v3);
    void glVertexAttribI4i(GLuint  index,
     GLint  v0,
     GLint  v1,
     GLint  v2,
     GLint  v3);
    void glVertexAttribI4ui(GLuint  index,
     GLuint  v0,
     GLuint  v1,
     GLuint  v2,
     GLuint  v3);

    Parameters

    index

    Specifies the index of the generic vertex +glVertexAttrib - OpenGL 3.3 Reference Pages

    Name

    glVertexAttrib — Specifies the value of a generic vertex attribute

    C Specification

    void glVertexAttrib1f(GLuint  index,
     GLfloat  v0);
    void glVertexAttrib1s(GLuint  index,
     GLshort  v0);
    void glVertexAttrib1d(GLuint  index,
     GLdouble  v0);
    void glVertexAttribI1i(GLuint  index,
     GLint  v0);
    void glVertexAttribI1ui(GLuint  index,
     GLuint  v0);
    void glVertexAttrib2f(GLuint  index,
     GLfloat  v0,
     GLfloat  v1);
    void glVertexAttrib2s(GLuint  index,
     GLshort  v0,
     GLshort  v1);
    void glVertexAttrib2d(GLuint  index,
     GLdouble  v0,
     GLdouble  v1);
    void glVertexAttribI2i(GLuint  index,
     GLint  v0,
     GLint  v1);
    void glVertexAttribI2ui(GLuint  index,
     GLuint  v0,
     GLuint  v1);
    void glVertexAttrib3f(GLuint  index,
     GLfloat  v0,
     GLfloat  v1,
     GLfloat  v2);
    void glVertexAttrib3s(GLuint  index,
     GLshort  v0,
     GLshort  v1,
     GLshort  v2);
    void glVertexAttrib3d(GLuint  index,
     GLdouble  v0,
     GLdouble  v1,
     GLdouble  v2);
    void glVertexAttribI3i(GLuint  index,
     GLint  v0,
     GLint  v1,
     GLint  v2);
    void glVertexAttribI3ui(GLuint  index,
     GLuint  v0,
     GLuint  v1,
     GLuint  v2);
    void glVertexAttrib4f(GLuint  index,
     GLfloat  v0,
     GLfloat  v1,
     GLfloat  v2,
     GLfloat  v3);
    void glVertexAttrib4s(GLuint  index,
     GLshort  v0,
     GLshort  v1,
     GLshort  v2,
     GLshort  v3);
    void glVertexAttrib4d(GLuint  index,
     GLdouble  v0,
     GLdouble  v1,
     GLdouble  v2,
     GLdouble  v3);
    void glVertexAttrib4Nub(GLuint  index,
     GLubyte  v0,
     GLubyte  v1,
     GLubyte  v2,
     GLubyte  v3);
    void glVertexAttribI4i(GLuint  index,
     GLint  v0,
     GLint  v1,
     GLint  v2,
     GLint  v3);
    void glVertexAttribI4ui(GLuint  index,
     GLuint  v0,
     GLuint  v1,
     GLuint  v2,
     GLuint  v3);

    Parameters

    index

    Specifies the index of the generic vertex attribute to be modified.

    v0, v1, @@ -12,7 +12,7 @@ attribute to be modified.

    v

    Specifies a pointer to an array of values to be used for the generic vertex attribute.

    C Specification

    void glVertexAttribP1ui(GLuint  index,
     GLenum  type,
     GLboolean  normalized,
     GLuint  value);
    void glVertexAttribP2ui(GLuint  index,
     GLenum  type,
     GLboolean  normalized,
     GLuint  value);
    void glVertexAttribP3ui(GLuint  index,
     GLenum  type,
     GLboolean  normalized,
     GLuint  value);
    void glVertexAttribP4ui(GLuint  index,
     GLenum  type,
     GLboolean  normalized,
     GLuint  value);

    Parameters

    index

    Specifies the index of the generic vertex attribute to be modified.

    type

    Type of packing used on the data. This parameter must be - GL_INT_10_10_10_2 or GL_UNSIGNED_INT_10_10_10_2 + GL_INT_2_10_10_10_REV or GL_UNSIGNED_INT_2_10_10_10_REV to specify signed or unsigned data, respectively.

    normalized

    If GL_TRUE, then the values are to be converted to floating point values by normalizing. Otherwise, they are converted directly to floating point values.

    @@ -116,8 +116,8 @@ GL_MAX_VERTEX_ATTRIBS.

    GL_INVALID_ENUM is generated if glVertexAttribP is used with a type other than - GL_INT_10_10_10_2 or - GL_UNSIGNED_INT_10_10_10_2.

    Associated Gets

    glGet + GL_INT_2_10_10_10_REV or + GL_UNSIGNED_INT_2_10_10_10_REV.

    Associated Gets

    glGet with the argument GL_CURRENT_PROGRAM

    glGetActiveAttrib with argument program and the index of an active attribute variable

    glGetAttribLocation @@ -126,7 +126,8 @@ with arguments GL_CURRENT_VERTEX_ATTRIB and index

    Copyright

    - Copyright © 2003-2005 3Dlabs Inc. Ltd. + Copyright © 2003-2005 3Dlabs Inc. Ltd. + Copyright © 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man3/xhtml/glVertexAttribDivisor.xml b/upstream-doc/man3/xhtml/glVertexAttribDivisor.xml index 72683c8..47c9599 100644 --- a/upstream-doc/man3/xhtml/glVertexAttribDivisor.xml +++ b/upstream-doc/man3/xhtml/glVertexAttribDivisor.xml @@ -1,30 +1,30 @@ -glVertexAttribDivisor

    Name

    glVertexAttribDivisor — modify the rate at which generic vertex attributes advance during instanced rendering

    C Specification

    void glVertexAttribDivisor(GLuint index,
     GLuint divisor);
     

    Parameters

    index

    +glVertexAttribDivisor - OpenGL 3.3 Reference Pages

    Name

    glVertexAttribDivisor — modify the rate at which generic vertex attributes advance during instanced rendering

    C Specification

    void glVertexAttribDivisor(GLuint  index,
     GLuint  divisor);

    Parameters

    index

    Specify the index of the generic vertex attribute.

    divisor

    Specify the number of instances that will pass between updates of the generic attribute at slot index. -

    Description

    +

    Description

    glVertexAttribDivisor modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives in a single draw call. If divisor is zero, the attribute at slot index advances once per vertex. If divisor is non-zero, the attribute advances once per divisor instances of the set(s) of vertices being rendered. An attribute is referred to as instanced if its GL_VERTEX_ATTRIB_ARRAY_DIVISOR value is non-zero.

    - index must be less than the value of GL_MAX_VERTEX_ATTRIBUTES. -

    Notes

    + index must be less than the value of GL_MAX_VERTEX_ATTRIBS. +

    Notes

    glVertexAttribDivisor is available only if the GL version is 3.3 or higher. -

    Errors

    +

    Errors

    GL_INVALID_VALUE is generated if index is greater - than or equal to the value of GL_MAX_VERTEX_ATTRIBUTES. -

    Copyright

    + than or equal to the value of GL_MAX_VERTEX_ATTRIBS. +

    Copyright

    Copyright © 2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. - http://opencontent.org/openpub/. + http://opencontent.org/openpub/.

    diff --git a/upstream-doc/man4/glBindBuffer.xml b/upstream-doc/man4/glBindBuffer.xml index d3e8675..0e2d1d4 100644 --- a/upstream-doc/man4/glBindBuffer.xml +++ b/upstream-doc/man4/glBindBuffer.xml @@ -153,7 +153,7 @@ but will not directly affect transform feedback state. Instead, the indexed GL_TRANSFORM_FEEDBACK_BUFFER bindings must be used through a call to glBindBufferBase or glBindBufferRange. This will affect the generic - GL_TRANSFORM_FEEDABCK_BUFFER binding. + GL_TRANSFORM_FEEDBACK_BUFFER binding. Likewise, the GL_UNIFORM_BUFFER, GL_ATOMIC_COUNTER_BUFFER and GL_SHADER_STORAGE_BUFFER diff --git a/upstream-doc/man4/glBindFragDataLocationIndexed.xml b/upstream-doc/man4/glBindFragDataLocationIndexed.xml index 2b215e7..861c4c8 100644 --- a/upstream-doc/man4/glBindFragDataLocationIndexed.xml +++ b/upstream-doc/man4/glBindFragDataLocationIndexed.xml @@ -112,7 +112,7 @@ GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DRAW_BUFFERS. - GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DUAL_SOURCE_DRAW_BUFERS + GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DUAL_SOURCE_DRAW_BUFFERS and index is greater than or equal to one. diff --git a/upstream-doc/man4/glBindSampler.xml b/upstream-doc/man4/glBindSampler.xml index 370049f..69cba32 100644 --- a/upstream-doc/man4/glBindSampler.xml +++ b/upstream-doc/man4/glBindSampler.xml @@ -67,7 +67,7 @@ Errors GL_INVALID_VALUE is generated if unit is greater than or equal to the value of - GL_MAX_COMBIED_TEXTURE_IMAGE_UNITS. + GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS. GL_INVALID_OPERATION is generated if sampler is not zero or a name previously diff --git a/upstream-doc/man4/glBlendFunc.xml b/upstream-doc/man4/glBlendFunc.xml index da57b28..9322c87 100644 --- a/upstream-doc/man4/glBlendFunc.xml +++ b/upstream-doc/man4/glBlendFunc.xml @@ -1439,10 +1439,16 @@ Associated Gets - glGet with argument GL_BLEND_SRC + glGet with argument GL_BLEND_SRC_RGB - glGet with argument GL_BLEND_DST + glGet with argument GL_BLEND_SRC_ALPHA + + + glGet with argument GL_BLEND_DST_RGB + + + glGet with argument GL_BLEND_DST_ALPHA glIsEnabled with argument GL_BLEND diff --git a/upstream-doc/man4/glCheckFramebufferStatus.xml b/upstream-doc/man4/glCheckFramebufferStatus.xml index c4e14d6..bdbe9f8 100644 --- a/upstream-doc/man4/glCheckFramebufferStatus.xml +++ b/upstream-doc/man4/glCheckFramebufferStatus.xml @@ -64,7 +64,7 @@ GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER is returned if the value of GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE - is GL_NONE for any color attachment point(s) named by GL_DRAWBUFFERi. + is GL_NONE for any color attachment point(s) named by GL_DRAW_BUFFERi. diff --git a/upstream-doc/man4/glClearBuffer.xml b/upstream-doc/man4/glClearBuffer.xml index 1f85f36..fe5481d 100644 --- a/upstream-doc/man4/glClearBuffer.xml +++ b/upstream-doc/man4/glClearBuffer.xml @@ -100,7 +100,7 @@ Description glClearBuffer* clears the specified buffer to the specified value(s). If buffer is - GL_COLOR, a particular draw buffer GL_DRAWBUFFERi is specified + GL_COLOR, a particular draw buffer GL_DRAW_BUFFERi is specified by passing i as drawBuffer. In this case, value points to a four-element vector specifying the R, G, B and A color to clear that draw buffer to. If buffer is one of GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, diff --git a/upstream-doc/man4/glCompressedTexImage2D.xml b/upstream-doc/man4/glCompressedTexImage2D.xml index e1fb9b5..4bf7372 100644 --- a/upstream-doc/man4/glCompressedTexImage2D.xml +++ b/upstream-doc/man4/glCompressedTexImage2D.xml @@ -130,7 +130,7 @@ If target is GL_PROXY_TEXTURE_2D, GL_PROXY_TEXTURE_1D_ARRAY - or GL_PROXY_CUBE_MAP, no data is read from data, but + or GL_PROXY_TEXTURE_CUBE_MAP, no data is read from data, but all of the texture image state is recalculated, checked for consistency, and checked against the implementation's capabilities. If the implementation cannot handle a texture of the requested texture size, it diff --git a/upstream-doc/man4/glCopyTexImage1D.xml b/upstream-doc/man4/glCopyTexImage1D.xml index 462fafc..5ac7734 100644 --- a/upstream-doc/man4/glCopyTexImage1D.xml +++ b/upstream-doc/man4/glCopyTexImage1D.xml @@ -5,8 +5,8 @@ - 1991-2006 - Silicon Graphics, Inc. + 2013 + Khronos Group glCopyTexImage1D @@ -108,25 +108,6 @@ Specifies the width of the texture image. - Must be 0 or - - - - 2 - n - - + - - 2 - - - border - - - - - for some integer - n. The height of the texture image is 1. @@ -135,8 +116,7 @@ border - Specifies the width of the border. - Must be either 0 or 1. + Must be 0. @@ -158,18 +138,7 @@ and with a length of - - - width - + - - 2 - - - border - - - + width defines the texture array at the mipmap level specified by level. @@ -249,27 +218,7 @@ GL_MAX_TEXTURE_SIZE. - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width cannot be represented as - - - - 2 - n - - + - - 2 - - - border - - - - - for some integer value of n. - - - GL_INVALID_VALUE is generated if border is not 0 or 1. + GL_INVALID_VALUE is generated if border is not 0. GL_INVALID_OPERATION is generated if internalformat is @@ -299,7 +248,9 @@ Copyright Copyright 1991-2006 - Silicon Graphics, Inc. This document is licensed under the SGI + Silicon Graphics, Inc. + Copyright 2012-2013 Khronos Group. + This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/glCopyTexImage2D.xml b/upstream-doc/man4/glCopyTexImage2D.xml index 17b5e00..a281d37 100644 --- a/upstream-doc/man4/glCopyTexImage2D.xml +++ b/upstream-doc/man4/glCopyTexImage2D.xml @@ -5,8 +5,8 @@ - 1991-2006 - Silicon Graphics, Inc. + 2013 + Khronos Group glCopyTexImage2D @@ -115,25 +115,6 @@ Specifies the width of the texture image. - Must be 0 or - - - - 2 - n - - + - - 2 - - - border - - - - - for some integer - n. @@ -142,25 +123,6 @@ Specifies the height of the texture image. - Must be 0 or - - - - 2 - m - - + - - 2 - - - border - - - - - for some integer - m. @@ -168,8 +130,7 @@ border - Specifies the width of the border. - Must be either 0 or 1. + Must be 0. @@ -185,33 +146,11 @@ The screen-aligned pixel rectangle with lower left corner at (x, y) and with a width of - - - width - + - - 2 - - - border - - - + width and a height of - - - height - + - - 2 - - - border - - - + height defines the texture array at the mipmap level specified by level. @@ -297,28 +236,7 @@ GL_MAX_TEXTURE_SIZE. - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width or depth cannot be represented as - - - - 2 - k - - + - - 2 - - - border - - - - - for some integer - k. - - - GL_INVALID_VALUE is generated if border is not 0 or 1. + GL_INVALID_VALUE is generated if border is not 0. GL_INVALID_VALUE is generated if internalformat is not an @@ -352,7 +270,9 @@ Copyright Copyright 1991-2006 - Silicon Graphics, Inc. This document is licensed under the SGI + Silicon Graphics, Inc. + Copyright 2012-2013 Khronos Group. + This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/glCopyTexSubImage1D.xml b/upstream-doc/man4/glCopyTexSubImage1D.xml index 18671d6..7d5e4c8 100644 --- a/upstream-doc/man4/glCopyTexSubImage1D.xml +++ b/upstream-doc/man4/glCopyTexSubImage1D.xml @@ -5,8 +5,8 @@ - 1991-2006 - Silicon Graphics, Inc. + 2013 + Khronos Group glCopyTexSubImage1D @@ -128,8 +128,7 @@ rendering context, then the values obtained for those pixels are undefined. - No change is made to the internalformat, width, - or border parameters of the specified texture + No change is made to the internalformat or width parameters of the specified texture array or to texel values outside the specified subregion. @@ -176,10 +175,7 @@ xoffset < - - - - b - + 0 , or @@ -194,24 +190,13 @@ > - - - w - - - b - - + w , where w - is the GL_TEXTURE_WIDTH and - b - is the GL_TEXTURE_BORDER + is the GL_TEXTURE_WIDTH of the texture image being modified. - Note that - w - includes twice the border width. @@ -241,7 +226,9 @@ Copyright Copyright 1991-2006 - Silicon Graphics, Inc. This document is licensed under the SGI + Silicon Graphics, Inc. + Copyright 2012-2013 Khronos Group. + This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/glCopyTexSubImage2D.xml b/upstream-doc/man4/glCopyTexSubImage2D.xml index 1e6419c..1901e1a 100644 --- a/upstream-doc/man4/glCopyTexSubImage2D.xml +++ b/upstream-doc/man4/glCopyTexSubImage2D.xml @@ -5,8 +5,8 @@ - 1991-2006 - Silicon Graphics, Inc. + 2013 + Khronos Group glCopyTexSubImage2D @@ -180,8 +180,8 @@ rendering context, then the values obtained for those pixels are undefined. - No change is made to the internalformat, width, - height, or border parameters of the specified texture + No change is made to the internalformat, width, or + height, parameters of the specified texture array or to texel values outside the specified subregion. @@ -237,10 +237,7 @@ xoffset < - - - - b - + 0 , @@ -254,13 +251,7 @@ > - - - w - - - b - - + w , @@ -268,10 +259,7 @@ yoffset < - - - - b - + 0 , or @@ -286,29 +274,15 @@ > - - - h - - - b - - + 0 , where w is the GL_TEXTURE_WIDTH, h - is the GL_TEXTURE_HEIGHT, - and - b - is the GL_TEXTURE_BORDER + is the GL_TEXTURE_HEIGHT and of the texture image being modified. - Note that - w - and - h - include twice the border width. Associated Gets @@ -336,7 +310,7 @@ Copyright Copyright 1991-2006 - Silicon Graphics, Inc. Copyright 2012 Khronos Group. + Silicon Graphics, Inc. Copyright 2012-2013 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/glCopyTexSubImage3D.xml b/upstream-doc/man4/glCopyTexSubImage3D.xml index 6567535..b737bd3 100644 --- a/upstream-doc/man4/glCopyTexSubImage3D.xml +++ b/upstream-doc/man4/glCopyTexSubImage3D.xml @@ -5,8 +5,8 @@ - 1991-2006 - Silicon Graphics, Inc. + 2013 + Khronos Group glCopyTexSubImage3D @@ -221,10 +221,7 @@ xoffset < - - - - b - + 0 , @@ -238,13 +235,7 @@ > - - - w - - - b - - + w , @@ -252,10 +243,7 @@ yoffset < - - - - b - + 0 , @@ -269,13 +257,7 @@ > - - - h - - - b - - + h , @@ -283,10 +265,7 @@ zoffset < - - - - b - + 0 , or @@ -301,13 +280,7 @@ > - - - d - - - b - - + d , where @@ -316,10 +289,7 @@ h is the GL_TEXTURE_HEIGHT, d - is the GL_TEXTURE_DEPTH, - and - b - is the GL_TEXTURE_BORDER + is the GL_TEXTURE_DEPTH and of the texture image being modified. Note that w, @@ -354,7 +324,9 @@ Copyright Copyright 1991-2006 - Silicon Graphics, Inc. This document is licensed under the SGI + Silicon Graphics, Inc. + Copyright 2012-2013 Khronos Group. + This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/glDebugMessageControl.xml b/upstream-doc/man4/glDebugMessageControl.xml index e6370b3..9e9c59e 100644 --- a/upstream-doc/man4/glDebugMessageControl.xml +++ b/upstream-doc/man4/glDebugMessageControl.xml @@ -98,14 +98,17 @@ type may be one of GL_DEBUG_TYPE_ERROR, GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR, GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR, GL_DEBUG_TYPE_PORTABILITY, - GL_DEBUG_TYPE_PERFORMANCE, GL_DEBUG_TYPE_OTHER to indicate the type of messages describing - GL errors, attempted use of deprecated features, triggering of undefined behavior, portability issues, performance notifications and other - types of messages. It may also take the value GL_DONT_CARE. If type is not GL_DONT_CARE + GL_DEBUG_TYPE_PERFORMANCE, GL_DEBUG_TYPE_MARKER, GL_DEBUG_TYPE_PUSH_GROUP, + GL_DEBUG_TYPE_POP_GROUP, or GL_DEBUG_TYPE_OTHER to indicate the type of messages describing + GL errors, attempted use of deprecated features, triggering of undefined behavior, portability issues, performance notifications, markers, + group push and pop events, and other + types of messages, respectively. It may also take the value GL_DONT_CARE. If type is not GL_DONT_CARE then only messages whose type matches type will be referenced. severity may be one of GL_DEBUG_SEVERITY_LOW, GL_DEBUG_SEVERITY_MEDIUM, - or GL_DEBUG_SEVERITY_HIGH to select messages of low, medium or high severity messages. It may also take the + or GL_DEBUG_SEVERITY_HIGH to select messages of low, medium or high severity messages or to + GL_DEBUG_SEVERITY_NOTIFICATION for notifications. It may also take the value GL_DONT_CARE. If severity is not GL_DONT_CARE then only messages whose severity matches severity will be referenced. @@ -127,6 +130,10 @@ inferior to those in a debug context. In particular, a valid implementation of the debug message queue in a non-debug context may produce no messages at all. + + GL_DEBUG_TYPE_MARKER, GL_DEBUG_TYPE_PUSH_GROUP, GL_DEBUG_TYPE_POP_GROUP, and GL_DEBUG_SEVERITY_NOTIFICATION + are available only if the GL version is 4.3 or higher. + Errors diff --git a/upstream-doc/man4/glDebugMessageInsert.xml b/upstream-doc/man4/glDebugMessageInsert.xml index 05b091e..47bf4cb 100644 --- a/upstream-doc/man4/glDebugMessageInsert.xml +++ b/upstream-doc/man4/glDebugMessageInsert.xml @@ -90,9 +90,9 @@ use by the GL implementation. type indicates the type of the message to be inserted and may be one of GL_DEBUG_TYPE_ERROR, GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR, GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR, GL_DEBUG_TYPE_PORTABILITY, - GL_DEBUG_TYPE_PERFORMANCE, or GL_DEBUG_TYPE_OTHER. + GL_DEBUG_TYPE_PERFORMANCE, GL_DEBUG_TYPE_MARKER, GL_DEBUG_TYPE_PUSH_GROUP, GL_DEBUG_TYPE_POP_GROUP, or GL_DEBUG_TYPE_OTHER. severity indicates the severity of the message and may be GL_DEBUG_SEVERITY_LOW, - GL_DEBUG_SEVERITY_MEDIUM, or GL_DEBUG_SEVERITY_HIGH. + GL_DEBUG_SEVERITY_MEDIUM, GL_DEBUG_SEVERITY_HIGH or GL_DEBUG_SEVERITY_NOTIFICATION. id is available for application defined use and may be any value. This value will be recorded and used to identify the message. @@ -104,6 +104,12 @@ or equal to the implementation defined constant GL_MAX_DEBUG_MESSAGE_LENGTH. + Notes + + GL_DEBUG_TYPE_MARKER, GL_DEBUG_TYPE_PUSH_GROUP, GL_DEBUG_TYPE_POP_GROUP, and GL_DEBUG_SEVERITY_NOTIFICATION + are available only if the GL version is 4.3 or higher. + + Errors GL_INVALID_ENUM is generated if any of source, type diff --git a/upstream-doc/man4/glDrawBuffers.xml b/upstream-doc/man4/glDrawBuffers.xml index f54a5d1..8dad505 100644 --- a/upstream-doc/man4/glDrawBuffers.xml +++ b/upstream-doc/man4/glDrawBuffers.xml @@ -138,7 +138,7 @@ GL_INVALID_ENUM is generated if the GL is bound to a framebuffer object and one or more of the values in bufs is anything other than GL_NONE or one of the - GL_COLOR_ATTACHMENTSn tokens. + GL_COLOR_ATTACHMENTn tokens. GL_INVALID_ENUM is generated if n is less than 0. diff --git a/upstream-doc/man4/glFlushMappedBufferRange.xml b/upstream-doc/man4/glFlushMappedBufferRange.xml index baf29b3..7e11617 100644 --- a/upstream-doc/man4/glFlushMappedBufferRange.xml +++ b/upstream-doc/man4/glFlushMappedBufferRange.xml @@ -61,7 +61,7 @@ Description glFlushMappedBufferRange indicates that modifications have been made to a range of a mapped buffer. - The buffer must previously have been mapped with the GL_MAP_FLUSH_EXPLICIT flag. offset + The buffer must previously have been mapped with the GL_MAP_FLUSH_EXPLICIT_BIT flag. offset and length indicate the modified subrange of the mapping, in basic units. The specified subrange to flush is relative to the start of the currently mapped range of the buffer. glFlushMappedBufferRange may be called multiple times to indicate distinct subranges of the mapping which require flushing. @@ -77,7 +77,7 @@ GL_INVALID_OPERATION is generated if the buffer bound to target is not - mapped, or is mapped without the GL_MAP_FLUSH_EXPLICIT flag. + mapped, or is mapped without the GL_MAP_FLUSH_EXPLICIT_BIT flag. See Also diff --git a/upstream-doc/man4/glFramebufferTexture.xml b/upstream-doc/man4/glFramebufferTexture.xml index d8daff3..16056d2 100644 --- a/upstream-doc/man4/glFramebufferTexture.xml +++ b/upstream-doc/man4/glFramebufferTexture.xml @@ -71,7 +71,7 @@ Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, - GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. + GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT. @@ -114,7 +114,7 @@ attachment specifies the logical attachment of the framebuffer and must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, - GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. + GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT. i in GL_COLOR_ATTACHMENTi may range from zero to the value of GL_MAX_COLOR_ATTACHMENTS - 1. Attaching a level of a texture to GL_DEPTH_STENCIL_ATTACHMENT is equivalent to attaching that level to both the diff --git a/upstream-doc/man4/glFramebufferTextureLayer.xml b/upstream-doc/man4/glFramebufferTextureLayer.xml index 1a769ae..fa76e70 100644 --- a/upstream-doc/man4/glFramebufferTextureLayer.xml +++ b/upstream-doc/man4/glFramebufferTextureLayer.xml @@ -47,7 +47,7 @@ Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, - GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. + GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT. diff --git a/upstream-doc/man4/glGet.xml b/upstream-doc/man4/glGet.xml index 1931592..d022c9e 100644 --- a/upstream-doc/man4/glGet.xml +++ b/upstream-doc/man4/glGet.xml @@ -871,31 +871,6 @@ - - GL_LINE_WIDTH_GRANULARITY - - - - - params returns one value, - the width difference between adjacent supported widths for antialiased lines. - See glLineWidth. - - - - - GL_LINE_WIDTH_RANGE - - - - - params returns two values: - the smallest and largest supported widths for antialiased - lines. - See glLineWidth. - - - GL_LOGIC_OP_MODE @@ -1086,7 +1061,7 @@ - GL_MAX_DUALSOURCE_DRAW_BUFFERS + GL_MAX_DUAL_SOURCE_DRAW_BUFFERS @@ -1394,7 +1369,7 @@ params returns one value. The value gives a rough estimate of the largest rectangular texture that the GL can handle. The value must be at least 1024. - Use GL_PROXY_RECTANGLE_TEXTURE + Use GL_PROXY_TEXTURE_RECTANGLE to determine if a texture is too large. See glTexImage2D. @@ -1972,6 +1947,21 @@ + + GL_PROGRAM_POINT_SIZE + + + + + params returns a single boolean value indicating whether vertex + program point size mode is enabled. If enabled, then the + point size is taken from the shader built-in gl_PointSize. If disabled, + then the point size is taken from the point state as specified + by glPointSize. + The initial value is GL_FALSE. + + + GL_PROVOKING_VERTEX @@ -2711,7 +2701,7 @@ - GL_TEXTURE_BUFFER_BINDING + GL_TEXTURE_BINDING_BUFFER @@ -2950,21 +2940,6 @@ - - GL_VERTEX_PROGRAM_POINT_SIZE - - - - - params returns a single boolean value indicating whether vertex - program point size mode is enabled. If enabled, and a vertex shader is active, then the - point size is taken from the shader built-in gl_PointSize. If disabled, - and a vertex shader is active, then the point size is taken from the point state as specified - by glPointSize. - The initial value is GL_FALSE. - - - GL_VERTEX_BINDING_DIVISOR diff --git a/upstream-doc/man4/glGetActiveAttrib.xml b/upstream-doc/man4/glGetActiveAttrib.xml index 8b6c5b2..83d9bf3 100644 --- a/upstream-doc/man4/glGetActiveAttrib.xml +++ b/upstream-doc/man4/glGetActiveAttrib.xml @@ -154,7 +154,7 @@ GL_INT_VEC2, GL_INT_VEC3, GL_INT_VEC4, - GL_UNSIGNED_INT_VEC, + GL_UNSIGNED_INT, GL_UNSIGNED_INT_VEC2, GL_UNSIGNED_INT_VEC3, GL_UNSIGNED_INT_VEC4, diff --git a/upstream-doc/man4/glGetActiveUniform.xml b/upstream-doc/man4/glGetActiveUniform.xml index be611a4..7ebb10d 100644 --- a/upstream-doc/man4/glGetActiveUniform.xml +++ b/upstream-doc/man4/glGetActiveUniform.xml @@ -1112,8 +1112,9 @@ glGet with argument GL_MAX_VERTEX_UNIFORM_COMPONENTS, GL_MAX_GEOMETRY_UNIFORM_COMPONENTS, - GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, or - GL_MAX_COMBINED_UNIFORM_COMPONENTS. + GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS, + GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS, + GL_MAX_FRAGMENT_UNIFORM_COMPONENTS. glGetProgram with argument GL_ACTIVE_UNIFORMS or diff --git a/upstream-doc/man4/glGetActiveUniformBlock.xml b/upstream-doc/man4/glGetActiveUniformBlock.xml index 7221cbf..e997021 100644 --- a/upstream-doc/man4/glGetActiveUniformBlock.xml +++ b/upstream-doc/man4/glGetActiveUniformBlock.xml @@ -23,7 +23,7 @@ GLuint program GLuint uniformBlockIndex GLenum pname - GLint params + GLint *params @@ -147,7 +147,7 @@ Copyright - Copyright 2010 Khronos Group. + Copyright 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man4/glGetBufferParameter.xml b/upstream-doc/man4/glGetBufferParameter.xml index 2ec6649..4765e28 100644 --- a/upstream-doc/man4/glGetBufferParameter.xml +++ b/upstream-doc/man4/glGetBufferParameter.xml @@ -157,6 +157,7 @@ Copyright Copyright 2005 Addison-Wesley. + Copyright 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man4/glGetFramebufferAttachmentParameter.xml b/upstream-doc/man4/glGetFramebufferAttachmentParameter.xml index 6cabe15..f47e59e 100644 --- a/upstream-doc/man4/glGetFramebufferAttachmentParameter.xml +++ b/upstream-doc/man4/glGetFramebufferAttachmentParameter.xml @@ -66,7 +66,7 @@ Description - glGetFramebufferAttachmentParameter returns information about attachments of a bound framebuffer + glGetFramebufferAttachmentParameteriv returns information about attachments of a bound framebuffer object. target specifies the framebuffer binding point and must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER. @@ -218,7 +218,7 @@ Copyright - Copyright 2010 Khronos Group. + Copyright 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man4/glGetTexLevelParameter.xml b/upstream-doc/man4/glGetTexLevelParameter.xml index 2be71f9..dcbd9d8 100644 --- a/upstream-doc/man4/glGetTexLevelParameter.xml +++ b/upstream-doc/man4/glGetTexLevelParameter.xml @@ -5,8 +5,8 @@ - 1991-2006 - Silicon Graphics, Inc. + 2013 + Khronos Group glGetTexLevelParameter @@ -95,7 +95,6 @@ GL_TEXTURE_HEIGHT, GL_TEXTURE_DEPTH, GL_TEXTURE_INTERNAL_FORMAT, - GL_TEXTURE_BORDER, GL_TEXTURE_RED_SIZE, GL_TEXTURE_GREEN_SIZE, GL_TEXTURE_BLUE_SIZE, @@ -140,8 +139,8 @@ GL_MAX_TEXTURE_SIZE, and GL_MAX_3D_TEXTURE_SIZE are not really descriptive enough. It has to report the largest square texture image that can be - accommodated with mipmaps and borders, - but a long skinny texture, or a texture without mipmaps and borders, may + accommodated with mipmaps + but a long skinny texture, or a texture without mipmaps may easily fit in texture memory. The proxy targets allow the user to more accurately query whether the GL can accommodate a texture of a given configuration. @@ -166,8 +165,7 @@ params returns a single value, the width of the texture image. - This value includes the border of the texture image. The initial value is - 0. + The initial value is 0. @@ -179,8 +177,7 @@ params returns a single value, the height of the texture image. - This value includes the border of the texture image. The initial value is - 0. + The initial value is 0. @@ -192,8 +189,7 @@ params returns a single value, the depth of the texture image. - This value includes the border of the texture image. The initial value is - 0. + The initial value is 0. @@ -390,7 +386,7 @@ Copyright Copyright 1991-2006 - Silicon Graphics, Inc. Copyright 2010-2012 + Silicon Graphics, Inc. Copyright 2010-2013 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/glGetTransformFeedbackVarying.xml b/upstream-doc/man4/glGetTransformFeedbackVarying.xml index aa7cc03..19cdc0b 100644 --- a/upstream-doc/man4/glGetTransformFeedbackVarying.xml +++ b/upstream-doc/man4/glGetTransformFeedbackVarying.xml @@ -24,7 +24,7 @@ GLuintindex GLsizeibufSize GLsizei *length - GLsizeisize + GLsizei *size GLenum *type char *name @@ -99,7 +99,7 @@ variable selected by index. An index of 0 selects the first varying variable specified in the varyings array passed to glTransformFeedbackVaryings, and - an index of GL_TRANSFORM_FEEDBACK_VARYINGS-1 selects + an index of GL_TRANSFORM_FEEDBACK_VARYINGS - 1 selects the last such variable. @@ -152,7 +152,7 @@ Copyright - Copyright 2010 Khronos Group. + Copyright 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man4/glIsEnabled.xml b/upstream-doc/man4/glIsEnabled.xml index 1202388..9c3f53c 100644 --- a/upstream-doc/man4/glIsEnabled.xml +++ b/upstream-doc/man4/glIsEnabled.xml @@ -274,7 +274,7 @@ - GL_TEXTURE_CUBEMAP_SEAMLESS + GL_TEXTURE_CUBE_MAP_SEAMLESS glEnable diff --git a/upstream-doc/man4/glLinkProgram.xml b/upstream-doc/man4/glLinkProgram.xml index 67330ca..2c19372 100644 --- a/upstream-doc/man4/glLinkProgram.xml +++ b/upstream-doc/man4/glLinkProgram.xml @@ -165,7 +165,7 @@ The total number of components to capture in any transform feedback varying variable is greater than the constant GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS - and the buffer mode is SEPARATE_ATTRIBS. + and the buffer mode is GL_SEPARATE_ATTRIBS. diff --git a/upstream-doc/man4/glPointSize.xml b/upstream-doc/man4/glPointSize.xml index 77dcecb..5a64cdd 100644 --- a/upstream-doc/man4/glPointSize.xml +++ b/upstream-doc/man4/glPointSize.xml @@ -67,12 +67,6 @@ glGet with argument GL_POINT_SIZE - - glGet with argument GL_POINT_SIZE_MIN - - - glGet with argument GL_POINT_SIZE_MAX - glGet with argument GL_POINT_FADE_THRESHOLD_SIZE diff --git a/upstream-doc/man4/glReadPixels.xml b/upstream-doc/man4/glReadPixels.xml index 798a87e..05c4d34 100644 --- a/upstream-doc/man4/glReadPixels.xml +++ b/upstream-doc/man4/glReadPixels.xml @@ -191,11 +191,6 @@ Stencil values are read from the stencil buffer. - Each index is converted to fixed point, - shifted left or right depending on the value and sign of GL_INDEX_SHIFT, - and added to GL_INDEX_OFFSET. - If GL_MAP_STENCIL is GL_TRUE, - indices are replaced by their mappings in the table GL_PIXEL_MAP_S_TO_S. @@ -206,9 +201,7 @@ Depth values are read from the depth buffer. Each component is converted to floating point such that the minimum depth value maps to 0 and the maximum value maps to 1. - Each component is then multiplied by GL_DEPTH_SCALE, - added to GL_DEPTH_BIAS, - and finally clamped to the range + Each component is clamped to the range @@ -1164,9 +1157,6 @@ Associated Gets - - glGet with argument GL_INDEX_MODE - glGet with argument GL_PIXEL_PACK_BUFFER_BINDING diff --git a/upstream-doc/man4/glTexBuffer.xml b/upstream-doc/man4/glTexBuffer.xml index bc3cbb0..e35704d 100644 --- a/upstream-doc/man4/glTexBuffer.xml +++ b/upstream-doc/man4/glTexBuffer.xml @@ -22,7 +22,7 @@ void glTexBuffer GLenum target GLenum internalFormat - Gluintbuffer + GLuint buffer @@ -489,7 +489,7 @@ Copyright - Copyright 2010 Khronos Group. + Copyright 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man4/glTexImage1D.xml b/upstream-doc/man4/glTexImage1D.xml index b6ef496..2159c20 100644 --- a/upstream-doc/man4/glTexImage1D.xml +++ b/upstream-doc/man4/glTexImage1D.xml @@ -205,9 +205,7 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -218,9 +216,7 @@ Each element is a single red/green double The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -236,9 +232,7 @@ Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -252,9 +246,7 @@ Each element contains all four components. - Each component is multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component clamped to the range [0,1]. @@ -263,9 +255,7 @@ Each element is a single depth value. - The GL converts it to floating point, multiplies by the signed scale factor - GL_DEPTH_SCALE, adds the signed bias GL_DEPTH_BIAS, - and clamps to the range [0,1]. + The GL converts it to floating point and clamps to the range [0,1]. @@ -486,27 +476,7 @@ or greater than GL_MAX_TEXTURE_SIZE. - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width cannot be represented as - - - - 2 - n - - + - - 2 - - - border - - - - - for some integer value of n. - - - GL_INVALID_VALUE is generated if border is not 0 or 1. + GL_INVALID_VALUE is generated if border is not 0. GL_INVALID_OPERATION is generated if type is one of @@ -583,7 +553,7 @@ Copyright Copyright 1991-2006 Silicon Graphics, Inc. - Copyright 2011 Khronos Group. + Copyright 2011-2013 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/glTexImage2D.xml b/upstream-doc/man4/glTexImage2D.xml index 4370538..bb431d6 100644 --- a/upstream-doc/man4/glTexImage2D.xml +++ b/upstream-doc/man4/glTexImage2D.xml @@ -225,9 +225,7 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -238,9 +236,7 @@ Each element is a red/green double. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -256,9 +252,7 @@ Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -272,9 +266,7 @@ Each element contains all four components. - Each component is multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -283,9 +275,7 @@ Each element is a single depth value. - The GL converts it to floating point, multiplies by the signed scale factor - GL_DEPTH_SCALE, adds the signed bias GL_DEPTH_BIAS, - and clamps to the range [0,1]. + The GL converts it to floating point and clamps to the range [0,1]. @@ -543,27 +533,6 @@ GL_INVALID_VALUE is generated if width or height is less than 0 or greater than GL_MAX_TEXTURE_SIZE. - - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width or height cannot be represented as - - - - 2 - k - - + - - 2 - - - border - - - - - for some - integer value of k. - GL_INVALID_VALUE is generated if border is not 0. @@ -656,7 +625,7 @@ Copyright Copyright 1991-2006 Silicon Graphics, Inc. - Copyright 2011 Khronos Group. + Copyright 2011-2013 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/glTexImage2DMultisample.xml b/upstream-doc/man4/glTexImage2DMultisample.xml index 6e4bc3f..4b2780b 100644 --- a/upstream-doc/man4/glTexImage2DMultisample.xml +++ b/upstream-doc/man4/glTexImage2DMultisample.xml @@ -5,7 +5,7 @@ - 2010 + 2013 Khronos Group @@ -138,7 +138,7 @@ Copyright - Copyright 2010 Khronos Group. + Copyright 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man4/glTexImage3D.xml b/upstream-doc/man4/glTexImage3D.xml index c1d29b0..a5bf3de 100644 --- a/upstream-doc/man4/glTexImage3D.xml +++ b/upstream-doc/man4/glTexImage3D.xml @@ -5,8 +5,8 @@ - 1991-2006 - Silicon Graphics, Inc. + 2013 + Khronos Group glTexImage3D @@ -241,9 +241,7 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -254,9 +252,7 @@ Each element is a red and green pair. The GL converts each to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -272,9 +268,7 @@ Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -288,9 +282,7 @@ Each element contains all four components. - Each component is multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1]. @@ -510,28 +502,7 @@ GL_INVALID_VALUE is generated if width, height, or depth is less than 0 or greater than GL_MAX_TEXTURE_SIZE. - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width, height, or depth cannot be represented as - - - - 2 - k - - + - - 2 - - - border - - - - - for some - integer value of k. - - - GL_INVALID_VALUE is generated if border is not 0 or 1. + GL_INVALID_VALUE is generated if border is not 0. GL_INVALID_OPERATION is generated if type is one of @@ -608,7 +579,7 @@ Copyright Copyright 1991-2006 Silicon Graphics, Inc. - Copyright 2011 Khronos Group. + Copyright 2011-2013 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/glVertexAttrib.xml b/upstream-doc/man4/glVertexAttrib.xml index 5fee857..bc64929 100644 --- a/upstream-doc/man4/glVertexAttrib.xml +++ b/upstream-doc/man4/glVertexAttrib.xml @@ -463,7 +463,7 @@ type Type of packing used on the data. This parameter must be - GL_INT_10_10_10_2 or GL_UNSIGNED_INT_10_10_10_2 + GL_INT_2_10_10_10_REV or GL_UNSIGNED_INT_2_10_10_10_REV to specify signed or unsigned data, respectively. @@ -619,8 +619,8 @@ GL_INVALID_ENUM is generated if glVertexAttribP is used with a type other than - GL_INT_10_10_10_2 or - GL_UNSIGNED_INT_10_10_10_2. + GL_INT_2_10_10_10_REV or + GL_UNSIGNED_INT_2_10_10_10_REV. GL_INVALID_ENUM is generated if glVertexAttribL is used with a diff --git a/upstream-doc/man4/glVertexAttribDivisor.xml b/upstream-doc/man4/glVertexAttribDivisor.xml index 72ffc28..b808f42 100644 --- a/upstream-doc/man4/glVertexAttribDivisor.xml +++ b/upstream-doc/man4/glVertexAttribDivisor.xml @@ -54,7 +54,7 @@ is referred to as instanced if its GL_VERTEX_ATTRIB_ARRAY_DIVISOR value is non-zero. - index must be less than the value of GL_MAX_VERTEX_ATTRIBUTES. + index must be less than the value of GL_MAX_VERTEX_ATTRIBS. Notes @@ -65,7 +65,7 @@ Errors GL_INVALID_VALUE is generated if index is greater - than or equal to the value of GL_MAX_VERTEX_ATTRIBUTES. + than or equal to the value of GL_MAX_VERTEX_ATTRIBS. See Also diff --git a/upstream-doc/man4/xhtml/glBindBuffer.xml b/upstream-doc/man4/xhtml/glBindBuffer.xml index 1e97781..29b4c45 100644 --- a/upstream-doc/man4/xhtml/glBindBuffer.xml +++ b/upstream-doc/man4/xhtml/glBindBuffer.xml @@ -100,7 +100,7 @@ but will not directly affect transform feedback state. Instead, the indexed GL_TRANSFORM_FEEDBACK_BUFFER bindings must be used through a call to glBindBufferBase or glBindBufferRange. This will affect the generic - GL_TRANSFORM_FEEDABCK_BUFFER binding. + GL_TRANSFORM_FEEDBACK_BUFFER binding.

    Likewise, the GL_UNIFORM_BUFFER, GL_ATOMIC_COUNTER_BUFFER and GL_SHADER_STORAGE_BUFFER buffer binding points may diff --git a/upstream-doc/man4/xhtml/glBindFragDataLocationIndexed.xml b/upstream-doc/man4/xhtml/glBindFragDataLocationIndexed.xml index a5ab252..737de0e 100644 --- a/upstream-doc/man4/xhtml/glBindFragDataLocationIndexed.xml +++ b/upstream-doc/man4/xhtml/glBindFragDataLocationIndexed.xml @@ -40,7 +40,7 @@

    Errors

    GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DRAW_BUFFERS.

    - GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DUAL_SOURCE_DRAW_BUFERS + GL_INVALID_VALUE is generated if colorNumber is greater than or equal to GL_MAX_DUAL_SOURCE_DRAW_BUFFERS and index is greater than or equal to one.

    GL_INVALID_VALUE is generated if index is greater than one. diff --git a/upstream-doc/man4/xhtml/glBindSampler.xml b/upstream-doc/man4/xhtml/glBindSampler.xml index 27855eb..fed4be0 100644 --- a/upstream-doc/man4/xhtml/glBindSampler.xml +++ b/upstream-doc/man4/xhtml/glBindSampler.xml @@ -19,7 +19,7 @@ glBindSampler is available only if the GL version is 3.3 or higher.

    Errors

    GL_INVALID_VALUE is generated if unit is greater than or equal to the value of - GL_MAX_COMBIED_TEXTURE_IMAGE_UNITS. + GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS.

    GL_INVALID_OPERATION is generated if sampler is not zero or a name previously returned from a call to glGenSamplers, or if such a name has diff --git a/upstream-doc/man4/xhtml/glBlendFunc.xml b/upstream-doc/man4/xhtml/glBlendFunc.xml index c14f921..f322f95 100644 --- a/upstream-doc/man4/xhtml/glBlendFunc.xml +++ b/upstream-doc/man4/xhtml/glBlendFunc.xml @@ -1265,9 +1265,13 @@ GL_INVALID_VALUE is generated by glBlendFunci if buf is greater than or equal to the value of GL_MAX_DRAW_BUFFERS.

    Associated Gets

    - glGet with argument GL_BLEND_SRC + glGet with argument GL_BLEND_SRC_RGB

    - glGet with argument GL_BLEND_DST + glGet with argument GL_BLEND_SRC_ALPHA +

    + glGet with argument GL_BLEND_DST_RGB +

    + glGet with argument GL_BLEND_DST_ALPHA

    glIsEnabled with argument GL_BLEND

    diff --git a/upstream-doc/man4/xhtml/glCheckFramebufferStatus.xml b/upstream-doc/man4/xhtml/glCheckFramebufferStatus.xml index a7d244c..84dedca 100644 --- a/upstream-doc/man4/xhtml/glCheckFramebufferStatus.xml +++ b/upstream-doc/man4/xhtml/glCheckFramebufferStatus.xml @@ -18,7 +18,7 @@ GL_FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT is returned if the framebuffer does not have at least one image attached to it.

  • GL_FRAMEBUFFER_INCOMPLETE_DRAW_BUFFER is returned if the value of GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE - is GL_NONE for any color attachment point(s) named by GL_DRAWBUFFERi. + is GL_NONE for any color attachment point(s) named by GL_DRAW_BUFFERi.

  • GL_FRAMEBUFFER_INCOMPLETE_READ_BUFFER is returned if GL_READ_BUFFER is not GL_NONE and the value of GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is GL_NONE for the color attachment point named diff --git a/upstream-doc/man4/xhtml/glClearBuffer.xml b/upstream-doc/man4/xhtml/glClearBuffer.xml index b3b7cc5..329c81d 100644 --- a/upstream-doc/man4/xhtml/glClearBuffer.xml +++ b/upstream-doc/man4/xhtml/glClearBuffer.xml @@ -15,7 +15,7 @@ The value to clear a stencil render buffer to.

  • Description

    glClearBuffer* clears the specified buffer to the specified value(s). If buffer is - GL_COLOR, a particular draw buffer GL_DRAWBUFFERi is specified + GL_COLOR, a particular draw buffer GL_DRAW_BUFFERi is specified by passing i as drawBuffer. In this case, value points to a four-element vector specifying the R, G, B and A color to clear that draw buffer to. If buffer is one of GL_FRONT, GL_BACK, GL_LEFT, GL_RIGHT, diff --git a/upstream-doc/man4/xhtml/glCompressedTexImage2D.xml b/upstream-doc/man4/xhtml/glCompressedTexImage2D.xml index eb87bca..fe1bdaf 100644 --- a/upstream-doc/man4/xhtml/glCompressedTexImage2D.xml +++ b/upstream-doc/man4/xhtml/glCompressedTexImage2D.xml @@ -43,7 +43,7 @@ is treated as an array of compressed 1D textures.

    If target is GL_PROXY_TEXTURE_2D, GL_PROXY_TEXTURE_1D_ARRAY - or GL_PROXY_CUBE_MAP, no data is read from data, but + or GL_PROXY_TEXTURE_CUBE_MAP, no data is read from data, but all of the texture image state is recalculated, checked for consistency, and checked against the implementation's capabilities. If the implementation cannot handle a texture of the requested texture size, it diff --git a/upstream-doc/man4/xhtml/glCopyTexImage1D.xml b/upstream-doc/man4/xhtml/glCopyTexImage1D.xml index 3ef2ab3..8d4d9a7 100644 --- a/upstream-doc/man4/xhtml/glCopyTexImage1D.xml +++ b/upstream-doc/man4/xhtml/glCopyTexImage1D.xml @@ -48,29 +48,9 @@ of the row of pixels to be copied.

    width

    Specifies the width of the texture image. - Must be 0 or - - - - 2 - n - - + - - 2 - ⁡ - - border - - - - - for some integer - n. The height of the texture image is 1.

    border

    - Specifies the width of the border. - Must be either 0 or 1. + Must be 0.

    Description

    glCopyTexImage1D defines a one-dimensional texture image with pixels from the current GL_READ_BUFFER. @@ -85,18 +65,7 @@ and with a length of - - - width - + - - 2 - ⁡ - - border - - - + width defines the texture array at the mipmap level specified by level. @@ -159,26 +128,7 @@ GL_INVALID_VALUE is generated if width is less than 0 or greater than GL_MAX_TEXTURE_SIZE.

    - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width cannot be represented as - - - - 2 - n - - + - - 2 - ⁡ - - border - - - - - for some integer value of n. -

    - GL_INVALID_VALUE is generated if border is not 0 or 1. + GL_INVALID_VALUE is generated if border is not 0.

    GL_INVALID_OPERATION is generated if internalformat is GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, @@ -198,7 +148,9 @@ glTexParameter

    Copyright

    Copyright © 1991-2006 - Silicon Graphics, Inc. This document is licensed under the SGI + Silicon Graphics, Inc. + Copyright © 2012-2013 Khronos Group. + This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.

    diff --git a/upstream-doc/man4/xhtml/glCopyTexImage2D.xml b/upstream-doc/man4/xhtml/glCopyTexImage2D.xml index 32476be..72fb68f 100644 --- a/upstream-doc/man4/xhtml/glCopyTexImage2D.xml +++ b/upstream-doc/man4/xhtml/glCopyTexImage2D.xml @@ -54,49 +54,10 @@ of the rectangular region of pixels to be copied.

    width

    Specifies the width of the texture image. - Must be 0 or - - - - 2 - n - - + - - 2 - ⁡ - - border - - - - - for some integer - n.

    height

    Specifies the height of the texture image. - Must be 0 or - - - - 2 - m - - + - - 2 - ⁡ - - border - - - - - for some integer - m.

    border

    - Specifies the width of the border. - Must be either 0 or 1. + Must be 0.

    Description

    glCopyTexImage2D defines a two-dimensional texture image, or cube-map texture image with pixels from the current @@ -105,33 +66,11 @@ The screen-aligned pixel rectangle with lower left corner at (x, y) and with a width of - - - width - + - - 2 - ⁡ - - border - - - + width and a height of - - - height - + - - 2 - ⁡ - - border - - - + height defines the texture array at the mipmap level specified by level. @@ -202,27 +141,7 @@ or greater than GL_MAX_TEXTURE_SIZE.

    - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width or depth cannot be represented as - - - - 2 - k - - + - - 2 - ⁡ - - border - - - - - for some integer - k. -

    - GL_INVALID_VALUE is generated if border is not 0 or 1. + GL_INVALID_VALUE is generated if border is not 0.

    GL_INVALID_VALUE is generated if internalformat is not an accepted format. @@ -245,7 +164,9 @@ glTexParameter

    Copyright

    Copyright © 1991-2006 - Silicon Graphics, Inc. This document is licensed under the SGI + Silicon Graphics, Inc. + Copyright © 2012-2013 Khronos Group. + This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.

    diff --git a/upstream-doc/man4/xhtml/glCopyTexSubImage1D.xml b/upstream-doc/man4/xhtml/glCopyTexSubImage1D.xml index 942fb81..d5bbde3 100644 --- a/upstream-doc/man4/xhtml/glCopyTexSubImage1D.xml +++ b/upstream-doc/man4/xhtml/glCopyTexSubImage1D.xml @@ -58,8 +58,7 @@ GL_READ_BUFFER are outside the read window associated with the current rendering context, then the values obtained for those pixels are undefined.

    - No change is made to the internalformat, width, - or border parameters of the specified texture + No change is made to the internalformat or width parameters of the specified texture array or to texel values outside the specified subregion.

    Notes

    The glPixelStore mode affects texture images. @@ -96,10 +95,7 @@ xoffset < - - - - b - + 0 , or @@ -114,24 +110,13 @@ > - - - w - - - b - - + w , where w - is the GL_TEXTURE_WIDTH and - b - is the GL_TEXTURE_BORDER + is the GL_TEXTURE_WIDTH of the texture image being modified. - Note that - w - includes twice the border width.

    Associated Gets

    glGetTexImage @@ -151,7 +136,9 @@ glTexSubImage3D

    Copyright

    Copyright © 1991-2006 - Silicon Graphics, Inc. This document is licensed under the SGI + Silicon Graphics, Inc. + Copyright © 2012-2013 Khronos Group. + This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.

    diff --git a/upstream-doc/man4/xhtml/glCopyTexSubImage2D.xml b/upstream-doc/man4/xhtml/glCopyTexSubImage2D.xml index 09015be..793a3c5 100644 --- a/upstream-doc/man4/xhtml/glCopyTexSubImage2D.xml +++ b/upstream-doc/man4/xhtml/glCopyTexSubImage2D.xml @@ -94,8 +94,8 @@ GL_READ_BUFFER are outside the read window associated with the current rendering context, then the values obtained for those pixels are undefined.

    - No change is made to the internalformat, width, - height, or border parameters of the specified texture + No change is made to the internalformat, width, or + height, parameters of the specified texture array or to texel values outside the specified subregion.

    Notes

    glPixelStore modes affect texture images. @@ -141,10 +141,7 @@ xoffset < - - - - b - + 0 , @@ -158,13 +155,7 @@ > - - - w - - - b - - + w , @@ -172,10 +163,7 @@ yoffset < - - - - b - + 0 , or @@ -190,29 +178,15 @@ > - - - h - - - b - - + 0 , where w is the GL_TEXTURE_WIDTH, h - is the GL_TEXTURE_HEIGHT, - and - b - is the GL_TEXTURE_BORDER + is the GL_TEXTURE_HEIGHT and of the texture image being modified. - Note that - w - and - h - include twice the border width.

    Associated Gets

    glGetTexImage

    See Also

    @@ -231,7 +205,7 @@ glTexSubImage3D

    Copyright

    Copyright © 1991-2006 - Silicon Graphics, Inc. Copyright © 2012 Khronos Group. + Silicon Graphics, Inc. Copyright © 2012-2013 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/xhtml/glCopyTexSubImage3D.xml b/upstream-doc/man4/xhtml/glCopyTexSubImage3D.xml index 43ce622..a45d031 100644 --- a/upstream-doc/man4/xhtml/glCopyTexSubImage3D.xml +++ b/upstream-doc/man4/xhtml/glCopyTexSubImage3D.xml @@ -119,10 +119,7 @@ xoffset < - - - - b - + 0 , @@ -136,13 +133,7 @@ > - - - w - - - b - - + w , @@ -150,10 +141,7 @@ yoffset < - - - - b - + 0 , @@ -167,13 +155,7 @@ > - - - h - - - b - - + h , @@ -181,10 +163,7 @@ zoffset < - - - - b - + 0 , or @@ -199,13 +178,7 @@ > - - - d - - - b - - + d , where @@ -214,10 +187,7 @@ h is the GL_TEXTURE_HEIGHT, d - is the GL_TEXTURE_DEPTH, - and - b - is the GL_TEXTURE_BORDER + is the GL_TEXTURE_DEPTH and of the texture image being modified. Note that w, @@ -243,7 +213,9 @@ glTexSubImage3D

    Copyright

    Copyright © 1991-2006 - Silicon Graphics, Inc. This document is licensed under the SGI + Silicon Graphics, Inc. + Copyright © 2012-2013 Khronos Group. + This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/.

    diff --git a/upstream-doc/man4/xhtml/glDebugMessageControl.xml b/upstream-doc/man4/xhtml/glDebugMessageControl.xml index fa9b144..428ba44 100644 --- a/upstream-doc/man4/xhtml/glDebugMessageControl.xml +++ b/upstream-doc/man4/xhtml/glDebugMessageControl.xml @@ -27,13 +27,16 @@

    type may be one of GL_DEBUG_TYPE_ERROR, GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR, GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR, GL_DEBUG_TYPE_PORTABILITY, - GL_DEBUG_TYPE_PERFORMANCE, GL_DEBUG_TYPE_OTHER to indicate the type of messages describing - GL errors, attempted use of deprecated features, triggering of undefined behavior, portability issues, performance notifications and other - types of messages. It may also take the value GL_DONT_CARE. If type is not GL_DONT_CARE + GL_DEBUG_TYPE_PERFORMANCE, GL_DEBUG_TYPE_MARKER, GL_DEBUG_TYPE_PUSH_GROUP, + GL_DEBUG_TYPE_POP_GROUP, or GL_DEBUG_TYPE_OTHER to indicate the type of messages describing + GL errors, attempted use of deprecated features, triggering of undefined behavior, portability issues, performance notifications, markers, + group push and pop events, and other + types of messages, respectively. It may also take the value GL_DONT_CARE. If type is not GL_DONT_CARE then only messages whose type matches type will be referenced.

    severity may be one of GL_DEBUG_SEVERITY_LOW, GL_DEBUG_SEVERITY_MEDIUM, - or GL_DEBUG_SEVERITY_HIGH to select messages of low, medium or high severity messages. It may also take the + or GL_DEBUG_SEVERITY_HIGH to select messages of low, medium or high severity messages or to + GL_DEBUG_SEVERITY_NOTIFICATION for notifications. It may also take the value GL_DONT_CARE. If severity is not GL_DONT_CARE then only messages whose severity matches severity will be referenced.

    @@ -49,6 +52,9 @@ Although debug messages may be enabled in a non-debug context, the quantity and detail of such messages may be substantially inferior to those in a debug context. In particular, a valid implementation of the debug message queue in a non-debug context may produce no messages at all. +

    + GL_DEBUG_TYPE_MARKER, GL_DEBUG_TYPE_PUSH_GROUP, GL_DEBUG_TYPE_POP_GROUP, and GL_DEBUG_SEVERITY_NOTIFICATION + are available only if the GL version is 4.3 or higher.

    Errors

    GL_INVALID_VALUE is generated if count is negative.

    diff --git a/upstream-doc/man4/xhtml/glDebugMessageInsert.xml b/upstream-doc/man4/xhtml/glDebugMessageInsert.xml index 4f03472..21649cf 100644 --- a/upstream-doc/man4/xhtml/glDebugMessageInsert.xml +++ b/upstream-doc/man4/xhtml/glDebugMessageInsert.xml @@ -21,9 +21,9 @@ use by the GL implementation. type indicates the type of the message to be inserted and may be one of GL_DEBUG_TYPE_ERROR, GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR, GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR, GL_DEBUG_TYPE_PORTABILITY, - GL_DEBUG_TYPE_PERFORMANCE, or GL_DEBUG_TYPE_OTHER. + GL_DEBUG_TYPE_PERFORMANCE, GL_DEBUG_TYPE_MARKER, GL_DEBUG_TYPE_PUSH_GROUP, GL_DEBUG_TYPE_POP_GROUP, or GL_DEBUG_TYPE_OTHER. severity indicates the severity of the message and may be GL_DEBUG_SEVERITY_LOW, - GL_DEBUG_SEVERITY_MEDIUM, or GL_DEBUG_SEVERITY_HIGH. + GL_DEBUG_SEVERITY_MEDIUM, GL_DEBUG_SEVERITY_HIGH or GL_DEBUG_SEVERITY_NOTIFICATION. id is available for application defined use and may be any value. This value will be recorded and used to identify the message.

    @@ -32,6 +32,9 @@ is negative then message is treated as a null-terminated string. The length of the message, whether specified explicitly or implicitly, must be less than or equal to the implementation defined constant GL_MAX_DEBUG_MESSAGE_LENGTH. +

    Notes

    + GL_DEBUG_TYPE_MARKER, GL_DEBUG_TYPE_PUSH_GROUP, GL_DEBUG_TYPE_POP_GROUP, and GL_DEBUG_SEVERITY_NOTIFICATION + are available only if the GL version is 4.3 or higher.

    Errors

    GL_INVALID_ENUM is generated if any of source, type or severity is not one of the accepted interface types. diff --git a/upstream-doc/man4/xhtml/glDisableVertexAttribArray.xml b/upstream-doc/man4/xhtml/glDisableVertexAttribArray.xml index 7603fc7..ca0b5a8 100644 --- a/upstream-doc/man4/xhtml/glDisableVertexAttribArray.xml +++ b/upstream-doc/man4/xhtml/glDisableVertexAttribArray.xml @@ -4,7 +4,7 @@ - + glDisableVertexAttribArray diff --git a/upstream-doc/man4/xhtml/glDrawBuffers.xml b/upstream-doc/man4/xhtml/glDrawBuffers.xml index 1d9a883..98cd129 100644 --- a/upstream-doc/man4/xhtml/glDrawBuffers.xml +++ b/upstream-doc/man4/xhtml/glDrawBuffers.xml @@ -47,7 +47,7 @@ tokens.

    GL_INVALID_ENUM is generated if the GL is bound to a framebuffer object and one or more of the values in bufs is anything other than GL_NONE or one of the - GL_COLOR_ATTACHMENTSn tokens.

    GL_INVALID_ENUM is generated if + GL_COLOR_ATTACHMENTn tokens.

    GL_INVALID_ENUM is generated if n is less than 0.

    GL_INVALID_OPERATION is generated if a symbolic constant other than GL_NONE appears more than once in bufs.

    GL_INVALID_OPERATION is generated if any of diff --git a/upstream-doc/man4/xhtml/glEndConditionalRender.xml b/upstream-doc/man4/xhtml/glEndConditionalRender.xml index 673961a..a9fe0f2 100644 --- a/upstream-doc/man4/xhtml/glEndConditionalRender.xml +++ b/upstream-doc/man4/xhtml/glEndConditionalRender.xml @@ -4,7 +4,7 @@ - + glEndConditionalRender diff --git a/upstream-doc/man4/xhtml/glEndQuery.xml b/upstream-doc/man4/xhtml/glEndQuery.xml index 1a05fc0..e413ff8 100644 --- a/upstream-doc/man4/xhtml/glEndQuery.xml +++ b/upstream-doc/man4/xhtml/glEndQuery.xml @@ -4,7 +4,7 @@ - + glEndQuery diff --git a/upstream-doc/man4/xhtml/glEndTransformFeedback.xml b/upstream-doc/man4/xhtml/glEndTransformFeedback.xml index d3c1764..bc363ff 100644 --- a/upstream-doc/man4/xhtml/glEndTransformFeedback.xml +++ b/upstream-doc/man4/xhtml/glEndTransformFeedback.xml @@ -4,7 +4,7 @@ - + glEndTransformFeedback diff --git a/upstream-doc/man4/xhtml/glFlushMappedBufferRange.xml b/upstream-doc/man4/xhtml/glFlushMappedBufferRange.xml index ac459e6..4274b1f 100644 --- a/upstream-doc/man4/xhtml/glFlushMappedBufferRange.xml +++ b/upstream-doc/man4/xhtml/glFlushMappedBufferRange.xml @@ -12,7 +12,7 @@ Specifies the length of the buffer subrange, in basic machine units.

    Description

    glFlushMappedBufferRange indicates that modifications have been made to a range of a mapped buffer. - The buffer must previously have been mapped with the GL_MAP_FLUSH_EXPLICIT flag. offset + The buffer must previously have been mapped with the GL_MAP_FLUSH_EXPLICIT_BIT flag. offset and length indicate the modified subrange of the mapping, in basic units. The specified subrange to flush is relative to the start of the currently mapped range of the buffer. glFlushMappedBufferRange may be called multiple times to indicate distinct subranges of the mapping which require flushing. @@ -23,7 +23,7 @@ GL_INVALID_OPERATION is generated if zero is bound to target.

    GL_INVALID_OPERATION is generated if the buffer bound to target is not - mapped, or is mapped without the GL_MAP_FLUSH_EXPLICIT flag. + mapped, or is mapped without the GL_MAP_FLUSH_EXPLICIT_BIT flag.

    See Also

    glMapBufferRange, glMapBuffer, diff --git a/upstream-doc/man4/xhtml/glFramebufferTexture.xml b/upstream-doc/man4/xhtml/glFramebufferTexture.xml index 02ab3b2..13387fb 100644 --- a/upstream-doc/man4/xhtml/glFramebufferTexture.xml +++ b/upstream-doc/man4/xhtml/glFramebufferTexture.xml @@ -8,7 +8,7 @@

    attachment

    Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, - GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. + GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT.

    textarget

    For glFramebufferTexture1D, glFramebufferTexture2D and glFramebufferTexture3D, specifies what type of texture is expected @@ -26,7 +26,7 @@

    attachment specifies the logical attachment of the framebuffer and must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, - GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. + GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT. i in GL_COLOR_ATTACHMENTi may range from zero to the value of GL_MAX_COLOR_ATTACHMENTS - 1. Attaching a level of a texture to GL_DEPTH_STENCIL_ATTACHMENT is equivalent to attaching that level to both the diff --git a/upstream-doc/man4/xhtml/glFramebufferTextureLayer.xml b/upstream-doc/man4/xhtml/glFramebufferTextureLayer.xml index 5e001dd..655898e 100644 --- a/upstream-doc/man4/xhtml/glFramebufferTextureLayer.xml +++ b/upstream-doc/man4/xhtml/glFramebufferTextureLayer.xml @@ -8,7 +8,7 @@

    attachment

    Specifies the attachment point of the framebuffer. attachment must be GL_COLOR_ATTACHMENTi, GL_DEPTH_ATTACHMENT, - GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMMENT. + GL_STENCIL_ATTACHMENT or GL_DEPTH_STENCIL_ATTACHMENT.

    texture

    Specifies the texture object to attach to the framebuffer attachment point named by attachment.

    level

    diff --git a/upstream-doc/man4/xhtml/glGet.xml b/upstream-doc/man4/xhtml/glGet.xml index e992d92..32348cf 100644 --- a/upstream-doc/man4/xhtml/glGet.xml +++ b/upstream-doc/man4/xhtml/glGet.xml @@ -355,17 +355,6 @@ selection is always taken from the last vertex in the primitive. If the value returned is equivalent to GL_UNDEFINED_VERTEX, then the selection is not guaranteed to be taken from any specific vertex in the primitive. -

    GL_LINE_WIDTH_GRANULARITY

    -

    - params returns one value, - the width difference between adjacent supported widths for antialiased lines. - See glLineWidth. -

    GL_LINE_WIDTH_RANGE

    -

    - params returns two values: - the smallest and largest supported widths for antialiased - lines. - See glLineWidth.

    GL_LOGIC_OP_MODE

    params returns one value, @@ -448,7 +437,7 @@ of simultaneous outputs that may be written in a fragment shader. The value must be at least 8. See glDrawBuffers. -

    GL_MAX_DUALSOURCE_DRAW_BUFFERS

    +

    GL_MAX_DUAL_SOURCE_DRAW_BUFFERS

    params returns one value, the maximum number of active draw buffers when using dual-source blending. The value must be at least 1. @@ -574,7 +563,7 @@ params returns one value. The value gives a rough estimate of the largest rectangular texture that the GL can handle. The value must be at least 1024. - Use GL_PROXY_RECTANGLE_TEXTURE + Use GL_PROXY_TEXTURE_RECTANGLE to determine if a texture is too large. See glTexImage2D.

    GL_MAX_RENDERBUFFER_SIZE

    @@ -816,6 +805,14 @@ params a single value, the name of the currently bound program pipeline object, or zero if no program pipeline object is bound. See glBindProgramPipeline. +

    GL_PROGRAM_POINT_SIZE

    +

    + params returns a single boolean value indicating whether vertex + program point size mode is enabled. If enabled, then the + point size is taken from the shader built-in gl_PointSize. If disabled, + then the point size is taken from the point state as specified + by glPointSize. + The initial value is GL_FALSE.

    GL_PROVOKING_VERTEX

    params returns one value, @@ -1162,7 +1159,7 @@

    params returns a single value indicating the mode of the texture compression hint. The initial value is GL_DONT_CARE. -

    GL_TEXTURE_BUFFER_BINDING

    +

    GL_TEXTURE_BINDING_BUFFER

    params returns a single value, the name of the buffer object currently bound to the GL_TEXTURE_BUFFER buffer binding point. The initial value is 0. @@ -1276,14 +1273,6 @@ two-byte and four-byte pixel indices and components are swapped after being read from memory. The initial value is GL_FALSE. See glPixelStore. -

    GL_VERTEX_PROGRAM_POINT_SIZE

    -

    - params returns a single boolean value indicating whether vertex - program point size mode is enabled. If enabled, and a vertex shader is active, then the - point size is taken from the shader built-in gl_PointSize. If disabled, - and a vertex shader is active, then the point size is taken from the point state as specified - by glPointSize. - The initial value is GL_FALSE.

    GL_VERTEX_BINDING_DIVISOR

    Accepted by the indexed forms. params returns a single integer value representing the instance step diff --git a/upstream-doc/man4/xhtml/glGetActiveAttrib.xml b/upstream-doc/man4/xhtml/glGetActiveAttrib.xml index 782f3f2..d3444c4 100644 --- a/upstream-doc/man4/xhtml/glGetActiveAttrib.xml +++ b/upstream-doc/man4/xhtml/glGetActiveAttrib.xml @@ -76,7 +76,7 @@ GL_INT_VEC2, GL_INT_VEC3, GL_INT_VEC4, - GL_UNSIGNED_INT_VEC, + GL_UNSIGNED_INT, GL_UNSIGNED_INT_VEC2, GL_UNSIGNED_INT_VEC3, GL_UNSIGNED_INT_VEC4, diff --git a/upstream-doc/man4/xhtml/glGetActiveUniform.xml b/upstream-doc/man4/xhtml/glGetActiveUniform.xml index 1c99cd9..a10df64 100644 --- a/upstream-doc/man4/xhtml/glGetActiveUniform.xml +++ b/upstream-doc/man4/xhtml/glGetActiveUniform.xml @@ -574,8 +574,9 @@ bufSize is less than 0.

    Associated Gets

    glGet with argument GL_MAX_VERTEX_UNIFORM_COMPONENTS, GL_MAX_GEOMETRY_UNIFORM_COMPONENTS, - GL_MAX_FRAGMENT_UNIFORM_COMPONENTS, or - GL_MAX_COMBINED_UNIFORM_COMPONENTS.

    glGetProgram + GL_MAX_TESS_CONTROL_UNIFORM_COMPONENTS, + GL_MAX_TESS_EVALUATION_UNIFORM_COMPONENTS, + GL_MAX_FRAGMENT_UNIFORM_COMPONENTS.

    glGetProgram with argument GL_ACTIVE_UNIFORMS or GL_ACTIVE_UNIFORM_MAX_LENGTH.

    glIsProgram

    See Also

    glGetUniform, glGetUniformLocation, diff --git a/upstream-doc/man4/xhtml/glGetActiveUniformBlock.xml b/upstream-doc/man4/xhtml/glGetActiveUniformBlock.xml index 47ab011..7df8625 100644 --- a/upstream-doc/man4/xhtml/glGetActiveUniformBlock.xml +++ b/upstream-doc/man4/xhtml/glGetActiveUniformBlock.xml @@ -1,7 +1,7 @@ -glGetActiveUniformBlock - OpenGL 4 Reference Pages

    Name

    glGetActiveUniformBlock — query information about an active uniform block

    C Specification

    void glGetActiveUniformBlockiv(GLuint  program,
     GLuint  uniformBlockIndex,
     GLenum  pname,
     GLint  params);

    Parameters

    program

    +glGetActiveUniformBlock - OpenGL 4 Reference Pages

    Name

    glGetActiveUniformBlock — query information about an active uniform block

    C Specification

    void glGetActiveUniformBlockiv(GLuint  program,
     GLuint  uniformBlockIndex,
     GLenum  pname,
     GLint * params);

    Parameters

    program

    Specifies the name of a program containing the uniform block.

    uniformBlockIndex

    Specifies the index of the uniform block within program. @@ -68,7 +68,7 @@ glGetUniformBlockIndex, glLinkProgram

    Copyright

    - Copyright © 2010 Khronos Group. + Copyright © 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man4/xhtml/glGetBufferParameter.xml b/upstream-doc/man4/xhtml/glGetBufferParameter.xml index 24afadc..080369c 100644 --- a/upstream-doc/man4/xhtml/glGetBufferParameter.xml +++ b/upstream-doc/man4/xhtml/glGetBufferParameter.xml @@ -59,6 +59,7 @@ glUnmapBuffer

    Copyright

    Copyright © 2005 Addison-Wesley. + Copyright © 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man4/xhtml/glGetFramebufferAttachmentParameter.xml b/upstream-doc/man4/xhtml/glGetFramebufferAttachmentParameter.xml index 2aa2814..8d10cc4 100644 --- a/upstream-doc/man4/xhtml/glGetFramebufferAttachmentParameter.xml +++ b/upstream-doc/man4/xhtml/glGetFramebufferAttachmentParameter.xml @@ -10,7 +10,7 @@

    params

    Specifies the address of a variable receive the value of pname for attachment.

    Description

    - glGetFramebufferAttachmentParameter returns information about attachments of a bound framebuffer + glGetFramebufferAttachmentParameteriv returns information about attachments of a bound framebuffer object. target specifies the framebuffer binding point and must be GL_DRAW_FRAMEBUFFER, GL_READ_FRAMEBUFFER or GL_FRAMEBUFFER. GL_FRAMEBUFFER is equivalent to GL_DRAW_FRAMEBUFFER. @@ -107,7 +107,7 @@ glGenFramebuffers, glBindFramebuffer

    Copyright

    - Copyright © 2010 Khronos Group. + Copyright © 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man4/xhtml/glGetTexLevelParameter.xml b/upstream-doc/man4/xhtml/glGetTexLevelParameter.xml index 894e998..b26d741 100644 --- a/upstream-doc/man4/xhtml/glGetTexLevelParameter.xml +++ b/upstream-doc/man4/xhtml/glGetTexLevelParameter.xml @@ -42,7 +42,6 @@ GL_TEXTURE_HEIGHT, GL_TEXTURE_DEPTH, GL_TEXTURE_INTERNAL_FORMAT, - GL_TEXTURE_BORDER, GL_TEXTURE_RED_SIZE, GL_TEXTURE_GREEN_SIZE, GL_TEXTURE_BLUE_SIZE, @@ -74,8 +73,8 @@ GL_MAX_TEXTURE_SIZE, and GL_MAX_3D_TEXTURE_SIZE are not really descriptive enough. It has to report the largest square texture image that can be - accommodated with mipmaps and borders, - but a long skinny texture, or a texture without mipmaps and borders, may + accommodated with mipmaps + but a long skinny texture, or a texture without mipmaps may easily fit in texture memory. The proxy targets allow the user to more accurately query whether the GL can accommodate a texture of a given configuration. @@ -92,20 +91,17 @@

    params returns a single value, the width of the texture image. - This value includes the border of the texture image. The initial value is - 0. + The initial value is 0.

    GL_TEXTURE_HEIGHT

    params returns a single value, the height of the texture image. - This value includes the border of the texture image. The initial value is - 0. + The initial value is 0.

    GL_TEXTURE_DEPTH

    params returns a single value, the depth of the texture image. - This value includes the border of the texture image. The initial value is - 0. + The initial value is 0.

    GL_TEXTURE_INTERNAL_FORMAT

    params returns a single value, @@ -192,7 +188,7 @@ glTexParameter

    Copyright

    Copyright © 1991-2006 - Silicon Graphics, Inc. Copyright © 2010-2012 + Silicon Graphics, Inc. Copyright © 2010-2013 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/xhtml/glGetTransformFeedbackVarying.xml b/upstream-doc/man4/xhtml/glGetTransformFeedbackVarying.xml index 96c1dbb..543f97f 100644 --- a/upstream-doc/man4/xhtml/glGetTransformFeedbackVarying.xml +++ b/upstream-doc/man4/xhtml/glGetTransformFeedbackVarying.xml @@ -1,7 +1,7 @@ -glGetTransformFeedbackVarying - OpenGL 4 Reference Pages

    Name

    glGetTransformFeedbackVarying — retrieve information about varying variables selected for transform feedback

    C Specification

    void glGetTransformFeedbackVarying(GLuint program,
     GLuint index,
     GLsizei bufSize,
     GLsizei * length,
     GLsizei size,
     GLenum * type,
     char * name);

    Parameters

    program

    +glGetTransformFeedbackVarying - OpenGL 4 Reference Pages

    Name

    glGetTransformFeedbackVarying — retrieve information about varying variables selected for transform feedback

    C Specification

    void glGetTransformFeedbackVarying(GLuint program,
     GLuint index,
     GLsizei bufSize,
     GLsizei * length,
     GLsizei * size,
     GLenum * type,
     char * name);

    Parameters

    program

    The name of the target program object.

    index

    The index of the varying variable whose information to retrieve. @@ -23,7 +23,7 @@ variable selected by index. An index of 0 selects the first varying variable specified in the varyings array passed to glTransformFeedbackVaryings, and - an index of GL_TRANSFORM_FEEDBACK_VARYINGS-1 selects + an index of GL_TRANSFORM_FEEDBACK_VARYINGS - 1 selects the last such variable.

    The name of the selected varying is returned as a null-terminated string in @@ -60,7 +60,7 @@ glTransformFeedbackVaryings, glGetProgram

    Copyright

    - Copyright © 2010 Khronos Group. + Copyright © 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man4/xhtml/glIsEnabled.xml b/upstream-doc/man4/xhtml/glIsEnabled.xml index d76b435..ac22fd2 100644 --- a/upstream-doc/man4/xhtml/glIsEnabled.xml +++ b/upstream-doc/man4/xhtml/glIsEnabled.xml @@ -116,7 +116,7 @@ glStencilFunc, glStencilOp - GL_TEXTURE_CUBEMAP_SEAMLESS + GL_TEXTURE_CUBE_MAP_SEAMLESS glEnable

    diff --git a/upstream-doc/man4/xhtml/glLinkProgram.xml b/upstream-doc/man4/xhtml/glLinkProgram.xml index b146b9e..dc3bba3 100644 --- a/upstream-doc/man4/xhtml/glLinkProgram.xml +++ b/upstream-doc/man4/xhtml/glLinkProgram.xml @@ -63,7 +63,7 @@ glTransformFeedbackVaryings specify the same varying variable.

  • The total number of components to capture in any transform feedback varying variable is greater than the constant GL_MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS - and the buffer mode is SEPARATE_ATTRIBS.

  • When a program object has been successfully linked, the + and the buffer mode is GL_SEPARATE_ATTRIBS.

    When a program object has been successfully linked, the program object can be made part of current state by calling glUseProgram. Whether or not the link operation was successful, the program diff --git a/upstream-doc/man4/xhtml/glPointSize.xml b/upstream-doc/man4/xhtml/glPointSize.xml index 99b49ff..403b280 100644 --- a/upstream-doc/man4/xhtml/glPointSize.xml +++ b/upstream-doc/man4/xhtml/glPointSize.xml @@ -20,10 +20,6 @@ glGet with argument GL_POINT_SIZE_GRANULARITY

    glGet with argument GL_POINT_SIZE -

    - glGet with argument GL_POINT_SIZE_MIN -

    - glGet with argument GL_POINT_SIZE_MAX

    glGet with argument GL_POINT_FADE_THRESHOLD_SIZE

    diff --git a/upstream-doc/man4/xhtml/glReadPixels.xml b/upstream-doc/man4/xhtml/glReadPixels.xml index 228fc6e..a760a3f 100644 --- a/upstream-doc/man4/xhtml/glReadPixels.xml +++ b/upstream-doc/man4/xhtml/glReadPixels.xml @@ -116,18 +116,11 @@ accepted values are:

    GL_STENCIL_INDEX

    Stencil values are read from the stencil buffer. - Each index is converted to fixed point, - shifted left or right depending on the value and sign of GL_INDEX_SHIFT, - and added to GL_INDEX_OFFSET. - If GL_MAP_STENCIL is GL_TRUE, - indices are replaced by their mappings in the table GL_PIXEL_MAP_S_TO_S.

    GL_DEPTH_COMPONENT

    Depth values are read from the depth buffer. Each component is converted to floating point such that the minimum depth value maps to 0 and the maximum value maps to 1. - Each component is then multiplied by GL_DEPTH_SCALE, - added to GL_DEPTH_BIAS, - and finally clamped to the range + Each component is clamped to the range @@ -879,8 +872,6 @@ is non-zero, the read framebuffer is complete, and the value of GL_SAMPLE_BUFFERS for the read framebuffer is greater than zero.

    Associated Gets

    - glGet with argument GL_INDEX_MODE -

    glGet with argument GL_PIXEL_PACK_BUFFER_BINDING

    See Also

    glPixelStore, diff --git a/upstream-doc/man4/xhtml/glTexBuffer.xml b/upstream-doc/man4/xhtml/glTexBuffer.xml index 90221d9..917b5cd 100644 --- a/upstream-doc/man4/xhtml/glTexBuffer.xml +++ b/upstream-doc/man4/xhtml/glTexBuffer.xml @@ -1,7 +1,7 @@ -glTexBuffer - OpenGL 4 Reference Pages

    Name

    glTexBuffer — attach the storage for a buffer object to the active buffer texture

    C Specification

    void glTexBuffer(GLenum  target,
     GLenum  internalFormat,
     Gluint buffer);

    Parameters

    target

    +glTexBuffer - OpenGL 4 Reference Pages

    Name

    glTexBuffer — attach the storage for a buffer object to the active buffer texture

    C Specification

    void glTexBuffer(GLenum  target,
     GLenum  internalFormat,
     GLuint  buffer);

    Parameters

    target

    Specifies the target of the operation and must be GL_TEXTURE_BUFFER.

    internalFormat

    Specifies the internal format of the data in the store belonging to buffer. @@ -54,7 +54,7 @@ glBindTexture, glDeleteTextures

    Copyright

    - Copyright © 2010 Khronos Group. + Copyright © 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man4/xhtml/glTexImage1D.xml b/upstream-doc/man4/xhtml/glTexImage1D.xml index 53255ab..0eefd15 100644 --- a/upstream-doc/man4/xhtml/glTexImage1D.xml +++ b/upstream-doc/man4/xhtml/glTexImage1D.xml @@ -109,33 +109,23 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RG

    Each element is a single red/green double The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RGB
    GL_BGR

    Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RGBA
    GL_BGRA

    Each element contains all four components. - Each component is multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component clamped to the range [0,1].

    GL_DEPTH_COMPONENT

    Each element is a single depth value. - The GL converts it to floating point, multiplies by the signed scale factor - GL_DEPTH_SCALE, adds the signed bias GL_DEPTH_BIAS, - and clamps to the range [0,1]. + The GL converts it to floating point and clamps to the range [0,1].

    If an application wants to store the texture at a certain resolution or in a certain format, it can request the resolution @@ -148,7 +138,7 @@ internalFormat may be one of the base internal formats shown in Table 1, below

    -

    Table 1. Base Internal Formats

    +

    Table 1. Base Internal Formats

    Base Internal Format RGBA, Depth and Stencil Values @@ -159,7 +149,7 @@ internalFormat may also be one of the sized internal formats shown in Table 2, below

    -

    Table 2. Sized Internal Formats

    +

    Table 2. Sized Internal Formats

    Sized Internal Format Base Internal Format @@ -178,7 +168,7 @@ Finally, internalFormat may also be one of the generic or compressed compressed texture formats shown in Table 3 below

    -

    Table 3. Compressed Internal Formats

    +

    Table 3. Compressed Internal Formats

    Compressed Internal Format Base Internal Format @@ -349,26 +339,7 @@ GL_INVALID_VALUE is generated if width is less than 0 or greater than GL_MAX_TEXTURE_SIZE.

    - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width cannot be represented as - - - - 2 - n - - + - - 2 - ⁡ - - border - - - - - for some integer value of n. -

    - GL_INVALID_VALUE is generated if border is not 0 or 1. + GL_INVALID_VALUE is generated if border is not 0.

    GL_INVALID_OPERATION is generated if type is one of GL_UNSIGNED_BYTE_3_3_2, @@ -428,7 +399,7 @@ glTexParameter

    Copyright

    Copyright © 1991-2006 Silicon Graphics, Inc. - Copyright © 2011 Khronos Group. + Copyright © 2011-2013 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/xhtml/glTexImage2D.xml b/upstream-doc/man4/xhtml/glTexImage2D.xml index 6729629..c9e445a 100644 --- a/upstream-doc/man4/xhtml/glTexImage2D.xml +++ b/upstream-doc/man4/xhtml/glTexImage2D.xml @@ -121,33 +121,23 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RG

    Each element is a red/green double. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RGB
    GL_BGR

    Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RGBA
    GL_BGRA

    Each element contains all four components. - Each component is multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_DEPTH_COMPONENT

    Each element is a single depth value. - The GL converts it to floating point, multiplies by the signed scale factor - GL_DEPTH_SCALE, adds the signed bias GL_DEPTH_BIAS, - and clamps to the range [0,1]. + The GL converts it to floating point and clamps to the range [0,1].

    GL_DEPTH_STENCIL

    Each element is a pair of depth and stencil values. The depth component of the pair is interpreted as in GL_DEPTH_COMPONENT. The stencil @@ -165,7 +155,7 @@ internalFormat may be one of the base internal formats shown in Table 1, below

    -

    Table 1. Base Internal Formats

    +

    Table 1. Base Internal Formats

    Base Internal Format RGBA, Depth and Stencil Values @@ -176,7 +166,7 @@ internalFormat may also be one of the sized internal formats shown in Table 2, below

    -

    Table 2. Sized Internal Formats

    +

    Table 2. Sized Internal Formats

    Sized Internal Format Base Internal Format @@ -195,7 +185,7 @@ Finally, internalFormat may also be one of the generic or compressed compressed texture formats shown in Table 3 below

    -

    Table 3. Compressed Internal Formats

    +

    Table 3. Compressed Internal Formats

    Compressed Internal Format Base Internal Format @@ -389,26 +379,6 @@

    GL_INVALID_VALUE is generated if width or height is less than 0 or greater than GL_MAX_TEXTURE_SIZE. -

    - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width or height cannot be represented as - - - - 2 - k - - + - - 2 - ⁡ - - border - - - - - for some - integer value of k.

    GL_INVALID_VALUE is generated if border is not 0.

    @@ -482,7 +452,7 @@ glTexParameter

    Copyright

    Copyright © 1991-2006 Silicon Graphics, Inc. - Copyright © 2011 Khronos Group. + Copyright © 2011-2013 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/xhtml/glTexImage2DMultisample.xml b/upstream-doc/man4/xhtml/glTexImage2DMultisample.xml index 23456a4..75e9128 100644 --- a/upstream-doc/man4/xhtml/glTexImage2DMultisample.xml +++ b/upstream-doc/man4/xhtml/glTexImage2DMultisample.xml @@ -49,7 +49,7 @@ glTexImage3D, glTexImage2DMultisample

    Copyright

    - Copyright © 2010 Khronos Group. + Copyright © 2010-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/man4/xhtml/glTexImage3D.xml b/upstream-doc/man4/xhtml/glTexImage3D.xml index 63841ac..aaf50f0 100644 --- a/upstream-doc/man4/xhtml/glTexImage3D.xml +++ b/upstream-doc/man4/xhtml/glTexImage3D.xml @@ -131,28 +131,20 @@ Each element is a single red component. The GL converts it to floating point and assembles it into an RGBA element by attaching 0 for green and blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RG

    Each element is a red and green pair. The GL converts each to floating point and assembles it into an RGBA element by attaching 0 for blue, and 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RGB
    GL_BGR

    Each element is an RGB triple. The GL converts it to floating point and assembles it into an RGBA element by attaching 1 for alpha. - Each component is then multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    GL_RGBA
    GL_BGRA

    Each element contains all four components. - Each component is multiplied by the signed scale factor GL_c_SCALE, - added to the signed bias GL_c_BIAS, - and clamped to the range [0,1]. + Each component is clamped to the range [0,1].

    If an application wants to store the texture at a certain resolution or in a certain format, it can request the resolution @@ -165,7 +157,7 @@ internalFormat may be one of the base internal formats shown in Table 1, below

    -

    Table 1. Base Internal Formats

    +

    Table 1. Base Internal Formats

    Base Internal Format RGBA, Depth and Stencil Values @@ -176,7 +168,7 @@ internalFormat may also be one of the sized internal formats shown in Table 2, below

    -

    Table 2. Sized Internal Formats

    +

    Table 2. Sized Internal Formats

    Sized Internal Format Base Internal Format @@ -195,7 +187,7 @@ Finally, internalFormat may also be one of the generic or compressed compressed texture formats shown in Table 3 below

    -

    Table 3. Compressed Internal Formats

    +

    Table 3. Compressed Internal Formats

    #FUNCTABLEHEADER# - fma (genType)#newin11# + fma (genType)#newin40# fma (genDType)#newin40# @@ -99,7 +99,7 @@ Copyright - Copyright 2011 Khronos Group. + Copyright 2011-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/manglsl/gl_PointSize.xml b/upstream-doc/manglsl/gl_PointSize.xml index 301e2ed..7519931 100644 --- a/upstream-doc/manglsl/gl_PointSize.xml +++ b/upstream-doc/manglsl/gl_PointSize.xml @@ -5,7 +5,7 @@ - 2011 + 2013 Khronos Group @@ -31,7 +31,7 @@ Description - In the vertex, tessellation evaluation and geoemtry languages, a single + In the vertex, tessellation evaluation and geometry languages, a single global instance of the gl_PerVertex named block is available and its gl_PointSize member is an output that receives the intended size of the point to be rasterized, in pixels. It may be written at any time @@ -55,7 +55,7 @@ (or hasn't written it at all). - In the tessellation control, tessellation evaluation and geoemetry languages, + In the tessellation control, tessellation evaluation and geometry languages, the gl_PerVertex named block is used to construct an array, gl_in[] of per-vertex or per-control point inputs whose content represents the corresponding outputs written by the previous stage. @@ -72,6 +72,9 @@ gl_PointSize (geometry shader)#newin15# + + gl_PointSize (tessellation evaluation shader)#newin40# + @@ -83,7 +86,7 @@ Copyright - Copyright 2011 Khronos Group. + Copyright 2011-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/manglsl/gl_PrimitiveID.xml b/upstream-doc/manglsl/gl_PrimitiveID.xml index 76a727e..4e47492 100644 --- a/upstream-doc/manglsl/gl_PrimitiveID.xml +++ b/upstream-doc/manglsl/gl_PrimitiveID.xml @@ -45,74 +45,14 @@ Version Support - - - - - - - - - - + #VARTABLECOLS# + #FUNCTABLEHEADER# - - Variable - - - Version 1.10 - - - Version 1.20 - - - Version 1.30 - - - Version 1.40 - - - Version 1.50 - - - Version 3.30 - - - Version 4.00 - - - Version 4.10 - + gl_PrimitiveID (Fragment and Geometry Languages)#newin15# - - gl_PrimitiveID - - - Y - - - Y - - - Y - - - Y - - - Y - - - Y - - - Y - - - Y - + gl_PrimitiveID (Tessellation Control and Evaluation Languages)#newin40# diff --git a/upstream-doc/manglsl/sign.xml b/upstream-doc/manglsl/sign.xml index 250ea00..0f9b2ad 100644 --- a/upstream-doc/manglsl/sign.xml +++ b/upstream-doc/manglsl/sign.xml @@ -50,12 +50,8 @@ Description - abs returns 1.0 if - x0.0, - 0.0 if - x0.0 and - 1.0 if - x0.0. + sign returns -1.0 if x is less than 0.0, 0.0 if x + is equal to 0.0, and +1.0 if x is greater than 0.0. Version Support @@ -78,12 +74,12 @@ See Also - sign + abs Copyright - Copyright 2011 Khronos Group. + Copyright 2011-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/manglsl/xhtml/all.xml b/upstream-doc/manglsl/xhtml/all.xml index 90e1219..2f08e84 100644 --- a/upstream-doc/manglsl/xhtml/all.xml +++ b/upstream-doc/manglsl/xhtml/all.xml @@ -11,7 +11,7 @@ { bool result = true; int i; - for (i = 0; i < x.length(); ++x) + for (i = 0; i < x.length(); ++i) { result &= x[i]; } @@ -21,7 +21,7 @@ any, not

    Copyright

    - Copyright © 2011 Khronos Group. + Copyright © 2011-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/manglsl/xhtml/any.xml b/upstream-doc/manglsl/xhtml/any.xml index 8a83621..e6daeed 100644 --- a/upstream-doc/manglsl/xhtml/any.xml +++ b/upstream-doc/manglsl/xhtml/any.xml @@ -11,7 +11,7 @@ { bool result = false; int i; - for (i = 0; i < x.length(); ++x) + for (i = 0; i < x.length(); ++i) { result |= x[i]; } @@ -21,7 +21,7 @@ all, not

    Copyright

    - Copyright © 2011 Khronos Group. + Copyright © 2011-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/manglsl/xhtml/fma.xml b/upstream-doc/manglsl/xhtml/fma.xml index 53c0432..cdfe4df 100644 --- a/upstream-doc/manglsl/xhtml/fma.xml +++ b/upstream-doc/manglsl/xhtml/fma.xml @@ -22,8 +22,8 @@ Otherwise, in the absense of precise consumption, there are no special constraints on the number of operations or difference in precision between fma() and the expression a * b + c. -

    Version Support

    Compressed Internal Format Base Internal Format @@ -366,27 +358,7 @@

    GL_INVALID_VALUE is generated if width, height, or depth is less than 0 or greater than GL_MAX_TEXTURE_SIZE.

    - GL_INVALID_VALUE is generated if non-power-of-two textures are not supported and the width, height, or depth cannot be represented as - - - - 2 - k - - + - - 2 - ⁡ - - border - - - - - for some - integer value of k. -

    - GL_INVALID_VALUE is generated if border is not 0 or 1. + GL_INVALID_VALUE is generated if border is not 0.

    GL_INVALID_OPERATION is generated if type is one of GL_UNSIGNED_BYTE_3_3_2, @@ -447,7 +419,7 @@ glTexParameter

    Copyright

    Copyright © 1991-2006 Silicon Graphics, Inc. - Copyright © 2011 Khronos Group. + Copyright © 2011-2013 Khronos Group. This document is licensed under the SGI Free Software B License. For details, see http://oss.sgi.com/projects/FreeB/. diff --git a/upstream-doc/man4/xhtml/glUnmapBuffer.xml b/upstream-doc/man4/xhtml/glUnmapBuffer.xml index c6c8249..852241f 100644 --- a/upstream-doc/man4/xhtml/glUnmapBuffer.xml +++ b/upstream-doc/man4/xhtml/glUnmapBuffer.xml @@ -4,7 +4,7 @@ - + glUnmapBuffer diff --git a/upstream-doc/man4/xhtml/glVertexAttrib.xml b/upstream-doc/man4/xhtml/glVertexAttrib.xml index 15fcb6f..bd9e292 100644 --- a/upstream-doc/man4/xhtml/glVertexAttrib.xml +++ b/upstream-doc/man4/xhtml/glVertexAttrib.xml @@ -12,7 +12,7 @@ attribute to be modified.

    v

    Specifies a pointer to an array of values to be used for the generic vertex attribute.

    C Specification

    void glVertexAttribP1ui(GLuint  index,
     GLenum  type,
     GLboolean  normalized,
     GLuint  value);
    void glVertexAttribP2ui(GLuint  index,
     GLenum  type,
     GLboolean  normalized,
     GLuint  value);
    void glVertexAttribP3ui(GLuint  index,
     GLenum  type,
     GLboolean  normalized,
     GLuint  value);
    void glVertexAttribP4ui(GLuint  index,
     GLenum  type,
     GLboolean  normalized,
     GLuint  value);

    Parameters

    index

    Specifies the index of the generic vertex attribute to be modified.

    type

    Type of packing used on the data. This parameter must be - GL_INT_10_10_10_2 or GL_UNSIGNED_INT_10_10_10_2 + GL_INT_2_10_10_10_REV or GL_UNSIGNED_INT_2_10_10_10_REV to specify signed or unsigned data, respectively.

    normalized

    If GL_TRUE, then the values are to be converted to floating point values by normalizing. Otherwise, they are converted directly to floating point values.

    @@ -112,8 +112,8 @@ GL_MAX_VERTEX_ATTRIBS.

    GL_INVALID_ENUM is generated if glVertexAttribP is used with a type other than - GL_INT_10_10_10_2 or - GL_UNSIGNED_INT_10_10_10_2.

    GL_INVALID_ENUM is generated if + GL_INT_2_10_10_10_REV or + GL_UNSIGNED_INT_2_10_10_10_REV.

    GL_INVALID_ENUM is generated if glVertexAttribL is used with a type other than GL_DOUBLE.

    Associated Gets

    glGet diff --git a/upstream-doc/man4/xhtml/glVertexAttribDivisor.xml b/upstream-doc/man4/xhtml/glVertexAttribDivisor.xml index 80abc30..181e62c 100644 --- a/upstream-doc/man4/xhtml/glVertexAttribDivisor.xml +++ b/upstream-doc/man4/xhtml/glVertexAttribDivisor.xml @@ -12,12 +12,12 @@ once per divisor instances of the set(s) of vertices being rendered. An attribute is referred to as instanced if its GL_VERTEX_ATTRIB_ARRAY_DIVISOR value is non-zero.

    - index must be less than the value of GL_MAX_VERTEX_ATTRIBUTES. + index must be less than the value of GL_MAX_VERTEX_ATTRIBS.

    Notes

    glVertexAttribDivisor is available only if the GL version is 3.3 or higher.

    Errors

    GL_INVALID_VALUE is generated if index is greater - than or equal to the value of GL_MAX_VERTEX_ATTRIBUTES. + than or equal to the value of GL_MAX_VERTEX_ATTRIBS.

    See Also

    glVertexAttribPointer, glEnableVertexAttribArray, diff --git a/upstream-doc/manglsl/all.xml b/upstream-doc/manglsl/all.xml index f8aa4dc..cdef979 100644 --- a/upstream-doc/manglsl/all.xml +++ b/upstream-doc/manglsl/all.xml @@ -5,7 +5,7 @@ - 2011 + 2013 Khronos Group @@ -46,7 +46,7 @@ { bool result = true; int i; - for (i = 0; i < x.length(); ++x) + for (i = 0; i < x.length(); ++i) { result &= x[i]; } @@ -74,7 +74,7 @@ Copyright - Copyright 2011 Khronos Group. + Copyright 2011-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/manglsl/any.xml b/upstream-doc/manglsl/any.xml index 15d9bbe..cf41f7b 100644 --- a/upstream-doc/manglsl/any.xml +++ b/upstream-doc/manglsl/any.xml @@ -5,7 +5,7 @@ - 2011 + 2013 Khronos Group @@ -46,7 +46,7 @@ { bool result = false; int i; - for (i = 0; i < x.length(); ++x) + for (i = 0; i < x.length(); ++i) { result |= x[i]; } @@ -74,7 +74,7 @@ Copyright - Copyright 2011 Khronos Group. + Copyright 2011-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/manglsl/fma.xml b/upstream-doc/manglsl/fma.xml index b6ce139..2c6b7a5 100644 --- a/upstream-doc/manglsl/fma.xml +++ b/upstream-doc/manglsl/fma.xml @@ -88,7 +88,7 @@

    FunctionVersion 1.10Version 1.20Version 1.30Version 1.40Version 1.50Version 3.30Version 4.00Version 4.10Version 4.20Version 4.30
    fma (genType)YYYYYYYYYY
    fma (genDType)------YYYY

    Copyright

    - Copyright © 2011 Khronos Group. +

    Version Support

    FunctionVersion 1.10Version 1.20Version 1.30Version 1.40Version 1.50Version 3.30Version 4.00Version 4.10Version 4.20Version 4.30
    fma (genType)------YYYY
    fma (genDType)------YYYY

    Copyright

    + Copyright © 2011-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/manglsl/xhtml/gl_PointSize.xml b/upstream-doc/manglsl/xhtml/gl_PointSize.xml index 69dd96c..379b728 100644 --- a/upstream-doc/manglsl/xhtml/gl_PointSize.xml +++ b/upstream-doc/manglsl/xhtml/gl_PointSize.xml @@ -9,7 +9,7 @@ float gl_PointSize; float gl_ClipDistance[]; };

    Description

    - In the vertex, tessellation evaluation and geoemtry languages, a single + In the vertex, tessellation evaluation and geometry languages, a single global instance of the gl_PerVertex named block is available and its gl_PointSize member is an output that receives the intended size of the point to be rasterized, in pixels. It may be written at any time @@ -30,14 +30,14 @@ written gl_PointSize since the last call to EmitVertex (or hasn't written it at all).

    - In the tessellation control, tessellation evaluation and geoemetry languages, + In the tessellation control, tessellation evaluation and geometry languages, the gl_PerVertex named block is used to construct an array, gl_in[] of per-vertex or per-control point inputs whose content represents the corresponding outputs written by the previous stage. -

    Version Support

    VariableVersion 1.10Version 1.20Version 1.30Version 1.40Version 1.50Version 3.30Version 4.00Version 4.10Version 4.20Version 4.30
    gl_PointSize (vertex shader)YYYYYYYYYY
    gl_PointSize (geometry shader)----YYYYYY

    See Also

    +

    Version Support

    VariableVersion 1.10Version 1.20Version 1.30Version 1.40Version 1.50Version 3.30Version 4.00Version 4.10Version 4.20Version 4.30
    gl_PointSize (vertex shader)YYYYYYYYYY
    gl_PointSize (geometry shader)----YYYYYY
    gl_PointSize (tessellation evaluation shader)------YYYY

    Copyright

    - Copyright © 2011 Khronos Group. + Copyright © 2011-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/manglsl/xhtml/gl_PrimitiveID.xml b/upstream-doc/manglsl/xhtml/gl_PrimitiveID.xml index 2ad2d89..2701742 100644 --- a/upstream-doc/manglsl/xhtml/gl_PrimitiveID.xml +++ b/upstream-doc/manglsl/xhtml/gl_PrimitiveID.xml @@ -19,43 +19,7 @@ in the fragment language behaves identically as it would in the tessellation control and evaluation languages. If a geometry shader is present but does not write to gl_PrimitiveID, the value of gl_PrimitiveID in the fragment shader is undefined. -

    Version Support

    - Variable - - Version 1.10 - - Version 1.20 - - Version 1.30 - - Version 1.40 - - Version 1.50 - - Version 3.30 - - Version 4.00 - - Version 4.10 -
    - gl_PrimitiveID - - Y - - Y - - Y - - Y - - Y - - Y - - Y - - Y -

    See Also

    +

    Version Support

    FunctionVersion 1.10Version 1.20Version 1.30Version 1.40Version 1.50Version 3.30Version 4.00Version 4.10Version 4.20Version 4.30
    gl_PrimitiveID (Fragment and Geometry Languages)----YYYYYY
    gl_PrimitiveID (Tessellation Control and Evaluation Languages)------YYYY

    See Also

    gl_InstanceID, gl_VertexID, gl_PrimitiveIDIn diff --git a/upstream-doc/manglsl/xhtml/sign.xml b/upstream-doc/manglsl/xhtml/sign.xml index 94f5062..99b0b8b 100644 --- a/upstream-doc/manglsl/xhtml/sign.xml +++ b/upstream-doc/manglsl/xhtml/sign.xml @@ -4,16 +4,12 @@ sign - OpenGL Shading Language (GLSL)

    Name

    sign — extract the sign of the parameter

    Declaration

    genType sign(genType x);

    genIType sign(genIType x);

    genDType sign(genDType x);

    Parameters

    x

    Specify the value from which to extract the sign.

    Description

    - abs returns 1.0 if - x0.0, - 0.0 if - x0.0 and - 1.0 if - x0.0. + sign returns -1.0 if x is less than 0.0, 0.0 if x + is equal to 0.0, and +1.0 if x is greater than 0.0.

    Version Support

    FunctionVersion 1.10Version 1.20Version 1.30Version 1.40Version 1.50Version 3.30Version 4.00Version 4.10Version 4.20Version 4.30
    sign (genType)--YYYYYYYY
    sign (genIType)----YYYYYY
    sign (genDType)------YYYY

    See Also

    - sign + abs

    Copyright

    - Copyright © 2011 Khronos Group. + Copyright © 2011-2013 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/. diff --git a/upstream-doc/spec/enum.spec b/upstream-doc/spec/enum.spec index 87d5afb..3777351 100644 --- a/upstream-doc/spec/enum.spec +++ b/upstream-doc/spec/enum.spec @@ -1,95 +1,13 @@ -# This is the OpenGL and OpenGL ES enumerant registry. -# -# It is an extremely important file. Do not mess with it unless -# you know what you're doing and have permission to do so. -# -# $Revision: 20466 $ on $Date: 2013-02-06 04:09:36 -0800 (Wed, 06 Feb 2013) $ +# THIS FILE IS OBSOLETE. Please migrate away from using the +# ".spec" files to the XML Registry. See +# http://www.opengl.org/registry/api/README.txt +# for more information. -############################################################################### -# -# Before modifying this file, read the following: -# -# ONLY the Khronos API Registrar (Jon Leech, jon 'at' alumni.caltech.edu) -# may allocate new enumerants outside the 'experimental' range described -# below. Any modifications to this file not performed by the Registrar -# are incompatible with the OpenGL API. The master copy of the registry, -# showing up-to-date enumerant allocations, is maintained in the -# OpenGL registry at -# -# http://www.opengl.org/registry/ -# -# The following guidelines are thus only for reference purposes -# (unless you're the Registrar) -# -# Enumerant values for extensions CANNOT be chosen arbitrarily, since -# the enumerant value space is shared by all GL implementations. It is -# therefore imperative that the procedures described in this file be -# followed carefully when allocating extension enum values. -# -# - Use tabs, not spaces. -# -# - When adding enum values for a new extension, use existing extensions -# as a guide. -# -# - When a vendor has committed to releasing a new extension and needs to -# allocate enum values for that extension, the vendor may request that the -# ARB allocate a previously unallocated block of 16 enum values, in the -# range 0x8000-0xFFFF, for the vendor's exclusive use. -# -# - The vendor that introduces an extension will allocate enum values for -# it as if it is a single-vendor extension, even if it is a multi-vendor -# (EXT) extension. -# -# - The file enum.spec is primarily a reference. The file enumext.spec -# contains enumerants for all OpenGL 1.2 and OpenGL extensions in a form -# used to generate . -# -# - If a vendor hasn't yet released an extension, just add a comment to -# enum.spec that contains the name of the extension and the range of enum -# values used by the extension. When the vendor releases the extension, -# put the actual enum assignments in enum.spec and enumext.spec. -# -# - Allocate all of the enum values for an extension in a single contiguous -# block. -# -# - If an extension is experimental, allocate temporary enum values in the -# range 0x6000-0x8000 during development work. When the vendor commits to -# releasing the extension, allocate permanent enum values (see below). -# There are two reasons for this policy: -# -# 1. It is desirable to keep extension enum values tightly packed and to -# make all of the enum values for an extension be contiguous. This is -# possible only if permanent enum values for a new extension are not -# allocated until the extension spec is stable and the number of new -# enum values needed by the extension has therefore stopped changing. -# -# 2. OpenGL ARB policy is that a vendor may allocate a new block of 16 -# extension enum values only if it has committed to releasing an -# extension that will use values in that block. -# -# - To allocate a new block of permanent enum values for an extension, do the -# following: -# -# 1. Start at the top of enum.spec and choose the first future_use -# range that is not allocated to another vendor and is large enough -# to contain the new block. This will almost certainly be the -# 'Any_vendor_future_use' range near the end of enum.spec. This -# process helps keep allocated enum values tightly packed into -# the start of the 0x8000-0xFFFF range. -# -# 2. Allocate a block of enum values at the start of this range. If -# the enum definitions are going into enumfuture.spec, add a comment -# to enum.spec that contains the name of the extension and the range -# of values in the new block. Use existing extensions as a guide. -# -# 3. Add the size of the block you just allocated to the start of the -# chosen future_use range. If you have allocated the entire range, -# eliminate its future_use entry. -# -# 4. Note that there are historical enum allocations above 0xFFFF, but -# no new allocations will be made there in the forseeable future. -# -############################################################################### +# This is the old (no longer canonical) OpenGL and OpenGL ES enumerant +# registry. It is no longer maintained or used for current header file +# generation. + +# $Revision: 22136 $ on $Date: 2013-06-24 04:04:33 -0700 (Mon, 24 Jun 2013) $ Extensions define: VERSION_1_1 = 1 @@ -360,7 +278,7 @@ Boolean enum: ############################################################################### -BeginMode enum: +PrimitiveType enum: POINTS = 0x0000 LINES = 0x0001 LINE_LOOP = 0x0002 @@ -396,7 +314,7 @@ ARB_tessellation_shader enum: NV_gpu_shader5 enum: use ARB_tessellation_shader PATCHES -# BeginMode_future_use: 0x000F +# PrimitiveType_future_use: 0x000F ############################################################################### @@ -1334,6 +1252,10 @@ GetPName enum: use SGI_texture_color_table TEXTURE_COLOR_TABLE_SGI # Aliases OpenGL 1.0 core enums above +EXT_vertex_weighting enum: (additional) + MODELVIEW0_STACK_DEPTH_EXT = 0x0BA3 # GL_MODELVIEW_STACK_DEPTH + MODELVIEW0_MATRIX_EXT = 0x0BA6 # GL_MODELVIEW_MATRIX + QCOM_alpha_test enum: (OpenGL ES only) ALPHA_TEST_QCOM = 0x0BC0 ALPHA_TEST_FUNC_QCOM = 0x0BC1 @@ -1644,6 +1566,10 @@ MatrixMode enum: PROJECTION = 0x1701 TEXTURE = 0x1702 +# Aliases OpenGL 1.0 core enums above +EXT_vertex_weighting enum: (additional) + MODELVIEW0_EXT = 0x1700 # GL_MODELVIEW + ############################################################################### MeshMode1 enum: @@ -1686,27 +1612,6 @@ EXT_discard_framebuffer enum: (OpenGL ES only) ############################################################################### PixelFormat enum: - COLOR_INDEX = 0x1900 - STENCIL_INDEX = 0x1901 - DEPTH_COMPONENT = 0x1902 - RED = 0x1903 - GREEN = 0x1904 - BLUE = 0x1905 - ALPHA = 0x1906 - RGB = 0x1907 - RGBA = 0x1908 - LUMINANCE = 0x1909 - LUMINANCE_ALPHA = 0x190A - use EXT_abgr ABGR_EXT - use EXT_cmyka CMYK_EXT - use EXT_cmyka CMYKA_EXT - use SGIX_icc_texture R5_G6_B5_ICC_SGIX - use SGIX_icc_texture R5_G6_B5_A8_ICC_SGIX - use SGIX_icc_texture ALPHA16_ICC_SGIX - use SGIX_icc_texture LUMINANCE16_ICC_SGIX - use SGIX_icc_texture LUMINANCE16_ALPHA8_ICC_SGIX - use SGIX_ycrcb YCRCB_422_SGIX - use SGIX_ycrcb YCRCB_444_SGIX OES_depth_texture enum: (OpenGL ES only) # use DataType UNSIGNED_SHORT @@ -2494,6 +2399,10 @@ OES_framebuffer_object enum: (OpenGL ES only; additional; see below) RGBA4_OES = 0x8056 RGB5_A1_OES = 0x8057 +# Aliases EXT_texture enums above +ARM_rgba8 enum: (OpenGL ES only) + RGBA8_OES = 0x8058 + ############################################################################### EXT_texture_object enum: @@ -2648,10 +2557,6 @@ EXT_multisample enum: SAMPLE_PATTERN_EXT = 0x80AC # 1 I MULTISAMPLE_BIT_EXT = 0x20000000 -# Reuses SAMPLES enum as COVERAGE_SAMPLES -NV_multisample_coverage enum: (additional; see below) - COVERAGE_SAMPLES_NV = 0x80A9 - ############################################################################### SGIS_sharpen_texture enum: @@ -2701,6 +2606,9 @@ SGIX_texture_add_env enum: ############################################################################### +ARB_shadow_ambient enum: + TEXTURE_COMPARE_FAIL_VALUE_ARB = 0x80BF + SGIX_shadow_ambient enum: SHADOW_AMBIENT_SGIX = 0x80BF @@ -2775,6 +2683,8 @@ SGI_color_table enum: ############################################################################### +# Microsoft: 0x80E0-0x810F + VERSION_1_2 enum: (Promoted for OpenGL 1.2) BGR = 0x80E0 BGRA = 0x80E1 @@ -2786,22 +2696,43 @@ EXT_bgra enum: BGR_EXT = 0x80E0 BGRA_EXT = 0x80E1 -############################################################################### - -# Microsoft: 0x80E2-0x80E7 - -############################################################################### +EXT_paletted_texture enum: + COLOR_INDEX1_EXT = 0x80E2 + COLOR_INDEX2_EXT = 0x80E3 + COLOR_INDEX4_EXT = 0x80E4 + COLOR_INDEX8_EXT = 0x80E5 + COLOR_INDEX12_EXT = 0x80E6 + COLOR_INDEX16_EXT = 0x80E7 VERSION_1_2 enum: MAX_ELEMENTS_VERTICES = 0x80E8 MAX_ELEMENTS_INDICES = 0x80E9 -############################################################################### +EXT_draw_range_elements enum: + MAX_ELEMENTS_VERTICES_EXT = 0x80E8 + MAX_ELEMENTS_INDICES_EXT = 0x80E9 + +WIN_phong_shading enum: + PHONG_WIN = 0x80EA + PHONG_HINT_WIN = 0x80EB -# Microsoft: 0x80EA-0x810F +WIN_specular_fog enum: + FOG_SPECULAR_TEXTURE_WIN = 0x80EC + +EXT_paletted_texture enum: + TEXTURE_INDEX_SIZE_EXT = 0x80ED + +# MS_future_use: 0x80EE-0x80EF + +EXT_clip_volume_hint enum: + CLIP_VOLUME_CLIPPING_HINT_EXT = 0x80F0 + +# MS_future_use: 0x80F1-0x810F ############################################################################### +# SGI: 0x8110-0x814F + SGIS_texture_select enum: DUAL_ALPHA4_SGIS = 0x8110 DUAL_ALPHA8_SGIS = 0x8111 @@ -2961,18 +2892,50 @@ VERSION_1_2 enum: (Promoted for OpenGL 1.2) REPLICATE_BORDER = 0x8153 CONVOLUTION_BORDER_COLOR = 0x8154 +############################################################################### + +# HP: 0x8150-0x816F + HP_convolution_border_modes enum: IGNORE_BORDER_HP = 0x8150 # Not promoted CONSTANT_BORDER_HP = 0x8151 REPLICATE_BORDER_HP = 0x8153 CONVOLUTION_BORDER_COLOR_HP = 0x8154 -############################################################################### +HP_image_transform enum: + IMAGE_SCALE_X_HP = 0x8155 + IMAGE_SCALE_Y_HP = 0x8156 + IMAGE_TRANSLATE_X_HP = 0x8157 + IMAGE_TRANSLATE_Y_HP = 0x8158 + IMAGE_ROTATE_ANGLE_HP = 0x8159 + IMAGE_ROTATE_ORIGIN_X_HP = 0x815A + IMAGE_ROTATE_ORIGIN_Y_HP = 0x815B + IMAGE_MAG_FILTER_HP = 0x815C + IMAGE_MIN_FILTER_HP = 0x815D + IMAGE_CUBIC_WEIGHT_HP = 0x815E + CUBIC_HP = 0x815F + AVERAGE_HP = 0x8160 + IMAGE_TRANSFORM_2D_HP = 0x8161 + POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8162 + PROXY_POST_IMAGE_TRANSFORM_COLOR_TABLE_HP = 0x8163 + +# HP_future_use: 0x8164 -# HP: 0x8155-0x816F +HP_occlusion_test enum: + OCCLUSION_TEST_HP = 0x8165 + OCCLUSION_TEST_RESULT_HP = 0x8166 + +HP_texture_lighting enum: + TEXTURE_LIGHTING_MODE_HP = 0x8167 + TEXTURE_POST_SPECULAR_HP = 0x8168 + TEXTURE_PRE_SPECULAR_HP = 0x8169 + +# HP_future_use: 0x816A-0x816F ############################################################################### +# SGI: 0x8170-0x81CF + SGIX_clipmap enum: LINEAR_CLIPMAP_LINEAR_SGIX = 0x8170 TEXTURE_CLIPMAP_CENTER_SGIX = 0x8171 @@ -3296,17 +3259,17 @@ EXT_shared_texture_palette enum: ############################################################################### -# Incomplete extension, not in enumext.spec +# Incomplete extension # SGIX_fog_scale: 0x81FC-0x81FD -# FOG_SCALE_SGIX = 0x81FC # 1 I -# FOG_SCALE_VALUE_SGIX = 0x81FD # 1 F +# FOG_SCALE_SGIX = 0x81FC # 1 I +# FOG_SCALE_VALUE_SGIX = 0x81FD # 1 F ############################################################################### -# Incomplete extension, not in enumext.spec -# SGIX_fog_blend: 0x81FE-0x81FF -# FOG_BLEND_ALPHA_SGIX = 0x81FE # 1 I -# FOG_BLEND_COLOR_SGIX = 0x81FF # 1 I +# Incomplete extension +# SGIX_fog_blend: +# FOG_BLEND_ALPHA_SGIX = 0x81FE # 1 I +# FOG_BLEND_COLOR_SGIX = 0x81FF # 1 I ############################################################################### @@ -3502,9 +3465,10 @@ ARB_separate_shader_objects enum: PROGRAM_PIPELINE_BINDING = 0x825A # Aliases ARB_separate_shader_objects enum above +# Used to list ACTIVE_PROGRAM_EXT = 0x8259 but this was a bogus +# redefinition and never shipped in the Khronos header. EXT_separate_shader_objects enum: (OpenGL ES only) PROGRAM_SEPARABLE_EXT = 0x8258 - ACTIVE_PROGRAM_EXT = 0x8259 PROGRAM_PIPELINE_BINDING_EXT = 0x825A ARB_viewport_array enum: @@ -3681,6 +3645,8 @@ VERSION_4_3 enum: ############################################################################### +# SGI: 0x8310-0x832F + SGIX_depth_pass_instrument enum: 0x8310-0x8312 DEPTH_PASS_INSTRUMENT_SGIX = 0x8310 DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX = 0x8311 @@ -3772,6 +3738,8 @@ SGIX_async_histogram enum: ############################################################################### +# SUN: 0x8330-0x833F + EXT_pixel_transform enum: PIXEL_TRANSFORM_2D_EXT = 0x8330 PIXEL_MAG_FILTER_EXT = 0x8331 @@ -3787,6 +3755,7 @@ EXT_pixel_transform enum: ############################################################################### +# SGI: 0x8340-0x836F # Incomplete extension, not in enumext.spec # SGIX_cube_map: 0x8340-0x8348 # ENV_MAP_SGIX = 0x8340 @@ -3877,7 +3846,7 @@ SGIX_texture_coordinate_clamp enum: # Incomplete extension, not in enumext.spec # SGIX_fog_factor_to_alpha: 0x836F - FOG_FACTOR_TO_ALPHA_SGIX = 0x836F +# FOG_FACTOR_TO_ALPHA_SGIX = 0x836F ############################################################################### @@ -4002,6 +3971,8 @@ INTEL_map_texture enum: ############################################################################### +# SGI: 0x8400-0x846F + SGIX_fragment_lighting enum: FRAGMENT_LIGHTING_SGIX = 0x8400 # 1 I FRAGMENT_COLOR_MATERIAL_SGIX = 0x8401 # 1 I @@ -4039,32 +4010,48 @@ SGIX_resample enum: ############################################################################### -# Incomplete extension, not in enumext.spec -# SGIX_fragment_lighting_space: 0x8436-0x8449 -# EYE_SPACE_SGIX = 0x8436 -# TANGENT_SPACE_SGIX = 0x8437 -# OBJECT_SPACE_SGIX = 0x8438 -# TANGENT_ARRAY_SGIX = 0x8439 -# BINORMAL_ARRAY_SGIX = 0x843A -# CURRENT_TANGENT_SGIX = 0x843B # 3 F -# CURRENT_BINORMAL_SGIX = 0x843C # 3 F -# FRAGMENT_LIGHT_SPACE_SGIX = 0x843D # 1 I -# TANGENT_ARRAY_TYPE_SGIX = 0x843E -# TANGENT_ARRAY_STRIDE_SGIX = 0x843F -# TANGENT_ARRAY_COUNT_SGIX = 0x8440 -# BINORMAL_ARRAY_TYPE_SGIX = 0x8441 -# BINORMAL_ARRAY_STRIDE_SGIX = 0x8442 -# BINORMAL_ARRAY_COUNT_SGIX = 0x8443 -# TANGENT_ARRAY_POINTER_SGIX = 0x8444 -# BINORMAL_ARRAY_POINTER_SGIX = 0x8445 -# MAP1_TANGENT_SGIX = 0x8446 -# MAP2_TANGENT_SGIX = 0x8447 -# MAP1_BINORMAL_SGIX = 0x8448 -# MAP2_BINORMAL_SGIX = 0x8449 - -############################################################################### - -# Incomplete extension, not in enumext.spec +# Incomplete extension +# SGIX_fragment_lighting_space enum: +# EYE_SPACE_SGIX = 0x8436 +# TANGENT_SPACE_SGIX = 0x8437 +# OBJECT_SPACE_SGIX = 0x8438 +# TANGENT_ARRAY_SGIX = 0x8439 +# BINORMAL_ARRAY_SGIX = 0x843A +# CURRENT_TANGENT_SGIX = 0x843B 3 F +# CURRENT_BINORMAL_SGIX = 0x843C 3 F +# FRAGMENT_LIGHT_SPACE_SGIX = 0x843D 1 I +# TANGENT_ARRAY_TYPE_SGIX = 0x843E +# TANGENT_ARRAY_STRIDE_SGIX = 0x843F +# TANGENT_ARRAY_COUNT_SGIX = 0x8440 +# BINORMAL_ARRAY_TYPE_SGIX = 0x8441 +# BINORMAL_ARRAY_STRIDE_SGIX = 0x8442 +# BINORMAL_ARRAY_COUNT_SGIX = 0x8443 +# TANGENT_ARRAY_POINTER_SGIX = 0x8444 +# BINORMAL_ARRAY_POINTER_SGIX = 0x8445 +# MAP1_TANGENT_SGIX = 0x8446 +# MAP2_TANGENT_SGIX = 0x8447 +# MAP1_BINORMAL_SGIX = 0x8448 +# MAP2_BINORMAL_SGIX = 0x8449 + +EXT_coordinate_frame enum: + TANGENT_ARRAY_EXT = 0x8439 + BINORMAL_ARRAY_EXT = 0x843A + CURRENT_TANGENT_EXT = 0x843B + CURRENT_BINORMAL_EXT = 0x843C + TANGENT_ARRAY_TYPE_EXT = 0x843E + TANGENT_ARRAY_STRIDE_EXT = 0x843F + BINORMAL_ARRAY_TYPE_EXT = 0x8440 + BINORMAL_ARRAY_STRIDE_EXT = 0x8441 + TANGENT_ARRAY_POINTER_EXT = 0x8442 + BINORMAL_ARRAY_POINTER_EXT = 0x8443 + MAP1_TANGENT_EXT = 0x8444 + MAP2_TANGENT_EXT = 0x8445 + MAP1_BINORMAL_EXT = 0x8446 + MAP2_BINORMAL_EXT = 0x8447 + +############################################################################### + +# Incomplete extension # SGIX_bali_timer_instruments: 0x844A-0x844C # BALI_GEOM_TIMER_INSTRUMENT_SGIX = 0x844A # 1 I # BALI_RASTER_TIMER_INSTRUMENT_SGIX = 0x844B # 1 I @@ -4134,7 +4121,7 @@ VERSION_2_1 enum: ############################################################################### # Incomplete extension, not in enumext.spec -SGIX_icc_texture enum: +# SGIX_icc_texture enum: # RGB_ICC_SGIX = 0x8460 # RGBA_ICC_SGIX = 0x8461 # ALPHA_ICC_SGIX = 0x8462 @@ -4431,14 +4418,15 @@ EXT_texture_lod_bias enum: EXT_vertex_weighting enum: MODELVIEW1_STACK_DEPTH_EXT = 0x8502 -# NV_texture_env_combine4 (additional; see below): 0x8503 +NV_texture_env_combine4 enum: (additional; see below): + COMBINE4_NV = 0x8503 NV_light_max_exponent enum: MAX_SHININESS_NV = 0x8504 MAX_SPOT_EXPONENT_NV = 0x8505 EXT_vertex_weighting enum: - MODELVIEW_MATRIX1_EXT = 0x8506 + MODELVIEW1_MATRIX_EXT = 0x8506 VERSION_1_4 enum: (Promoted for OpenGL 1.4) INCR_WRAP = 0x8507 @@ -4492,8 +4480,8 @@ EXT_texture_cube_map enum: MAX_CUBE_MAP_TEXTURE_SIZE_EXT = 0x851C NV_texgen_reflection enum: - NORMAL_MAP = 0x8511 - REFLECTION_MAP = 0x8512 + NORMAL_MAP_NV = 0x8511 + REFLECTION_MAP_NV = 0x8512 ARB_texture_cube_map enum: NORMAL_MAP_ARB = 0x8511 @@ -4572,7 +4560,7 @@ NV_register_combiners enum: (additional; see above): HALF_BIAS_NORMAL_NV = 0x853A HALF_BIAS_NEGATE_NV = 0x853B SIGNED_IDENTITY_NV = 0x853C - UNSIGNED_NEGATE_NV = 0x853D + SIGNED_NEGATE_NV = 0x853D SCALE_BY_TWO_NV = 0x853E SCALE_BY_FOUR_NV = 0x853F SCALE_BY_ONE_HALF_NV = 0x8540 @@ -4606,7 +4594,7 @@ NV_primitive_restart enum: PRIMITIVE_RESTART_INDEX_NV = 0x8559 NV_fog_distance enum: - FOG_GEN_MODE_NV = 0x855A + FOG_DISTANCE_MODE_NV = 0x855A EYE_RADIAL_NV = 0x855B EYE_PLANE_ABSOLUTE_NV = 0x855C @@ -4669,6 +4657,30 @@ VERSION_1_3 enum: (Promoted for OpenGL 1.3) OPERAND1_ALPHA = 0x8599 OPERAND2_ALPHA = 0x859A +ARB_texture_env_combine enum: + COMBINE_ARB = 0x8570 + COMBINE_RGB_ARB = 0x8571 + COMBINE_ALPHA_ARB = 0x8572 + RGB_SCALE_ARB = 0x8573 + ADD_SIGNED_ARB = 0x8574 + INTERPOLATE_ARB = 0x8575 + CONSTANT_ARB = 0x8576 + PRIMARY_COLOR_ARB = 0x8577 + PREVIOUS_ARB = 0x8578 + SOURCE0_RGB_ARB = 0x8580 + SOURCE1_RGB_ARB = 0x8581 + SOURCE2_RGB_ARB = 0x8582 + SOURCE0_ALPHA_ARB = 0x8588 + SOURCE1_ALPHA_ARB = 0x8589 + SOURCE2_ALPHA_ARB = 0x858A + OPERAND0_RGB_ARB = 0x8590 + OPERAND1_RGB_ARB = 0x8591 + OPERAND2_RGB_ARB = 0x8592 + OPERAND0_ALPHA_ARB = 0x8598 + OPERAND1_ALPHA_ARB = 0x8599 + OPERAND2_ALPHA_ARB = 0x859A + SUBTRACT_ARB = 0x84E7 + EXT_texture_env_combine enum: COMBINE_EXT = 0x8570 COMBINE_RGB_EXT = 0x8571 @@ -4693,13 +4705,13 @@ EXT_texture_env_combine enum: OPERAND2_ALPHA_EXT = 0x859A NV_texture_env_combine4 enum: - COMBINE4_NV = 0x8503 SOURCE3_RGB_NV = 0x8583 SOURCE3_ALPHA_NV = 0x858B OPERAND3_RGB_NV = 0x8593 OPERAND3_ALPHA_NV = 0x859B # "Future use" => "additional combiner input/output enums" only +# ATI/NVIDIA_future_use: 0x8579-0x857F # ATI/NVIDIA_future_use: 0x8584-0x8587 # ATI/NVIDIA_future_use: 0x858C-0x858F # ATI/NVIDIA_future_use: 0x8594-0x8597 @@ -4707,6 +4719,8 @@ NV_texture_env_combine4 enum: ############################################################################### +# SGI: 0x85A0-0x85AF + SGIX_subsample enum: PACK_SUBSAMPLE_RATE_SGIX = 0x85A0 UNPACK_SUBSAMPLE_RATE_SGIX = 0x85A1 @@ -5127,22 +5141,22 @@ NV_evaluators enum: MAP_ATTRIB_U_ORDER_NV = 0x86C3 MAP_ATTRIB_V_ORDER_NV = 0x86C4 EVAL_FRACTIONAL_TESSELLATION_NV = 0x86C5 - EVAL_VERTEX_ATRRIB0_NV = 0x86C6 - EVAL_VERTEX_ATRRIB1_NV = 0x86C7 - EVAL_VERTEX_ATRRIB2_NV = 0x86C8 - EVAL_VERTEX_ATRRIB3_NV = 0x86C9 - EVAL_VERTEX_ATRRIB4_NV = 0x86CA - EVAL_VERTEX_ATRRIB5_NV = 0x86CB - EVAL_VERTEX_ATRRIB6_NV = 0x86CC - EVAL_VERTEX_ATRRIB7_NV = 0x86CD - EVAL_VERTEX_ATRRIB8_NV = 0x86CE - EVAL_VERTEX_ATRRIB9_NV = 0x86CF - EVAL_VERTEX_ATRRIB10_NV = 0x86D0 - EVAL_VERTEX_ATRRIB11_NV = 0x86D1 - EVAL_VERTEX_ATRRIB12_NV = 0x86D2 - EVAL_VERTEX_ATRRIB13_NV = 0x86D3 - EVAL_VERTEX_ATRRIB14_NV = 0x86D4 - EVAL_VERTEX_ATRRIB15_NV = 0x86D5 + EVAL_VERTEX_ATTRIB0_NV = 0x86C6 + EVAL_VERTEX_ATTRIB1_NV = 0x86C7 + EVAL_VERTEX_ATTRIB2_NV = 0x86C8 + EVAL_VERTEX_ATTRIB3_NV = 0x86C9 + EVAL_VERTEX_ATTRIB4_NV = 0x86CA + EVAL_VERTEX_ATTRIB5_NV = 0x86CB + EVAL_VERTEX_ATTRIB6_NV = 0x86CC + EVAL_VERTEX_ATTRIB7_NV = 0x86CD + EVAL_VERTEX_ATTRIB8_NV = 0x86CE + EVAL_VERTEX_ATTRIB9_NV = 0x86CF + EVAL_VERTEX_ATTRIB10_NV = 0x86D0 + EVAL_VERTEX_ATTRIB11_NV = 0x86D1 + EVAL_VERTEX_ATTRIB12_NV = 0x86D2 + EVAL_VERTEX_ATTRIB13_NV = 0x86D3 + EVAL_VERTEX_ATTRIB14_NV = 0x86D4 + EVAL_VERTEX_ATTRIB15_NV = 0x86D5 MAX_MAP_TESSELLATION_NV = 0x86D6 MAX_RATIONAL_EVAL_ORDER_NV = 0x86D7 @@ -5162,11 +5176,11 @@ NV_texture_shader enum: SHADER_OPERATION_NV = 0x86DF CULL_MODES_NV = 0x86E0 OFFSET_TEXTURE_MATRIX_NV = 0x86E1 + OFFSET_TEXTURE_2D_MATRIX_NV = 0x86E1 # alias OFFSET_TEXTURE_MATRIX_NV OFFSET_TEXTURE_SCALE_NV = 0x86E2 + OFFSET_TEXTURE_2D_SCALE_NV = 0x86E2 # alias OFFSET_TEXTURE_SCALE_NV OFFSET_TEXTURE_BIAS_NV = 0x86E3 - OFFSET_TEXTURE_2D_MATRIX_NV = GL_OFFSET_TEXTURE_MATRIX_NV - OFFSET_TEXTURE_2D_SCALE_NV = GL_OFFSET_TEXTURE_SCALE_NV - OFFSET_TEXTURE_2D_BIAS_NV = GL_OFFSET_TEXTURE_BIAS_NV + OFFSET_TEXTURE_2D_BIAS_NV = 0x86E3 # alias OFFSET_TEXTURE_BIAS_NV PREVIOUS_TEXTURE_INPUT_NV = 0x86E4 CONST_EYE_NV = 0x86E5 PASS_THROUGH_NV = 0x86E6 @@ -5607,10 +5621,10 @@ EXT_color_buffer_half_float enum: (OpenGL ES only; additional; see above) RGB16F_EXT = 0x881B ARB_color_buffer_float enum: - RGBA_FLOAT_MODE_ARB = 0x8820 # Equivalent to TYPE_RGBA_FLOAT_ATI + RGBA_FLOAT_MODE_ARB = 0x8820 -ATI_pixel_format_float enum: (really WGL_ATI_pixel_format_float) - TYPE_RGBA_FLOAT_ATI = 0x8820 +ATI_pixel_format_float enum: + RGBA_FLOAT_MODE_ATI = 0x8820 # AMD_future_use: 0x8821-0x8822 @@ -5693,7 +5707,7 @@ NV_draw_buffers enum: (OpenGL ES only) DRAW_BUFFER14_NV = 0x8833 DRAW_BUFFER15_NV = 0x8834 -ATI_pixel_format_float enum: (really WGL_ATI_pixel_format_float) (additional; see above) +ATI_pixel_format_float enum: (additional; see above) COLOR_CLEAR_UNCLAMPED_VALUE_ATI = 0x8835 # AMD_future_use: 0x8836-0x883C @@ -7752,9 +7766,9 @@ NV_multisample_coverage enum: ARB_transform_feedback2 enum: TRANSFORM_FEEDBACK = 0x8E22 TRANSFORM_FEEDBACK_PAUSED = 0x8E23 - TRANSFORM_FEEDBACK_BUFFER_PAUSED = GL_TRANSFORM_FEEDBACK_PAUSED + TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23 # alias TRANSFORM_FEEDBACK_PAUSED TRANSFORM_FEEDBACK_ACTIVE = 0x8E24 - TRANSFORM_FEEDBACK_BUFFER_ACTIVE = GL_TRANSFORM_FEEDBACK_ACTIVE + TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24 # alias TRANSFORM_FEEDBACK_ACTIVE TRANSFORM_FEEDBACK_BINDING = 0x8E25 NV_transform_feedback2 enum: @@ -7864,10 +7878,13 @@ NV_gpu_program5 enum: MAX_FRAGMENT_INTERPOLATION_OFFSET_NV = 0x8E5C FRAGMENT_PROGRAM_INTERPOLATION_OFFSET_BITS_NV = 0x8E5D -ARB_texture_gather enum: +VERSION_4_0 enum: MIN_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5E MAX_PROGRAM_TEXTURE_GATHER_OFFSET = 0x8E5F - MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 0x8F9F + +ARB_texture_gather enum: + MIN_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5E + MAX_PROGRAM_TEXTURE_GATHER_OFFSET_ARB = 0x8E5F NV_gpu_program5 enum: MIN_PROGRAM_TEXTURE_GATHER_OFFSET_NV = 0x8E5E @@ -7989,9 +8006,9 @@ NV_shader_buffer_load enum: (additional; see above) ARB_copy_buffer enum: COPY_READ_BUFFER_BINDING = 0x8F36 - COPY_READ_BUFFER = GL_COPY_READ_BUFFER_BINDING + COPY_READ_BUFFER = 0x8F36 # alias COPY_READ_BUFFER_BINDING COPY_WRITE_BUFFER_BINDING = 0x8F37 - COPY_WRITE_BUFFER = GL_COPY_WRITE_BUFFER_BINDING + COPY_WRITE_BUFFER = 0x8F37 # alias COPY_WRITE_BUFFER_BINDING VERSION_3_1 enum: use ARB_copy_buffer COPY_READ_BUFFER @@ -8069,7 +8086,10 @@ EXT_vertex_attrib_64bit enum: ARM_mali_shader_binary enum: (OpenGL ES only) MALI_SHADER_BINARY_ARM = 0x8F60 -# ARM_future_use: 0x8F61-0x8F6F +ARM_mali_program_binary enum: (OpenGL ES only) + MALI_PROGRAM_BINARY_ARM = 0x8F61 + +# ARM_future_use: 0x8F62-0x8F6F ############################################################################### @@ -8103,7 +8123,7 @@ VERSION_3_1 enum: PRIMITIVE_RESTART_INDEX = 0x8F9E # Different from NV_primitive_restart value ARB_texture_gather enum: (additional; see above) - MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS = 0x8F9F + MAX_PROGRAM_TEXTURE_GATHER_COMPONENTS_ARB = 0x8F9F ############################################################################### @@ -8181,7 +8201,7 @@ EXT_vertex_attrib_64bit enum: # AMD: 0x9000-0x901F # Assigned for Bill Licea-Kane -AMD_vertex_shader_tesselator enum: +AMD_vertex_shader_tessellator enum: SAMPLER_BUFFER_AMD = 0x9001 INT_SAMPLER_BUFFER_AMD = 0x9002 UNSIGNED_INT_SAMPLER_BUFFER_AMD = 0x9003 @@ -8192,6 +8212,15 @@ AMD_vertex_shader_tesselator enum: # AMD_future_use: 0x9008 +VERSION_4_0 enum: + TEXTURE_CUBE_MAP_ARRAY = 0x9009 + TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A + PROXY_TEXTURE_CUBE_MAP_ARRAY = 0x900B + SAMPLER_CUBE_MAP_ARRAY = 0x900C + SAMPLER_CUBE_MAP_ARRAY_SHADOW = 0x900D + INT_SAMPLER_CUBE_MAP_ARRAY = 0x900E + UNSIGNED_INT_SAMPLER_CUBE_MAP_ARRAY = 0x900F + ARB_texture_cube_map_array enum: TEXTURE_CUBE_MAP_ARRAY = 0x9009 TEXTURE_BINDING_CUBE_MAP_ARRAY = 0x900A @@ -8461,6 +8490,7 @@ NV_path_rendering enum: (additional; see above) CIRCULAR_TANGENT_ARC_TO_NV = 0xFC ARC_TO_NV = 0xFE RELATIVE_ARC_TO_NV = 0xFF +# Bitfield values for this extension BOLD_BIT_NV = 0x01 ITALIC_BIT_NV = 0x02 GLYPH_WIDTH_BIT_NV = 0x01 @@ -8531,7 +8561,7 @@ ARB_shader_storage_buffer_object enum: MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90DD MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF - MAX_COMBINED_SHADER_OUTPUT_RESOURCES = GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS + MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39 # alias MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS use ARB_shader_image_load_store MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS # NV_future_use: 0x90E0 @@ -8903,12 +8933,12 @@ ARB_shader_atomic_counters enum: MAX_FRAGMENT_ATOMIC_COUNTERS = 0x92D6 MAX_COMBINED_ATOMIC_COUNTERS = 0x92D7 MAX_ATOMIC_COUNTER_BUFFER_SIZE = 0x92D8 - MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC ACTIVE_ATOMIC_COUNTER_BUFFERS = 0x92D9 UNIFORM_ATOMIC_COUNTER_BUFFER_INDEX = 0x92DA UNSIGNED_INT_ATOMIC_COUNTER = 0x92DB + MAX_ATOMIC_COUNTER_BUFFER_BINDINGS = 0x92DC -# NV_future_use: 0x92DC-0x92DF +# NV_future_use: 0x92DD-0x92DF # Also VERSION_4_3 KHR_debug enum: (additional; see above) @@ -9062,31 +9092,101 @@ GL_KHR_texture_compression_astc_ldr enum: ############################################################################### -# IBM: 103000-103999 -# CULL_VERTEX_IBM = 103050 -# VERTEX_ARRAY_LIST_IBM = 103070 -# NORMAL_ARRAY_LIST_IBM = 103071 -# COLOR_ARRAY_LIST_IBM = 103072 -# INDEX_ARRAY_LIST_IBM = 103073 -# TEXTURE_COORD_ARRAY_LIST_IBM = 103074 -# EDGE_FLAG_ARRAY_LIST_IBM = 103075 -# FOG_COORDINATE_ARRAY_LIST_IBM = 103076 -# SECONDARY_COLOR_ARRAY_LIST_IBM = 103077 -# VERTEX_ARRAY_LIST_STRIDE_IBM = 103080 -# NORMAL_ARRAY_LIST_STRIDE_IBM = 103081 -# COLOR_ARRAY_LIST_STRIDE_IBM = 103082 -# INDEX_ARRAY_LIST_STRIDE_IBM = 103083 -# TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM = 103084 -# EDGE_FLAG_ARRAY_LIST_STRIDE_IBM = 103085 -# FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM = 103086 -# SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM = 103087 +# IBM: 103000-103999 (0x19258-0x1963F) + +IBM_rasterpos_clip enum: + RASTER_POSITION_UNCLIPPED_IBM = 0x19262 + +IBM_cull_vertex enum: + CULL_VERTEX_IBM = 103050 + +IBM_static_data enum: + ALL_STATIC_DATA_IBM = 103060 + STATIC_VERTEX_ARRAY_IBM = 103061 + VERTEX_ARRAY_LIST_IBM = 103070 + NORMAL_ARRAY_LIST_IBM = 103071 + COLOR_ARRAY_LIST_IBM = 103072 + INDEX_ARRAY_LIST_IBM = 103073 + TEXTURE_COORD_ARRAY_LIST_IBM = 103074 + EDGE_FLAG_ARRAY_LIST_IBM = 103075 + FOG_COORDINATE_ARRAY_LIST_IBM = 103076 + SECONDARY_COLOR_ARRAY_LIST_IBM = 103077 + VERTEX_ARRAY_LIST_STRIDE_IBM = 103080 + NORMAL_ARRAY_LIST_STRIDE_IBM = 103081 + COLOR_ARRAY_LIST_STRIDE_IBM = 103082 + INDEX_ARRAY_LIST_STRIDE_IBM = 103083 + TEXTURE_COORD_ARRAY_LIST_STRIDE_IBM = 103084 + EDGE_FLAG_ARRAY_LIST_STRIDE_IBM = 103085 + FOG_COORDINATE_ARRAY_LIST_STRIDE_IBM = 103086 + SECONDARY_COLOR_ARRAY_LIST_STRIDE_IBM = 103087 + +# Most of this range is available, but calculating IBM_future_use figures is +# tedious and pointless since they're no longer building graphics hardware +IBM_future_use: lots ############################################################################### # NEC: 104000-104999 # Compaq: 105000-105999 (Compaq was acquired by HP) # KPC: 106000-106999 (Kubota is out of business) -# PGI: 107000-107999 (Portable was acquired by Template Graphics) + +############################################################################### + +# PGI: 107000-107999 (0x1A1F8-0x1A5DF) (Portable was acquired by Template Graphics) + +PGI_misc_hints enum: + PREFER_DOUBLEBUFFER_HINT_PGI = 0x1A1F8 + CONSERVE_MEMORY_HINT_PGI = 0x1A1FD + RECLAIM_MEMORY_HINT_PGI = 0x1A1FE + NATIVE_GRAPHICS_HANDLE_PGI = 0x1A202 + NATIVE_GRAPHICS_BEGIN_HINT_PGI = 0x1A203 + NATIVE_GRAPHICS_END_HINT_PGI = 0x1A204 + ALWAYS_FAST_HINT_PGI = 0x1A20C + ALWAYS_SOFT_HINT_PGI = 0x1A20D + ALLOW_DRAW_OBJ_HINT_PGI = 0x1A20E + ALLOW_DRAW_WIN_HINT_PGI = 0x1A20F + ALLOW_DRAW_FRG_HINT_PGI = 0x1A210 + ALLOW_DRAW_MEM_HINT_PGI = 0x1A211 + STRICT_DEPTHFUNC_HINT_PGI = 0x1A216 + STRICT_LIGHTING_HINT_PGI = 0x1A217 + STRICT_SCISSOR_HINT_PGI = 0x1A218 + FULL_STIPPLE_HINT_PGI = 0x1A219 + CLIP_NEAR_HINT_PGI = 0x1A220 + CLIP_FAR_HINT_PGI = 0x1A221 + WIDE_LINE_HINT_PGI = 0x1A222 + BACK_NORMALS_HINT_PGI = 0x1A223 + +PGI_vertex_hints enum: + VERTEX_DATA_HINT_PGI = 0x1A22A + VERTEX_CONSISTENT_HINT_PGI = 0x1A22B + MATERIAL_SIDE_HINT_PGI = 0x1A22C + MAX_VERTEX_HINT_PGI = 0x1A22D +# Bitfield values for HintPGI + VERTEX23_BIT_PGI = 0x00000004 + VERTEX4_BIT_PGI = 0x00000008 + COLOR3_BIT_PGI = 0x00010000 + COLOR4_BIT_PGI = 0x00020000 + EDGEFLAG_BIT_PGI = 0x00040000 + INDEX_BIT_PGI = 0x00080000 + MAT_AMBIENT_BIT_PGI = 0x00100000 + MAT_AMBIENT_AND_DIFFUSE_BIT_PGI = 0x00200000 + MAT_DIFFUSE_BIT_PGI = 0x00400000 + MAT_EMISSION_BIT_PGI = 0x00800000 + MAT_COLOR_INDEXES_BIT_PGI = 0x01000000 + MAT_SHININESS_BIT_PGI = 0x02000000 + MAT_SPECULAR_BIT_PGI = 0x04000000 + NORMAL_BIT_PGI = 0x08000000 + TEXCOORD1_BIT_PGI = 0x10000000 + TEXCOORD2_BIT_PGI = 0x20000000 + TEXCOORD3_BIT_PGI = 0x40000000 + TEXCOORD4_BIT_PGI = 0x80000000 + +# Most of this range is available, but calculating PGI_future_use +# figures is tedious and pointless since they're out of business. +PGI_future_use: lots + +############################################################################### + # E&S: 108000-108999 ############################################################################### diff --git a/upstream-doc/spec/enumext.spec b/upstream-doc/spec/enumext.spec index 347a75e..592444b 100644 --- a/upstream-doc/spec/enumext.spec +++ b/upstream-doc/spec/enumext.spec @@ -1,8 +1,13 @@ +# THIS FILE IS OBSOLETE. Please migrate away from using the +# ".spec" files to the XML Registry. See +# http://www.opengl.org/registry/api/README.txt +# for more information. + # enumext.spec - list of GL enumerants for glext.h header # -# $Revision: 20495 $ on $Date: 2013-02-06 13:01:10 -0800 (Wed, 06 Feb 2013) $ +# $Revision: 22136 $ on $Date: 2013-06-24 04:04:33 -0700 (Mon, 24 Jun 2013) $ -# This is derived from the master GL enumerant registry (enum.spec). +# This is derived from the deprecated GL enumerant registry (enum.spec). # # Unlike enum.spec, enumext.spec is # (1) Grouped by GL core version or extension number @@ -33,15 +38,15 @@ passthru: /* AttribMask */ passthru: /* Boolean */ FALSE = 0 # Boolean TRUE = 1 # Boolean -passthru: /* BeginMode */ - POINTS = 0x0000 # BeginMode - LINES = 0x0001 # BeginMode - LINE_LOOP = 0x0002 # BeginMode - LINE_STRIP = 0x0003 # BeginMode - TRIANGLES = 0x0004 # BeginMode - TRIANGLE_STRIP = 0x0005 # BeginMode - TRIANGLE_FAN = 0x0006 # BeginMode - QUADS = 0x0007 # BeginMode +passthru: /* PrimitiveType */ + POINTS = 0x0000 # PrimitiveType + LINES = 0x0001 # PrimitiveType + LINE_LOOP = 0x0002 # PrimitiveType + LINE_STRIP = 0x0003 # PrimitiveType + TRIANGLES = 0x0004 # PrimitiveType + TRIANGLE_STRIP = 0x0005 # PrimitiveType + TRIANGLE_FAN = 0x0006 # PrimitiveType + QUADS = 0x0007 # PrimitiveType passthru: /* AlphaFunction */ NEVER = 0x0200 # AlphaFunction LESS = 0x0201 # AlphaFunction @@ -281,9 +286,9 @@ passthru: /* ClientAttribMask */ CLIENT_PIXEL_STORE_BIT = 0x00000001 # ClientAttribMask CLIENT_VERTEX_ARRAY_BIT = 0x00000002 # ClientAttribMask CLIENT_ALL_ATTRIB_BITS = 0xFFFFFFFF # ClientAttribMask -passthru: /* BeginMode */ - QUAD_STRIP = 0x0008 # BeginMode - POLYGON = 0x0009 # BeginMode +passthru: /* PrimitiveType */ + QUAD_STRIP = 0x0008 # PrimitiveType + POLYGON = 0x0009 # PrimitiveType passthru: /* AccumOp */ ACCUM = 0x0100 # AccumOp LOAD = 0x0101 # AccumOp @@ -1113,7 +1118,7 @@ VERSION_3_0 enum: CONTEXT_FLAGS = 0x821E COMPRESSED_RED = 0x8225 COMPRESSED_RG = 0x8226 - CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x0001 + CONTEXT_FLAG_FORWARD_COMPATIBLE_BIT = 0x00000001 RGBA32F = 0x8814 RGB32F = 0x8815 RGBA16F = 0x881A @@ -1549,7 +1554,6 @@ passthru: /* Reuse tokens from ARB_gpu_shader5 */ use ARB_gpu_shader5 MIN_FRAGMENT_INTERPOLATION_OFFSET use ARB_gpu_shader5 MAX_FRAGMENT_INTERPOLATION_OFFSET use ARB_gpu_shader5 FRAGMENT_INTERPOLATION_OFFSET_BITS - use ARB_gpu_shader5 MAX_VERTEX_STREAMS passthru: /* Reuse tokens from ARB_gpu_shader_fp64 */ use ARB_gpu_shader_fp64 DOUBLE_VEC2 use ARB_gpu_shader_fp64 DOUBLE_VEC3 @@ -2798,7 +2802,7 @@ ARB_framebuffer_object enum: TEXTURE_DEPTH_TYPE = 0x8C16 UNSIGNED_NORMALIZED = 0x8C17 FRAMEBUFFER_BINDING = 0x8CA6 - DRAW_FRAMEBUFFER_BINDING = GL_FRAMEBUFFER_BINDING + DRAW_FRAMEBUFFER_BINDING = 0x8CA6 # alias FRAMEBUFFER_BINDING RENDERBUFFER_BINDING = 0x8CA7 READ_FRAMEBUFFER = 0x8CA8 DRAW_FRAMEBUFFER = 0x8CA9 @@ -3018,9 +3022,9 @@ passthru: /* ARB_compatibility just defines tokens from core 3.0 */ # ARB Extension #59 ARB_copy_buffer enum: COPY_READ_BUFFER_BINDING = 0x8F36 - COPY_READ_BUFFER = GL_COPY_READ_BUFFER_BINDING + COPY_READ_BUFFER = 0x8F36 # alias COPY_READ_BUFFER_BINDING COPY_WRITE_BUFFER_BINDING = 0x8F37 - COPY_WRITE_BUFFER = GL_COPY_WRITE_BUFFER_BINDING + COPY_WRITE_BUFFER = 0x8F37 # alias COPY_WRITE_BUFFER_BINDING ############################################################################### @@ -3255,7 +3259,7 @@ ARB_gpu_shader5 enum: MIN_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5B MAX_FRAGMENT_INTERPOLATION_OFFSET = 0x8E5C FRAGMENT_INTERPOLATION_OFFSET_BITS = 0x8E5D - use ARB_texture_multisample MAX_VERTEX_STREAMS + use ARB_transform_feedback3 MAX_VERTEX_STREAMS ############################################################################### @@ -3347,9 +3351,9 @@ ARB_texture_buffer_object_rgb32 enum: ARB_transform_feedback2 enum: TRANSFORM_FEEDBACK = 0x8E22 TRANSFORM_FEEDBACK_PAUSED = 0x8E23 - TRANSFORM_FEEDBACK_BUFFER_PAUSED = GL_TRANSFORM_FEEDBACK_PAUSED + TRANSFORM_FEEDBACK_BUFFER_PAUSED = 0x8E23 # alias TRANSFORM_FEEDBACK_PAUSED TRANSFORM_FEEDBACK_ACTIVE = 0x8E24 - TRANSFORM_FEEDBACK_BUFFER_ACTIVE = GL_TRANSFORM_FEEDBACK_ACTIVE + TRANSFORM_FEEDBACK_BUFFER_ACTIVE = 0x8E24 # alias TRANSFORM_FEEDBACK_ACTIVE TRANSFORM_FEEDBACK_BINDING = 0x8E25 ############################################################################### @@ -4079,8 +4083,8 @@ ARB_shader_storage_buffer_object enum: MAX_SHADER_STORAGE_BUFFER_BINDINGS = 0x90DD MAX_SHADER_STORAGE_BLOCK_SIZE = 0x90DE SHADER_STORAGE_BUFFER_OFFSET_ALIGNMENT = 0x90DF - SHADER_STORAGE_BARRIER_BIT = 0x2000 - MAX_COMBINED_SHADER_OUTPUT_RESOURCES = GL_MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS + SHADER_STORAGE_BARRIER_BIT = 0x00002000 + MAX_COMBINED_SHADER_OUTPUT_RESOURCES = 0x8F39 # alias MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS use ARB_shader_image_load_store MAX_COMBINED_IMAGE_UNITS_AND_FRAGMENT_OUTPUTS ############################################################################### @@ -4706,10 +4710,9 @@ SGIX_tag_sample_buffer enum: ############################################################################### # Extension #59 -FfdMaskSGIX enum: +SGIX_polynomial_ffd enum: TEXTURE_DEFORMATION_BIT_SGIX = 0x00000001 GEOMETRY_DEFORMATION_BIT_SGIX = 0x00000002 -SGIX_polynomial_ffd enum: GEOMETRY_DEFORMATION_SGIX = 0x8194 TEXTURE_DEFORMATION_SGIX = 0x8195 DEFORMATIONS_MASK_SGIX = 0x8196 # 1 I @@ -4821,6 +4824,8 @@ PGI_vertex_hints enum: VERTEX_CONSISTENT_HINT_PGI = 0x1A22B MATERIAL_SIDE_HINT_PGI = 0x1A22C MAX_VERTEX_HINT_PGI = 0x1A22D + VERTEX23_BIT_PGI = 0x00000004 + VERTEX4_BIT_PGI = 0x00000008 COLOR3_BIT_PGI = 0x00010000 COLOR4_BIT_PGI = 0x00020000 EDGEFLAG_BIT_PGI = 0x00040000 @@ -4837,8 +4842,6 @@ PGI_vertex_hints enum: TEXCOORD2_BIT_PGI = 0x20000000 TEXCOORD3_BIT_PGI = 0x40000000 TEXCOORD4_BIT_PGI = 0x80000000 - VERTEX23_BIT_PGI = 0x00000004 - VERTEX4_BIT_PGI = 0x00000008 ############################################################################### @@ -5116,21 +5119,8 @@ SGIX_blend_alpha_minmax enum: # Extension #123 - skipped # Extension #124 - skipped # Extension #125 - skipped - -############################################################################### - -# Extension #126 -SGIX_impact_pixel_texture enum: - PIXEL_TEX_GEN_Q_CEILING_SGIX = 0x8184 - PIXEL_TEX_GEN_Q_ROUND_SGIX = 0x8185 - PIXEL_TEX_GEN_Q_FLOOR_SGIX = 0x8186 - PIXEL_TEX_GEN_ALPHA_REPLACE_SGIX = 0x8187 - PIXEL_TEX_GEN_ALPHA_NO_REPLACE_SGIX = 0x8188 - PIXEL_TEX_GEN_ALPHA_LS_SGIX = 0x8189 - PIXEL_TEX_GEN_ALPHA_MS_SGIX = 0x818A - -############################################################################### - +# Extension #126 - skipped (some enums used to be in glext.h, but this +# was an incomplete SGI extension that never actually shipped). # Extension #127 - skipped # Extension #128 - skipped @@ -5374,14 +5364,10 @@ APPLE_transform_hint enum: ############################################################################### -# Extension #161 -SGIX_fog_scale enum: - FOG_SCALE_SGIX = 0x81FC - FOG_SCALE_VALUE_SGIX = 0x81FD - -############################################################################### - +# Extension #161 - skipped # Extension #162 - skipped +# (some enums used to be in glext.h, but these were incomplete SGI +# extensions that never actually shipped). ############################################################################### @@ -5551,12 +5537,12 @@ EXT_texture_filter_anisotropic enum: # Extension #188 EXT_vertex_weighting enum: - MODELVIEW0_STACK_DEPTH_EXT = GL_MODELVIEW_STACK_DEPTH + MODELVIEW0_STACK_DEPTH_EXT = 0x0BA3 # GL_MODELVIEW_STACK_DEPTH MODELVIEW1_STACK_DEPTH_EXT = 0x8502 - MODELVIEW0_MATRIX_EXT = GL_MODELVIEW_MATRIX + MODELVIEW0_MATRIX_EXT = 0x0BA6 # GL_MODELVIEW_MATRIX MODELVIEW1_MATRIX_EXT = 0x8506 VERTEX_WEIGHTING_EXT = 0x8509 - MODELVIEW0_EXT = GL_MODELVIEW + MODELVIEW0_EXT = 0x1700 # GL_MODELVIEW MODELVIEW1_EXT = 0x850A CURRENT_VERTEX_WEIGHT_EXT = 0x850B VERTEX_WEIGHT_ARRAY_EXT = 0x850C @@ -5759,11 +5745,8 @@ SGIX_ycrcba enum: ############################################################################### -# Extension #205 -SGI_depth_pass_instrument enum: - DEPTH_PASS_INSTRUMENT_SGIX = 0x8310 - DEPTH_PASS_INSTRUMENT_COUNTERS_SGIX = 0x8311 - DEPTH_PASS_INSTRUMENT_MAX_SGIX = 0x8312 +# Extension #205 - skipped (some enums used to be in glext.h, but this +# was an incomplete SGI extension that never actually shipped). ############################################################################### @@ -5876,6 +5859,13 @@ NV_fence enum: ############################################################################### +# Extension #223 +IBM_static_data enum: + ALL_STATIC_DATA_IBM = 103060 + STATIC_VERTEX_ARRAY_IBM = 103061 + +############################################################################### + # Extension #224 IBM_texture_mirrored_repeat enum: MIRRORED_REPEAT_IBM = 0x8370 @@ -5953,11 +5943,11 @@ NV_texture_shader enum: SHADER_OPERATION_NV = 0x86DF CULL_MODES_NV = 0x86E0 OFFSET_TEXTURE_MATRIX_NV = 0x86E1 + OFFSET_TEXTURE_2D_MATRIX_NV = 0x86E1 # alias OFFSET_TEXTURE_MATRIX_NV OFFSET_TEXTURE_SCALE_NV = 0x86E2 + OFFSET_TEXTURE_2D_SCALE_NV = 0x86E2 # alias OFFSET_TEXTURE_SCALE_NV OFFSET_TEXTURE_BIAS_NV = 0x86E3 - OFFSET_TEXTURE_2D_MATRIX_NV = GL_OFFSET_TEXTURE_MATRIX_NV - OFFSET_TEXTURE_2D_SCALE_NV = GL_OFFSET_TEXTURE_SCALE_NV - OFFSET_TEXTURE_2D_BIAS_NV = GL_OFFSET_TEXTURE_BIAS_NV + OFFSET_TEXTURE_2D_BIAS_NV = 0x86E3 # alias OFFSET_TEXTURE_BIAS_NV PREVIOUS_TEXTURE_INPUT_NV = 0x86E4 CONST_EYE_NV = 0x86E5 PASS_THROUGH_NV = 0x86E6 @@ -7023,7 +7013,7 @@ EXT_texture_sRGB enum: EXT_framebuffer_blit enum: READ_FRAMEBUFFER_EXT = 0x8CA8 DRAW_FRAMEBUFFER_EXT = 0x8CA9 - DRAW_FRAMEBUFFER_BINDING_EXT = GL_FRAMEBUFFER_BINDING_EXT + DRAW_FRAMEBUFFER_BINDING_EXT = 0x8CA6 # alias FRAMEBUFFER_BINDING_EXT READ_FRAMEBUFFER_BINDING_EXT = 0x8CAA ############################################################################### @@ -7518,7 +7508,7 @@ AMD_texture_texture4 enum: ############################################################################### # Extension #363 -AMD_vertex_shader_tesselator enum: +AMD_vertex_shader_tessellator enum: SAMPLER_BUFFER_AMD = 0x9001 INT_SAMPLER_BUFFER_AMD = 0x9002 UNSIGNED_INT_SAMPLER_BUFFER_AMD = 0x9003 @@ -7926,10 +7916,12 @@ NV_vertex_attrib_integer_64bit enum: ############################################################################### # Extension #393 -# Reuses SAMPLES enum as COVERAGE_SAMPLES +# Revision 4 removed COVERAGE_SAMPLES_NV, which was an alias for +# SAMPLES_ARB, due to a collision with the GL_NV_coverage_sample +# OpenGL ES extension. NV_multisample_coverage enum: - COVERAGE_SAMPLES_NV = 0x80A9 COLOR_SAMPLES_NV = 0x8E20 + use ARB_multisample SAMPLES_ARB ############################################################################### diff --git a/upstream-doc/spec/gl.spec b/upstream-doc/spec/gl.spec index 457ea34..2c97472 100644 --- a/upstream-doc/spec/gl.spec +++ b/upstream-doc/spec/gl.spec @@ -1,13 +1,18 @@ # gl.spec file # DON'T REMOVE PREVIOUS LINE!!! libspec depends on it! # +# THIS FILE IS OBSOLETE. Please migrate away from using the +# ".spec" files to the XML Registry. See +# http://www.opengl.org/registry/api/README.txt +# for more information. +# # Copyright (c) 1991-2005 Silicon Graphics, Inc. All Rights Reserved. # Copyright (c) 2006-2013 The Khronos Group Inc. # # This document is licensed under the SGI Free Software B License Version # 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . # -# $Revision: 20495 $ on $Date: 2013-02-06 13:01:10 -0800 (Wed, 06 Feb 2013) $ +# $Revision: 22136 $ on $Date: 2013-06-24 04:04:33 -0700 (Mon, 24 Jun 2013) $ required-props: # Description of a parameter @@ -24,7 +29,7 @@ vectorequiv: * category: display-list drawing drawing-control feedback framebuf misc modeling pixel-op pixel-rw state-req xform category: VERSION_1_0 VERSION_1_1 VERSION_1_2 VERSION_1_3 VERSION_1_4 VERSION_1_5 VERSION_2_0 VERSION_2_1 VERSION_3_0 VERSION_3_1 VERSION_3_2 VERSION_3_3 VERSION_4_0 VERSION_4_1 VERSION_4_2 VERSION_4_3 category: 3DFX_tbuffer -category: AMD_conservative_depth AMD_debug_output AMD_draw_buffers_blend AMD_multi_draw_indirect AMD_name_gen_delete AMD_performance_monitor AMD_sample_positions AMD_sparse_texture AMD_stencil_operation_extended AMD_vertex_shader_tesselator +category: AMD_conservative_depth AMD_debug_output AMD_draw_buffers_blend AMD_multi_draw_indirect AMD_name_gen_delete AMD_performance_monitor AMD_sample_positions AMD_sparse_texture AMD_stencil_operation_extended AMD_vertex_shader_tessellator category: APPLE_aux_depth_stencil APPLE_element_array APPLE_fence APPLE_float_pixels APPLE_flush_buffer_range APPLE_object_purgeable APPLE_row_bytes APPLE_texture_range APPLE_vertex_array_object APPLE_vertex_array_range APPLE_vertex_program_evaluators category: ARB_ES2_compatibility ARB_base_instance ARB_blend_func_extended ARB_cl_event ARB_color_buffer_float ARB_copy_buffer ARB_debug_output ARB_depth_buffer_float ARB_draw_buffers ARB_draw_buffers_blend ARB_draw_elements_base_vertex ARB_draw_indirect ARB_draw_instanced ARB_fragment_program ARB_fragment_shader ARB_framebuffer_object ARB_framebuffer_sRGB ARB_geometry_shader4 ARB_get_program_binary ARB_gpu_shader_fp64 ARB_half_float_vertex ARB_instanced_arrays ARB_internalformat_query ARB_map_buffer_range ARB_matrix_palette ARB_multisample ARB_multitexture ARB_occlusion_query ARB_point_parameters ARB_provoking_vertex ARB_robustness ARB_sample_shading ARB_sampler_objects ARB_separate_shader_objects ARB_shader_atomic_counters ARB_shader_image_load_store ARB_shader_objects ARB_shader_subroutine ARB_shading_language_include ARB_sync ARB_tessellation_shader ARB_texture_buffer_object ARB_texture_compression ARB_texture_compression_rgtc ARB_texture_multisample ARB_texture_rectangle ARB_texture_rg ARB_texture_storage ARB_timer_query ARB_transform_feedback2 ARB_transform_feedback3 ARB_transform_feedback_instanced ARB_transpose_matrix ARB_uniform_buffer_object ARB_vertex_array_object ARB_vertex_attrib_64bit ARB_vertex_blend ARB_vertex_buffer_object ARB_vertex_program ARB_vertex_shader ARB_vertex_type_2_10_10_10_rev ARB_viewport_array ARB_window_pos category: ARB_clear_buffer_object ARB_compute_shader ARB_copy_image ARB_framebuffer_no_attachments ARB_internalformat_query2 ARB_invalidate_subdata ARB_multi_draw_indirect ARB_program_interface_query ARB_shader_storage_buffer_object ARB_texture_buffer_range ARB_texture_storage_multisample ARB_texture_view ARB_vertex_attrib_binding @@ -32,7 +37,7 @@ category: ATI_draw_buffers ATI_draw_buffers ATI_element_array ATI_envmap_bumpmap category: EXT_bindable_uniform EXT_blend_color EXT_blend_equation_separate EXT_blend_func_separate EXT_blend_minmax EXT_color_subtable EXT_compiled_vertex_array EXT_convolution EXT_coordinate_frame EXT_copy_texture EXT_cull_vertex EXT_depth_bounds_test EXT_direct_state_access EXT_draw_buffers2 EXT_draw_instanced EXT_draw_range_elements EXT_fog_coord EXT_framebuffer_blit EXT_framebuffer_multisample EXT_framebuffer_object EXT_geometry_shader4 EXT_gpu_program_parameters EXT_gpu_shader4 EXT_histogram EXT_index_func EXT_index_material EXT_light_texture EXT_multi_draw_arrays EXT_multisample EXT_paletted_texture EXT_pixel_transform EXT_point_parameters EXT_polygon_offset EXT_provoking_vertex EXT_secondary_color EXT_separate_shader_objects EXT_shader_image_load_store EXT_stencil_clear_tag EXT_stencil_two_side EXT_subtexture EXT_texture3D EXT_texture_buffer_object EXT_texture_integer EXT_texture_object EXT_texture_perturb_normal EXT_texture_snorm EXT_texture_swizzle EXT_timer_query EXT_transform_feedback EXT_vertex_array EXT_vertex_array_bgra EXT_vertex_attrib_64bit EXT_vertex_shader EXT_vertex_weighting EXT_x11_sync_object category: GREMEDY_frame_terminator GREMEDY_string_marker category: HP_image_transform -category: IBM_multimode_draw_arrays IBM_vertex_array_lists +category: IBM_multimode_draw_arrays IBM_static_data IBM_vertex_array_lists category: INGR_blend_func_separate category: INTEL_parallel_arrays INTEL_map_texture category: KHR_debug @@ -884,7 +889,7 @@ ListBase(base) Begin(mode) return void - param mode BeginMode in value + param mode PrimitiveType in value category VERSION_1_0 # old: drawing profile compatibility version 1.0 @@ -3807,7 +3812,7 @@ Translatef(x, y, z) DrawArrays(mode, first, count) return void - param mode BeginMode in value + param mode PrimitiveType in value param first Int32 in value param count SizeI in value category VERSION_1_1 @@ -3819,7 +3824,7 @@ DrawArrays(mode, first, count) DrawElements(mode, count, type, indices) return void - param mode BeginMode in value + param mode PrimitiveType in value param count SizeI in value param type DrawElementsType in value param indices Void in array [COMPSIZE(count/type)] @@ -4214,7 +4219,7 @@ BlendEquation(mode) DrawRangeElements(mode, start, end, count, type, indices) return void - param mode BeginMode in value + param mode PrimitiveType in value param start UInt32 in value param end UInt32 in value param count SizeI in value @@ -4245,7 +4250,6 @@ TexImage3D(target, level, internalformat, width, height, depth, border, format, dlflags handcode glxflags client-handcode server-handcode EXT version 1.2 - deprecated 3.1 glxropcode 4114 offset 371 @@ -5419,7 +5423,7 @@ BlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha) # first and count are really 'in' MultiDrawArrays(mode, first, count, drawcount) return void - param mode BeginMode in value + param mode PrimitiveType in value param first Int32 in array [COMPSIZE(count)] param count SizeI in array [COMPSIZE(drawcount)] param drawcount SizeI in value @@ -5430,7 +5434,7 @@ MultiDrawArrays(mode, first, count, drawcount) MultiDrawElements(mode, count, type, indices, drawcount) return void - param mode BeginMode in value + param mode PrimitiveType in value param count SizeI in array [COMPSIZE(drawcount)] param type DrawElementsType in value param indices ConstVoidPointer in array [COMPSIZE(drawcount)] @@ -8127,7 +8131,7 @@ passthru: /* ARB_vertex_array_object */ DrawArraysInstanced(mode, first, count, instancecount) return void - param mode BeginMode in value + param mode PrimitiveType in value param first Int32 in value param count SizeI in value param instancecount SizeI in value @@ -8141,7 +8145,7 @@ DrawArraysInstanced(mode, first, count, instancecount) DrawElementsInstanced(mode, count, type, indices, instancecount) return void - param mode BeginMode in value + param mode PrimitiveType in value param count SizeI in value param type DrawElementsType in value param indices Void in array [COMPSIZE(count/type)] @@ -11075,7 +11079,7 @@ newcategory: ARB_depth_buffer_float DrawArraysInstancedARB(mode, first, count, primcount) return void - param mode BeginMode in value + param mode PrimitiveType in value param first Int32 in value param count SizeI in value param primcount SizeI in value @@ -11090,7 +11094,7 @@ DrawArraysInstancedARB(mode, first, count, primcount) DrawElementsInstancedARB(mode, count, type, indices, primcount) return void - param mode BeginMode in value + param mode PrimitiveType in value param count SizeI in value param type DrawElementsType in value param indices Void in array [COMPSIZE(count/type)] @@ -17557,7 +17561,7 @@ ColorPointerEXT(size, type, stride, count, pointer) DrawArraysEXT(mode, first, count) return void - param mode BeginMode in value + param mode PrimitiveType in value param first Int32 in value param count SizeI in value category EXT_vertex_array @@ -17784,12 +17788,16 @@ newcategory: SGIX_pixel_tiles ############################################################################### # # Extension #51 -# SGIX_texture_select commands +# SGIS_texture_select commands +# +# This used to be SGIX_texture_select, which was inconsistent with +# enumext.spec and wrong according to the SGI extension spec. # ############################################################################### # (none) -newcategory: SGIX_texture_select +newcategory: SGIS_texture_select +passthru: /* This used to be SGIX prefix, which was an error in the header */ ############################################################################### # @@ -18924,7 +18932,7 @@ newcategory: HP_texture_lighting # Spec entries to be written DrawRangeElementsEXT(mode, start, end, count, type, indices) return void - param mode BeginMode in value + param mode PrimitiveType in value param start UInt32 in value param end UInt32 in value param count SizeI in value @@ -19514,7 +19522,7 @@ TextureNormalEXT(mode) # first and count are really 'in' MultiDrawArraysEXT(mode, first, count, primcount) return void - param mode BeginMode in value + param mode PrimitiveType in value param first Int32 in array [COMPSIZE(primcount)] param count SizeI in array [COMPSIZE(primcount)] param primcount SizeI in value @@ -19525,7 +19533,7 @@ MultiDrawArraysEXT(mode, first, count, primcount) MultiDrawElementsEXT(mode, count, type, indices, primcount) return void - param mode BeginMode in value + param mode PrimitiveType in value param count SizeI in array [COMPSIZE(primcount)] param type DrawElementsType in value param indices VoidPointer in array [COMPSIZE(primcount)] @@ -21226,7 +21234,7 @@ WindowPos4svMESA(v) # ############################################################################### -#@@ (none yet) +newcategory: EXT_texture_compression_s3tc ############################################################################### # @@ -21247,7 +21255,7 @@ newcategory: IBM_cull_vertex MultiModeDrawArraysIBM(mode, first, count, primcount, modestride) return void - param mode BeginMode in array [COMPSIZE(primcount)] + param mode PrimitiveType in array [COMPSIZE(primcount)] param first Int32 in array [COMPSIZE(primcount)] param count SizeI in array [COMPSIZE(primcount)] param primcount SizeI in value @@ -21260,7 +21268,7 @@ MultiModeDrawArraysIBM(mode, first, count, primcount, modestride) MultiModeDrawElementsIBM(mode, count, type, indices, primcount, modestride) return void - param mode BeginMode in array [COMPSIZE(primcount)] + param mode PrimitiveType in array [COMPSIZE(primcount)] param count SizeI in array [COMPSIZE(primcount)] param type DrawElementsType in value param indices ConstVoidPointer in array [COMPSIZE(primcount)] @@ -21664,6 +21672,29 @@ SetFenceNV(fence, condition) glxflags ignore offset 653 +############################################################################### +# +# Extension #223 +# IBM_static_data commands +# +############################################################################### + +FlushStaticDataIBM(target) + return void + param target GLenum in value + category IBM_static_data + version 1.0 + glxflags ignore + +############################################################################### +# +# Extension #224 +# IBM_texture_mirrored_repeat commands +# +############################################################################### +# (none) +newcategory: IBM_texture_mirrored_repeat + ############################################################################### # # Extension #225 @@ -24316,7 +24347,7 @@ ElementPointerATI(type, pointer) DrawElementArrayATI(mode, count) return void - param mode BeginMode in value + param mode PrimitiveType in value param count SizeI in value category ATI_element_array dlflags handcode @@ -24326,7 +24357,7 @@ DrawElementArrayATI(mode, count) DrawRangeElementArrayATI(mode, start, end, count) return void - param mode BeginMode in value + param mode PrimitiveType in value param start UInt32 in value param end UInt32 in value param count SizeI in value @@ -24345,7 +24376,7 @@ DrawRangeElementArrayATI(mode, start, end, count) DrawMeshArraysSUN(mode, first, count, width) return void - param mode BeginMode in value + param mode PrimitiveType in value param first Int32 in value param count SizeI in value param width SizeI in value @@ -24578,7 +24609,7 @@ ElementPointerAPPLE(type, pointer) DrawElementArrayAPPLE(mode, first, count) return void - param mode BeginMode in value + param mode PrimitiveType in value param first Int32 in value param count SizeI in value category APPLE_element_array @@ -24590,7 +24621,7 @@ DrawElementArrayAPPLE(mode, first, count) DrawRangeElementArrayAPPLE(mode, start, end, first, count) return void - param mode BeginMode in value + param mode PrimitiveType in value param start UInt32 in value param end UInt32 in value param first Int32 in value @@ -24604,7 +24635,7 @@ DrawRangeElementArrayAPPLE(mode, start, end, first, count) MultiDrawElementArrayAPPLE(mode, first, count, primcount) return void - param mode BeginMode in value + param mode PrimitiveType in value param first Int32 in array [primcount] param count SizeI in array [primcount] param primcount SizeI in value @@ -24617,7 +24648,7 @@ MultiDrawElementArrayAPPLE(mode, first, count, primcount) MultiDrawRangeElementArrayAPPLE(mode, start, end, first, count, primcount) return void - param mode BeginMode in value + param mode PrimitiveType in value param start UInt32 in value param end UInt32 in value param first Int32 in array [primcount] @@ -27228,7 +27259,7 @@ ClipPlanefOES(plane, equation) ClearDepthfOES(depth) return void - param depth ClampedFloat64 in value + param depth ClampedFloat32 in value category OES_single_precision version 4.3 extension @@ -27277,8 +27308,8 @@ newcategory: OES_read_format QueryMatrixxOES(mantissa, exponent) return GLbitfield - param mantissa ConstFixed in array [16] - param exponent ConstInt32 in array [16] + param mantissa Fixed out array [16] + param exponent Int32 out array [16] category OES_query_matrix version 4.3 extension @@ -28572,7 +28603,7 @@ Uniform4uivEXT(location, count, value) DrawArraysInstancedEXT(mode, start, count, primcount) return void - param mode BeginMode in value + param mode PrimitiveType in value param start Int32 in value param count SizeI in value param primcount SizeI in value @@ -28587,7 +28618,7 @@ DrawArraysInstancedEXT(mode, start, count, primcount) DrawElementsInstancedEXT(mode, count, type, indices, primcount) return void - param mode BeginMode in value + param mode PrimitiveType in value param count SizeI in value param type DrawElementsType in value param indices Void in array [COMPSIZE(count/type)] @@ -29130,7 +29161,6 @@ GetTexParameterIivEXT(target, pname, params) param params Int32 out array [COMPSIZE(pname)] category EXT_texture_integer dlflags notlistable - version 1.0 version 2.0 extension soft WINSOFT NV50 glfflags ignore @@ -29144,7 +29174,6 @@ GetTexParameterIuivEXT(target, pname, params) param params UInt32 out array [COMPSIZE(pname)] category EXT_texture_integer dlflags notlistable - version 1.0 version 2.0 extension soft WINSOFT NV50 glfflags ignore @@ -32107,7 +32136,7 @@ ProgramUniform2dvEXT(program, location, count, value) param program UInt32 in value param location Int32 in value param count SizeI in value - param value Float64 in array [count] + param value Float64 in array [count*2] category EXT_direct_state_access subcategory ARB_gpu_shader_fp64 version 1.2 @@ -32121,7 +32150,7 @@ ProgramUniform3dvEXT(program, location, count, value) param program UInt32 in value param location Int32 in value param count SizeI in value - param value Float64 in array [count] + param value Float64 in array [count*3] category EXT_direct_state_access subcategory ARB_gpu_shader_fp64 version 1.2 @@ -32135,7 +32164,7 @@ ProgramUniform4dvEXT(program, location, count, value) param program UInt32 in value param location Int32 in value param count SizeI in value - param value Float64 in array [count] + param value Float64 in array [count*4] category EXT_direct_state_access subcategory ARB_gpu_shader_fp64 version 1.2 @@ -32150,7 +32179,7 @@ ProgramUniformMatrix2dvEXT(program, location, count, transpose, value) param location Int32 in value param count SizeI in value param transpose Boolean in value - param value Float64 in array [count] + param value Float64 in array [count*4] category EXT_direct_state_access subcategory ARB_gpu_shader_fp64 version 1.2 @@ -32165,7 +32194,7 @@ ProgramUniformMatrix3dvEXT(program, location, count, transpose, value) param location Int32 in value param count SizeI in value param transpose Boolean in value - param value Float64 in array [count] + param value Float64 in array [count*9] category EXT_direct_state_access subcategory ARB_gpu_shader_fp64 version 1.2 @@ -32180,7 +32209,7 @@ ProgramUniformMatrix4dvEXT(program, location, count, transpose, value) param location Int32 in value param count SizeI in value param transpose Boolean in value - param value Float64 in array [count] + param value Float64 in array [count*16] category EXT_direct_state_access subcategory ARB_gpu_shader_fp64 version 1.2 @@ -32195,7 +32224,7 @@ ProgramUniformMatrix2x3dvEXT(program, location, count, transpose, value) param location Int32 in value param count SizeI in value param transpose Boolean in value - param value Float64 in array [count] + param value Float64 in array [count*6] category EXT_direct_state_access subcategory ARB_gpu_shader_fp64 version 1.2 @@ -32210,7 +32239,7 @@ ProgramUniformMatrix2x4dvEXT(program, location, count, transpose, value) param location Int32 in value param count SizeI in value param transpose Boolean in value - param value Float64 in array [count] + param value Float64 in array [count*8] category EXT_direct_state_access subcategory ARB_gpu_shader_fp64 version 1.2 @@ -32225,7 +32254,7 @@ ProgramUniformMatrix3x2dvEXT(program, location, count, transpose, value) param location Int32 in value param count SizeI in value param transpose Boolean in value - param value Float64 in array [count] + param value Float64 in array [count*6] category EXT_direct_state_access subcategory ARB_gpu_shader_fp64 version 1.2 @@ -32240,7 +32269,7 @@ ProgramUniformMatrix3x4dvEXT(program, location, count, transpose, value) param location Int32 in value param count SizeI in value param transpose Boolean in value - param value Float64 in array [count] + param value Float64 in array [count*12] category EXT_direct_state_access subcategory ARB_gpu_shader_fp64 version 1.2 @@ -32255,7 +32284,7 @@ ProgramUniformMatrix4x2dvEXT(program, location, count, transpose, value) param location Int32 in value param count SizeI in value param transpose Boolean in value - param value Float64 in array [count] + param value Float64 in array [count*8] category EXT_direct_state_access subcategory ARB_gpu_shader_fp64 version 1.2 @@ -32270,7 +32299,7 @@ ProgramUniformMatrix4x3dvEXT(program, location, count, transpose, value) param location Int32 in value param count SizeI in value param transpose Boolean in value - param value Float64 in array [count] + param value Float64 in array [count*12] category EXT_direct_state_access subcategory ARB_gpu_shader_fp64 version 1.2 @@ -32582,14 +32611,14 @@ newcategory: AMD_texture_texture4 ############################################################################### # # Extension #363 -# AMD_vertex_shader_tesselator commands +# AMD_vertex_shader_tessellator commands # ############################################################################### TessellationFactorAMD(factor) return void param factor Float32 in value - category AMD_vertex_shader_tesselator + category AMD_vertex_shader_tessellator version 2.0 glxsingle ? glxflags ignore @@ -32598,7 +32627,7 @@ TessellationFactorAMD(factor) TessellationModeAMD(mode) return void param mode GLenum in value - category AMD_vertex_shader_tesselator + category AMD_vertex_shader_tessellator version 2.0 glxsingle ? glxflags ignore diff --git a/upstream-doc/spec/gl.tm b/upstream-doc/spec/gl.tm index 8c7f976..60b922b 100644 --- a/upstream-doc/spec/gl.tm +++ b/upstream-doc/spec/gl.tm @@ -1,7 +1,6 @@ AccumOp,*,*, GLenum,*,* AlphaFunction,*,*, GLenum,*,* AttribMask,*,*, GLbitfield,*,* -BeginMode,*,*, GLenum,*,* BinormalPointerTypeEXT,*,*, GLenum,*,* BlendEquationMode,*,*, GLenum,*,* BlendEquationModeEXT,*,*, GLenum,*,* @@ -17,7 +16,6 @@ CheckedFloat32,*,*, GLfloat,*,* CheckedInt32,*,*, GLint,*,* ClampColorTargetARB,*,*, GLenum,*,* ClampColorModeARB,*,*, GLenum,*,* -ClampedColorF,*,*, GLclampf,*,* ClampedFixed,*,*, GLfixed,*,* ClampedFloat32,*,*, GLclampf,*,* ClampedFloat64,*,*, GLclampd,*,* @@ -54,8 +52,6 @@ CombinerScaleNV,*,*, GLenum,*,* CombinerStageNV,*,*, GLenum,*,* CombinerVariableNV,*,*, GLenum,*,* CompressedTextureARB,*,*, GLvoid,*,* -ControlPointNV,*,*, GLvoid,*,* -ControlPointTypeNV,*,*, GLenum,*,* ConvolutionParameter,*,*, GLenum,*,* ConvolutionParameterEXT,*,*, GLenum,*,* ConvolutionTarget,*,*, GLenum,*,* @@ -95,6 +91,7 @@ FragmentLightModelParameterSGIX,*,*,GLenum,*,* FragmentLightNameSGIX,*,*, GLenum,*,* FragmentLightParameterSGIX,*,*, GLenum,*,* FramebufferAttachment,*,*, GLenum,*,* +FramebufferStatus,*,*, GLenum,*,* FramebufferTarget,*,*, GLenum,*,* FrontFaceDirection,*,*, GLenum,*,* FunctionPointer,*,*, _GLfuncptr,*,* @@ -140,7 +137,6 @@ LogicOp,*,*, GLenum,*,* MapAttribParameterNV,*,*, GLenum,*,* MapParameterNV,*,*, GLenum,*,* MapTarget,*,*, GLenum,*,* -MapTargetNV,*,*, GLenum,*,* MapTypeNV,*,*, GLenum,*,* MaskedColorIndexValueF,*,*, GLfloat,*,* MaskedColorIndexValueI,*,*, GLuint,*,* @@ -149,16 +145,11 @@ MaterialFace,*,*, GLenum,*,* MaterialParameter,*,*, GLenum,*,* MatrixIndexPointerTypeARB,*,*, GLenum,*,* MatrixMode,*,*, GLenum,*,* -MatrixTransformNV,*,*, GLenum,*,* MeshMode1,*,*, GLenum,*,* MeshMode2,*,*, GLenum,*,* MinmaxTarget,*,*, GLenum,*,* MinmaxTargetEXT,*,*, GLenum,*,* NormalPointerType,*,*, GLenum,*,* -NurbsCallback,*,*, GLenum,*,* -NurbsObj,*,*, GLUnurbs*,*,* -NurbsProperty,*,*, GLenum,*,* -NurbsTrim,*,*, GLenum,*,* OcclusionQueryParameterNameNV,*,*, GLenum,*,* PixelCopyType,*,*, GLenum,*,* PixelFormat,*,*, GLenum,*,* @@ -173,21 +164,14 @@ PixelTransformTargetEXT,*,*, GLenum,*,* PixelType,*,*, GLenum,*,* PointParameterNameARB,*,*, GLenum,*,* PolygonMode,*,*, GLenum,*,* -ProgramNV,*,*, GLuint,*,* +PrimitiveType,*,*, GLenum,*,* ProgramCharacterNV,*,*, GLubyte,*,* -ProgramParameterNV,*,*, GLenum,*,* ProgramParameterPName,*,*, GLenum,*,* -QuadricCallback,*,*, GLenum,*,* -QuadricDrawStyle,*,*, GLenum,*,* -QuadricNormal,*,*, GLenum,*,* -QuadricObj,*,*, GLUquadric*,*,* -QuadricOrientation,*,*, GLenum,*,* ReadBufferMode,*,*, GLenum,*,* RenderbufferTarget,*,*, GLenum,*,* RenderingMode,*,*, GLenum,*,* ReplacementCodeSUN,*,*, GLuint,*,* ReplacementCodeTypeSUN,*,*, GLenum,*,* -SamplePassARB,*,*, GLenum,*,* SamplePatternEXT,*,*, GLenum,*,* SamplePatternSGIS,*,*, GLenum,*,* SecondaryColorPointerTypeIBM,*,*, GLenum,*,* @@ -204,10 +188,6 @@ StencilValue,*,*, GLint,*,* String,*,*, const GLubyte *,*,* StringName,*,*, GLenum,*,* TangentPointerTypeEXT,*,*, GLenum,*,* -TessCallback,*,*, GLenum,*,* -TessContour,*,*, GLenum,*,* -TessProperty,*,*, GLenum,*,* -TesselatorObj,*,*, GLUtesselator*,*,* TexCoordPointerType,*,*, GLenum,*,* Texture,*,*, GLuint,*,* TextureComponentCount,*,*, GLint,*,* @@ -225,7 +205,6 @@ UInt32,*,*, GLuint,*,* UInt8,*,*, GLubyte,*,* VertexAttribEnum,*,*, GLenum,*,* VertexAttribEnumNV,*,*, GLenum,*,* -VertexAttribPointerTypeNV,*,*, GLenum,*,* VertexPointerType,*,*, GLenum,*,* VertexWeightPointerTypeEXT,*,*, GLenum,*,* Void,*,*, GLvoid,*,* @@ -235,7 +214,7 @@ WeightPointerTypeARB,*,*, GLenum,*,* WinCoord,*,*, GLint,*,* void,*,*, *,*,* ArrayObjectPNameATI,*,*, GLenum,*,* -ArrayObjectUsageATI,*,*, GLenum,*,*, +ArrayObjectUsageATI,*,*, GLenum,*,* ConstByte,*,*, GLbyte,*,* ConstUByte,*,*, GLubyte,*,* ConstFloat32,*,*, GLfloat,*,* @@ -298,14 +277,13 @@ UInt64,*,*, GLuint64,*,* handleARB,*,*, GLhandleARB,*,* charARB,*,*, GLcharARB,*,* charPointerARB,*,*, GLcharARB*,*,* -sync,*,*, GLsync,*,*, +sync,*,*, GLsync,*,* # EXT_timer_query Int64EXT,*,*, GLint64EXT,*,* UInt64EXT,*,*, GLuint64EXT,*,* # EXT_direct_state_access FramebufferAttachmentParameterName,*,*, GLenum,*,* Framebuffer,*,*, GLuint,*,* -FramebufferStatus,*,*, GLenum,*,* GetFramebufferParameter,*,*, GLenum,*,* Intptr,*,*, GLintptr,*,* ProgramFormat,*,*, GLenum,*,* @@ -330,7 +308,7 @@ GLDEBUGPROCARB,*,*, GLDEBUGPROCARB,*,* # AMD_debug_output GLDEBUGPROCAMD,*,*, GLDEBUGPROCAMD,*,* # NV_vdpau_interop -vdpauSurfaceNV,*,*, GLvdpauSurfaceNV,*,*, +vdpauSurfaceNV,*,*, GLvdpauSurfaceNV,*,* # External API types cl_context,*,*, struct _cl_context *,*,* cl_event,*,*, struct _cl_event *,*,* @@ -352,3 +330,29 @@ PathParameter,*,*, GLenum,*,* PathStringFormat,*,*, GLenum,*,* PathTransformType,*,*, GLenum,*,* PathHandleMissingGlyphs,*,*, GLenum,*,* + +# No longer used in gl.spec +# ClampedColorF,*,*, GLclampf,*,* +# ControlPointNV,*,*, GLvoid,*,* +# ControlPointTypeNV,*,*, GLenum,*,* +# MapTargetNV,*,*, GLenum,*,* +# MatrixTransformNV,*,*, GLenum,*,* +# ProgramNV,*,*, GLuint,*,* +# ProgramParameterNV,*,*, GLenum,*,* +# SamplePassARB,*,*, GLenum,*,* +# VertexAttribPointerTypeNV,*,*, GLenum,*,* + +# Used only in glu.spec +# NurbsCallback,*,*, GLenum,*,* +# NurbsObj,*,*, GLUnurbs*,*,* +# NurbsProperty,*,*, GLenum,*,* +# NurbsTrim,*,*, GLenum,*,* +# QuadricCallback,*,*, GLenum,*,* +# QuadricDrawStyle,*,*, GLenum,*,* +# QuadricNormal,*,*, GLenum,*,* +# QuadricObj,*,*, GLUquadric*,*,* +# QuadricOrientation,*,*, GLenum,*,* +# TessCallback,*,*, GLenum,*,* +# TessContour,*,*, GLenum,*,* +# TessProperty,*,*, GLenum,*,* +# TesselatorObj,*,*, GLUtesselator*,*,* diff --git a/upstream-doc/spec/glx.spec b/upstream-doc/spec/glx.spec index f114508..f5323b7 100644 --- a/upstream-doc/spec/glx.spec +++ b/upstream-doc/spec/glx.spec @@ -1,10 +1,15 @@ +# THIS FILE IS OBSOLETE. Please migrate away from using the +# ".spec" files to the XML Registry. See +# http://www.opengl.org/registry/api/README.txt +# for more information. + # Copyright (c) 1991-2005 Silicon Graphics, Inc. All Rights Reserved. -# Copyright (c) 2006-2010 The Khronos Group, Inc. +# Copyright (c) 2006-2013 The Khronos Group, Inc. # # This document is licensed under the SGI Free Software B License Version # 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . # -# $Revision: 17025 $ on $Date: 2012-03-05 03:01:59 -0800 (Mon, 05 Mar 2012) $ +# $Revision: 21963 $ on $Date: 2013-06-13 02:52:31 -0700 (Thu, 13 Jun 2013) $ required-props: param: retval retained diff --git a/upstream-doc/spec/glxenum.spec b/upstream-doc/spec/glxenum.spec index 328550a..074a63a 100644 --- a/upstream-doc/spec/glxenum.spec +++ b/upstream-doc/spec/glxenum.spec @@ -1,19 +1,18 @@ +# THIS FILE IS OBSOLETE. Please migrate away from using the +# ".spec" files to the XML Registry. See +# http://www.opengl.org/registry/api/README.txt +# for more information. + +# This is the old (no longer canonical) GLX enumerant registry. It is +# no longer maintained or used for current header file generation. + # Copyright (c) 1991-2005 Silicon Graphics, Inc. All Rights Reserved. -# Copyright (c) 2006-2010 The Khronos Group, Inc. +# Copyright (c) 2006-2013 The Khronos Group, Inc. # # This document is licensed under the SGI Free Software B License Version # 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . # -# $Revision: 20030 $ on $Date: 2013-01-02 02:39:38 -0800 (Wed, 02 Jan 2013) $ - -# This is the GLX enumerant registry. -# -# It is an extremely important file. Do not mess with it unless -# you know what you're doing and have permission to do so. -# -# Rules for modification are the same as the rules for the OpenGL -# enumerant registry (gl.spec). Basically, don't modify this -# file unless you're the Khronos API Registrar. +# $Revision: 21963 $ on $Date: 2013-06-13 02:52:31 -0700 (Thu, 13 Jun 2013) $ Extensions define: VERSION_1_1 = 1 diff --git a/upstream-doc/spec/glxenumext.spec b/upstream-doc/spec/glxenumext.spec index 552c318..aa5052f 100644 --- a/upstream-doc/spec/glxenumext.spec +++ b/upstream-doc/spec/glxenumext.spec @@ -1,14 +1,19 @@ +# THIS FILE IS OBSOLETE. Please migrate away from using the +# ".spec" files to the XML Registry. See +# http://www.opengl.org/registry/api/README.txt +# for more information. + # Copyright (c) 1991-2005 Silicon Graphics, Inc. All Rights Reserved. -# Copyright (c) 2006-2010 The Khronos Group, Inc. +# Copyright (c) 2006-2013 The Khronos Group, Inc. # # This document is licensed under the SGI Free Software B License Version # 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . # -# $Revision: 20030 $ on $Date: 2013-01-02 02:39:38 -0800 (Wed, 02 Jan 2013) $ +# $Revision: 21963 $ on $Date: 2013-06-13 02:52:31 -0700 (Thu, 13 Jun 2013) $ # List of GLX enumerants for glxext.h header # -# This is NOT the master GLX enumerant registry (glxenum.spec). +# This is derived from the deprecated GLX enumerant registry (glxenum.spec). # # Unlike glxenum.spec, glxenumext.spec is # (1) In order by extension number. @@ -25,9 +30,9 @@ passthru: passthru: /* Header file version number, required by OpenGL ABI for Linux */ -passthru: /* glxext.h last updated 2013/01/02 */ +passthru: /* glxext.h last updated 2013/06/10 */ passthru: /* Current version at http://www.opengl.org/registry/ */ -passthru: #define GLX_GLXEXT_VERSION 34 +passthru: #define GLX_GLXEXT_VERSION 36 ############################################################################### # diff --git a/upstream-doc/spec/wgl.spec b/upstream-doc/spec/wgl.spec index 4e2c763..c446f3d 100644 --- a/upstream-doc/spec/wgl.spec +++ b/upstream-doc/spec/wgl.spec @@ -1,10 +1,16 @@ +# THIS FILE IS OBSOLETE. Please migrate away from using the +# ".spec" files to the XML Registry. See +# http://www.opengl.org/registry/api/README.txt +# for more information. +# + # Copyright (c) 1991-2002 Silicon Graphics, Inc. All Rights Reserved. -# Copyright (c) 2006-2010 The Khronos Group, Inc. +# Copyright (c) 2006-2013 The Khronos Group, Inc. # # This document is licensed under the SGI Free Software B License Version # 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . # -# $Revision: 10796 $ on $Date: 2010-03-19 17:31:10 -0700 (Fri, 19 Mar 2010) $ +# $Revision: 21963 $ on $Date: 2013-06-13 02:52:31 -0700 (Thu, 13 Jun 2013) $ required-props: param: retval retained @@ -64,6 +70,7 @@ DescribePixelFormat( hdc, ipfd, cjpfd, ppfd ) param ipfd int in value param cjpfd UINT in value param ppfd PIXELFORMATDESCRIPTOR in reference + category wgl GetCurrentDC( ) return HDC diff --git a/upstream-doc/spec/wglenum.spec b/upstream-doc/spec/wglenum.spec index d3cf11d..7e99b56 100644 --- a/upstream-doc/spec/wglenum.spec +++ b/upstream-doc/spec/wglenum.spec @@ -1,23 +1,20 @@ +# THIS FILE IS OBSOLETE. Please migrate away from using the +# ".spec" files to the XML Registry. See +# http://www.opengl.org/registry/api/README.txt +# for more information. + # Copyright (c) 1991-2005 Silicon Graphics, Inc. All Rights Reserved. -# Copyright (c) 2006-2010 The Khronos Group, Inc. +# Copyright (c) 2006-2013 The Khronos Group, Inc. # # This document is licensed under the SGI Free Software B License Version # 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . # -# $Revision: 17770 $ on $Date: 2012-05-10 14:18:27 -0700 (Thu, 10 May 2012) $ +# $Revision: 21963 $ on $Date: 2013-06-13 02:52:31 -0700 (Thu, 13 Jun 2013) $ -# This is the master WGL enumerant registry. -# -# It is an extremely important file. Do not mess with it unless -# you know what you're doing and have permission to do so. -# -# Rules for modification are similar to the rules for the OpenGL -# enumerant registry (gl.spec). Basically, don't modify this file -# unless you're Khronos API Registrar. In principle Microsoft owns -# the WGL registry, but they have for practical purposes ceded -# administration of it to Khronos. -# -# Finally, note that this registry does not currently include +# This is the old (no longer canonical) WGL enumerant registry. It is +# no longer maintained or used for current header file generation. + +# Note that this registry does not currently include # any core WGL enumerants - only enumerants defined by WGL # extensions. @@ -396,9 +393,9 @@ NV_video_capture enum: WGL_UNIQUE_ID_NV = 0x20CE WGL_NUM_VIDEO_CAPTURE_SLOTS_NV = 0x20CF -WGL_NV_gpu_affinity: - WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV = 0x20D0 - WGL_ERROR_MISSING_AFFINITY_MASK_NV = 0x20D1 +WGL_NV_gpu_affinity enum: + ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV = 0x20D0 + ERROR_MISSING_AFFINITY_MASK_NV = 0x20D1 # NV_future_use: 0x20D2-0x20EF @@ -446,7 +443,7 @@ WGL_AMD_gpu_association enum: # Also includes a bitmask - see ContextFlags above # All values are shared with GLX and GL -WGL_ARB_create_context_robustness: +WGL_ARB_create_context_robustness enum: WGL_LOSE_CONTEXT_ON_RESET_ARB = 0x8252 # shared with GLX and GL WGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB = 0x8256 # shared with GLX and GL WGL_NO_RESET_NOTIFICATION_ARB = 0x8261 # shared with GLX and GL diff --git a/upstream-doc/spec/wglenumext.spec b/upstream-doc/spec/wglenumext.spec index 237ff17..42ec2af 100644 --- a/upstream-doc/spec/wglenumext.spec +++ b/upstream-doc/spec/wglenumext.spec @@ -1,16 +1,19 @@ +# THIS FILE IS OBSOLETE. Please migrate away from using the +# ".spec" files to the XML Registry. See +# http://www.opengl.org/registry/api/README.txt +# for more information. + # Copyright (c) 1991-2005 Silicon Graphics, Inc. All Rights Reserved. -# Copyright (c) 2006-2010 The Khronos Group, Inc. +# Copyright (c) 2006-2013 The Khronos Group, Inc. # # This document is licensed under the SGI Free Software B License Version # 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . # -# $Revision: 17027 $ on $Date: 2012-03-05 11:19:50 -0800 (Mon, 05 Mar 2012) $ +# $Revision: 21963 $ on $Date: 2013-06-13 02:52:31 -0700 (Thu, 13 Jun 2013) $ # List of WGL enumerants for wglext.h header # -# This is not the master WGL enumerant registry. Microsoft used -# to maintain that, but given their limited interest in OpenGL, the -# Khronos API Registrar maintains the registry in wglenum.spec. +# This is derived from the deprecated WGL enumerant registry (wglenum.spec). # # Unlike wglenum.spec, wglenumext.spec is # (1) In order by extension number @@ -26,9 +29,9 @@ passthru: passthru: /* Header file version number */ -passthru: /* wglext.h last updated 2012/01/04 */ +passthru: /* wglext.h last updated 2013/06/10 */ passthru: /* Current version at http://www.opengl.org/registry/ */ -passthru: #define WGL_WGLEXT_VERSION 24 +passthru: #define WGL_WGLEXT_VERSION 26 ############################################################################### # @@ -450,8 +453,8 @@ WGL_NV_swap_group enum: # Extension #355 WGL_NV_gpu_affinity enum: - WGL_ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV = 0x20D0 - WGL_ERROR_MISSING_AFFINITY_MASK_NV = 0x20D1 + ERROR_INCOMPATIBLE_AFFINITY_MASKS_NV = 0x20D0 + ERROR_MISSING_AFFINITY_MASK_NV = 0x20D1 ############################################################################### -- 2.20.1