Supported Browsers Home   
MGL_setPolygonType Previous   
MGL_setRelViewportDC Next   
External Functions Up   

MGL_setRelViewport

Sets a viewport relative to the current viewport.

Declaration

void MGLAPI MGL_setRelViewport(
    rect_t view)

Prototype In

mgraph.h

Parameters

view

Bounding rectangle for the new viewport

 

Description

Sets the current viewport to the viewport specified by view, relative to the currently active viewport. The new viewport is restricted to fall within the bounds of the currently active viewport. Note that when the viewport is changing, the viewport origin 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.

See Also

MGL_getViewport, MGL_setViewport, MGL_clearViewport, MGL_setClipRect, MGL_setViewportOrg

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com