Terminates a graphics program.
void gexit( )
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.
The example C language program scrn_rotate.c uses the gexit subroutine to end graphics processing.
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
|/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.|
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.