table of contents
GLRENDERMODE(3G) | OpenGL Manual | GLRENDERMODE(3G) |
NAME¶
glRenderMode - set rasterization mode
C SPECIFICATION¶
GLint glRenderMode(GLenum mode);
PARAMETERS¶
mode
DESCRIPTION¶
glRenderMode sets the rasterization mode. It takes one argument, mode, which can assume one of three predefined values:
GL_RENDER
GL_SELECT
GL_FEEDBACK
The return value of glRenderMode is determined by the render mode at the time glRenderMode is called, rather than by mode. The values returned for the three render modes are as follows:
GL_RENDER
GL_SELECT
GL_FEEDBACK
See the glSelectBuffer() and glFeedbackBuffer() reference pages for more details concerning selection and feedback operation.
NOTES¶
If an error is generated, glRenderMode returns 0 regardless of the current render mode.
ERRORS¶
GL_INVALID_ENUM is generated if mode is not one of the three accepted values.
GL_INVALID_OPERATION is generated if glSelectBuffer() is called while the render mode is GL_SELECT, or if glRenderMode is called with argument GL_SELECT before glSelectBuffer() is called at least once.
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 glRenderMode is executed between the execution of glBegin() and the corresponding execution of glEnd().
ASSOCIATED GETS¶
glGet() with argument GL_RENDER_MODE
SEE ALSO¶
glFeedbackBuffer(), glInitNames(), glLoadName(), glPassThrough(), glPushName(), glSelectBuffer()
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/.
AUTHORS¶
opengl.org
05/02/2014 | opengl.org |