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<hr> 17 18<h2>C Specification</h2> 19 20<p> 21<dl> 22<dd><pre><code>#include <revolution/include/G2D.h></code></pre> 23 </dd> 24<dd><pre><code>void G2DSetViewport( u16 nLeft, u16 nTop, u16 nWidth, u16 nHeight );</code></pre> 25 </dd> 26</dl> 27</p> 28 29<h2>Description</h2> 30 31<p>The <code>G2DSetViewport</code> function sets the viewing rectangle for rendering. </p> 32 33<h2>Arguments</h2> 34 35<table width="100%"> 36 <tr> 37<td> <b><i><STRONG><EM><CODE>nLeft</CODE></EM></STRONG></i></b></td> 38<td> Represents the screen space coordinates in pixels of the left edge in the viewport.</td> 39 </tr> 40 <tr> 41<td><b><i><STRONG><EM><CODE>nTop</CODE></EM></STRONG></i></b></td> 42<td> Represents the screen space coordinates in pixels of the upper edge in the viewport.</td> 43 </tr> 44 <tr> 45<td> <b><i><STRONG><EM><CODE>nWidth</CODE></EM></STRONG></i></b></td> 46<td> Width of the viewport in screen space coordinates in pixels.</td> 47 </tr> 48 <tr> 49<td><b><i><STRONG><EM><CODE>nHeight</CODE></EM></STRONG></i></b></td> 50<td> Height of the viewport in screen space coordinates in pixels.</td> 51 </tr> 52 </table> 53 54<h2>Return Values</h2> 55 56None. 57<h2>See Also</h2> 58 59<h2>Revision History</h2> 60 61<P>03/01/2006 Initial version.</p> 62 63</body> 64</html>