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

gexit Subroutine

Purpose

Terminates a graphics program.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void gexit( )

FORTRAN Syntax

Description

The gexit subroutine is the final graphics routine in a program. This subroutine waits for the graphics pipeline to empty, then frees all GL data structures.

After the gexit subroutine, a process can no longer call any routines that require the graphics to be initialized.

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

The gexit subroutine unmaps and eliminates all windows, closes the display connection, detaches all GL shared memory segments, cleans up and closes all GL graphics hardware resources, and eliminates GL processes and kernel context.

The gexit subroutine leaves the calling process in a state similar to that in which it would have been if no GL routine had ever been callled.

Example

The example C language program scrn_rotate.c uses the gexit subroutine to end graphics processing.

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

Resetting all global state attributes to their initial values with the greset subroutine.

Understanding the Hardware Used by GL in GL3.2 Version 4 for AIX: Programming Concepts.

Clearing, Resetting, and Initializing GL in GL3.2 Version 4 for AIX: Programming Concepts.


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