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

ginit Subroutine

Purpose

Initializes the graphics system.

Library

Graphics Library (libgl.a)

C Syntax

void ginit( )

FORTRAN Syntax

SUBROUTINE GINIT

Description

The ginit subroutine initializes the graphics environment to its default values for the global state attributes and creates a window that covers the screen. The ginit subroutine queues the REDRAW window manager device.

Call the ginit subroutine once, before any other GL subroutine.

The recommendation is to use the winopen subroutine for initialization functions to take advantage of the window manager and to avoid unexpected events in the event queue.

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

Example

The example C language program prompt.c uses the ginit subroutine to do a basic graphics setup.

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

Initializing the graphics system without changing the color map with the gbegin subroutine.

Terminating a graphics program with the gexit subroutine.

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

Creating a new window with the winopen subroutine.

Setting Drawing Attributes and Controlling Queues and Devices.

Understanding the Hardware Used by GL, Clearing, Resetting, and Initializing GL, and Windows and Input Control Overview.


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