GXGetViewport

C Specification

#include <revolution/gx.h>
void GXGetViewport(
f32* xOrig,
f32* yOrig,
f32* wd,
f32* ht,
f32* nearZ,
f32* farZ );

Arguments

xOrig Returns the left-most screen coordinate, in pixels.
yOrig Returns top-most screen coordinate, in pixels.
wd Returns the viewport width, in pixels.
ht Returns the viewport height, in pixels.
nearZ Returns the floating point value for near depth scale. Normalized range is 0.0 - 1.0.
farZ Returns floating point value for far depth scale. Normalized range is 0.0 - 1.0.

Return Values

None.

Description

This function returns the current viewport rectangle in screen coordinates. The viewport is set using GXSetViewport.

See Also

GXSetScissor
MTXFrustum
Render Modes

Revision History

03/01/2006 Initial version.