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

getwritemask Subroutine

Purpose

Returns the current writemask.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

Int32 getwritemask( )

FORTRAN Syntax

INTEGER*4 FUNCTION GETWRI

Description

The getwritemask subroutine returns the color map mode writemask. Independently settable writemasks exist for the overlay, underlay, and main frame buffers.

The returned value of this function is an integer with up to 12 significant bits, one for each available bitplane. When a bit is set to zero in the writemask, the corresponding bitplane is read only.

This subroutine is intended for user in color map mode only. To get the RGB mode writemask, use the gRGBmask subroutine.

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

Return Value

The writemask for the current drawing mode.

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

Specifying the target frame buffer for the drawing subroutines with the drawmode subroutine.

Returning the current RGB writemask with the gRGBmask subroutine.

Granting write access to a subset of available bitplanes with the RGBwritemask subroutine.

Granting write permission to a subset of available bitplanes with the writemask subroutine.

Configuring the Frame Buffer and Querying the System.

Writemasks and Logical Operations and Working in Color Map and RGB Modes.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]