GLRENDERMODE(3G)
β¨ NAME β¨
okay bestie, welcome to the GLRENDERMODE(3G) manual page π this is all about glRenderMode β and it sets the rasterization mode. that's the name, that's the job, periodt.
π C SPECIFICATION π
GLint glRenderMode( GLenum mode )
so clean, so iconic, look at that signature
π PARAMETERS π
modeβ specifies the rasterization mode. Three values are accepted:GL_RENDER,GL_SELECT, andGL_FEEDBACK. The initial value isGL_RENDER. yes bestie, only three, keep up π
π¦ DESCRIPTION π¦
glRenderMode sets the rasterization mode. It takes one argument, mode, which can assume one of three predefined values:
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. the main character, fr frGL_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 primitives that would have been drawn if the render mode had beenGL_RENDERis returned in a select buffer, which must be created (seeglSelectBuffer) before selection mode is entered.GL_FEEDBACKβ 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 beenGL_RENDERis returned in a feedback buffer, which must be created (seeglFeedbackBuffer) before feedback mode is entered.
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β0. zero, zilch, nadaGL_SELECTβ The number of hit records transferred to the select buffer.GL_FEEDBACKβ The number of values (not vertices) transferred to the feedback buffer. not vertices!! values!! read it again bestie
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. not the error wiping your return value, that's so real π
π ERRORS π
GL_INVALID_ENUMis generated ifmodeis not one of the three accepted values.GL_INVALID_OPERATIONis generated ifglSelectBufferis called while the render mode isGL_SELECT, or ifglRenderModeis called with argumentGL_SELECTbeforeglSelectBufferis called at least once.GL_INVALID_OPERATIONis generated ifglFeedbackBufferis called while the render mode isGL_FEEDBACK, or ifglRenderModeis called with argumentGL_FEEDBACKbeforeglFeedbackBufferis called at least once.GL_INVALID_OPERATIONis generated ifglRenderModeis executed between the execution ofglBeginand the corresponding execution ofglEnd. timing is everything, periodt
π ASSOCIATED GETS π
glGet with argument GL_RENDER_MODE. iykyk
π SEE ALSO π
glFeedbackBuffer(3G)glInitNames(3G)glLoadName(3G)glPassThrough(3G)glPushName(3G)glSelectBuffer(3G)
okay that's the whole page bestie π signing off from the GLRENDERMODE(3G) manual β source/version is GLRENDERMODE(3G), and the date? the footer didn't show one, so we're not making it up, periodt. bye π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: Mesa-libGL-devel 24.1.7-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- opensuse-leap 16.0: Mesa-libGL-devel 24.3.3-160000.3.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms