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="Microsoft FrontPage 5.0"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 9<title>GXGetProjectionv</title> 10</head> 11 12<body> 13 14<h1 align="left">GXGetProjectionv</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/gx.h> 19 20void GXGetProjectionv( f32* ptr ); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<TH>ptr</TH> 27<TD>Pointer to a floating point type array. Minimum size is <code>GX_PROJECTION_SZ</code>.</TD> 28 </tr> 29</TABLE> 30 31<h2>Return Values</h2> 32<p>None.</p> 33 34<H2>Description</H2> 35<P>This function gets the current projection matrix in an array format. The returned projection matrix can be supplied as a parameter to <a href="GXProject.html"><code>GXProject</code></a>. The first element of <SPAN class="argument">ptr</SPAN> is the matrix <A href="../Enumerated_Types/GXProjectionType.html"><SPAN class="argument">type</SPAN></A> (cast to <code>f32</code>). Only two types of projection matrices are supported:</P> 36<P>Perspective Matrix Format:</P> 37<TABLE border="0" width="50%" style="border-left: 1px solid; border-right: 1px solid; border-top: medium none; border-bottom: medium none"> 38 <TBODY> 39 <TR> 40 <TD width="25%" align="center">p0</TD> 41 <TD width="25%" align="center">0</TD> 42 <TD width="25%" align="center">p1</TD> 43 <TD width="25%" align="center">0</TD> 44 </TR> 45 <TR> 46 <TD width="25%" align="center">0</TD> 47 <TD width="25%" align="center">p2</TD> 48 <TD width="25%" align="center">p3</TD> 49 <TD width="25%" align="center">0</TD> 50 </TR> 51 <TR> 52 <TD width="25%" align="center">0</TD> 53 <TD width="25%" align="center">0</TD> 54 <TD width="25%" align="center">p4</TD> 55 <TD width="25%" align="center">p5</TD> 56 </TR> 57 <TR> 58 <TD width="25%" align="center">0</TD> 59 <TD width="25%" align="center">0</TD> 60 <TD width="25%" align="center">-1</TD> 61 <TD width="25%" align="center">0</TD> 62 </TR> 63 </TBODY> 64</TABLE> 65<P>Orthographic Matrix Format:</P> 66<TABLE border="0" width="50%" style="border-left: 1px solid; border-right: 1px solid; border-top: medium none; border-bottom: medium none"> 67 <TBODY> 68 <TR> 69 <TD width="25%" align="center">p0</TD> 70 <TD width="25%" align="center">0</TD> 71 <TD width="25%" align="center">0</TD> 72 <TD width="25%" align="center">p1</TD> 73 </TR> 74 <TR> 75 <TD width="25%" align="center">0</TD> 76 <TD width="25%" align="center">p2</TD> 77 <TD width="25%" align="center">0</TD> 78 <TD width="25%" align="center">p3</TD> 79 </TR> 80 <TR> 81 <TD width="25%" align="center">0</TD> 82 <TD width="25%" align="center">0</TD> 83 <TD width="25%" align="center">p4</TD> 84 <TD width="25%" align="center">p5</TD> 85 </TR> 86 <TR> 87 <TD width="25%" align="center">0</TD> 88 <TD width="25%" align="center">0</TD> 89 <TD width="25%" align="center">0</TD> 90 <TD width="25%" align="center">1</TD> 91 </TR> 92 </TBODY> 93</TABLE> 94<P>The parameters p0 - p5 are loaded into elements 1 - 6 of the array <SPAN class="argument">ptr</SPAN>.</P> 95 96<H2>Examples</H2> 97<P><CODE>f32 pm[GX_PROJECTION_SZ];</CODE></P> 98<P><code><a href="GXGetProjectionv.html">GXGetProjectionv</a>(pm);</code></P> 99 100<h2>See Also</h2> 101<p class="reference"> 102<A href="../../mtx/Projection/MTXFrustum.html">MTXFrustum</A>, 103<A href="../../mtx/Projection/MTXPerspective.html">MTXPerspective</A> 104</p> 105 106<H2>Revision History</H2> 107<P> 1082006/03/01 Initial version.<br> 109</P> 110 111<hr><p>CONFIDENTIAL</p></body> 112</HTML>