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 8.0.0.0 for Windows">
7<META http-equiv="Content-Style-Type" content="text/css">
8<title>G3_MakeTexPlttBaseParam</title>
9<LINK rel="stylesheet" href="../../css/nitro.css" type="text/css">
10</head>
11
12<body>
13
14<h1 align="left">G3_MakeTexPlttBaseParam <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/g3.h&gt;
20
21</CODE>static inline
22GXTexPlttBaseParam G3_MakeTexPlttBaseParam( u32 plttBaseAddr, GXTexFmt texfmt )
23
24</PRE>
25  </dd>
26</dl><h2>Arguments</h2>
27
28<table border="1" width="100%">
29  <tr>
30    <td width="13%"><em><strong><font face="Courier New">plttBaseAddr</font></strong></em></td>
31    <td width="87%">The palette's base address</td>
32  </tr>
33  <tr>
34    <td width="13%"><em><strong><font face="Courier New">texfmt</font></strong></em></td>
35    <td width="87%">Texture format</td>
36  </tr>
37  </table>
38<h2>Return Values</h2>
39<P>The address value to set in <code>REG_G3TEXPLTT_BASE</code>.</P>
40<H2>Description</H2>
41<P>This function is used to convert the texture palette's base address into a value that can be set in the texture palette base address register, <code>REG_G3_TEXPLTT_BASE</code>. This function is not necessary if you are using the <CODE><A href="G3_TexPlttBase.html" target="_self">G3*_TexPlttBase</A></CODE> function, but if <SPAN class="argument">texfmt</SPAN> is specified as a constant, optimizations will result in faster execution.</P>
42<h2>See Also</h2>
43<P><A href="G3_TexPlttBase.html" target="_self">G3*_TexPlttBase</A></P>
44<H2>Revision History</H2>
45<P>2004/01/19 Initial version.</P>
46
47<hr><p>CONFIDENTIAL</p></body>
48</html>
49