# MTX_Ortho

## Syntax

      #include <nitro/fx/fx_mtx44.h>

      void MTX_Ortho(
          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 an orthogonal projection matrix to *mtx. The diagram shows the matrix that is set.

Note: When setting the matrix for an orthogonal projection, it will be necessary to select Z-buffering with the `G3*_SwapBuffers` functions. W buffering will not function properly because the depth value will always be fixed.

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

## See Also

`G3_Ortho, MTX_Frustum, MTX_Perspective`

## Revision History

2004/04/27 Initial version.

CONFIDENTIAL