123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407 |
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
- <title>PowerVR SDK</title>
- <link href="doxygen.css" rel="stylesheet" type="text/css">
- <link href="tabs.css" rel="stylesheet" type="text/css">
- <table width="100%">
- <tr>
- <td width="33%">
- <p align="left"> <a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
- </td>
- <td width="33%">
- <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
- </td>
- <td width="34%">
- <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
- </td>
- </tr>
- </table>
- <hr>
- </head><body>
- <!-- Generated by Doxygen 1.3.6 -->
- <div class="qindex"><a class="qindex" href="index.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
- <h1>PVRTTexture.h</h1><a href="PVRTTexture_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/******************************************************************************</span>
- 00002 <span class="comment"></span>
- 00003 <span class="comment"> @File PVRTTexture.h</span>
- 00004 <span class="comment"></span>
- 00005 <span class="comment"> @Title PVRTTexture</span>
- 00006 <span class="comment"></span>
- 00007 <span class="comment"> @Version </span>
- 00008 <span class="comment"></span>
- 00009 <span class="comment"> @Copyright Copyright (C) Imagination Technologies Limited.</span>
- 00010 <span class="comment"></span>
- 00011 <span class="comment"> @Platform ANSI compatible</span>
- 00012 <span class="comment"></span>
- 00013 <span class="comment"> @Description Texture loading.</span>
- 00014 <span class="comment"></span>
- 00015 <span class="comment">******************************************************************************/</span>
- 00016 <span class="preprocessor">#ifndef _PVRTTEXTURE_H_</span>
- 00017 <span class="preprocessor"></span><span class="preprocessor">#define _PVRTTEXTURE_H_</span>
- 00018 <span class="preprocessor"></span>
- 00019 <span class="preprocessor">#include "<a class="code" href="PVRTGlobal_8h.html">PVRTGlobal.h</a>"</span>
- 00020 <span class="comment">/*!***************************************************************************</span>
- 00021 <span class="comment">Macros</span>
- 00022 <span class="comment">*****************************************************************************/</span>
- 00023
- 00024 <span class="comment">/*!***************************************************************************</span>
- 00025 <span class="comment">Describes the header of a PVR header-texture</span>
- 00026 <span class="comment">*****************************************************************************/</span>
- <a name="l00027"></a><a class="code" href="structPVR__Texture__Header.html">00027</a> <span class="keyword">struct </span><a class="code" href="structPVR__Texture__Header.html">PVR_Texture_Header</a>
- 00028 {
- <a name="l00029"></a><a class="code" href="structPVR__Texture__Header.html#o0">00029</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o0">dwHeaderSize</a>;
- <a name="l00030"></a><a class="code" href="structPVR__Texture__Header.html#o1">00030</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o1">dwHeight</a>;
- <a name="l00031"></a><a class="code" href="structPVR__Texture__Header.html#o2">00031</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o2">dwWidth</a>;
- <a name="l00032"></a><a class="code" href="structPVR__Texture__Header.html#o3">00032</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o3">dwMipMapCount</a>;
- <a name="l00033"></a><a class="code" href="structPVR__Texture__Header.html#o4">00033</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o4">dwpfFlags</a>;
- <a name="l00034"></a><a class="code" href="structPVR__Texture__Header.html#o5">00034</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o5">dwTextureDataSize</a>;
- <a name="l00035"></a><a class="code" href="structPVR__Texture__Header.html#o6">00035</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o6">dwBitCount</a>;
- <a name="l00036"></a><a class="code" href="structPVR__Texture__Header.html#o7">00036</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o7">dwRBitMask</a>;
- <a name="l00037"></a><a class="code" href="structPVR__Texture__Header.html#o8">00037</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o8">dwGBitMask</a>;
- <a name="l00038"></a><a class="code" href="structPVR__Texture__Header.html#o9">00038</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o9">dwBBitMask</a>;
- <a name="l00039"></a><a class="code" href="structPVR__Texture__Header.html#o10">00039</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o10">dwAlphaBitMask</a>;
- <a name="l00040"></a><a class="code" href="structPVR__Texture__Header.html#o11">00040</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o11">dwPVR</a>;
- <a name="l00041"></a><a class="code" href="structPVR__Texture__Header.html#o12">00041</a> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="structPVR__Texture__Header.html#o12">dwNumSurfs</a>;
- 00042 } ;
- 00043
- 00044 <span class="comment">/*****************************************************************************</span>
- 00045 <span class="comment">* ENUMS</span>
- 00046 <span class="comment">*****************************************************************************/</span>
- 00047
- <a name="l00048"></a><a class="code" href="PVRTTexture_8h.html#a176">00048</a> <span class="keyword">enum</span> <a class="code" href="PVRTPFXParser_8h.html#a1">PixelType</a>
- 00049 {
- 00050 <a class="code" href="PVRTTexture_8h.html#a176a20">MGLPT_ARGB_4444</a> = 0x00,
- 00051 <a class="code" href="PVRTTexture_8h.html#a176a21">MGLPT_ARGB_1555</a>,
- 00052 <a class="code" href="PVRTTexture_8h.html#a176a22">MGLPT_RGB_565</a>,
- 00053 <a class="code" href="PVRTTexture_8h.html#a176a23">MGLPT_RGB_555</a>,
- 00054 <a class="code" href="PVRTTexture_8h.html#a176a24">MGLPT_RGB_888</a>,
- 00055 <a class="code" href="PVRTTexture_8h.html#a176a25">MGLPT_ARGB_8888</a>,
- 00056 <a class="code" href="PVRTTexture_8h.html#a176a26">MGLPT_ARGB_8332</a>,
- 00057 <a class="code" href="PVRTTexture_8h.html#a176a27">MGLPT_I_8</a>,
- 00058 <a class="code" href="PVRTTexture_8h.html#a176a28">MGLPT_AI_88</a>,
- 00059 <a class="code" href="PVRTTexture_8h.html#a176a29">MGLPT_1_BPP</a>,
- 00060 <a class="code" href="PVRTTexture_8h.html#a176a30">MGLPT_VY1UY0</a>,
- 00061 <a class="code" href="PVRTTexture_8h.html#a176a31">MGLPT_Y1VY0U</a>,
- 00062 <a class="code" href="PVRTTexture_8h.html#a176a32">MGLPT_PVRTC2</a>,
- 00063 <a class="code" href="PVRTTexture_8h.html#a176a33">MGLPT_PVRTC4</a>,
- 00064 <a class="code" href="PVRTTexture_8h.html#a176a34">MGLPT_PVRTC2_2</a>,
- 00065 <a class="code" href="PVRTTexture_8h.html#a176a35">MGLPT_PVRTC2_4</a>,
- 00066
- 00067 <a class="code" href="PVRTTexture_8h.html#a176a36">OGL_RGBA_4444</a>= 0x10,
- 00068 <a class="code" href="PVRTTexture_8h.html#a176a37">OGL_RGBA_5551</a>,
- 00069 <a class="code" href="PVRTTexture_8h.html#a176a38">OGL_RGBA_8888</a>,
- 00070 <a class="code" href="PVRTTexture_8h.html#a176a39">OGL_RGB_565</a>,
- 00071 <a class="code" href="PVRTTexture_8h.html#a176a40">OGL_RGB_555</a>,
- 00072 <a class="code" href="PVRTTexture_8h.html#a176a41">OGL_RGB_888</a>,
- 00073 <a class="code" href="PVRTTexture_8h.html#a176a42">OGL_I_8</a>,
- 00074 <a class="code" href="PVRTTexture_8h.html#a176a43">OGL_AI_88</a>,
- 00075 <a class="code" href="PVRTTexture_8h.html#a176a44">OGL_PVRTC2</a>,
- 00076 <a class="code" href="PVRTTexture_8h.html#a176a45">OGL_PVRTC4</a>,
- 00077
- 00078 <span class="comment">// OGL_BGRA_8888 extension</span>
- 00079 <a class="code" href="PVRTTexture_8h.html#a176a46">OGL_BGRA_8888</a>,
- 00080 <a class="code" href="PVRTTexture_8h.html#a176a47">OGL_A_8</a>,
- 00081
- 00082 <a class="code" href="PVRTTexture_8h.html#a176a48">D3D_DXT1</a> = 0x20,
- 00083 <a class="code" href="PVRTTexture_8h.html#a176a49">D3D_DXT2</a>,
- 00084 <a class="code" href="PVRTTexture_8h.html#a176a50">D3D_DXT3</a>,
- 00085 <a class="code" href="PVRTTexture_8h.html#a176a51">D3D_DXT4</a>,
- 00086 <a class="code" href="PVRTTexture_8h.html#a176a52">D3D_DXT5</a>,
- 00087
- 00088 <a class="code" href="PVRTTexture_8h.html#a176a53">D3D_RGB_332</a>,
- 00089 <a class="code" href="PVRTTexture_8h.html#a176a54">D3D_AI_44</a>,
- 00090 <a class="code" href="PVRTTexture_8h.html#a176a55">D3D_LVU_655</a>,
- 00091 <a class="code" href="PVRTTexture_8h.html#a176a56">D3D_XLVU_8888</a>,
- 00092 <a class="code" href="PVRTTexture_8h.html#a176a57">D3D_QWVU_8888</a>,
- 00093
- 00094 <span class="comment">//10 bits per channel</span>
- 00095 <a class="code" href="PVRTTexture_8h.html#a176a58">D3D_ABGR_2101010</a>,
- 00096 <a class="code" href="PVRTTexture_8h.html#a176a59">D3D_ARGB_2101010</a>,
- 00097 <a class="code" href="PVRTTexture_8h.html#a176a60">D3D_AWVU_2101010</a>,
- 00098
- 00099 <span class="comment">//16 bits per channel</span>
- 00100 <a class="code" href="PVRTTexture_8h.html#a176a61">D3D_GR_1616</a>,
- 00101 <a class="code" href="PVRTTexture_8h.html#a176a62">D3D_VU_1616</a>,
- 00102 <a class="code" href="PVRTTexture_8h.html#a176a63">D3D_ABGR_16161616</a>,
- 00103
- 00104 <span class="comment">//HDR formats</span>
- 00105 <a class="code" href="PVRTTexture_8h.html#a176a64">D3D_R16F</a>,
- 00106 <a class="code" href="PVRTTexture_8h.html#a176a65">D3D_GR_1616F</a>,
- 00107 <a class="code" href="PVRTTexture_8h.html#a176a66">D3D_ABGR_16161616F</a>,
- 00108
- 00109 <span class="comment">//32 bits per channel</span>
- 00110 <a class="code" href="PVRTTexture_8h.html#a176a67">D3D_R32F</a>,
- 00111 <a class="code" href="PVRTTexture_8h.html#a176a68">D3D_GR_3232F</a>,
- 00112 <a class="code" href="PVRTTexture_8h.html#a176a69">D3D_ABGR_32323232F</a>,
- 00113
- 00114 <span class="comment">// Ericsson</span>
- 00115 <a class="code" href="PVRTTexture_8h.html#a176a70">ETC_RGB_4BPP</a>,
- 00116 <a class="code" href="PVRTTexture_8h.html#a176a71">ETC_RGBA_EXPLICIT</a>,
- 00117 <a class="code" href="PVRTTexture_8h.html#a176a72">ETC_RGBA_INTERPOLATED</a>,
- 00118
- 00119 <span class="comment">// DX10</span>
- 00120
- 00121
- 00122 <a class="code" href="PVRTTexture_8h.html#a176a73">ePT_DX10_R32G32B32A32_FLOAT</a>= 0x50,
- 00123 <a class="code" href="PVRTTexture_8h.html#a176a74">ePT_DX10_R32G32B32A32_UINT</a> ,
- 00124 <a class="code" href="PVRTTexture_8h.html#a176a75">ePT_DX10_R32G32B32A32_SINT</a>,
- 00125
- 00126 <a class="code" href="PVRTTexture_8h.html#a176a76">ePT_DX10_R32G32B32_FLOAT</a>,
- 00127 <a class="code" href="PVRTTexture_8h.html#a176a77">ePT_DX10_R32G32B32_UINT</a>,
- 00128 <a class="code" href="PVRTTexture_8h.html#a176a78">ePT_DX10_R32G32B32_SINT</a>,
- 00129
- 00130 <a class="code" href="PVRTTexture_8h.html#a176a79">ePT_DX10_R16G16B16A16_FLOAT</a> ,
- 00131 <a class="code" href="PVRTTexture_8h.html#a176a80">ePT_DX10_R16G16B16A16_UNORM</a>,
- 00132 <a class="code" href="PVRTTexture_8h.html#a176a81">ePT_DX10_R16G16B16A16_UINT</a> ,
- 00133 <a class="code" href="PVRTTexture_8h.html#a176a82">ePT_DX10_R16G16B16A16_SNORM</a> ,
- 00134 <a class="code" href="PVRTTexture_8h.html#a176a83">ePT_DX10_R16G16B16A16_SINT</a> ,
- 00135
- 00136 <a class="code" href="PVRTTexture_8h.html#a176a84">ePT_DX10_R32G32_FLOAT</a> ,
- 00137 <a class="code" href="PVRTTexture_8h.html#a176a85">ePT_DX10_R32G32_UINT</a> ,
- 00138 <a class="code" href="PVRTTexture_8h.html#a176a86">ePT_DX10_R32G32_SINT</a> ,
- 00139
- 00140 <a class="code" href="PVRTTexture_8h.html#a176a87">ePT_DX10_R10G10B10A2_UNORM</a> ,
- 00141 <a class="code" href="PVRTTexture_8h.html#a176a88">ePT_DX10_R10G10B10A2_UINT</a> ,
- 00142
- 00143 <a class="code" href="PVRTTexture_8h.html#a176a89">ePT_DX10_R11G11B10_FLOAT</a> ,
- 00144
- 00145 <a class="code" href="PVRTTexture_8h.html#a176a90">ePT_DX10_R8G8B8A8_UNORM</a> ,
- 00146 <a class="code" href="PVRTTexture_8h.html#a176a91">ePT_DX10_R8G8B8A8_UNORM_SRGB</a> ,
- 00147 <a class="code" href="PVRTTexture_8h.html#a176a92">ePT_DX10_R8G8B8A8_UINT</a> ,
- 00148 <a class="code" href="PVRTTexture_8h.html#a176a93">ePT_DX10_R8G8B8A8_SNORM</a> ,
- 00149 <a class="code" href="PVRTTexture_8h.html#a176a94">ePT_DX10_R8G8B8A8_SINT</a> ,
- 00150
- 00151 <a class="code" href="PVRTTexture_8h.html#a176a95">ePT_DX10_R16G16_FLOAT</a> ,
- 00152 <a class="code" href="PVRTTexture_8h.html#a176a96">ePT_DX10_R16G16_UNORM</a> ,
- 00153 <a class="code" href="PVRTTexture_8h.html#a176a97">ePT_DX10_R16G16_UINT</a> ,
- 00154 <a class="code" href="PVRTTexture_8h.html#a176a98">ePT_DX10_R16G16_SNORM</a> ,
- 00155 <a class="code" href="PVRTTexture_8h.html#a176a99">ePT_DX10_R16G16_SINT</a> ,
- 00156
- 00157 <a class="code" href="PVRTTexture_8h.html#a176a100">ePT_DX10_R32_FLOAT</a> ,
- 00158 <a class="code" href="PVRTTexture_8h.html#a176a101">ePT_DX10_R32_UINT</a> ,
- 00159 <a class="code" href="PVRTTexture_8h.html#a176a102">ePT_DX10_R32_SINT</a> ,
- 00160
- 00161 <a class="code" href="PVRTTexture_8h.html#a176a103">ePT_DX10_R8G8_UNORM</a> ,
- 00162 <a class="code" href="PVRTTexture_8h.html#a176a104">ePT_DX10_R8G8_UINT</a> ,
- 00163 <a class="code" href="PVRTTexture_8h.html#a176a105">ePT_DX10_R8G8_SNORM</a> ,
- 00164 <a class="code" href="PVRTTexture_8h.html#a176a106">ePT_DX10_R8G8_SINT</a> ,
- 00165
- 00166 <a class="code" href="PVRTTexture_8h.html#a176a107">ePT_DX10_R16_FLOAT</a> ,
- 00167 <a class="code" href="PVRTTexture_8h.html#a176a108">ePT_DX10_R16_UNORM</a> ,
- 00168 <a class="code" href="PVRTTexture_8h.html#a176a109">ePT_DX10_R16_UINT</a> ,
- 00169 <a class="code" href="PVRTTexture_8h.html#a176a110">ePT_DX10_R16_SNORM</a> ,
- 00170 <a class="code" href="PVRTTexture_8h.html#a176a111">ePT_DX10_R16_SINT</a> ,
- 00171
- 00172 <a class="code" href="PVRTTexture_8h.html#a176a112">ePT_DX10_R8_UNORM</a>,
- 00173 <a class="code" href="PVRTTexture_8h.html#a176a113">ePT_DX10_R8_UINT</a>,
- 00174 <a class="code" href="PVRTTexture_8h.html#a176a114">ePT_DX10_R8_SNORM</a>,
- 00175 <a class="code" href="PVRTTexture_8h.html#a176a115">ePT_DX10_R8_SINT</a>,
- 00176
- 00177 <a class="code" href="PVRTTexture_8h.html#a176a116">ePT_DX10_A8_UNORM</a>,
- 00178 <a class="code" href="PVRTTexture_8h.html#a176a117">ePT_DX10_R1_UNORM</a>,
- 00179 <a class="code" href="PVRTTexture_8h.html#a176a118">ePT_DX10_R9G9B9E5_SHAREDEXP</a>,
- 00180 <a class="code" href="PVRTTexture_8h.html#a176a119">ePT_DX10_R8G8_B8G8_UNORM</a>,
- 00181 <a class="code" href="PVRTTexture_8h.html#a176a120">ePT_DX10_G8R8_G8B8_UNORM</a>,
- 00182
- 00183 <a class="code" href="PVRTTexture_8h.html#a176a121">ePT_DX10_BC1_UNORM</a>,
- 00184 <a class="code" href="PVRTTexture_8h.html#a176a122">ePT_DX10_BC1_UNORM_SRGB</a>,
- 00185
- 00186 <a class="code" href="PVRTTexture_8h.html#a176a123">ePT_DX10_BC2_UNORM</a>,
- 00187 <a class="code" href="PVRTTexture_8h.html#a176a124">ePT_DX10_BC2_UNORM_SRGB</a>,
- 00188
- 00189 <a class="code" href="PVRTTexture_8h.html#a176a125">ePT_DX10_BC3_UNORM</a>,
- 00190 <a class="code" href="PVRTTexture_8h.html#a176a126">ePT_DX10_BC3_UNORM_SRGB</a>,
- 00191
- 00192 <a class="code" href="PVRTTexture_8h.html#a176a127">ePT_DX10_BC4_UNORM</a>,
- 00193 <a class="code" href="PVRTTexture_8h.html#a176a128">ePT_DX10_BC4_SNORM</a>,
- 00194
- 00195 <a class="code" href="PVRTTexture_8h.html#a176a129">ePT_DX10_BC5_UNORM</a>,
- 00196 <a class="code" href="PVRTTexture_8h.html#a176a130">ePT_DX10_BC5_SNORM</a>,
- 00197
- 00198 <span class="comment">//ePT_DX10_B5G6R5_UNORM, // defined but obsolete - won't actually load in DX10</span>
- 00199 <span class="comment">//ePT_DX10_B5G5R5A1_UNORM,</span>
- 00200 <span class="comment">//ePT_DX10_B8G8R8A8_UNORM,</span>
- 00201 <span class="comment">//ePT_DX10_B8G8R8X8_UNORM,</span>
- 00202
- 00203 <span class="comment">// OpenVG</span>
- 00204
- 00205 <span class="comment">/* RGB{A,X} channel ordering */</span>
- 00206 <a class="code" href="PVRTTexture_8h.html#a176a131">ePT_VG_sRGBX_8888</a> = 0x90,
- 00207 <a class="code" href="PVRTTexture_8h.html#a176a132">ePT_VG_sRGBA_8888</a>,
- 00208 <a class="code" href="PVRTTexture_8h.html#a176a133">ePT_VG_sRGBA_8888_PRE</a>,
- 00209 <a class="code" href="PVRTTexture_8h.html#a176a134">ePT_VG_sRGB_565</a>,
- 00210 <a class="code" href="PVRTTexture_8h.html#a176a135">ePT_VG_sRGBA_5551</a>,
- 00211 <a class="code" href="PVRTTexture_8h.html#a176a136">ePT_VG_sRGBA_4444</a>,
- 00212 <a class="code" href="PVRTTexture_8h.html#a176a137">ePT_VG_sL_8</a>,
- 00213 <a class="code" href="PVRTTexture_8h.html#a176a138">ePT_VG_lRGBX_8888</a>,
- 00214 <a class="code" href="PVRTTexture_8h.html#a176a139">ePT_VG_lRGBA_8888</a>,
- 00215 <a class="code" href="PVRTTexture_8h.html#a176a140">ePT_VG_lRGBA_8888_PRE</a>,
- 00216 <a class="code" href="PVRTTexture_8h.html#a176a141">ePT_VG_lL_8</a>,
- 00217 <a class="code" href="PVRTTexture_8h.html#a176a142">ePT_VG_A_8</a>,
- 00218 <a class="code" href="PVRTTexture_8h.html#a176a143">ePT_VG_BW_1</a>,
- 00219
- 00220 <span class="comment">/* {A,X}RGB channel ordering */</span>
- 00221 <a class="code" href="PVRTTexture_8h.html#a176a144">ePT_VG_sXRGB_8888</a>,
- 00222 <a class="code" href="PVRTTexture_8h.html#a176a145">ePT_VG_sARGB_8888</a>,
- 00223 <a class="code" href="PVRTTexture_8h.html#a176a146">ePT_VG_sARGB_8888_PRE</a>,
- 00224 <a class="code" href="PVRTTexture_8h.html#a176a147">ePT_VG_sARGB_1555</a>,
- 00225 <a class="code" href="PVRTTexture_8h.html#a176a148">ePT_VG_sARGB_4444</a>,
- 00226 <a class="code" href="PVRTTexture_8h.html#a176a149">ePT_VG_lXRGB_8888</a>,
- 00227 <a class="code" href="PVRTTexture_8h.html#a176a150">ePT_VG_lARGB_8888</a>,
- 00228 <a class="code" href="PVRTTexture_8h.html#a176a151">ePT_VG_lARGB_8888_PRE</a>,
- 00229
- 00230 <span class="comment">/* BGR{A,X} channel ordering */</span>
- 00231 <a class="code" href="PVRTTexture_8h.html#a176a152">ePT_VG_sBGRX_8888</a>,
- 00232 <a class="code" href="PVRTTexture_8h.html#a176a153">ePT_VG_sBGRA_8888</a>,
- 00233 <a class="code" href="PVRTTexture_8h.html#a176a154">ePT_VG_sBGRA_8888_PRE</a>,
- 00234 <a class="code" href="PVRTTexture_8h.html#a176a155">ePT_VG_sBGR_565</a>,
- 00235 <a class="code" href="PVRTTexture_8h.html#a176a156">ePT_VG_sBGRA_5551</a>,
- 00236 <a class="code" href="PVRTTexture_8h.html#a176a157">ePT_VG_sBGRA_4444</a>,
- 00237 <a class="code" href="PVRTTexture_8h.html#a176a158">ePT_VG_lBGRX_8888</a>,
- 00238 <a class="code" href="PVRTTexture_8h.html#a176a159">ePT_VG_lBGRA_8888</a>,
- 00239 <a class="code" href="PVRTTexture_8h.html#a176a160">ePT_VG_lBGRA_8888_PRE</a>,
- 00240
- 00241 <span class="comment">/* {A,X}BGR channel ordering */</span>
- 00242 <a class="code" href="PVRTTexture_8h.html#a176a161">ePT_VG_sXBGR_8888</a>,
- 00243 <a class="code" href="PVRTTexture_8h.html#a176a162">ePT_VG_sABGR_8888</a> ,
- 00244 <a class="code" href="PVRTTexture_8h.html#a176a163">ePT_VG_sABGR_8888_PRE</a>,
- 00245 <a class="code" href="PVRTTexture_8h.html#a176a164">ePT_VG_sABGR_1555</a>,
- 00246 <a class="code" href="PVRTTexture_8h.html#a176a165">ePT_VG_sABGR_4444</a>,
- 00247 <a class="code" href="PVRTTexture_8h.html#a176a166">ePT_VG_lXBGR_8888</a>,
- 00248 <a class="code" href="PVRTTexture_8h.html#a176a167">ePT_VG_lABGR_8888</a>,
- 00249 <a class="code" href="PVRTTexture_8h.html#a176a168">ePT_VG_lABGR_8888_PRE</a>,
- 00250
- 00251 <span class="comment">// max cap for iterating</span>
- 00252 <a class="code" href="PVRTTexture_8h.html#a176a169">END_OF_PIXEL_TYPES</a>,
- 00253
- 00254 <a class="code" href="PVRTTexture_8h.html#a176a170">MGLPT_NOTYPE</a> = 0xff
- 00255
- 00256 };
- 00257
- 00258 <span class="comment">/*****************************************************************************</span>
- 00259 <span class="comment">* constants</span>
- 00260 <span class="comment">*****************************************************************************/</span>
- 00261
- <a name="l00262"></a><a class="code" href="PVRTTexture_8h.html#a0">00262</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a0">PVRTEX_MIPMAP</a> = (1<<8); <span class="comment">// has mip map levels</span>
- <a name="l00263"></a><a class="code" href="PVRTTexture_8h.html#a1">00263</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a1">PVRTEX_TWIDDLE</a> = (1<<9); <span class="comment">// is twiddled</span>
- <a name="l00264"></a><a class="code" href="PVRTTexture_8h.html#a2">00264</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a2">PVRTEX_BUMPMAP</a> = (1<<10); <span class="comment">// has normals encoded for a bump map</span>
- <a name="l00265"></a><a class="code" href="PVRTTexture_8h.html#a3">00265</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a3">PVRTEX_TILING</a> = (1<<11); <span class="comment">// is bordered for tiled pvr</span>
- <a name="l00266"></a><a class="code" href="PVRTTexture_8h.html#a4">00266</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a4">PVRTEX_CUBEMAP</a> = (1<<12); <span class="comment">// is a cubemap/skybox</span>
- <a name="l00267"></a><a class="code" href="PVRTTexture_8h.html#a5">00267</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a5">PVRTEX_FALSEMIPCOL</a> = (1<<13); <span class="comment">// are there false coloured MIP levels</span>
- <a name="l00268"></a><a class="code" href="PVRTTexture_8h.html#a6">00268</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a6">PVRTEX_VOLUME</a> = (1<<14); <span class="comment">// is this a volume texture</span>
- <a name="l00269"></a><a class="code" href="PVRTTexture_8h.html#a7">00269</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a7">PVRTEX_ALPHA</a> = (1<<15); <span class="comment">// v2.1 is there transparency info in the texture</span>
- <a name="l00270"></a><a class="code" href="PVRTTexture_8h.html#a8">00270</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a8">PVRTEX_VERTICAL_FLIP</a> = (1<<16); <span class="comment">// v2.1 is the texture vertically flipped</span>
- 00271
- <a name="l00272"></a><a class="code" href="PVRTTexture_8h.html#a9">00272</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a9">PVRTEX_PIXELTYPE</a> = 0xff; <span class="comment">// pixel type is always in the last 16bits of the flags</span>
- <a name="l00273"></a><a class="code" href="PVRTTexture_8h.html#a10">00273</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a10">PVRTEX_IDENTIFIER</a> = 0x21525650; <span class="comment">// the pvr identifier is the characters 'P','V','R'</span>
- 00274
- <a name="l00275"></a><a class="code" href="PVRTTexture_8h.html#a11">00275</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a11">PVRTEX_V1_HEADER_SIZE</a> = 44; <span class="comment">// old header size was 44 for identification purposes</span>
- 00276
- <a name="l00277"></a><a class="code" href="PVRTTexture_8h.html#a12">00277</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a12">PVRTC2_MIN_TEXWIDTH</a> = 16;
- <a name="l00278"></a><a class="code" href="PVRTTexture_8h.html#a13">00278</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a13">PVRTC2_MIN_TEXHEIGHT</a> = 8;
- <a name="l00279"></a><a class="code" href="PVRTTexture_8h.html#a14">00279</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a14">PVRTC4_MIN_TEXWIDTH</a> = 8;
- <a name="l00280"></a><a class="code" href="PVRTTexture_8h.html#a15">00280</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a15">PVRTC4_MIN_TEXHEIGHT</a> = 8;
- <a name="l00281"></a><a class="code" href="PVRTTexture_8h.html#a16">00281</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a16">ETC_MIN_TEXWIDTH</a> = 4;
- <a name="l00282"></a><a class="code" href="PVRTTexture_8h.html#a17">00282</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a17">ETC_MIN_TEXHEIGHT</a> = 4;
- <a name="l00283"></a><a class="code" href="PVRTTexture_8h.html#a18">00283</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a18">DXT_MIN_TEXWIDTH</a> = 4;
- <a name="l00284"></a><a class="code" href="PVRTTexture_8h.html#a19">00284</a> <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a19">PVRTuint32</a> <a class="code" href="PVRTTexture_8h.html#a19">DXT_MIN_TEXHEIGHT</a> = 4;
- 00285
- 00286 <span class="comment">/****************************************************************************</span>
- 00287 <span class="comment">** Functions</span>
- 00288 <span class="comment">****************************************************************************/</span>
- 00289
- 00290 <span class="comment">/*!***************************************************************************</span>
- 00291 <span class="comment">@Function PVRTTextureCreate</span>
- 00292 <span class="comment">@Input w Size of the texture</span>
- 00293 <span class="comment">@Input h Size of the texture</span>
- 00294 <span class="comment">@Input wMin Minimum size of a texture level</span>
- 00295 <span class="comment">@Input hMin Minimum size of a texture level</span>
- 00296 <span class="comment">@Input nBPP Bits per pixel of the format</span>
- 00297 <span class="comment">@Input bMIPMap Create memory for MIP-map levels also?</span>
- 00298 <span class="comment">@Return Allocated texture memory (must be free()d)</span>
- 00299 <span class="comment">@Description Creates a PVR_Texture_Header structure, including room for</span>
- 00300 <span class="comment">the specified texture, in memory.</span>
- 00301 <span class="comment">*****************************************************************************/</span>
- 00302 <a class="code" href="structPVR__Texture__Header.html">PVR_Texture_Header</a> *<a class="code" href="PVRTTexture_8h.html#a171">PVRTTextureCreate</a>(
- 00303 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> w,
- 00304 <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> h,
- 00305 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> wMin,
- 00306 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> hMin,
- 00307 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nBPP,
- 00308 <span class="keyword">const</span> <span class="keywordtype">bool</span> bMIPMap);
- 00309
- 00310 <span class="comment">/*!***************************************************************************</span>
- 00311 <span class="comment">@Function PVRTTextureTile</span>
- 00312 <span class="comment">@Modified pOut The tiled texture in system memory</span>
- 00313 <span class="comment">@Input pIn The source texture</span>
- 00314 <span class="comment">@Input nRepeatCnt Number of times to repeat the source texture</span>
- 00315 <span class="comment">@Description Allocates and fills, in system memory, a texture large enough</span>
- 00316 <span class="comment">to repeat the source texture specified number of times.</span>
- 00317 <span class="comment">*****************************************************************************/</span>
- 00318 <span class="keywordtype">void</span> <a class="code" href="PVRTTexture_8h.html#a172">PVRTTextureTile</a>(
- 00319 <a class="code" href="structPVR__Texture__Header.html">PVR_Texture_Header</a> **pOut,
- 00320 <span class="keyword">const</span> <a class="code" href="structPVR__Texture__Header.html">PVR_Texture_Header</a> * <span class="keyword">const</span> pIn,
- 00321 <span class="keyword">const</span> <span class="keywordtype">int</span> nRepeatCnt);
- 00322
- 00323 <span class="comment">/****************************************************************************</span>
- 00324 <span class="comment">** Internal Functions</span>
- 00325 <span class="comment">****************************************************************************/</span>
- 00326
- 00327 <span class="comment">/*!***************************************************************************</span>
- 00328 <span class="comment">@Function PVRTTextureLoadTiled</span>
- 00329 <span class="comment">@Modified pDst Texture to place the tiled data</span>
- 00330 <span class="comment">@Input nWidthDst Width of destination texture</span>
- 00331 <span class="comment">@Input nHeightDst Height of destination texture</span>
- 00332 <span class="comment">@Input pSrc Texture to tile</span>
- 00333 <span class="comment">@Input nWidthSrc Width of source texture</span>
- 00334 <span class="comment">@Input nHeightSrc Height of source texture</span>
- 00335 <span class="comment">@Input nElementSize Bytes per pixel</span>
- 00336 <span class="comment">@Input bTwiddled True if the data is twiddled</span>
- 00337 <span class="comment">@Description Needed by PVRTTextureTile() in the various PVRTTextureAPIs</span>
- 00338 <span class="comment">*****************************************************************************/</span>
- 00339 <span class="keywordtype">void</span> <a class="code" href="PVRTTexture_8h.html#a173">PVRTTextureLoadTiled</a>(
- 00340 <a class="code" href="PVRTGlobal_8h.html#a17">PVRTuint8</a> * <span class="keyword">const</span> pDst,
- 00341 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nWidthDst,
- 00342 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nHeightDst,
- 00343 <span class="keyword">const</span> <a class="code" href="PVRTGlobal_8h.html#a17">PVRTuint8</a> * <span class="keyword">const</span> pSrc,
- 00344 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nWidthSrc,
- 00345 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nHeightSrc,
- 00346 <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> nElementSize,
- 00347 <span class="keyword">const</span> <span class="keywordtype">bool</span> bTwiddled);
- 00348
- 00349
- 00350 <span class="comment">/*!***************************************************************************</span>
- 00351 <span class="comment">@Function PVRTTextureTwiddle</span>
- 00352 <span class="comment">@Output a Twiddled value</span>
- 00353 <span class="comment">@Input u Coordinate axis 0</span>
- 00354 <span class="comment">@Input v Coordinate axis 1</span>
- 00355 <span class="comment">@Description Combine a 2D coordinate into a twiddled value</span>
- 00356 <span class="comment">*****************************************************************************/</span>
- 00357 <span class="keywordtype">void</span> <a class="code" href="PVRTTexture_8h.html#a174">PVRTTextureTwiddle</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> &a, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> u, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> v);
- 00358
- 00359 <span class="comment">/*!***************************************************************************</span>
- 00360 <span class="comment">@Function PVRTTextureDeTwiddle</span>
- 00361 <span class="comment">@Output u Coordinate axis 0</span>
- 00362 <span class="comment">@Output v Coordinate axis 1</span>
- 00363 <span class="comment">@Input a Twiddled value</span>
- 00364 <span class="comment">@Description Extract 2D coordinates from a twiddled value.</span>
- 00365 <span class="comment">*****************************************************************************/</span>
- 00366 <span class="keywordtype">void</span> <a class="code" href="PVRTTexture_8h.html#a175">PVRTTextureDeTwiddle</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> &u, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> &v, <span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> a);
- 00367
- 00368
- 00369 <span class="preprocessor">#endif </span><span class="comment">/* _PVRTTEXTURE_H_ */</span>
- 00370
- 00371 <span class="comment">/*****************************************************************************</span>
- 00372 <span class="comment">End of file (PVRTTexture.h)</span>
- 00373 <span class="comment">*****************************************************************************/</span>
- 00374
- </pre></div><br>
- <br>
- <P align=left><FONT size=2><STRONG><A
- href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> ©
- 1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
- <hr>
- <address style="align: left;"><small><FONT color=f0f>
- Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
- </body>
- </html>
|