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

pushviewport Subroutine

Purpose

Duplicates the current viewport.

Libraries

Graphics Library

C (libgl.a)

FORTRAN (libfgl.a)

C Syntax

void pushviewport( ) 

FORTRAN Syntax

SUBROUTINE PUSHVI( )

Description

The pushviewport subroutine pushes down the viewport stack, duplicating the current viewport, screenmask, and depth range. These saved values can be restored using the popviewport subroutine.

The viewport stack is VPSTACKDEPTH levels deep. The pushviewport subroutine is ignored if the stack is full. The VPSTACKDEPTH symbol is defined in the /usr/include/gl/gl.h file.

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

Setting the viewport depth range with the lsetdepth subroutine.

Popping the viewport stack with the popviewport subroutine.

Defining a rectangular 2-D clipping mask with the scrmask subroutine.

Setting the area of the window used for all drawing with the viewport subroutine.

AIX Graphics Library Overview and Using Viewports and Screenmasks.


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