MTXOrtho

Syntax

#include <revolution/mtx.h>

void MTXOrtho (
    Mtx44 m,
    f32   t,
    f32   b,
    f32   l,
    f32   r,
    f32   n,
    f32   f );

Arguments

m New 4x4 projection matrix. The type of m may be either Mtx44 or 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 the near clipping plane.
f Positive distance to the 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 to screen space.

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

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

See Also

Mtx44, Mtx44Ptr, MTXFrustum, MTXPerspective

Revision History

2006/03/01 Initial version.


CONFIDENTIAL