getviewport(3G) getviewport(3G)
getviewport - gets a copy of the dimensions of the current viewport
void getviewport(left, right, bottom, top)
Screencoord *left, *right, *bottom, *top;
left expects a pointer to a location into which the system should
copy the x coordinate (in pixels) of the left side of the
current view port.
right expects a pointer to a location into which the system should
copy the x coordinate (in pixels) of the right side of the
current view port.
bottom expects a pointer to a location into which the system should
copy the y coordinate (in pixels) of the bottom side of the
current view port.
top expects a pointer to a location into which the system should
copy the y coordinate (in pixels) of the top side of the current
view port.
getviewport gets the dimensions of the current viewport and copies them
to the locations specified as parameters. The current viewport is
defined as the viewport at the top of the viewport stack.
popviewport, pushviewport, viewport
This routine is available only in immediate mode.
PPPPaaaaggggeeee 1111 [ Back ]
|