1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<META http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<META name="GENERATOR" content="IBM WebSphere Studio Homepage Builder Version 8.0.0.0 for Windows"> 7<META http-equiv="Content-Style-Type" content="text/css"> 8<title>G3_ViewPort</title> 9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css"> 10</head> 11 12<body> 13 14<h1 align="left">G3*_ViewPort <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1> 15<H2>Syntax</H2> 16 17<dl> 18 <dd> 19<PRE><CODE>#include <nitro/gx/g3imm.h> 20#include <nitro/gx/g3b.h> 21#include <nitro/gx/g3c.h> 22 23void G3_ViewPort(int x1, int y1, int x2, int y2); 24 25// Below are APIs for creating the display list (command list)<BR>void G3B_ViewPort(<A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, int x1, int y1, int x2, int y2);<BR>void G3C_ViewPort(<A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, int x1, int y1, int x2, int y2);<BR>void G3BS_ViewPort(<A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, int x1, int y1, int x2, int y2);<BR>void G3CS_ViewPort(<A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, int x1, int y1, int x2, int y2);</CODE></PRE> 26 </dd> 27</dl><h2>Arguments</h2> 28 29<table border="1" width="100%"> 30 <tr> 31 <td width="13%"><em><strong><font face="Courier New">info</font></strong></em></td> 32 <td width="87%">Command List Information.</td> 33 </tr> 34 <tr> 35 <td width="13%"><em><strong><font face="Courier New">x1</font></strong></em></td> 36 <td width="87%">Lower left x-coordinate</td> 37 </tr> 38 <TR> 39 <TD><em><strong><font face="Courier New">y1</font></strong></em></TD> 40 <TD>Lower left y-coordinate</TD> 41 </TR> 42 <TR> 43 <TD><em><strong><font face="Courier New">x2</font></strong></em></TD> 44 <TD>Upper right x-coordinate</TD> 45 </TR> 46 <TR> 47 <TD><em><strong><font face="Courier New">y2</font></strong></em></TD> 48 <TD>Upper right y-coordinate</TD> 49 </TR> 50 </table> 51<h2>Return Values</h2> 52<p>None.</p> 53<H2>Description</H2> 54<P>This function sets the viewport. The coordinate values for viewport settings are 0 - 255 for the x-coordinate and 0 - 191 for the y-coordinate.</P> 55<h2>See Also</h2> 56<H2>Revision History</H2> 57<P>2004/01/19 Initial version.</P> 58<hr><p>CONFIDENTIAL</p></body> 59</html> 60