reshapeviewport(3G) reshapeviewport(3G)
reshapeviewport - sets the viewport to the dimensions of the current
graphics window
void reshapeviewport()
none
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);
getorigin, getsize, viewport
This routine is available only in immediate mode.
PPPPaaaaggggeeee 1111 [ Back ]
|