GXGetViewport

Syntax

#include <revolution/gx.h>

void GXGetViewport(
    f32* xOrig, 
    f32* yOrig, 
    f32* wd, 
    f32* ht, 
    f32* nearZ, 
    f32* farZ );

Arguments

xOrig Leftmost screen coordinate, in pixels.
yOrig Topmost screen coordinate, in pixels.
wd Viewport width, in pixels.
ht Viewport height, in pixels.
nearZ Floating-point value for near depth scale.
farZ Floating-point value for far depth scale.

Return Values

None.

Description

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

See Also

GXSetScissor
MTXFrustum
Render Modes

Revision History

2008/12/04 Revised the description of depth scale.
2006/03/01 Initial version.


CONFIDENTIAL