[ Previous | Next | Contents | Glossary | Home | Search ]
GL3.2 for AIX: Graphics Library (GL) Technical Reference

cmode Subroutine

Purpose

Sets color map mode as the current mode.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void cmode( )

FORTRAN Syntax

SUBROUTINE CMODE

Description

The cmode subroutine sets color map mode as the current mode. This mode is the default.

If your workstation has more than 12 standard bitplanes, you can write color indexes between 0 and 4095 into the standard bitplanes. The drawing mode must be set to NORMALDRAW to write into the standard bitplanes (NORMALDRAW is the default drawing mode). The system must be in color map mode in order to draw into the overlay or underlay bitplanes.

You must call the gconfig subroutine after the cmode subroutine in order to have the cmode subroutine take effect. The system does not enter color map mode until the gconfig subroutine is called.

Note: This subroutine cannot be used to add to a display list.

Implementation Specifics

This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.

The POWERgraphics GXT1000 will ignore the cmode subroutine when applied to windows created with the winX subroutine. The cmode subroutine can still be used with windows created with the winopen subroutine. See the winX subroutine for more detail.

Files

/usr/include/gl/gl.h Contains C language constant and variable type definitions for GL.
/usr/include/gl/fgl.h Contains FORTRAN constant and variable type definitions for GL.

Related Information

Choosing a set of bitplanes for drawing with the drawmode subroutine.

Configuring the system with the gconfig subroutine.

Setting a display mode that bypasses the color map with the RGBmode subroutine.

Working in Color Map and RGB Modes.


[ Previous | Next | Contents | Glossary | Home | Search ]