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::tpl::CTR::CtrTextureInfo</title> 51 </head> 52 <body> 53<h1><CODE>nn::tpl::CTR::CtrTextureInfo</CODE> Structure</h1> 54<h2>Syntax</h2> 55 <div class="section"> 56 <pre class="definition">struct CtrTextureInfo 57{ 58 unsigned int filePathOffset; 59 unsigned int texDataSize; 60 unsigned int texDataOffset; 61 <a href="../../../../nn/tpl/CTR/CtrTexFormat.html">CtrTexFormat</a> texFormat; 62 unsigned short width; 63 unsigned short height; 64 unsigned char mipLevel; 65 unsigned char type; 66 unsigned short cubeDir; 67 unsigned int bitmapSizeOffset; 68 unsigned int srcFileTime; 69}; 70</pre> 71 </div> 72<h2>Description</h2> 73 <div class="section"> 74<p>Data representing a single texture.</p><p>This data structure represents the structure of the data contained in a texture package. The size of this structure is intentionally set to 32 bytes.</p><!-- write here --></div> 75 <a name="variable" id="variable"> 76<h2>Member Variables</h2> 77 <div class="section"> 78 <table class="members"> 79 <tr> 80 <td width="100"> </td> 81 <th> 82<span class="argument">filePathOffset</span> 83 </th> 84<td>Offset from the start of the file to the filename.</td> 85 </tr> 86 <tr> 87 <td width="100"> </td> 88 <th> 89<span class="argument">texDataSize</span> 90 </th> 91<td>Size of the image data.</td> 92 </tr> 93 <tr> 94 <td width="100"> </td> 95 <th> 96<span class="argument">texDataOffset</span> 97 </th> 98<td>Offset from the start of the data region to the image data.</td> 99 </tr> 100 <tr> 101 <td width="100"> </td> 102 <th> 103<span class="argument">texFormat</span> 104 </th> 105<td>Format</td> 106 </tr> 107 <tr> 108 <td width="100"> </td> 109 <th> 110<span class="argument">width</span> 111 </th> 112<td>Width</td> 113 </tr> 114 <tr> 115 <td width="100"> </td> 116 <th> 117<span class="argument">height</span> 118 </th> 119<td>Height</td> 120 </tr> 121 <tr> 122 <td width="100"> </td> 123 <th> 124<span class="argument">mipLevel</span> 125 </th> 126<td>Number of mipmap levels.</td> 127 </tr> 128 <tr> 129 <td width="100"> </td> 130 <th> 131<span class="argument">type</span> 132 </th> 133<td>0: Cube / 1: 1D / 2: 2D</td> 134 </tr> 135 <tr> 136 <td width="100"> </td> 137 <th> 138<span class="argument">cubeDir</span> 139 </th> 140<td>0: x / 1:-x / 2: y / 3: -y / 4: z / 5: -z</td> 141 </tr> 142 <tr> 143 <td width="100"> </td> 144 <th> 145<span class="argument">bitmapSizeOffset</span> 146 </th> 147<td>Offset to the array of image sizes for each mipmap. This will be replaced by 1/4th of the actual offset.</td> 148 </tr> 149 <tr> 150 <td width="100"> </td> 151 <th> 152<span class="argument">srcFileTime</span> 153 </th> 154<td>Timestamp of the source image file (used to check for changes).</td> 155 </tr> </table> 156 </div> 157 </a> 158<h2>Revision History</h2> 159 <div class="section"> 160 <dl class="history"> 161 <dt>2010/08/16</dt> 162<dd>Initial version.<br /> 163 </dd> 164 </dl> 165 </div> 166 <hr><p>CONFIDENTIAL</p></body> 167</html>