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