Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ reshapeviewport(3G) — IRIX 6.5.3f

Media Vault

Software Library

Restoration Projects

Artifacts Sought



reshapeviewport(3G)                                        reshapeviewport(3G)



NAME
     reshapeviewport - sets the viewport to the dimensions of the current
     graphics window

C SPECIFICATION
     void reshapeviewport()

PARAMETERS
     none

DESCRIPTION
     reshapeviewport sets the viewport to the dimensions of the current
     graphics window.  Call it whenever REDRAW events are received for windows
     whose size is unconstrained, and therefore could have changed.

     reshapeviewport is equivalent to:

          long xsize, ysize;

          getsize(&xsize, &ysize);
          viewport(0, xsize-1, 0, ysize-1);


SEE ALSO
     getorigin, getsize, viewport

NOTE
     This routine is available only in immediate mode.



























                                                                        Page 1



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