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<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 G2DInitWorld( u32 nWorldX, u32 nWorldY );</code></pre>
25  </dd>
26</dl>
27</p>
28
29<h2>Description</h2>
30
31<p>The <code>G2DInitWorld</code> function specifies the size of the 2D world space. <STRONG><EM><CODE>nWorldX</CODE></EM></STRONG> and <STRONG><EM><CODE>nWorldY</CODE></EM></STRONG> use pixels as units and must be a power of 2.</p>
32
33<p> </p>
34
35<h2>Arguments</h2>
36
37<table width="100%">
38  <tr>
39<td> <code><i><b><STRONG><EM><CODE>nWorldX</CODE></EM></STRONG></b></i></code></td>
40<td> Width of world space in pixels.</td>
41  </tr>
42  <tr>
43<td><b><code><i><STRONG><EM><CODE>nWorldY</CODE></EM></STRONG></i></code></b></td>
44<td> Height of world space in pixels.</td>
45  </tr>
46  </table>
47
48<h2>Return Values</h2>
49
50<p>None.</p>
51
52<h2>See Also</h2>
53
54<h2>Revision History</h2>
55
56<P>03/01/2006 Initial version.</p>
57
58</body>
59</html>