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<hr>
17
18<h2>C Specification</h2>
19
20<p>
21<dl>
22<dd><pre><code>#include &lt;revolution/include/G2D.h&gt;</code></pre>
23  </dd>
24<dd><pre><code>void G2DSetCamera( G2DPosOri* po );</code></pre>
25  </dd>
26</dl>
27</p>
28
29<h2>Description</h2>
30
31<p>The <code>G2DSetCamera</code> function sets the current camera position and direction. The position and direction are passed to the <code>G2DposOri</code> structure. The <STRONG><EM><CODE>rOriX</CODE></EM></STRONG> and <STRONG><EM><CODE>rOriY</CODE></EM></STRONG> components of this structure specify the direction as an up vector. This vector represents which world space direction to render facing upwards in the screen space. This vector must be normalized.</p>
32
33<h2>Arguments</h2>
34
35<table width="100%">
36  <tr>
37<td> <b><i><STRONG><CODE><CODE>po</CODE></CODE></STRONG></i></b></td>
38<td> Pointer to the <CODE>G2DPosOri</CODE> structure that the camera position and orientation are passed to.</td>
39  </tr>
40  </table>
41
42<h2>Return Values</h2>
43
44None.
45<h2>See Also</h2>
46
47<h2>Revision History</h2>
48
49<P>03/01/2006 Initial version.</p>
50
51</body>
52</html>