cul-viewport

Description

This program indicates the viewport and scissor box features on the Wii.

Coverage

Scissoring and viewport function.

Functions Parameters Description
GXSetViewport xOrig, yOrig, wd, ht Can be changed interactively.
nearZ 0.0f
farZ 1.0f
GXSetScissor xOrig, yOrig, wd, ht Can be changed interactively.

Using the Demo

The A Button changes predefined settings 1 through 4 as follows.

Setting # Scissor Box Viewport
1 ( 0, 0 ) - ( 640, 480 ) ( 0, 0 ) - ( 640, 480 )
2 ( 240, 180 ) - ( 560, 420 ) ( 0, 0 ) - ( 640, 480 )
3 ( 240, 180 ) - ( 560, 420 ) ( 80, 60 ) - ( 400, 300 )
4 ( 0, 0 ) - ( 640, 480 ) ( 80, 60 ) - ( 400, 300 )

The B Button moves the cursor which is shown as a small circle on the corner of the box.
The X Button makes the cursor go faster.
The Control Stick moves the location of the corner of the box.
PAUSE exits the test.

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.

Snap Shots

Predefined setting #1

cul-viewport-1.gif (75829 bytes)

Predefined setting #2

cul-viewport-2.gif (17356 bytes)

Predefined setting #3

(This image might differ from the actual hardware due to the difference in clipping ranges.)

cul-viewport-3.gif (10205 bytes)

Predefined setting #4

(This image might differ from the actual hardware due to the difference in clipping ranges.)

cul-viewport-4.gif (27233 bytes)

Required Data Files

None.

Revision History

2006/03/01 Initial version.


CONFIDENTIAL