Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rgbmode(3G) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



RGBmode(3G)                                                        RGBmode(3G)



NAME
     RGBmode - sets a rendering and display mode that bypasses the color map

C SPECIFICATION
     void RGBmode()

PARAMETERS
     none

DESCRIPTION
     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
     mode.

SEE ALSO
     c, cmode, cpack, gammaramp, gconfig, getdisplaymode, getgdesc, wmpack

NOTE
     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.


















                                                                        Page 1



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026