|
|
|
|
MGL_setViewport
Sets the currently active viewport.
Declaration
void MGLAPI MGL_setViewport(
rect_t view)
Prototype In
mgraph.h
Parameters
view |
New global viewport bounding rectangle |
Description
Sets the dimensions of the currently active viewport. These dimensions are global to the entire display area used by the currently active video device driver. Note that when the viewport is changing, the viewport origin and current position is always reset back 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 video display.
Note: Setting the viewport also implicitly sets the clip rectangle to cover the entire viewport bounds, which also clears any user defined complex clip region.
See Also
MGL_getViewport, MGL_setRelViewport, MGL_clearViewport, MGL_setClipRect, MGL_setViewportOrg
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com