G2DSetViewport

Syntax

#include <revolution/G2D.h>

void G2DSetViewport( u16 nLeft, u16 nTop, u16 nWidth, u16 nHeight );

Arguments

nLeft The screen-space coordinates (in pixels) of the left-most side of the viewport in screen-space.
nTop The screen-space coordinates (in pixels) of the top-most side of the viewport in screen-space.
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.

Description

The G2DSetViewport function sets the viewing rectangle to be used for rendering.

See Also

None.

Revision History

2006/03/01 Initial version.


CONFIDENTIAL