Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getviewport(3g) — GL2 W2.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

getviewport()  —  Silicon Graphics

NAME

getviewport - returns the current viewport

SPECIFICATION

C
getviewport(left, right, bottom, top)
Screencoord *left, *right, *bottom, *top;

FORTRAN
subroutine getvie(left, right, bottom, top)
integer*2 left, right, bottom, top

Pascal
procedure getviewport(var left, right, bottom, top: Screencoord);

DESCRIPTION

getviewport returns the current viewport, non-destructively reading the top of the viewport stack.  The arguments to getviewport are the addresses of four memory locations.  These will be assigned the left, right, bottom, and top coordinates of the viewport. 

SEE ALSO

popviewport, pushviewport, viewport

NOTE

This command can be used only in immediate mode. 

Version 2.4  —  May 08, 1986

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026