1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3
4<head>
5<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>MTX_Ortho</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">MTX_Ortho <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
15<H2>Syntax</H2>
16
17<dl>
18  <dd>
19<PRE>
20<CODE>#include &lt;nitro/fx/fx_mtx44.h&gt;</CODE><BR>
21<CODE>void MTX_Ortho(
22    fx32 t,
23    fx32 b,
24    fx32 l,
25    fx32 r,
26    fx32 n,
27    fx32 f,
28    MtxFx44 * mtx
29);</CODE></PRE></dd>
30</dl><h2>Arguments</h2>
31<TABLE border="1" width="100%">
32  <TBODY>
33    <TR>
34      <TD width="190"><em><strong><font face="Courier New">t</font></strong></em></TD>
35      <TD width="512">Y coordinate at the top of the near clipping plane</TD>
36    </TR>
37    <TR>
38      <TD width="190"><em><strong><font face="Courier New"><em><strong><code>b</code></strong></em>&nbsp;&nbsp;</font></strong></em></TD>
39      <TD width="512">Y coordinate at the bottom of the near clipping plane</TD>
40    </TR>
41    <TR>
42      <TD><em><strong><font face="Courier New">l</font></strong></em></TD>
43      <TD>X coordinate at the left of the near clipping plane</TD>
44    </TR>
45    <TR>
46      <TD><em><strong><font face="Courier New">r</font></strong></em></TD>
47      <TD>X coordinate at the right of the near clipping plane</TD>
48    </TR>
49    <TR>
50      <TD><em><strong><font face="Courier New">n</font></strong></em></TD>
51      <TD>Distance from viewpoint to the near clipping plane</TD>
52    </TR>
53    <TR>
54      <TD><em><strong><font face="Courier New">f</font></strong></em></TD>
55      <TD>Distance from viewpoint to the far clipping plane</TD>
56    </TR>
57    <TR>
58      <TD width="190"><em><strong><font face="Courier New">mtx</font></strong></em></TD>
59      <TD width="512">Pointer to a 4x4 matrix</TD>
60    </TR>
61  </TBODY>
62</TABLE>
63<h2>Return Values</h2>
64<p>None.</p>
65<H2>Description</H2>
66<P>*This function sets an orthogonal projection matrix to <B><I>*mtx</I></B>. The diagram shows the matrix that is set.</P>
67<P><strong>Note:</strong> When setting the matrix for an orthogonal projection, it will be necessary to select Z-buffering with the <CODE><A href="../../gx/g3/G3_SwapBuffers.html">G3*_SwapBuffers</A></CODE> functions. W buffering will not function properly because the depth value will always be fixed.</P>
68<P><span lang=EN-US style='font-size:10.5pt;mso-bidi-font-size: 12.0pt;font-family:Century;mso-fareast-font-family:"MS ??";mso-bidi-font-family: "Times New Roman";mso-font-kerning:1.0pt;mso-ansi-language:EN-US;mso-fareast-language: JA;mso-bidi-language:AR-SA'><span style='mso-text-raise:-58.0pt'><IMG width="205" height="163" src="geo_ortho.gif" v:shapes="_x0000_i1025"></span></span></P>
69<P>The divider is used internally. Refer to <A href="../../cp/div/about_div.html#use_in_intr">Divider Usage Notes</A> when using this function inside an interrupt.</P>
70
71<h2>See Also</h2>
72<P><CODE><A href="../../gx/g3/G3_Ortho.html">G3_Ortho</A>, <A href="MTX_Frustum.html">MTX_Frustum</A>, <A href="MTX_Perspective.html">MTX_Perspective</A></CODE></P>
73<H2>Revision History</H2>
74<P>2004/04/27 Initial version.</P>
75<hr><p>CONFIDENTIAL</p></body>
76</html>
77