1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../../../css/manpage.css" type="text/css" />
7    <style type="text/css"><!--
8      span.static_style
9      {
10        font-size			: 8pt;
11        color				: white;
12        font-weight			: bold;
13        background			: #44f;
14        border-left			: solid 1px #aaf;
15        border-top			: solid 1px #aaf;
16        border-right		: solid 1px #00c;
17        border-bottom		: solid 1px #00c;
18        padding-left		: 2px;
19        padding-right		: 2px;
20      }
21      span.virtual_style
22      {
23        font-size			 : 8pt;
24        color				 : white;
25        font-weight			: bold;
26        background			: #0a0;
27        border-left			: solid 1px #0f0;
28        border-top			: solid 1px #0f0;
29        border-right		: solid 1px #060;
30        border-bottom		: solid 1px #060;
31        padding-left		: 2px;
32        padding-right		: 2px;
33      }
34      span.protected_style
35      {
36        font-size			 : 8pt;
37        color				 : white;
38        font-weight			: bold;
39        background			: #444;
40        border-left			: solid 1px #ccc;
41        border-top			: solid 1px #ccc;
42        border-right		: solid 1px #222;
43        border-bottom		: solid 1px #222;
44        padding-left		: 2px;
45        padding-right		: 2px;
46      }
47        --></style>
48<title>nn::gr::CTR::Texture::UnitBase</title>
49  </head>
50  <body>
51<h1><CODE><a href="../../../../../nn/Overview.html">nn</a>::<a href="../../../../../nn/gr/Overview.html">gr</a>::<a href="../../../../../nn/gr/CTR/Overview.html">CTR</a>::<a href="../../../../../nn/gr/CTR/Texture/Overview.html">Texture</a>::UnitBase</CODE> Class</h1>
52<h2>Syntax</h2>
53    <div class="section">
54<pre class="definition">class UnitBase</pre>
55    </div>
56<h2>Description</h2>
57    <div class="section">
58<p>Class for making common settings for each texture unit.</p><!-- write here --></div>
59    <a name="variable" id="variable">
60<h2>Member Variables</h2>
61      <div class="section">
62        <table class="members">
63          <tr>
64            <td width="100"> </td>
65            <th>
66<span class="argument">physicalAddr</span>
67            </th>
68<td width="100">uptr</td>
69<td>Sets the texture's physical address. Type is <CODE>uptr</CODE>.</td>
70          </tr>
71          <tr>
72            <td width="100"> </td>
73            <th>
74<span class="argument">width</span>
75            </th>
76<td width="100">u16</td>
77<td>Sets the texture width. Type is u16.</td>
78          </tr>
79          <tr>
80            <td width="100"> </td>
81            <th>
82<span class="argument">height</span>
83            </th>
84<td width="100">u16</td>
85<td>Sets the texture height. Type is u16.</td>
86          </tr>
87          <tr>
88            <td width="100"> </td>
89            <th>
90<span class="argument">format</span>
91            </th>
92<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureFormat.html"><CODE>PicaDataTextureFormat</CODE></a></td>
93<td>Sets the texture format. Type is <a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureFormat.html"><CODE>PicaDataTextureFormat</CODE></a>.</td>
94          </tr>
95          <tr>
96            <td width="100"> </td>
97            <th>
98<span class="argument">wrapT</span>
99            </th>
100<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureWrap.html">PicaDataTextureWrap</a></td>
101<td>Sets the texture coordinates. Type is <a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureWrap.html"><CODE>PicaDataTextureWrap</CODE></a>. Initial value is <CODE>PICA_DATA_TEXTURE_WRAP_REPEAT</CODE>.</td>
102          </tr>
103          <tr>
104            <td width="100"> </td>
105            <th>
106<span class="argument">wrapS</span>
107            </th>
108<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureWrap.html">PicaDataTextureWrap</a></td>
109<td>Sets the texture coordinates. Type is <a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureWrap.html"><CODE>PicaDataTextureWrap</CODE></a>. Initial value is <CODE>PICA_DATA_TEXTURE_WRAP_REPEAT</CODE>.</td>
110          </tr>
111          <tr>
112            <td width="100"> </td>
113            <th>
114<span class="argument"><CODE>magFilter</CODE></span>
115            </th>
116<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureMagFilter.html">PicaDataTextureMagFilter</a></td>
117<td>Sets the texture magnification filter. Type is <a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureMagFilter.html"><CODE>PicaDataTextureMagFilter</CODE></a>. The initial value is PICA_DATA_TEXTURE_MAG_FILTER_NEAREST.</td>
118          </tr>
119          <tr>
120            <td width="100"> </td>
121            <th>
122<span class="argument"><CODE>minFilter</CODE></span>
123            </th>
124<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureMinFilter.html">PicaDataTextureMinFilter</a></td>
125<td>Sets the texture minimization filter. Type is <a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureMinFilter.html"><CODE>PicaDataTextureMinFilter</CODE></a>. The initial value is PICA_DATA_TEXTURE_MIN_FILTER_NEAREST.</td>
126          </tr>
127          <tr>
128            <td width="100"> </td>
129            <th>
130<span class="argument">lodBias</span>
131            </th>
132<td width="100">f32&nbsp;</td>
133<td>Sets the LOD bias. Type is <CODE>f32</CODE>. The initial value is 0.f. Set in the range [-16.f, 16.f]. This is converted into a 13-bit fixed-point number (<CODE>fraction8</CODE>) when commands are generated. This is ignored when mipmaps are not enabled.</td>
134          </tr>
135          <tr>
136            <td width="100"> </td>
137            <th>
138<span class="argument">minLodLevel</span>
139            </th>
140<td width="100">u8</td>
141<td>Sets the minimum LOD level. Type is <CODE>u8</CODE>. Initial value is <CODE>0</CODE>. Specify a value of 0 or more. This is ignored when mipmaps are not enabled.</td>
142          </tr>
143          <tr>
144            <td width="100"> </td>
145            <th>
146<span class="argument">maxLodLevel</span>
147            </th>
148<td width="100">u8</td>
149<td>Sets the maximum LOD level. Type is <CODE>u8</CODE>. Initial value is <CODE>0</CODE>. Specify a value that is one less than the number of mipmap levels loaded. This is ignored when mipmaps are not enabled.</td>
150          </tr>
151          <tr>
152            <td width="100"> </td>
153            <th>
154<span class="argument">borderColorR</span>
155            </th>
156<td width="100">u8</td>
157<td>The red component of the border color. Type is <CODE>u8</CODE>. The initial value is <CODE>0</CODE>.</td>
158          </tr>
159          <tr>
160            <td width="100"> </td>
161            <th>
162<span class="argument">borderColorG</span>
163            </th>
164<td width="100">u8</td>
165<td>The green component of the border color. Type is <CODE>u8</CODE>. The initial value is <CODE>0</CODE>.</td>
166          </tr>
167          <tr>
168            <td width="100"> </td>
169            <th>
170<span class="argument">borderColorB</span>
171            </th>
172<td width="100">u8</td>
173<td>The blue component of the border color. Type is <CODE>u8</CODE>. The initial value is <CODE>0</CODE>.</td>
174          </tr>
175          <tr>
176            <td width="100"> </td>
177            <th>
178<span class="argument">borderColorA</span>
179            </th>
180<td width="100">u8</td>
181<td>The alpha component of the border color. Type is <CODE>u8</CODE>. The initial value is <CODE>0</CODE>.</td>
182          </tr> </table>
183      </div>
184    </a> <a name="function" id="function">
185<h2>Member Functions</h2>
186      <div class="section">
187        <table class="members">
188          <tr>
189            <td width="100">
190<span class="protected_style" title="protected">protected</span>  </td>
191            <th>
192<a href="../../../../../nn/gr/CTR/Texture/UnitBase/IsEnableMipMap.html"><CODE>IsEnableMipMap</CODE></a>
193            </th>
194<td>Determines whether MipMap is enabled.</td>
195          </tr>
196          <tr>
197            <td width="100">
198<span class="protected_style" title="protected">protected</span>  </td>
199            <th>
200<a href="../../../../../nn/gr/CTR/Texture/UnitBase/UnitBase.html"><CODE>UnitBase</CODE></a>
201            </th>
202<td>Sets the initial value.</td>
203          </tr> </table>
204      </div>
205    </a>
206<h2>Revision History</h2>
207    <div class="section">
208      <dl class="history">
209        <dt>2010/09/15</dt>
210<dd>Initial version.<br />
211        </dd>
212      </dl>
213    </div>
214  <hr><p>CONFIDENTIAL</p></body>
215</html>
216