#include <nitro/gx/g3_util.h>
void G3_OrthoW( fx32 t, fx32 b, fx32 l, fx32 r, fx32 n, fx32 f, fx32 scaleW, MtxFx44* mtx );
This function sets the Matrix mode to the Projection mode. This function also sets the Orthogonal Projection matrix to the current matrix. If mtx is not NULL, this function sets an Orthogonal Projection matrix to *mtx. This function uses the divider.
The diagram shows the matrix that is set.
If you set an orthogonal projection, you must use G3*_SwapBuffers to select Z buffering. W buffering will not function properly because the depth value will always be fixed.
X scaleW
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 |
The distance from the eyepoint to the near clipping plane |
f |
The distance from the eyepoint to the far clipping plane |
scaleW |
Fine adjustment parameter for the view volume |
mtx |
Pointer to a 4x4 matrix |
None
G3_Ortho, G3_FrustumW, G3_PerspectiveW
04/27/2004 Initial Version