cpack(3G)
cpack - specifies RGBA color with a single packed 32-bit integer
As shipped in IRIX 6.5.7. Unchanged since IRIX 6.5.
NAME cpack - specifies RGBA color with a single packed 32-bit integer FORTRAN 77 SPECIFICATION subroutine cpack(pack) integer*4 pack PARAMETERS pack expects a packed integer containing the RGBA (red, green, blue, alpha) values you want to assign as the current color. Expressed in hexadecimal, the format of the packed integer is $aabbggrr, where: aa is the alpha value, bb is the blue value, gg is the green value, and rr is the red value. RGBA component values range from 0 to $FF (255). DESCRIPTION cpack sets the red, green, blue, and alpha color components of the currently active GL framebuffer, one of normal, popup, overlay, or underlay (see drawmo). The current framebuffer must be in RGB mode (see RGBmod) for the cpack command to be applicable. Most drawing commands copy the current RGBA color components into the color bitplanes of the current framebuffer. Color components are retained in each draw mode, so when a draw mode is re-entered, red, green, blue, and alpha are reset to the last value specified in that draw mode. Color component values range from 0, specifying no intensity, through 255, specifying maximum intensity. For example, cpack($FF004080) sets red to 16#80# (half intensity), green to 16#40# (quarter intensity), blue to 0 (off), and alpha to 16#FF# (full intensity). It is an error to call cpack while the current framebuffer is in color map mode. The color components of all framebuffers in RGB mode are set to zero when gconfi is called. SEE ALSO c, drawmo, gRGBco, lmcolo NOTE cpack can also be used to modify the current material while lighting is active (see lmcolo). Because only the normal framebuffer currently supports RGB mode, cpack should be called only while draw mode is NORMAL. Use getgde to determine whether RGB mode is available in draw mode NORMAL.