F
glFeedbackBuffer
Chapter 6
152
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.
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 texture matrix.
Notes
glFeedbackBuffer, when used in a display list, is not compiled into the display list but is
executed immediately.
Errors
• GL_INVALID_ENUM is generated if type is not an accepted value.
• GL_INVALID_VALUE is generated if size is negative.
• GL_INVALID_OPERATION is generated if glFeedbackBuffer is called while the
render mode is GL_FEEDBACK, or if glRenderMode is called with argument
GL_FEEDBACK before glFeedbackBuffer is called at least once.
• GL_INVALID_OPERATION is generated if glFeedbackBuffer is executed between
the execution of glBegin and the corresponding execution of glEnd.
Associated Gets
glGet with argument GL_RENDER_MODE
See Also
glBegin,
glLineStipple,
glPassThrough,
glPolygonMode,
glRenderMode,
glSelectBuffer
Table 6-1
type Coordinates Color Texture
Total number
of values
GL_2D x, y 2
GL_3D x, y, z 3
GL_3D_COLOR x, y, z k 3+k
GL_3D_COLOR_TEXTURE x, y, z k 4 7+k
GL_4D_COLOR_TEXTURE x, y, z, w k 4 8+k