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="IBM WebSphere Studio Homepage Builder Version 7.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>G3*_TexCoord</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">G3*_TexCoord <img src="../../image/NTR.gif"align="middle"><img src="../../image/TWL.gif" align="middle"></H1>
15<H2>Syntax</H2>
16
17<dl>
18  <dd>
19<PRE><CODE>#include &lt;nitro/gx/g3imm.h&gt;
20#include &lt;nitro/gx/g3b.h&gt;
21#include &lt;nitro/gx/g3c.h&gt;
22
23void G3_TexCoord(fx32 s, fx32 t);
24
25// Below are APIs for creating the display list (command list)<BR>void G3B_TexCoord(<A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, fx32 s, fx32 t);<BR>void G3C_TexCoord(<A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, fx32 s, fx32 t);<BR>void G3BS_TexCoord(<A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, fx32 s, fx32 t);<BR>void G3CS_TexCoord(<A href="../gx/GXDLInfo.html">GXDLInfo</A>* info, fx32 s, fx32 t);</CODE></PRE>
26  </dd>
27</dl><h2>Arguments</h2>
28
29<table border="1" width="100%">
30  <tr>
31    <td width="13%"><em><strong><font face="Courier New">info</font></strong></em></td>
32    <td width="87%">Command List Information.</td>
33  </tr>
34  <tr>
35    <td width="13%"><em><strong><font face="Courier New">s</font></strong></em></td>
36    <td width="87%">S coordinate</td>
37  </tr>
38    <TR>
39      <TD><em><strong><font face="Courier New">t</font></strong></em></TD>
40      <TD>T coordinate</TD>
41    </TR>
42  </table>
43<h2>Return Values</h2>
44<p>None.</p>
45<H2>Description</H2>
46<P>Both <em><strong><code>s</code></strong></em> and <em><strong><code>t</code></strong></em> must be between -2048 (<code>0xFF800000</code>0 and 2047.9735 (<code>0x007FFF00</code>). It is converted to a fixed-point decimal (sign + 11-bit integer + 4-bit decimal) and packed into a 1-word parameter. The texture coordinates remain valid until the next <CODE><A href="G3_TexCoord.html">G3*_TexCoord</A></CODE> command resets the current texture coordinates. Therefore, multiple vertices can share the texture coordinates. When performing texture mapping, the geometry engine will process faster if you issue commands in this order: <code><A href="G3_TexCoord.html">G3*_TexCoord</A></code>, <code><A href="G3_Normal.html">G3*_Normal</A></code>, and then <code><A href="G3_Vtx.html">G3*_Vtx</A></code>.</P>
47<h2>See Also</h2>
48<P><code><A href="G3_Normal.html">G3*_Normal</A>, <A href="G3_Vtx.html">G3*_Vtx</A></code></P>
49<H2>Revision History</H2>
50<P>2004/01/19 Initial version.</P>
51<hr><p>CONFIDENTIAL</p></body>
52</html>
53