Sets the viewport to the dimensions of the current window.
void reshapeviewport( )
SUBROUTINE RESHAP( )
The reshapeviewport subroutine sets the viewport to the dimensions of the current window.
The reshapeviewport subroutine is equivalent to:
long xsize, ysize; getsize(&xsize, &ysize); viewport(0, xsize-1, 0, ysize-1);
Use the reshapeviewport subroutine when REDRAW events are received. It is most useful in programs that are independent of the size and shape of the viewport.
Note: This subroutine cannot be used to add to a display list.
The example C language program scrn_rotate.c uses the reshapeviewport subroutine to reshape the viewport on a REDRAW event.
This subroutine is part of GL in the AIXwindows Environment/6000 Version 1, Release 2 with AIXwindows/3D Feature.
|/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.|
Clearing the viewport with the clear subroutine.
Returning the position of a window with the getorigin subroutine.
Returning the size of a window with the getsize subroutine.
AIX Graphics Library Overview and Using Viewports and Screenmasks.