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<h2>Description</h2>
17<P>This program indicates the viewport and scissor box features on the Wii.</P>
18
19<h2>Coverage</h2>
20<p>Scissoring and viewport function.</p>
21<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
22  <tr>
23<TD width="30%" bgcolor="#C0C0C0"><em><strong>Functions</strong></em></TD>
24<TD width="25%" bgcolor="#C0C0C0"><em><strong>Parameters</strong></em></TD>
25<TD width="45%" bgcolor="#C0C0C0"><em><strong>Description</strong></em></TD>
26    </tr>
27  <tr>
28<TD width="30%" rowspan="3"><a href="../../../gx/Transform/GXSetViewport.html"><code>GXSetViewport</code></a></TD>
29<TD width="25%"><SPAN class="argument">xOrig</SPAN>, <SPAN class="argument">yOrig</SPAN>, <SPAN class="argument">wd</SPAN>, <SPAN class="argument">ht</SPAN></TD>
30<TD width="45%" valign="top"><SPAN>Can be changed interactively.</SPAN></TD>
31    </tr>
32  <tr>
33<TD width="25%"><SPAN class="argument">nearZ</SPAN></TD>
34<TD width="45%">0.0f</TD>
35    </tr>
36  <tr>
37<TD width="25%"><SPAN class="argument">farZ</SPAN></TD>
38<TD width="45%">1.0f</TD>
39    </tr>
40  <tr>
41<TD width="30%"><a href="../../../gx/Culling/GXSetScissor.html"><code>GXSetScissor</code></a></TD>
42<TD width="25%"><SPAN class="argument">xOrig</SPAN>, <SPAN class="argument">yOrig</SPAN>, <SPAN class="argument">wd</SPAN>, <SPAN class="argument">ht</SPAN></TD>
43<TD width="45%"><SPAN>Can be changed interactively.</SPAN></TD>
44    </tr>
45</TABLE>
46
47<h2>Using the Demo</h2>
48<p>The A Button changes predefined settings 1 through 4 as follows.</p>
49<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640">
50  <tr>
51<TD width="30%" bgcolor="#C0C0C0" nowrap><em><strong>Setting #</strong></em></TD>
52<TD width="25%" bgcolor="#C0C0C0" nowrap><em><strong>Scissor Box</strong></em></TD>
53<TD width="45%" bgcolor="#C0C0C0" nowrap><em><strong>Viewport</strong></em></TD>
54    </tr>
55  <tr>
56      <TD width="30%" nowrap>1</TD>
57      <TD width="25%" nowrap>( 0, 0 ) - ( 640, 480 )</TD>
58      <TD width="45%" nowrap>( 0, 0 ) - ( 640, 480 )</TD>
59    </tr>
60  <tr>
61      <TD width="30%" nowrap>2</TD>
62      <TD width="25%" nowrap>( 240, 180 ) - ( 560, 420 )</TD>
63      <TD width="45%" nowrap>( 0, 0 ) - ( 640, 480 )</TD>
64    </tr>
65  <tr>
66      <TD width="30%" nowrap>3</TD>
67      <TD width="25%" nowrap>( 240, 180 ) - ( 560, 420 )</TD>
68      <TD width="45%" nowrap>( 80, 60 ) - ( 400, 300 )</TD>
69    </tr>
70  <tr>
71      <TD width="30%" nowrap>4</TD>
72      <TD width="25%" nowrap>( 0, 0 ) - ( 640, 480 )</TD>
73      <TD width="45%" nowrap>( 80, 60 ) - ( 400, 300 )</TD>
74    </tr>
75</TABLE>
76<P>The B Button moves the cursor which is shown as a small circle on the corner of the box.<BR>The X Button makes the cursor go faster.<BR>The Control Stick moves the location of the corner of the box.<BR>PAUSE exits the test.</P>
77<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>
78
79<h2>Snap Shots</h2>
80<P><B><strong>Predefined setting #1</strong><br></B></P>
81<P>
82<IMG src="./images/cul-viewport-1.gif" alt="cul-viewport-1.gif (75829 bytes)" width="642" height="482"></p>
83
84<p><B><strong>Predefined setting #2</strong><br></B></p>
85
86<P>
87<IMG src="./images/cul-viewport-2.gif" alt="cul-viewport-2.gif (17356 bytes)" width="642" height="482"></p>
88<P><B><strong>Predefined setting #3</strong><br></B></P>
89<p>(This image might differ from the actual hardware due to the difference in clipping ranges.)</p>
90
91<P>
92<IMG src="./images/cul-viewport-3.gif" alt="cul-viewport-3.gif (10205 bytes)" width="642" height="482"></p>
93<P><B><strong>Predefined setting #4</strong><br></B></P>
94<P>(This image might differ from the actual hardware due to the difference in clipping ranges.)</P>
95<P>
96<IMG src="./images/cul-viewport-4.gif" alt="cul-viewport-4.gif (27233 bytes)" width="642" height="482"><br>
97</p>
98
99<h2>Required Data Files</h2>
100<p>None.</p>
101
102<H2>Revision History</H2>
103<P>
1042006/03/01 Initial version.<BR>
105</P>
106
107<hr><p>CONFIDENTIAL</p></body>
108</html>