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<h2>Description</h2> 17<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 the two textures on and off.</P> 18 19<h2>Coverage</h2> 20<TABLE border="1" cellpadding="3" cellspacing="0.1" width="640"> 21 <tr> 22<TD width="30%" bgcolor="#C0C0C0"><EM><STRONG>Functions</STRONG></EM></TD> 23<TD width="25%" bgcolor="#C0C0C0"><EM><STRONG>Parameters</STRONG></EM></TD> 24<TD width="45%" bgcolor="#C0C0C0"><EM><STRONG>Description</STRONG></EM></TD> 25 </tr> 26 <tr> 27<TD width="30%" rowspan="2"><a href="../../../gx/Tev/GXSetTevOp.html"><CODE>GXSetTevOp</CODE></a></TD> 28<TD width="25%"><SPAN class="argument">TEV Stages</SPAN></TD> 29<TD width="45%"><CODE>GX_TEVSTAGE0</CODE>, <CODE>GX_TEVSTAGE1</CODE>.</TD> 30 </tr> 31 <tr> 32<TD width="25%"><SPAN class="argument">op</SPAN></TD> 33<TD width="45%"><CODE>GX_REPLACE</CODE>, <CODE>GX_MODULATE</CODE>, <CODE>GX_DECAL</CODE>, <CODE>GX_PASSCLR</CODE></TD> 34 </tr> 35 <tr> 36<TD width="30%"><a href="../../../gx/Texture/GXLoadTexObj.html"><CODE><CODE>GXLoadTexObj</CODE></CODE></a></TD> 37<TD width="25%"><SPAN class="argument">address</SPAN></TD> 38<TD width="45%"><CODE>GX_TEXMAP0</CODE>, <CODE>GX_TEXMAP1</CODE></TD> 39 </tr> 40</TABLE> 41 42<h2>Using the Demo</h2> 43<p>The Menu button exits the test.</p> 44<p>The X Button toggles the combine mode.</p> 45<p>The B Button stops/starts cube rotation.</p> 46 47<h2>Snapshot</h2> 48<p>Textures are drawn using <CODE>GX_MODULATE</CODE>.</p> 49<P><IMG src="./images/tex-layer_1.jpg" alt="tex-layer_1.JPG (6184 bytes)" WIDTH="225" HEIGHT="224"></p> 50 51<p>Textures are drawn using <CODE>GX_DECAL</CODE>.</p> 52<P><IMG src="./images/tex-layer_2.jpg" alt="tex-layer_2.JPG (7278 bytes)" WIDTH="226" HEIGHT="226"></p> 53 54<p>Texture 2 is turned off.</p> 55<P><IMG src="./images/tex-layer_3.jpg" alt="tex-layer_3.JPG (12279 bytes)" WIDTH="223" HEIGHT="225"></p> 56 57<h2>Required Data Files</h2> 58<p><CODE>$REVOLUTION_SDK_ROOT/dvddata/gxTests/tex-05.tpl</CODE></p> 59 60<H2>Revision History</H2> 61<P> 622006/03/01 Initial version.<br> 63</P> 64 65<hr><p>CONFIDENTIAL</p></body> 66</html>