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>tex-layer</title>
10</head>
11
12<body>
13
14<h1 align="left">tex-layer</h1>
15
16
17
18<h2>Description</h2>
19
20<P><CODE>tex-layer</CODE> is a simple demo of the multi-texture capabilities. A cube is displayed with two texture maps. The user can change the way the maps are combined, using <CODE>GX_MODULATE</CODE>, <CODE>GX_DECAL</CODE>, or by turning texture map 2 off.</P>
21<h2>Coverage</h2>
22
23<p></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="2"><a href="../../../gx/Tev/GXSetTevOp.html"><FONT face="Courier New">GXSetTevOp</FONT></a></TD>
32<TD width="25%">TEV stage</TD>
33<TD width="45%"><CODE>GX_TEVSTAGE0</CODE>, <CODE>GX_TEVSTAGE1</CODE>.</TD>
34    </tr>
35  <tr>
36<TD width="25%">op</TD>
37<TD width="45%"><CODE>GX_REPLACE</CODE>, <CODE>GX_MODULATE</CODE>, <CODE>GX_DECAL</CODE>, <CODE>GX_PASSCLR</CODE></TD>
38    </tr>
39  <tr>
40<TD width="30%"><a href="../../../gx/Texture/GXLoadTexObj.html"><FONT face="Courier New">GXLoadTexObj</FONT></a></TD>
41<TD width="25%">address</TD>
42<TD width="45%"><CODE>GX_TEXMAP0</CODE>, <CODE>GX_TEXMAP1</CODE></TD>
43    </tr>
44</TABLE>
45<h2>Operation Method</h2>
46
47<p>The Menu button exits the test.</p>
48
49<p>The X Button toggles the combine mode.</p>
50
51<p>The B Button stops/starts cube rotation.</p>
52
53<h2>Snapshot</h2>
54
55<p>Textures are drawn using <CODE>GX_MODULATE</CODE>.</p>
56
57<P><IMG src="./images/tex-layer_1.jpg" alt="tex-layer_1.JPG (6184 bytes)" WIDTH="225" HEIGHT="224"></p>
58
59<p>Textures are drawn using <CODE>GX_DECAL</CODE>.</p>
60
61<P><IMG src="./images/tex-layer_2.jpg" alt="tex-layer_2.JPG (7278 bytes)" WIDTH="226" HEIGHT="226"></p>
62
63
64
65<p>Texture 2 is turned off.</p>
66
67<P><IMG src="./images/tex-layer_3.jpg" alt="tex-layer_3.JPG (12279 bytes)" WIDTH="223" HEIGHT="225"></p>
68
69<h2>Required Data Files</h2>
70
71<p><FONT face="Courier New">$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-05.tpl</FONT></p>
72<H2>Revision History</H2>
73<P>03/01/2006 Initial version.</P>
74</body>
75</html>