MTXOrtho

C Specification

#include <revolution/mtx.h>
void MTXOrtho (
    Mtx44 m,
    f32   t,
    f32   b,
    f32   l,
    f32   r,
    f32   n,
    f32   f );

Arguments

m New 4x4 parallel projection matrix.  m may be either a Mtx44 or a Mtx44Ptr..
t Top edge of view volume.
b   Bottom edge of view volume.
l Left edge of view volume.
r Right edge of view volume.
n Positive distance to near clipping plane.
f Positive distance to far clipping plane.

Return Values

None.

Description

Sets a 4x4 matrix for orthographic projection. This matrix is used by the GX API to transform points from eye space to screen space.

For normal parallel projections, the axis of projection is the -z axis, so t = positive, b = -t, r = positive, l = -r.

Note: m negates a point's 'z' values, so pre-transformed points should have negative 'z' values in eye space in order to be visible after projection.

See Also

Mtx44, Mtx44Ptr,

MTXFrustum, MTXPerspective

Revision History

03/01/2006 Initial version.