G3_Frustum

Syntax

#include <nitro/gx/g3_util.h>
void G3_Frustum( fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, MtxFx44 * mtx );

Arguments

t Y coordinate at the top of the near clipping plane
b Y coordinate at the bottom of the near clipping plane
l X coordinate at the left of the near clipping plane
r X coordinate at the right of the near clipping plane
n Distance from viewpoint to the near clipping plane
f Distance from viewpoint to the far clipping plane
mtx Pointer to a 4x4 matrix.

Return Values

None.

Description

This function sets the Matrix mode to the Projection mode. This function also sets the Frustum matrix as the current matrix. If mtx is not NULL, then the perspective projection matrix is also set in *mtx.
The diagram shows the matrix that is set.

The divider is used internally. Refer to Divider Usage Notes when using this function inside an interrupt.

See Also

G3_FrustumW, G3_Perspective, G3_Ortho

Revision History

2004/01/19 Initial version.


CONFIDENTIAL