1<html>
2
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
6<meta name="ProgId" content="FrontPage.Editor.Document">
7<LINK rel="stylesheet" type="text/css" href="../CSS/revolution.css">
8
9<title>TPLHeader</title>
10</head>
11
12<body>
13
14<h1>TPLHeader</h1>
15
16<h2>C Specification</h2>
17
18<p>
19<dl>
20  <dd><pre><code>
21typedef struct
22{
23    u16            height;
24    u16            width;
25    u32            format;
26    Ptr            data;
27
28    GXTexWrapMode  wrapS;
29    GXTexWrapMode  wrapT;
30    GXTexFilter    minFilter;
31    GXTexFilter    magFilter;
32
33    float          LODBias;
34    u8             edgeLODEnable;
35    u8             minLOD;
36    u8             maxLOD;
37    u8             unpacked;
38
39} TPLHeader, *TPLHeaderPtr;
40</code></pre>
41  </dd>
42</dl>
43</p>
44
45<h2>Description</h2>
46
47<p>Texture header structure that the TPL library uses.</p>
48
49<table cellSpacing="0" cellPadding="3" border="1">
50  <tr>
51<td><code>height</code></td>
52<td>Height of the texture image  in pixels.</td>
53  </tr>
54  <tr>
55<td><code>width</code></td>
56<td>Width of the texture image in pixels.</td>
57  </tr>
58  <tr>
59<td><code>format</code></td>
60<td>Texture image format.</td>
61  </tr>
62  <tr>
63<td><code>data</code></td>
64<td>Pointer to actual texture image data.</td>
65  </tr>
66  <tr>
67<td><code>wrapS</code></td>
68<td>Describes the wrapping method in the s-direction of the texture coordinates. Takes one of the two values: <code>GX_CLAMP, GX_REPEAT,</code> or <code>GX_MIRROR</code>.</td>
69  </tr>
70  <tr>
71<td><code>wrapT</code></td>
72<td>Describes the wrapping method in the t-direction of the texture coordinates. Takes one of the two values: <code>GX_CLAMP, GX_WRAP,</code> or <code>GX_MIRROR</code>.</td>
73  </tr>
74  <tr>
75<td><code>minFilter</code></td>
76<td>Filter mode when the texel/pixel ratio is &#x2264; 1.0. Takes the value of one of the following: <code>GX_NEAR, GX_LINEAR, GX_NEAR_MIP_NEAR, GX_LIN_MIP_NEAR, GX_NEAR_MIP_LIN,</code> or <code>GX_LIN_MIP_LIN</code>.</td>
77  </tr>
78  <tr>
79<td><code>magFilter</code></td>
80<td>Filter mode when the texel/pixel ratio is &gt; 1.0. Takes the value of one of the following: <code>GX_NEAR</code> or <code>GX_LINEAR</code>.</td>
81  </tr>
82  <tr>
83<td><code>LODBias</code></td>
84<td>Bias to add to computed LOD value.</td>
85  </tr>
86  <tr>
87<td><code>edgeLODEnable</code></td>
88<td>For <CODE>GX_TRUE</CODE>, the LOD that uses the adjacent texel is calculated. Otherwise, the opposite angle is calculated.
89  </tr>
90  <tr>
91<td><code>minLOD</code></td>
92<td>Minimum LOD value. The hardware uses <code>MAX(min_lod, lod)</code>.&nbsp;Values range from 0.0 to 10.0.</td>
93  </tr>
94  <tr>
95<td><code>maxLOD</code></td>
96<td>Maximum LOD value. The hardware uses <code>MIN(max_lod, lod)</code>.&nbsp;Values range from 0.0 to 10.0.</td>
97  </tr>
98<td><code>unpacked</code></td>
99<td>Internal flag for unpacking files.</td>
100  </tr>
101</table>
102
103<h2>See Also</h2>
104
105<P>
106<a href="TPLDescriptor.html"><CODE>TPLDescriptor</CODE></a></P>
107
108<h2>Revision History</h2>
109
110<p>06/20/2006 Initial version.</p>
111
112</body>
113</html>