|
|
|
|
MGL_getViewport
Returns the currently active viewport.
Declaration
void MGLAPI MGL_getViewport(
rect_t *view)
Prototype In
mgraph.h
Parameters
view |
Place to store the current viewport |
Description
This function returns a copy of the currently active viewport. These dimensions are global to the entire device context surface. When the viewport is changed with this function, the viewport origin is reset to (0,0).
All output in MGL is relative to the current viewport, so by changing the viewport to a new value you can make all output appear in a different rectangular portion of the device surface.
See Also
MGL_getViewportDC, MGL_setViewport, MGL_setRelViewport, MGL_setViewportOrg, MGL_clearViewport, MGL_setClipRect
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com