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>G2DInitWorld</title>
10</head>
11
12<body>
13
14<h1>G2DInitWorld</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/G2D.h&gt;
19
20void G2DInitWorld( u32 nWorldX, u32 nWorldY );
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<th><STRONG><EM><CODE>nWorldX</CODE></EM></STRONG></th>
27<td> Width of the world-space in pixels.</td>
28  </tr>
29  <tr>
30<th><STRONG><EM><CODE>nWorldY</CODE></EM></STRONG></th>
31<td> Height of the world-space in pixels.</td>
32  </tr>
33</table>
34
35<h2>Return Values</h2>
36<p>None.</p>
37
38<h2>Description</h2>
39<p>The <code>G2DInitWorld</code> function specifies the size of the 2D world-space. <SPAN class="argument">nWorldX</SPAN> and <SPAN class="argument">nWorldY</SPAN> are measured in units of pixels and must be powers of two.</p>
40
41<h2>See Also</h2>
42<p>None.</p>
43
44<h2>Revision History</h2>
45<P>
462006/03/01 Initial version.<br>
47</p>
48
49<hr><p>CONFIDENTIAL</p></body>
50</html>