Returns the dimensions of the current viewport.
FORTRAN (libfgl.a)
void getviewport(Screencoord *left, Screencoord *right,
Screencoord *bottom, Screencoord *top)
SUBROUTINE GETVIE(left, right, bottom, top) INTEGER*2 left, right, bottom, top
The getviewport subroutine returns the dimensions of the current viewport (the top of the viewport stack) and copies these dimensions to the location variables specified as parameters. The left, right, bottom, and top parameters are the addresses of four memory locations assigned the left, right bottom, and top coordinates of the viewport.
Note: This subroutine cannot be used to add to a display list.
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. |
Popping the viewport stack with the popviewport subroutine.
Pushing the viewport onto the viewport stack with the pushviewport subroutine.
Setting the viewport to the dimensions of the current window with the reshapeviewport subroutine.
Setting the area of the window used for all drawing with the viewport subroutine.
AIX Graphics Library Overview, Querying the System, and Using Viewports and Screenmasks.