RGBmode - sets a rendering and display mode that bypasses the color map
RGBmode instructs the system to treat color as a 4-component entity in
the currently active drawmode. Currently RGB mode is supported only by
the normal framebuffer, so RGBmode should be called only while in draw
mode NORMALDRAW. You must call gconfig for RGBmode to take effect.
While in RGB mode, a framebuffer is configured to store separate color
values for red, green, blue, and alpha components. Lighting, shading,
and fog calculations are done in the true, RGB color space. Colors and
writemasks must be specified using RGB-compatible commands such as c,
cpack, and wmpack. The red, green, and blue components stored in the
framebuffer are used (after correction for monitor non-linearity) to
directly control the color guns of the monitor.
Many advanced rendering features, such as complex lighting models,
texture mapping, polygon antialiasing, and fog, are available only in RGB
c, cmode, cpack, gammaramp, gconfig, getdisplaymode, getgdesc, wmpack
RGBmode is not supported on all hardware configurations. The command
getgdesc can be used to determine how many bitplanes in the normal
framebuffer are available for each color component in both single and
double buffered RGB mode.
This routine is available only in immediate mode.
PPPPaaaaggggeeee 1111 [ Back ]