GXGetProjectionv

Syntax

#include <revolution/gx.h>

void GXGetProjectionv( f32* ptr );

Arguments

ptr Pointer to a floating point type array. Minimum size is GX_PROJECTION_SZ.

Return Values

None.

Description

This function gets the current projection matrix in an array format. The returned projection matrix can be supplied as a parameter to GXProject. The first element of ptr is the matrix type (cast to f32). Only two types of projection matrices are supported:

Perspective Matrix Format:

p0 0 p1 0
0 p2 p3 0
0 0 p4 p5
0 0 -1 0

Orthographic Matrix Format:

p0 0 0 p1
0 p2 0 p3
0 0 p4 p5
0 0 0 1

The parameters p0 - p5 are loaded into elements 1 - 6 of the array ptr.

Examples

f32 pm[GX_PROJECTION_SZ];

GXGetProjectionv(pm);

See Also

MTXFrustum, MTXPerspective

Revision History

2006/03/01 Initial version.


CONFIDENTIAL