Rendermode

The RenderMode function sets the rasterization mode.

RenderMode( mode );

Arguments                                            mode

The rasterization mode. The following three values are accepted. The default value is GL_RENDER.

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.

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 primitives that would have been drawn if the render mode was GL_RENDER is returned in a select buffer, which must be created (see SelectBuffer) 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 had the render mode been GL_RENDER are returned in a feedback buffer, which must be created (see FeedbackBuffer) before feedback mode is entered.

Note:  Do not call Rendermode between a call to Begin and the corresponding call to End.

Remarks

The RenderMode function takes one argument, mode, which can assume one of three predefined values above.

See Also

Begin 

End