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

winset Subroutine

Purpose

Sets the current window.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void winset(Int32 windowid)

FORTRAN Syntax

SUBROUTINE WINSET(windowid)
INTEGER*4 windowid

Description

The winset subroutine takes the window associated with the windowid parameter and makes it the current window.

All drawing (lines, polygons, and NURBS) is done in the current window. Lighting, depth-cueing, and z-buffering all apply to the current window. Every window has an independent set of stacks: matrix stack, name stack, attribute stack, and viewport stack, and all stack manipulation routines such as matrix multiplies are directed at the current window.

The only attributes that are shared across windows are those defined with the defcursor, deflinestyle, defpattern, defrasterfont, lmdef, loadXfont, and makeobj subroutines.

The winset subroutine is the only subroutine that switches graphics servers.

The winset subroutine does not raise the indicated window to the top position. Use the winpop subroutine to raise a window to the top.

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

Parameter

windowid Specifies which window to set as current.

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

Returning the identifier of the current window with the winget subroutine.

Creating a new window with the winopen subroutine.

Creating and Managing Windows.


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