PVRTTrans_8h.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  2. <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
  3. <title>PowerVR SDK</title>
  4. <link href="doxygen.css" rel="stylesheet" type="text/css">
  5. <link href="tabs.css" rel="stylesheet" type="text/css">
  6. <table width="100%">
  7. <tr>
  8. <td width="33%">
  9. <p align="left">&nbsp;<a href="http://www.imgtec.com"><img border="0" src="IMGLogo.jpg" width="200" height="30"></a></p>
  10. </td>
  11. <td width="33%">
  12. <p align="center"><font color="#808080" face="Arial" size="2">PowerVR Software Development Kit</a></font></p>
  13. </td>
  14. <td width="34%">
  15. <p align="right"><a href="http://www.powervr.com"><img border="0" src="PVRlogo.jpg" width="200" height="27"></a></p>
  16. </td>
  17. </tr>
  18. </table>
  19. <hr>
  20. </head><body>
  21. <!-- Generated by Doxygen 1.3.6 -->
  22. <div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a></div>
  23. <h1>PVRTTrans.h File Reference</h1>
  24. <p>
  25. This graph shows which files directly or indirectly include this file:<p><center><img src="PVRTTrans_8h__dep__incl.png" border="0" usemap="#PVRTTrans.hdep_map" alt="Included by dependency graph"></center>
  26. <map name="PVRTTrans.hdep_map">
  27. <area href="OGLES2Tools_8h.html" shape="rect" coords="7,7,124,34" alt="">
  28. </map>
  29. <p>
  30. <a href="PVRTTrans_8h-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
  31. <tr><td></td></tr>
  32. <tr><td colspan=2><br><h2>Classes</h2></td></tr>
  33. <tr><td class="memItemLeft" nowrap align=right valign=top>struct &nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="structPVRTBOUNDINGBOX__TAG.html">PVRTBOUNDINGBOX_TAG</a></td></tr>
  34. <tr><td colspan=2><br><h2>Typedefs</h2></td></tr>
  35. <tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="structPVRTBOUNDINGBOX__TAG.html">PVRTBOUNDINGBOX_TAG</a>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRTTrans_8h.html#a0">PVRTBOUNDINGBOX</a></td></tr>
  36. <tr><td class="memItemLeft" nowrap align=right valign=top>typedef <a class="el" href="structPVRTBOUNDINGBOX__TAG.html">PVRTBOUNDINGBOX_TAG</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRTTrans_8h.html#a1">LPPVRTBOUNDINGBOX</a></td></tr>
  37. <tr><td colspan=2><br><h2>Functions</h2></td></tr>
  38. <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRTTrans_8h.html#a2">PVRTBoundingBoxCompute</a> (<a class="el" href="structPVRTBOUNDINGBOX__TAG.html">PVRTBOUNDINGBOX</a> *const pBoundingBox, const <a class="el" href="structPVRTVECTOR3f.html">PVRTVECTOR3</a> *const pV, const int nNumberOfVertices)</td></tr>
  39. <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRTTrans_8h.html#a3">PVRTBoundingBoxComputeInterleaved</a> (<a class="el" href="structPVRTBOUNDINGBOX__TAG.html">PVRTBOUNDINGBOX</a> *const pBoundingBox, const unsigned char *const pV, const int nNumberOfVertices, const int i32Offset, const int i32Stride)</td></tr>
  40. <tr><td class="memItemLeft" nowrap align=right valign=top>bool&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRTTrans_8h.html#a4">PVRTBoundingBoxIsVisible</a> (const <a class="el" href="structPVRTBOUNDINGBOX__TAG.html">PVRTBOUNDINGBOX</a> *const pBoundingBox, const <a class="el" href="classPVRTMATRIXf.html">PVRTMATRIX</a> *const pMatrix, bool *const pNeedsZClipping)</td></tr>
  41. <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRTTrans_8h.html#a5">PVRTTransformVec3Array</a> (<a class="el" href="structPVRTVECTOR4f.html">PVRTVECTOR4</a> *const pOut, const int nOutStride, const <a class="el" href="structPVRTVECTOR3f.html">PVRTVECTOR3</a> *const pV, const int nInStride, const <a class="el" href="classPVRTMATRIXf.html">PVRTMATRIX</a> *const pMatrix, const int nNumberOfVertices)</td></tr>
  42. <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRTTrans_8h.html#a6">PVRTTransformArray</a> (<a class="el" href="structPVRTVECTOR3f.html">PVRTVECTOR3</a> *const pTransformedVertex, const <a class="el" href="structPVRTVECTOR3f.html">PVRTVECTOR3</a> *const pV, const int nNumberOfVertices, const <a class="el" href="classPVRTMATRIXf.html">PVRTMATRIX</a> *const pMatrix, const VERTTYPE fW=f2vt(1.0f))</td></tr>
  43. <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRTTrans_8h.html#a7">PVRTTransformArrayBack</a> (<a class="el" href="structPVRTVECTOR3f.html">PVRTVECTOR3</a> *const pTransformedVertex, const <a class="el" href="structPVRTVECTOR3f.html">PVRTVECTOR3</a> *const pVertex, const int nNumberOfVertices, const <a class="el" href="classPVRTMATRIXf.html">PVRTMATRIX</a> *const pMatrix)</td></tr>
  44. <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRTTrans_8h.html#a8">PVRTTransformBack</a> (<a class="el" href="structPVRTVECTOR4f.html">PVRTVECTOR4</a> *const pOut, const <a class="el" href="structPVRTVECTOR4f.html">PVRTVECTOR4</a> *const pV, const <a class="el" href="classPVRTMATRIXf.html">PVRTMATRIX</a> *const pM)</td></tr>
  45. <tr><td class="memItemLeft" nowrap align=right valign=top>void&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="PVRTTrans_8h.html#a9">PVRTTransform</a> (<a class="el" href="structPVRTVECTOR4f.html">PVRTVECTOR4</a> *const pOut, const <a class="el" href="structPVRTVECTOR4f.html">PVRTVECTOR4</a> *const pV, const <a class="el" href="classPVRTMATRIXf.html">PVRTMATRIX</a> *const pM)</td></tr>
  46. </table>
  47. <hr><h2>Typedef Documentation</h2>
  48. <a class="anchor" name="a1" doxytag="PVRTTrans.h::LPPVRTBOUNDINGBOX" ></a><p>
  49. <br><br><h3>LPPVRTBOUNDINGBOX</h3><br><div>
  50. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  51. <tr>
  52. <td class="mdRow">
  53. <table cellpadding="0" cellspacing="0" border="0">
  54. <tr>
  55. <td class="md" nowrap valign="top"> typedef struct <a class="el" href="structPVRTBOUNDINGBOX__TAG.html">PVRTBOUNDINGBOX_TAG</a> * <a class="el" href="structPVRTBOUNDINGBOX__TAG.html">LPPVRTBOUNDINGBOX</a>
  56. </table>
  57. </td>
  58. </tr>
  59. </table>
  60. <table cellspacing=5 cellpadding=0 border=0>
  61. <tr>
  62. <td>
  63. &nbsp;
  64. </td>
  65. <td>
  66. <p>
  67. </td>
  68. </tr>
  69. </table>
  70. <a class="anchor" name="a0" doxytag="PVRTTrans.h::PVRTBOUNDINGBOX" ></a><p>
  71. <br><br><h3>PVRTBOUNDINGBOX</h3><br><div>
  72. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  73. <tr>
  74. <td class="mdRow">
  75. <table cellpadding="0" cellspacing="0" border="0">
  76. <tr>
  77. <td class="md" nowrap valign="top"> typedef struct <a class="el" href="structPVRTBOUNDINGBOX__TAG.html">PVRTBOUNDINGBOX_TAG</a> <a class="el" href="structPVRTBOUNDINGBOX__TAG.html">PVRTBOUNDINGBOX</a>
  78. </table>
  79. </td>
  80. </tr>
  81. </table>
  82. <table cellspacing=5 cellpadding=0 border=0>
  83. <tr>
  84. <td>
  85. &nbsp;
  86. </td>
  87. <td>
  88. <p>
  89. </td>
  90. </tr>
  91. </table>
  92. <hr><h2>Function Documentation</h2>
  93. <a class="anchor" name="a2" doxytag="PVRTTrans.h::PVRTBoundingBoxCompute" ></a><p>
  94. <br><br><h3>PVRTBoundingBoxCompute</h3><br><div>
  95. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  96. <tr>
  97. <td class="mdRow">
  98. <table cellpadding="0" cellspacing="0" border="0">
  99. <tr>
  100. <td class="md" nowrap valign="top"> void PVRTBoundingBoxCompute </td>
  101. <td class="md" valign="top">(&nbsp;</td>
  102. <td class="md" nowrap valign="top"><a class="el" href="structPVRTBOUNDINGBOX__TAG.html">PVRTBOUNDINGBOX</a> *const&nbsp;</td>
  103. <td class="mdname" nowrap> <em>pBoundingBox</em>, </td>
  104. </tr>
  105. <tr>
  106. <td class="md" nowrap align="right"></td>
  107. <td></td>
  108. <td class="md" nowrap>const <a class="el" href="structPVRTVECTOR3f.html">PVRTVECTOR3</a> *const&nbsp;</td>
  109. <td class="mdname" nowrap> <em>pV</em>, </td>
  110. </tr>
  111. <tr>
  112. <td class="md" nowrap align="right"></td>
  113. <td></td>
  114. <td class="md" nowrap>const int&nbsp;</td>
  115. <td class="mdname" nowrap> <em>nNumberOfVertices</em></td>
  116. </tr>
  117. <tr>
  118. <td></td>
  119. <td class="md">)&nbsp;</td>
  120. <td class="md" colspan="2"></td>
  121. </tr>
  122. </table>
  123. </td>
  124. </tr>
  125. </table>
  126. <table cellspacing=5 cellpadding=0 border=0>
  127. <tr>
  128. <td>
  129. &nbsp;
  130. </td>
  131. <td>
  132. <p>
  133. <dl compact><dt><b>Outputs:</b></dt><dd>
  134. <table border="0" cellspacing="2" cellpadding="0">
  135. <tr><td valign=top><em>pBoundingBox</em>&nbsp;</td><td></td></tr>
  136. </table>
  137. </dl>
  138. <dl compact><dt><b>Inputs:</b></dt><dd>
  139. <table border="0" cellspacing="2" cellpadding="0">
  140. <tr><td valign=top><em>pV</em>&nbsp;</td><td></td></tr>
  141. <tr><td valign=top><em>nNumberOfVertices</em>&nbsp;</td><td></td></tr>
  142. </table>
  143. </dl>
  144. <dl compact><dt><b>Description:</b></dt><dd>Calculate the eight vertices that surround an object. This "bounding box" is used later to determine whether the object is visible or not. This function should only be called once to determine the object's bounding box. </dd></dl>
  145. </td>
  146. </tr>
  147. </table>
  148. <a class="anchor" name="a3" doxytag="PVRTTrans.h::PVRTBoundingBoxComputeInterleaved" ></a><p>
  149. <br><br><h3>PVRTBoundingBoxComputeInterleaved</h3><br><div>
  150. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  151. <tr>
  152. <td class="mdRow">
  153. <table cellpadding="0" cellspacing="0" border="0">
  154. <tr>
  155. <td class="md" nowrap valign="top"> void PVRTBoundingBoxComputeInterleaved </td>
  156. <td class="md" valign="top">(&nbsp;</td>
  157. <td class="md" nowrap valign="top"><a class="el" href="structPVRTBOUNDINGBOX__TAG.html">PVRTBOUNDINGBOX</a> *const&nbsp;</td>
  158. <td class="mdname" nowrap> <em>pBoundingBox</em>, </td>
  159. </tr>
  160. <tr>
  161. <td class="md" nowrap align="right"></td>
  162. <td></td>
  163. <td class="md" nowrap>const unsigned char *const&nbsp;</td>
  164. <td class="mdname" nowrap> <em>pV</em>, </td>
  165. </tr>
  166. <tr>
  167. <td class="md" nowrap align="right"></td>
  168. <td></td>
  169. <td class="md" nowrap>const int&nbsp;</td>
  170. <td class="mdname" nowrap> <em>nNumberOfVertices</em>, </td>
  171. </tr>
  172. <tr>
  173. <td class="md" nowrap align="right"></td>
  174. <td></td>
  175. <td class="md" nowrap>const int&nbsp;</td>
  176. <td class="mdname" nowrap> <em>i32Offset</em>, </td>
  177. </tr>
  178. <tr>
  179. <td class="md" nowrap align="right"></td>
  180. <td></td>
  181. <td class="md" nowrap>const int&nbsp;</td>
  182. <td class="mdname" nowrap> <em>i32Stride</em></td>
  183. </tr>
  184. <tr>
  185. <td></td>
  186. <td class="md">)&nbsp;</td>
  187. <td class="md" colspan="2"></td>
  188. </tr>
  189. </table>
  190. </td>
  191. </tr>
  192. </table>
  193. <table cellspacing=5 cellpadding=0 border=0>
  194. <tr>
  195. <td>
  196. &nbsp;
  197. </td>
  198. <td>
  199. <p>
  200. <dl compact><dt><b>Outputs:</b></dt><dd>
  201. <table border="0" cellspacing="2" cellpadding="0">
  202. <tr><td valign=top><em>pBoundingBox</em>&nbsp;</td><td></td></tr>
  203. </table>
  204. </dl>
  205. <dl compact><dt><b>Inputs:</b></dt><dd>
  206. <table border="0" cellspacing="2" cellpadding="0">
  207. <tr><td valign=top><em>pV</em>&nbsp;</td><td></td></tr>
  208. <tr><td valign=top><em>nNumberOfVertices</em>&nbsp;</td><td></td></tr>
  209. <tr><td valign=top><em>i32Offset</em>&nbsp;</td><td></td></tr>
  210. <tr><td valign=top><em>i32Stride</em>&nbsp;</td><td></td></tr>
  211. </table>
  212. </dl>
  213. <dl compact><dt><b>Description:</b></dt><dd>Calculate the eight vertices that surround an object. This "bounding box" is used later to determine whether the object is visible or not. This function should only be called once to determine the object's bounding box. Takes interleaved data using the first vertex's offset and the stride to the next vertex thereafter </dd></dl>
  214. </td>
  215. </tr>
  216. </table>
  217. <a class="anchor" name="a4" doxytag="PVRTTrans.h::PVRTBoundingBoxIsVisible" ></a><p>
  218. <br><br><h3>PVRTBoundingBoxIsVisible</h3><br><div>
  219. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  220. <tr>
  221. <td class="mdRow">
  222. <table cellpadding="0" cellspacing="0" border="0">
  223. <tr>
  224. <td class="md" nowrap valign="top"> bool PVRTBoundingBoxIsVisible </td>
  225. <td class="md" valign="top">(&nbsp;</td>
  226. <td class="md" nowrap valign="top">const <a class="el" href="structPVRTBOUNDINGBOX__TAG.html">PVRTBOUNDINGBOX</a> *const&nbsp;</td>
  227. <td class="mdname" nowrap> <em>pBoundingBox</em>, </td>
  228. </tr>
  229. <tr>
  230. <td class="md" nowrap align="right"></td>
  231. <td></td>
  232. <td class="md" nowrap>const <a class="el" href="classPVRTMATRIXf.html">PVRTMATRIX</a> *const&nbsp;</td>
  233. <td class="mdname" nowrap> <em>pMatrix</em>, </td>
  234. </tr>
  235. <tr>
  236. <td class="md" nowrap align="right"></td>
  237. <td></td>
  238. <td class="md" nowrap>bool *const&nbsp;</td>
  239. <td class="mdname" nowrap> <em>pNeedsZClipping</em></td>
  240. </tr>
  241. <tr>
  242. <td></td>
  243. <td class="md">)&nbsp;</td>
  244. <td class="md" colspan="2"></td>
  245. </tr>
  246. </table>
  247. </td>
  248. </tr>
  249. </table>
  250. <table cellspacing=5 cellpadding=0 border=0>
  251. <tr>
  252. <td>
  253. &nbsp;
  254. </td>
  255. <td>
  256. <p>
  257. <dl compact><dt><b>Outputs:</b></dt><dd>
  258. <table border="0" cellspacing="2" cellpadding="0">
  259. <tr><td valign=top><em>pNeedsZClipping</em>&nbsp;</td><td></td></tr>
  260. </table>
  261. </dl>
  262. <dl compact><dt><b>Inputs:</b></dt><dd>
  263. <table border="0" cellspacing="2" cellpadding="0">
  264. <tr><td valign=top><em>pBoundingBox</em>&nbsp;</td><td></td></tr>
  265. <tr><td valign=top><em>pMatrix</em>&nbsp;</td><td></td></tr>
  266. </table>
  267. </dl>
  268. <dl compact><dt><b>Returns:</b></dt><dd>TRUE if the object is visible, FALSE if not. </dd></dl>
  269. <dl compact><dt><b>Description:</b></dt><dd>Determine if a bounding box is "visible" or not along the Z axis. If the function returns TRUE, the object is visible and should be displayed (check bNeedsZClipping to know if Z Clipping needs to be done). If the function returns FALSE, the object is not visible and thus does not require to be displayed. bNeedsZClipping indicates whether the object needs Z Clipping (i.e. the object is partially visible).<ul>
  270. <li>*pBoundingBox is a pointer to the bounding box structure.</li><li>*pMatrix is the World, View &amp; Projection matrices combined.</li><li>*bNeedsZClipping is TRUE if Z clipping is required. </li></ul>
  271. </dd></dl>
  272. </td>
  273. </tr>
  274. </table>
  275. <a class="anchor" name="a9" doxytag="PVRTTrans.h::PVRTTransform" ></a><p>
  276. <br><br><h3>PVRTTransform</h3><br><div>
  277. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  278. <tr>
  279. <td class="mdRow">
  280. <table cellpadding="0" cellspacing="0" border="0">
  281. <tr>
  282. <td class="md" nowrap valign="top"> void PVRTTransform </td>
  283. <td class="md" valign="top">(&nbsp;</td>
  284. <td class="md" nowrap valign="top"><a class="el" href="structPVRTVECTOR4f.html">PVRTVECTOR4</a> *const&nbsp;</td>
  285. <td class="mdname" nowrap> <em>pOut</em>, </td>
  286. </tr>
  287. <tr>
  288. <td class="md" nowrap align="right"></td>
  289. <td></td>
  290. <td class="md" nowrap>const <a class="el" href="structPVRTVECTOR4f.html">PVRTVECTOR4</a> *const&nbsp;</td>
  291. <td class="mdname" nowrap> <em>pV</em>, </td>
  292. </tr>
  293. <tr>
  294. <td class="md" nowrap align="right"></td>
  295. <td></td>
  296. <td class="md" nowrap>const <a class="el" href="classPVRTMATRIXf.html">PVRTMATRIX</a> *const&nbsp;</td>
  297. <td class="mdname" nowrap> <em>pM</em></td>
  298. </tr>
  299. <tr>
  300. <td></td>
  301. <td class="md">)&nbsp;</td>
  302. <td class="md" colspan="2"></td>
  303. </tr>
  304. </table>
  305. </td>
  306. </tr>
  307. </table>
  308. <table cellspacing=5 cellpadding=0 border=0>
  309. <tr>
  310. <td>
  311. &nbsp;
  312. </td>
  313. <td>
  314. <p>
  315. <dl compact><dt><b>Outputs:</b></dt><dd>
  316. <table border="0" cellspacing="2" cellpadding="0">
  317. <tr><td valign=top><em>pOut</em>&nbsp;</td><td></td></tr>
  318. </table>
  319. </dl>
  320. <dl compact><dt><b>Inputs:</b></dt><dd>
  321. <table border="0" cellspacing="2" cellpadding="0">
  322. <tr><td valign=top><em>pV</em>&nbsp;</td><td></td></tr>
  323. <tr><td valign=top><em>pM</em>&nbsp;</td><td></td></tr>
  324. </table>
  325. </dl>
  326. <dl compact><dt><b>Description:</b></dt><dd>Transform vertex pV by pMatrix and store in pOut. </dd></dl>
  327. </td>
  328. </tr>
  329. </table>
  330. <a class="anchor" name="a6" doxytag="PVRTTrans.h::PVRTTransformArray" ></a><p>
  331. <br><br><h3>PVRTTransformArray</h3><br><div>
  332. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  333. <tr>
  334. <td class="mdRow">
  335. <table cellpadding="0" cellspacing="0" border="0">
  336. <tr>
  337. <td class="md" nowrap valign="top"> void PVRTTransformArray </td>
  338. <td class="md" valign="top">(&nbsp;</td>
  339. <td class="md" nowrap valign="top"><a class="el" href="structPVRTVECTOR3f.html">PVRTVECTOR3</a> *const&nbsp;</td>
  340. <td class="mdname" nowrap> <em>pTransformedVertex</em>, </td>
  341. </tr>
  342. <tr>
  343. <td class="md" nowrap align="right"></td>
  344. <td></td>
  345. <td class="md" nowrap>const <a class="el" href="structPVRTVECTOR3f.html">PVRTVECTOR3</a> *const&nbsp;</td>
  346. <td class="mdname" nowrap> <em>pV</em>, </td>
  347. </tr>
  348. <tr>
  349. <td class="md" nowrap align="right"></td>
  350. <td></td>
  351. <td class="md" nowrap>const int&nbsp;</td>
  352. <td class="mdname" nowrap> <em>nNumberOfVertices</em>, </td>
  353. </tr>
  354. <tr>
  355. <td class="md" nowrap align="right"></td>
  356. <td></td>
  357. <td class="md" nowrap>const <a class="el" href="classPVRTMATRIXf.html">PVRTMATRIX</a> *const&nbsp;</td>
  358. <td class="mdname" nowrap> <em>pMatrix</em>, </td>
  359. </tr>
  360. <tr>
  361. <td class="md" nowrap align="right"></td>
  362. <td></td>
  363. <td class="md" nowrap>const VERTTYPE&nbsp;</td>
  364. <td class="mdname" nowrap> <em>fW</em> = f2vt(1.0f)</td>
  365. </tr>
  366. <tr>
  367. <td></td>
  368. <td class="md">)&nbsp;</td>
  369. <td class="md" colspan="2"></td>
  370. </tr>
  371. </table>
  372. </td>
  373. </tr>
  374. </table>
  375. <table cellspacing=5 cellpadding=0 border=0>
  376. <tr>
  377. <td>
  378. &nbsp;
  379. </td>
  380. <td>
  381. <p>
  382. <dl compact><dt><b>Outputs:</b></dt><dd>
  383. <table border="0" cellspacing="2" cellpadding="0">
  384. <tr><td valign=top><em>pTransformedVertex</em>&nbsp;</td><td>Destination for transformed vectors </td></tr>
  385. </table>
  386. </dl>
  387. <dl compact><dt><b>Inputs:</b></dt><dd>
  388. <table border="0" cellspacing="2" cellpadding="0">
  389. <tr><td valign=top><em>pV</em>&nbsp;</td><td>Input vector array </td></tr>
  390. <tr><td valign=top><em>nNumberOfVertices</em>&nbsp;</td><td>Number of vectors to transform </td></tr>
  391. <tr><td valign=top><em>pMatrix</em>&nbsp;</td><td>Matrix to transform the vectors </td></tr>
  392. <tr><td valign=top><em>fW</em>&nbsp;</td><td>W coordinate of input vector (e.g. use 1 for position, 0 for normal) </td></tr>
  393. </table>
  394. </dl>
  395. <dl compact><dt><b>Description:</b></dt><dd>Transform all vertices in pVertex by pMatrix and store them in pTransformedVertex<ul>
  396. <li>pTransformedVertex is the pointer that will receive transformed vertices.</li><li>pVertex is the pointer to untransformed object vertices.</li><li>nNumberOfVertices is the number of vertices of the object.</li><li>pMatrix is the matrix used to transform the object. </li></ul>
  397. </dd></dl>
  398. </td>
  399. </tr>
  400. </table>
  401. <a class="anchor" name="a7" doxytag="PVRTTrans.h::PVRTTransformArrayBack" ></a><p>
  402. <br><br><h3>PVRTTransformArrayBack</h3><br><div>
  403. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  404. <tr>
  405. <td class="mdRow">
  406. <table cellpadding="0" cellspacing="0" border="0">
  407. <tr>
  408. <td class="md" nowrap valign="top"> void PVRTTransformArrayBack </td>
  409. <td class="md" valign="top">(&nbsp;</td>
  410. <td class="md" nowrap valign="top"><a class="el" href="structPVRTVECTOR3f.html">PVRTVECTOR3</a> *const&nbsp;</td>
  411. <td class="mdname" nowrap> <em>pTransformedVertex</em>, </td>
  412. </tr>
  413. <tr>
  414. <td class="md" nowrap align="right"></td>
  415. <td></td>
  416. <td class="md" nowrap>const <a class="el" href="structPVRTVECTOR3f.html">PVRTVECTOR3</a> *const&nbsp;</td>
  417. <td class="mdname" nowrap> <em>pVertex</em>, </td>
  418. </tr>
  419. <tr>
  420. <td class="md" nowrap align="right"></td>
  421. <td></td>
  422. <td class="md" nowrap>const int&nbsp;</td>
  423. <td class="mdname" nowrap> <em>nNumberOfVertices</em>, </td>
  424. </tr>
  425. <tr>
  426. <td class="md" nowrap align="right"></td>
  427. <td></td>
  428. <td class="md" nowrap>const <a class="el" href="classPVRTMATRIXf.html">PVRTMATRIX</a> *const&nbsp;</td>
  429. <td class="mdname" nowrap> <em>pMatrix</em></td>
  430. </tr>
  431. <tr>
  432. <td></td>
  433. <td class="md">)&nbsp;</td>
  434. <td class="md" colspan="2"></td>
  435. </tr>
  436. </table>
  437. </td>
  438. </tr>
  439. </table>
  440. <table cellspacing=5 cellpadding=0 border=0>
  441. <tr>
  442. <td>
  443. &nbsp;
  444. </td>
  445. <td>
  446. <p>
  447. <dl compact><dt><b>Outputs:</b></dt><dd>
  448. <table border="0" cellspacing="2" cellpadding="0">
  449. <tr><td valign=top><em>pTransformedVertex</em>&nbsp;</td><td></td></tr>
  450. </table>
  451. </dl>
  452. <dl compact><dt><b>Inputs:</b></dt><dd>
  453. <table border="0" cellspacing="2" cellpadding="0">
  454. <tr><td valign=top><em>pVertex</em>&nbsp;</td><td></td></tr>
  455. <tr><td valign=top><em>nNumberOfVertices</em>&nbsp;</td><td></td></tr>
  456. <tr><td valign=top><em>pMatrix</em>&nbsp;</td><td></td></tr>
  457. </table>
  458. </dl>
  459. <dl compact><dt><b>Description:</b></dt><dd>Transform all vertices in pVertex by the inverse of pMatrix and store them in pTransformedVertex.<ul>
  460. <li>pTransformedVertex is the pointer that will receive transformed vertices.</li><li>pVertex is the pointer to untransformed object vertices.</li><li>nNumberOfVertices is the number of vertices of the object.</li><li>pMatrix is the matrix used to transform the object. </li></ul>
  461. </dd></dl>
  462. </td>
  463. </tr>
  464. </table>
  465. <a class="anchor" name="a8" doxytag="PVRTTrans.h::PVRTTransformBack" ></a><p>
  466. <br><br><h3>PVRTTransformBack</h3><br><div>
  467. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  468. <tr>
  469. <td class="mdRow">
  470. <table cellpadding="0" cellspacing="0" border="0">
  471. <tr>
  472. <td class="md" nowrap valign="top"> void PVRTTransformBack </td>
  473. <td class="md" valign="top">(&nbsp;</td>
  474. <td class="md" nowrap valign="top"><a class="el" href="structPVRTVECTOR4f.html">PVRTVECTOR4</a> *const&nbsp;</td>
  475. <td class="mdname" nowrap> <em>pOut</em>, </td>
  476. </tr>
  477. <tr>
  478. <td class="md" nowrap align="right"></td>
  479. <td></td>
  480. <td class="md" nowrap>const <a class="el" href="structPVRTVECTOR4f.html">PVRTVECTOR4</a> *const&nbsp;</td>
  481. <td class="mdname" nowrap> <em>pV</em>, </td>
  482. </tr>
  483. <tr>
  484. <td class="md" nowrap align="right"></td>
  485. <td></td>
  486. <td class="md" nowrap>const <a class="el" href="classPVRTMATRIXf.html">PVRTMATRIX</a> *const&nbsp;</td>
  487. <td class="mdname" nowrap> <em>pM</em></td>
  488. </tr>
  489. <tr>
  490. <td></td>
  491. <td class="md">)&nbsp;</td>
  492. <td class="md" colspan="2"></td>
  493. </tr>
  494. </table>
  495. </td>
  496. </tr>
  497. </table>
  498. <table cellspacing=5 cellpadding=0 border=0>
  499. <tr>
  500. <td>
  501. &nbsp;
  502. </td>
  503. <td>
  504. <p>
  505. <dl compact><dt><b>Outputs:</b></dt><dd>
  506. <table border="0" cellspacing="2" cellpadding="0">
  507. <tr><td valign=top><em>pOut</em>&nbsp;</td><td></td></tr>
  508. </table>
  509. </dl>
  510. <dl compact><dt><b>Inputs:</b></dt><dd>
  511. <table border="0" cellspacing="2" cellpadding="0">
  512. <tr><td valign=top><em>pV</em>&nbsp;</td><td></td></tr>
  513. <tr><td valign=top><em>pM</em>&nbsp;</td><td></td></tr>
  514. </table>
  515. </dl>
  516. <dl compact><dt><b>Description:</b></dt><dd>Transform vertex pV by the inverse of pMatrix and store in pOut. </dd></dl>
  517. </td>
  518. </tr>
  519. </table>
  520. <a class="anchor" name="a5" doxytag="PVRTTrans.h::PVRTTransformVec3Array" ></a><p>
  521. <br><br><h3>PVRTTransformVec3Array</h3><br><div>
  522. <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
  523. <tr>
  524. <td class="mdRow">
  525. <table cellpadding="0" cellspacing="0" border="0">
  526. <tr>
  527. <td class="md" nowrap valign="top"> void PVRTTransformVec3Array </td>
  528. <td class="md" valign="top">(&nbsp;</td>
  529. <td class="md" nowrap valign="top"><a class="el" href="structPVRTVECTOR4f.html">PVRTVECTOR4</a> *const&nbsp;</td>
  530. <td class="mdname" nowrap> <em>pOut</em>, </td>
  531. </tr>
  532. <tr>
  533. <td class="md" nowrap align="right"></td>
  534. <td></td>
  535. <td class="md" nowrap>const int&nbsp;</td>
  536. <td class="mdname" nowrap> <em>nOutStride</em>, </td>
  537. </tr>
  538. <tr>
  539. <td class="md" nowrap align="right"></td>
  540. <td></td>
  541. <td class="md" nowrap>const <a class="el" href="structPVRTVECTOR3f.html">PVRTVECTOR3</a> *const&nbsp;</td>
  542. <td class="mdname" nowrap> <em>pV</em>, </td>
  543. </tr>
  544. <tr>
  545. <td class="md" nowrap align="right"></td>
  546. <td></td>
  547. <td class="md" nowrap>const int&nbsp;</td>
  548. <td class="mdname" nowrap> <em>nInStride</em>, </td>
  549. </tr>
  550. <tr>
  551. <td class="md" nowrap align="right"></td>
  552. <td></td>
  553. <td class="md" nowrap>const <a class="el" href="classPVRTMATRIXf.html">PVRTMATRIX</a> *const&nbsp;</td>
  554. <td class="mdname" nowrap> <em>pMatrix</em>, </td>
  555. </tr>
  556. <tr>
  557. <td class="md" nowrap align="right"></td>
  558. <td></td>
  559. <td class="md" nowrap>const int&nbsp;</td>
  560. <td class="mdname" nowrap> <em>nNumberOfVertices</em></td>
  561. </tr>
  562. <tr>
  563. <td></td>
  564. <td class="md">)&nbsp;</td>
  565. <td class="md" colspan="2"></td>
  566. </tr>
  567. </table>
  568. </td>
  569. </tr>
  570. </table>
  571. <table cellspacing=5 cellpadding=0 border=0>
  572. <tr>
  573. <td>
  574. &nbsp;
  575. </td>
  576. <td>
  577. <p>
  578. PVRTTransformVec3Array <dl compact><dt><b>Outputs:</b></dt><dd>
  579. <table border="0" cellspacing="2" cellpadding="0">
  580. <tr><td valign=top><em>pOut</em>&nbsp;</td><td>Destination for transformed vectors </td></tr>
  581. </table>
  582. </dl>
  583. <dl compact><dt><b>Inputs:</b></dt><dd>
  584. <table border="0" cellspacing="2" cellpadding="0">
  585. <tr><td valign=top><em>nOutStride</em>&nbsp;</td><td>Stride between vectors in pOut array </td></tr>
  586. <tr><td valign=top><em>pV</em>&nbsp;</td><td>Input vector array </td></tr>
  587. <tr><td valign=top><em>nInStride</em>&nbsp;</td><td>Stride between vectors in pV array </td></tr>
  588. <tr><td valign=top><em>pMatrix</em>&nbsp;</td><td>Matrix to transform the vectors </td></tr>
  589. <tr><td valign=top><em>nNumberOfVertices</em>&nbsp;</td><td>Number of vectors to transform </td></tr>
  590. </table>
  591. </dl>
  592. <dl compact><dt><b>Description:</b></dt><dd>Transform all vertices [X Y Z 1] in pV by pMatrix and store them in pOut. </dd></dl>
  593. </td>
  594. </tr>
  595. </table>
  596. <br>
  597. <br>
  598. <P align=left><FONT size=2><STRONG><A
  599. href="http://www.imgtec.com/powervr/insider/legal/index.asp">Copyright</A> ©
  600. 1999-2008, Imagination Technologies Ltd.</STRONG></FONT></P>
  601. <hr>
  602. <address style="align: left;"><small><FONT color=f0f>
  603. Generated by <a href="http://www.doxygen.org/index.html">DOXYGEN</a> 1.3.6</small></address>
  604. </body>
  605. </html>