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
22      span.virtual_style
23      {
24        font-size			 : 8pt;
25        color				 : white;
26        font-weight			: bold;
27        background			: #0a0;
28        border-left			: solid 1px #0f0;
29        border-top			: solid 1px #0f0;
30        border-right		: solid 1px #060;
31        border-bottom		: solid 1px #060;
32        padding-left		: 2px;
33        padding-right		: 2px;
34      }
35
36      span.protected_style
37      {
38        font-size			 : 8pt;
39        color				 : white;
40        font-weight			: bold;
41        background			: #444;
42        border-left			: solid 1px #ccc;
43        border-top			: solid 1px #ccc;
44        border-right		: solid 1px #222;
45        border-bottom		: solid 1px #222;
46        padding-left		: 2px;
47        padding-right		: 2px;
48      }
49        --></style>
50<title>nn::gr::CTR::Texture::UnitBase</title>
51  </head>
52  <body>
53<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>
54<h2>Syntax</h2>
55    <div class="section">
56      <pre class="definition">class UnitBase</pre>
57    </div>
58<h2>Description</h2>
59    <div class="section">
60<p>Class for making common settings for each texture unit.</p><!-- write here --></div>
61    <a name="variable" id="variable">
62<h2>Member Variables</h2>
63      <div class="section">
64        <table class="members">
65          <tr>
66            <td width="100"> </td>
67            <th>
68<span class="argument">physicalAddr</span>
69            </th>
70<td width="100"><a href="../../../../../nn_types/uptr.html">uptr</a></td>
71<td>Sets the texture's physical address. Type is <CODE>uptr</CODE>.</td>
72          </tr>
73          <tr>
74            <td width="100"> </td>
75            <th>
76<span class="argument">width</span>
77            </th>
78<td width="100"><a href="../../../../../nn_types/u16.html">u16</a></td>
79<td>Sets the texture width. Type is u16.</td>
80          </tr>
81          <tr>
82            <td width="100"> </td>
83            <th>
84<span class="argument">height</span>
85            </th>
86<td width="100"><a href="../../../../../nn_types/u16.html">u16</a></td>
87<td>Sets the texture height. Type is u16.</td>
88          </tr>
89          <tr>
90            <td width="100"> </td>
91            <th>
92<span class="argument">format</span>
93            </th>
94<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureFormat.html"><CODE>PicaDataTextureFormat</CODE></a></td>
95<td>Sets the texture format. Type is <a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureFormat.html"><CODE>PicaDataTextureFormat</CODE></a>.</td>
96          </tr>
97          <tr>
98            <td width="100"> </td>
99            <th>
100<span class="argument">wrapT</span>
101            </th>
102<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureWrap.html">PicaDataTextureWrap</a></td>
103<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>
104          </tr>
105          <tr>
106            <td width="100"> </td>
107            <th>
108<span class="argument">wrapS</span>
109            </th>
110<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureWrap.html">PicaDataTextureWrap</a></td>
111<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>
112          </tr>
113          <tr>
114            <td width="100"> </td>
115            <th>
116<span class="argument"><CODE>magFilter</CODE></span>
117            </th>
118<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureMagFilter.html">PicaDataTextureMagFilter</a></td>
119<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>
120          </tr>
121          <tr>
122            <td width="100"> </td>
123            <th>
124<span class="argument"><CODE>minFilter</CODE></span>
125            </th>
126<td width="100"><a href="../../../../../nn_gx_CTR_Pica/PicaDataTextureMinFilter.html">PicaDataTextureMinFilter</a></td>
127<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>
128          </tr>
129          <tr>
130            <td width="100"> </td>
131            <th>
132<span class="argument">lodBias</span>
133            </th>
134<td width="100"><a href="../../../../../nn_types/f32.html">f32&nbsp;</a></td>
135<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>
136          </tr>
137          <tr>
138            <td width="100"> </td>
139            <th>
140<span class="argument">minLodLevel</span>
141            </th>
142<td width="100"><a href="../../../../../nn_types/u8.html">u8</a></td>
143<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>
144          </tr>
145          <tr>
146            <td width="100"> </td>
147            <th>
148<span class="argument">maxLodLevel</span>
149            </th>
150<td width="100"><a href="../../../../../nn_types/u8.html">u8</a></td>
151<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>
152          </tr>
153          <tr>
154            <td width="100"> </td>
155            <th>
156<span class="argument">borderColorR</span>
157            </th>
158<td width="100"><a href="../../../../../nn_types/u8.html">u8</a></td>
159<td>The red component of the border color. Type is <CODE>u8</CODE>. The initial value is <CODE>0</CODE>.</td>
160          </tr>
161          <tr>
162            <td width="100"> </td>
163            <th>
164<span class="argument">borderColorG</span>
165            </th>
166<td width="100"><a href="../../../../../nn_types/u8.html">u8</a></td>
167<td>The green component of the border color. Type is <CODE>u8</CODE>. The initial value is <CODE>0</CODE>.</td>
168          </tr>
169          <tr>
170            <td width="100"> </td>
171            <th>
172<span class="argument">borderColorB</span>
173            </th>
174<td width="100"><a href="../../../../../nn_types/u8.html">u8</a></td>
175<td>The blue component of the border color. Type is <CODE>u8</CODE>. The initial value is <CODE>0</CODE>.</td>
176          </tr>
177          <tr>
178            <td width="100"> </td>
179            <th>
180<span class="argument">borderColorA</span>
181            </th>
182<td width="100"><a href="../../../../../nn_types/u8.html">u8</a></td>
183<td>The alpha component of the border color. Type is <CODE>u8</CODE>. The initial value is <CODE>0</CODE>.</td>
184          </tr> </table>
185      </div>
186    </a> <a name="function" id="function">
187<h2>Member Functions</h2>
188      <div class="section">
189        <table class="members">
190          <tr>
191            <td width="100">
192<span class="protected_style" title="protected">protected</span>  </td>
193            <th>
194<a href="../../../../../nn/gr/CTR/Texture/UnitBase/IsEnableMipMap.html"><CODE>IsEnableMipMap</CODE></a>
195            </th>
196<td>Determines whether MipMap is enabled.</td>
197          </tr>
198          <tr>
199            <td width="100">
200<span class="protected_style" title="protected">protected</span>  </td>
201            <th>
202<a href="../../../../../nn/gr/CTR/Texture/UnitBase/UnitBase.html"><CODE>UnitBase</CODE></a>
203            </th>
204<td>Sets the initial value.</td>
205          </tr> </table>
206      </div>
207    </a>
208<h2>Revision History</h2>
209    <div class="section">
210      <dl class="history">
211        <dt>2010/09/15</dt>
212<dd>Initial version.<br />
213        </dd>
214      </dl>
215    </div>
216  <hr><p>CONFIDENTIAL</p></body>
217</html>
218