GLRENDERMODE(3G) | GLRENDERMODE(3G) |
glRenderMode - set rasterization mode
GLint glRenderMode( GLenum mode )
glRenderMode sets the rasterization mode. It takes one argument, mode, which can assume one of three predefined values:
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:
See the glSelectBuffer and glFeedbackBuffer reference pages for more details concerning selection and feedback operation.
If an error is generated, glRenderMode returns 0 regardless of the current render mode.
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.
glGet with argument GL_RENDER_MODE
glFeedbackBuffer, glInitNames, glLoadName, glPassThrough, glPushName, glSelectBuffer