G2DSetViewport


C Specification

#include <revolution/include/G2D.h>
void G2DSetViewport( u16 nLeft, u16 nTop, u16 nWidth, u16 nHeight );

Description

The G2DSetViewport function sets the viewing rectangle for rendering.

Arguments

nLeft Represents the screen space coordinates in pixels of the left edge in the viewport.
nTop Represents the screen space coordinates in pixels of the upper edge in the viewport.
nWidth Width of the viewport in screen space coordinates in pixels.
nHeight Height of the viewport in screen space coordinates in pixels.

Return Values

None.

See Also

Revision History

03/01/2006 Initial version.