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>G2DSetViewport</title>
10</head>
11
12<body>
13
14<h1>G2DSetViewport</h1>
15
16<h2>Syntax</h2>
17<dl><dd><pre class="construction">
18#include &lt;revolution/G2D.h&gt;
19
20void G2DSetViewport( u16 nLeft, u16 nTop, u16 nWidth, u16 nHeight );
21</pre></dd></dl>
22
23<h2>Arguments</h2>
24<TABLE class="arguments" border="1" >
25  <tr>
26<th><STRONG><EM><CODE>nLeft</CODE></EM></STRONG></th>
27<td>The screen-space coordinates (in pixels) of the left-most side of the viewport in screen-space.</td>
28  </tr>
29  <tr>
30<th><STRONG><EM><CODE>nTop</CODE></EM></STRONG></th>
31<td>The screen-space coordinates (in pixels) of the top-most side of the viewport in screen-space.</td>
32  </tr>
33  <tr>
34<th><STRONG><EM><CODE>nWidth</CODE></EM></STRONG></th>
35<td>Width of the viewport in screen-space coordinates (in pixels).</td>
36  </tr>
37  <tr>
38<th><STRONG><EM><CODE>nHeight</CODE></EM></STRONG></th>
39<td>Height of the viewport in screen-space coordinates (in pixels).</td>
40  </tr>
41</table>
42
43<h2>Return Values</h2>
44<p>None.</p>
45
46<h2>Description</h2>
47<p>The <code>G2DSetViewport</code> function sets the viewing rectangle to be used for rendering. </p>
48
49<h2>See Also</h2>
50<p>None.</p>
51
52<h2>Revision History</h2>
53<P>
542006/03/01 Initial version.<br>
55</p>
56
57<hr><p>CONFIDENTIAL</p></body>
58</html>