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

gconfig Subroutine

Purpose

Reconfigures the system.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void gconfig( )

FORTRAN Syntax

SUBROUTINE GCONFI

Description

The gconfig subroutine reconfigures the system by setting the requested modes. This subroutine must be called after any call to the overlay, underlay, doublebuffer, multimap, onemap, RGBmode, cmode, or singlebuffer subroutines.

After a call to the gconfig subroutine, the current writemask and color are reset to their default values. The contents of the color map do not change.

Notes:
  1. The operation of this subroutine for the Supergraphics Processor Subsystem is modified. (See " Understanding the Adapter".)
  2. This subroutine cannot be used to add to a display list.

Example

The example C language program overlay.c uses the qconfig subroutine to configure the system after calling the overlay subroutine and the doublebuffer subroutine.

Implementation Specifics

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

The POWERgraphics GXT1000 supports RGB and color index modes by creating separate separate and distinct X11 windows--one window is permanently in RGB mode, and the other is permanently in color index mode. The gconfig subroutine on this adapter merely redirects drawing into one of these two windows. This requires a round-trip to the X11 server causing gconfig to run more slowly than on earlier adapters.

The gconfig subroutine cannot be used to change the rendering mode (RGB mode versus colorindex mode) of windows created with the winX subroutine.

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

Setting color map mode as the current mode with the cmode subroutine.

Setting the display mode to double buffer mode with the doublebuffer subroutine.

Organizing the color map as 16 small maps with the multimap subroutine.

Organizing the color map as one large map with the onemap subroutine.

Setting the number of bitplanes used for overlay with the overlay subroutine.

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

Setting the display mode to single buffer mode with the singlebuffer subroutine.

Setting the number of bitplanes used for underlay with the underlay subroutine.

Understanding the Adapter and Working in Color Map and RGB Modes.

Clearing, Resetting, and Initializing GL and Configuring the Frame Buffer.


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