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="Microsoft FrontPage 5.0">
7<META http-equiv="Content-Style-Type" content="text/css">
8<LINK rel="stylesheet" type="text/css" href="../../../CSS/revolution.css">
9<title>cul-viewport</title>
10</head>
11
12<body>
13
14<h1 align="left">cul-viewport</h1>
15
16
17
18<h2>Description</h2>
19
20<P>This program shows viewport and scissor box features on the Revolution system.</P>
21<h2>Coverage</h2>
22
23<p>Scissoring and viewport function.</p>
24<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
25  <tr>
26<TD width="30%" bgcolor="#C0C0C0"><em><strong>Functions</strong></em></TD>
27<TD width="25%" bgcolor="#C0C0C0"><em><strong>Parameters</strong></em></TD>
28<TD width="45%" bgcolor="#C0C0C0"><em><strong>Description</strong></em></TD>
29    </tr>
30  <tr>
31<TD width="30%" rowspan="3"><a href="../../../gx/Transform/GXSetViewport.html"><code>GXSetViewport</code></a></TD>
32<TD width="25%"><strong><em><font face="Courier New">xOrig</font></em></strong>, <strong><em><font face="Courier New">yOrig</font></em></strong>, <font face="Courier New"><strong><em>wd</em></strong></font>, <font face="Courier New"><em><strong>ht</strong></em></font></TD>
33<TD width="45%" valign="top"><SPAN>Can be changed interactively.</SPAN></TD>
34    </tr>
35  <tr>
36      <TD width="25%"><font face="Courier New"><em><strong>nearZ</strong></em></font></TD>
37      <TD width="45%">0.0f</TD>
38    </tr>
39  <tr>
40      <TD width="25%"><em><strong><font face="Courier New">farZ</font></strong></em></TD>
41      <TD width="45%">1.0f</TD>
42    </tr>
43  <tr>
44<TD width="30%"><a href="../../../gx/Culling/GXSetScissor.html"><code>GXSetScissor</code></a></TD>
45<TD width="25%"><strong><em><font face="Courier New">xOrig</font></em></strong>, <strong><em><font face="Courier New">yOrig</font></em></strong>, <font face="Courier New"><strong><em>wd</em></strong></font>, <font face="Courier New"><em><strong>ht</strong></em></font></TD>
46<TD width="45%"><SPAN>Can be changed interactively.</SPAN></TD>
47    </tr>
48</TABLE>
49<h2>Operation Method</h2>
50
51<p>The A Button changes predefined settings 1 through 4 as follows:</p>
52<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
53  <tr>
54<TD width="30%" bgcolor="#C0C0C0" nowrap><em><strong>Setting #</strong></em></TD>
55<TD width="25%" bgcolor="#C0C0C0" nowrap><em><strong>Scissor Box</strong></em></TD>
56<TD width="45%" bgcolor="#C0C0C0" nowrap><em><strong>Viewpoint</strong></em></TD>
57    </tr>
58  <tr>
59      <TD width="30%" nowrap>1</TD>
60      <TD width="25%" nowrap>( 0, 0 ) - ( 640, 480 )</TD>
61      <TD width="45%" nowrap>( 0, 0 ) - ( 640, 480 )</TD>
62    </tr>
63  <tr>
64      <TD width="30%" nowrap>2</TD>
65      <TD width="25%" nowrap>( 240, 180 ) - ( 560, 420 )</TD>
66      <TD width="45%" nowrap>( 0, 0 ) - ( 640, 480 )</TD>
67    </tr>
68  <tr>
69      <TD width="30%" nowrap>3</TD>
70      <TD width="25%" nowrap>( 240, 180 ) - ( 560, 420 )</TD>
71      <TD width="45%" nowrap>( 80, 60 ) - ( 400, 300 )</TD>
72    </tr>
73  <tr>
74      <TD width="30%" nowrap>4</TD>
75      <TD width="25%" nowrap>( 0, 0 ) - ( 640, 480 )</TD>
76      <TD width="45%" nowrap>( 80, 60 ) - ( 400, 300 )</TD>
77    </tr>
78</TABLE>
79<P>The B Button moves the cursor which is shown as a small circle on the corner of the box.<br>The X Button picks up the cursor.<br>The Control Stick moves the location of the corner of the box.<br>START exits the test.</P>
80<P>Information on the scissor box and viewport appears in the upper left of the screen. A red line shows the range of the scissor box; a green line shows the range of viewport.</P>
81<h2>Snap Shots</h2>
82
83<P><B><strong>Predefined setting #1</strong><br></B></P>
84<P>
85<IMG src="./images/cul-viewport-1.gif" alt="cul-viewport-1.gif (75829 bytes)" width="642" height="482"></p>
86
87<p><B><strong>Predefined setting #2</strong><br></B></p>
88
89<P>
90<IMG src="./images/cul-viewport-2.gif" alt="cul-viewport-2.gif (17356 bytes)" width="642" height="482"></p>
91<P><B><strong>Predefined setting #3</strong><br></B></P>
92<p>(This image might differ from the actual hardware due to the difference in clipping ranges.)</p>
93
94<P>
95<IMG src="./images/cul-viewport-3.gif" alt="cul-viewport-3.gif (10205 bytes)" width="642" height="482"></p>
96<P><B><strong>Predefined setting #4</strong><br></B></P>
97<P>(This image might differ from the actual hardware due to the difference in clipping ranges.)</P>
98<P>
99<IMG src="./images/cul-viewport-4.gif" alt="cul-viewport-4.gif (27233 bytes)" width="642" height="482"><br>
100</p>
101
102<h2>Required Data Files</h2>
103
104<p>None.</p>
105<H2>Revision History</H2>
106<P>2006/03/01 Initial version.
107</P>
108<hr>
109<P>CONFIDENTIAL</p>
110</BODY>
111</HTML>