1<html> 2 3<head> 4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 5<meta name="GENERATOR" content="Microsoft FrontPage 5.0"> 6<meta name="ProgId" content="FrontPage.Editor.Document"> 7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 8 9<title>G2DSetCamera</title> 10</head> 11 12<body> 13 14<h1>G2DSetCamera</h1> 15 16<h2>Syntax</h2> 17<dl><dd><pre class="construction"> 18#include <revolution/G2D.h> 19 20void G2DSetCamera( G2DPosOri *po ); 21</pre></dd></dl> 22 23<h2>Arguments</h2> 24<TABLE class="arguments" border="1" > 25 <tr> 26<th><STRONG><CODE><CODE>po</CODE></CODE></STRONG></th> 27<td>Pointer to the <CODE>G2DPosOri</CODE> structure to which the position and orientation of the camera have been passed.</td> 28 </tr> 29</table> 30 31<h2>Return Values</h2> 32<p>None.</p> 33 34<h2>Description</h2> 35<p>The <code>G2DSetCamera</code> function sets the current position and orientation of the camera. The position and orientation are passed using the <code>G2DposOri</code> structure. The <SPAN class="argument">rOriX</SPAN> and <SPAN class="argument">rOriY</SPAN> elements of this structure specify the orientation as an upward facing vector. This vector represents the direction of the camera in the world-space to be rendered by taking this vector as facing upward in the screen space. This vector must be normalized.</p> 36 37<h2>See Also</h2> 38<p>None.</p> 39 40<h2>Revision History</h2> 41<P> 422006/03/01 Initial version.<br> 43</p> 44 45<hr><p>CONFIDENTIAL</p></body> 46</html>