reshapeviewport() — Silicon Graphics
NAME
reshapeviewport - sets the viewport to the current dimensions of the graphport
in the window manager
SPECIFICATION
C
reshapeviewport()
FORTRAN
subroutine reshap
Pascal
procedure reshapeviewport;
DESCRIPTION
reshapeviewport sets the viewport to the current dimensions of
the graphport.
reshapeviewport is equivalent to:
int xmin, xmax, ymin, ymax;
getorigin(&xmin, &ymin);
getsize(&xmax, &ymax);
xmax += xmin − 1;
ymax += ymin − 1;
viewport(xmin, xmax, ymin, ymax);
reshapeviewport is normally used when REDRAW events are received. It is most useful in programs designed to be independent of the viewport size and shape.
SEE ALSO
getorigin, getsize, viewport, “Multiple Exposure: The IRIS Window Manager” in the IRIS User’s Guide
NOTE
This command can be used only in immediate mode.
Version 2.4 — May 08, 1986