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

getdrawmode Subroutine

Purpose

Returns the current drawing mode.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

Int32 getdrawmode( )

FORTRAN Syntax

INTEGER*4 FUNCTION GETDRA

Description

The getdrawmode subroutine returns the current drawing mode specified by the drawmode subroutine.

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

Return Values

Symbolic Name
C FORTRAN Draw mode
UNDERDRAW UNDRDR Underlay (background) bitplanes
NORMALDRAW NORMDR Main frame buffer bitplanes
OVERDRAW OVRDRW Overlay (foreground) bitplanes
PUPDRAW PUPDRW Pop-up menus
CURSORDRAW CURSDR Cursor mode

Example

The example C language program prompt.c uses the getdrawmode subroutine to get the current drawing mode so that it can be restored later.

Implementation Specifics

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

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.

Returning the current display mode with the getdisplaymode subroutine.

Popping the viewport stack with the popviewport subroutine.

Creating a Cursor, Removing Hidden Surfaces, and Working in Color Map and RGB Modes.

Configuring the Frame Buffer, Writemasks and Logical Operation, and Querying the System.


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