Platformer in OpenGL
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

416 linhas
18 KiB

5 anos atrás
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>0.9.9 API documenation: GLM_GTX_transform2</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectlogo"><img alt="Logo" src="logo-mini.png"/></td>
  24. <td id="projectalign" style="padding-left: 0.5em;">
  25. <div id="projectname">0.9.9 API documenation
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.14 -->
  34. <script type="text/javascript">
  35. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. /* @license-end */
  38. </script>
  39. <script type="text/javascript" src="menudata.js"></script>
  40. <script type="text/javascript" src="menu.js"></script>
  41. <script type="text/javascript">
  42. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  43. $(function() {
  44. initMenu('',true,false,'search.php','Search');
  45. $(document).ready(function() { init_search(); });
  46. });
  47. /* @license-end */</script>
  48. <div id="main-nav"></div>
  49. </div><!-- top -->
  50. <!-- window showing the filter options -->
  51. <div id="MSearchSelectWindow"
  52. onmouseover="return searchBox.OnSearchSelectShow()"
  53. onmouseout="return searchBox.OnSearchSelectHide()"
  54. onkeydown="return searchBox.OnSearchSelectKey(event)">
  55. </div>
  56. <!-- iframe showing the search results (closed by default) -->
  57. <div id="MSearchResultsWindow">
  58. <iframe src="javascript:void(0)" frameborder="0"
  59. name="MSearchResults" id="MSearchResults">
  60. </iframe>
  61. </div>
  62. <div class="header">
  63. <div class="summary">
  64. <a href="#func-members">Functions</a> </div>
  65. <div class="headertitle">
  66. <div class="title">GLM_GTX_transform2<div class="ingroups"><a class="el" href="a00705.html">Experimental extensions</a></div></div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <table class="memberdecls">
  70. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  71. Functions</h2></td></tr>
  72. <tr class="memitem:ga5b992a0cdc8298054edb68e228f0d93e"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:ga5b992a0cdc8298054edb68e228f0d93e"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat&lt; 3, 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00780.html#ga5b992a0cdc8298054edb68e228f0d93e">proj2D</a> (mat&lt; 3, 3, T, Q &gt; const &amp;m, vec&lt; 3, T, Q &gt; const &amp;normal)</td></tr>
  74. <tr class="separator:ga5b992a0cdc8298054edb68e228f0d93e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:gaa2b7f4f15b98f697caede11bef50509e"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:gaa2b7f4f15b98f697caede11bef50509e"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat&lt; 4, 4, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00780.html#gaa2b7f4f15b98f697caede11bef50509e">proj3D</a> (mat&lt; 4, 4, T, Q &gt; const &amp;m, vec&lt; 3, T, Q &gt; const &amp;normal)</td></tr>
  77. <tr class="separator:gaa2b7f4f15b98f697caede11bef50509e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:gabf249498b236e62c983d90d30d63c99c"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:gabf249498b236e62c983d90d30d63c99c"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat&lt; 4, 4, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00780.html#gabf249498b236e62c983d90d30d63c99c">scaleBias</a> (T scale, T bias)</td></tr>
  80. <tr class="separator:gabf249498b236e62c983d90d30d63c99c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:gae2bdd91a76759fecfbaef97e3020aa8e"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:gae2bdd91a76759fecfbaef97e3020aa8e"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat&lt; 4, 4, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00780.html#gae2bdd91a76759fecfbaef97e3020aa8e">scaleBias</a> (mat&lt; 4, 4, T, Q &gt; const &amp;m, T scale, T bias)</td></tr>
  83. <tr class="separator:gae2bdd91a76759fecfbaef97e3020aa8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:gabf714b8a358181572b32a45555f71948"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  85. <tr class="memitem:gabf714b8a358181572b32a45555f71948"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat&lt; 3, 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00780.html#gabf714b8a358181572b32a45555f71948">shearX2D</a> (mat&lt; 3, 3, T, Q &gt; const &amp;m, T y)</td></tr>
  86. <tr class="separator:gabf714b8a358181572b32a45555f71948"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:ga73e867c6cd4d700fe2054437e56106c4"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  88. <tr class="memitem:ga73e867c6cd4d700fe2054437e56106c4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat&lt; 4, 4, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00780.html#ga73e867c6cd4d700fe2054437e56106c4">shearX3D</a> (mat&lt; 4, 4, T, Q &gt; const &amp;m, T y, T z)</td></tr>
  89. <tr class="separator:ga73e867c6cd4d700fe2054437e56106c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:gac7998d0763d9181550c77e8af09a182c"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  91. <tr class="memitem:gac7998d0763d9181550c77e8af09a182c"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat&lt; 3, 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00780.html#gac7998d0763d9181550c77e8af09a182c">shearY2D</a> (mat&lt; 3, 3, T, Q &gt; const &amp;m, T x)</td></tr>
  92. <tr class="separator:gac7998d0763d9181550c77e8af09a182c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:gade5bb65ffcb513973db1a1314fb5cfac"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  94. <tr class="memitem:gade5bb65ffcb513973db1a1314fb5cfac"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat&lt; 4, 4, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00780.html#gade5bb65ffcb513973db1a1314fb5cfac">shearY3D</a> (mat&lt; 4, 4, T, Q &gt; const &amp;m, T x, T z)</td></tr>
  95. <tr class="separator:gade5bb65ffcb513973db1a1314fb5cfac"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:ga6591e0a3a9d2c9c0b6577bb4dace0255"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  97. <tr class="memitem:ga6591e0a3a9d2c9c0b6577bb4dace0255"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat&lt; 4, 4, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00780.html#ga6591e0a3a9d2c9c0b6577bb4dace0255">shearZ3D</a> (mat&lt; 4, 4, T, Q &gt; const &amp;m, T x, T y)</td></tr>
  98. <tr class="separator:ga6591e0a3a9d2c9c0b6577bb4dace0255"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. </table>
  100. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  101. <p>Include &lt;<a class="el" href="a00599.html" title="GLM_GTX_transform2 ">glm/gtx/transform2.hpp</a>&gt; to use the features of this extension. </p>
  102. <p>Add extra transformation matrices </p>
  103. <h2 class="groupheader">Function Documentation</h2>
  104. <a id="ga5b992a0cdc8298054edb68e228f0d93e"></a>
  105. <h2 class="memtitle"><span class="permalink"><a href="#ga5b992a0cdc8298054edb68e228f0d93e">&#9670;&nbsp;</a></span>proj2D()</h2>
  106. <div class="memitem">
  107. <div class="memproto">
  108. <table class="memname">
  109. <tr>
  110. <td class="memname">GLM_FUNC_DECL mat&lt;3, 3, T, Q&gt; glm::proj2D </td>
  111. <td>(</td>
  112. <td class="paramtype">mat&lt; 3, 3, T, Q &gt; const &amp;&#160;</td>
  113. <td class="paramname"><em>m</em>, </td>
  114. </tr>
  115. <tr>
  116. <td class="paramkey"></td>
  117. <td></td>
  118. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  119. <td class="paramname"><em>normal</em>&#160;</td>
  120. </tr>
  121. <tr>
  122. <td></td>
  123. <td>)</td>
  124. <td></td><td></td>
  125. </tr>
  126. </table>
  127. </div><div class="memdoc">
  128. <p>Build planar projection matrix along normal axis. </p>
  129. <p>From GLM_GTX_transform2 extension. </p>
  130. </div>
  131. </div>
  132. <a id="gaa2b7f4f15b98f697caede11bef50509e"></a>
  133. <h2 class="memtitle"><span class="permalink"><a href="#gaa2b7f4f15b98f697caede11bef50509e">&#9670;&nbsp;</a></span>proj3D()</h2>
  134. <div class="memitem">
  135. <div class="memproto">
  136. <table class="memname">
  137. <tr>
  138. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::proj3D </td>
  139. <td>(</td>
  140. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  141. <td class="paramname"><em>m</em>, </td>
  142. </tr>
  143. <tr>
  144. <td class="paramkey"></td>
  145. <td></td>
  146. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  147. <td class="paramname"><em>normal</em>&#160;</td>
  148. </tr>
  149. <tr>
  150. <td></td>
  151. <td>)</td>
  152. <td></td><td></td>
  153. </tr>
  154. </table>
  155. </div><div class="memdoc">
  156. <p>Build planar projection matrix along normal axis. </p>
  157. <p>From GLM_GTX_transform2 extension. </p>
  158. </div>
  159. </div>
  160. <a id="gabf249498b236e62c983d90d30d63c99c"></a>
  161. <h2 class="memtitle"><span class="permalink"><a href="#gabf249498b236e62c983d90d30d63c99c">&#9670;&nbsp;</a></span>scaleBias() <span class="overload">[1/2]</span></h2>
  162. <div class="memitem">
  163. <div class="memproto">
  164. <table class="memname">
  165. <tr>
  166. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::scaleBias </td>
  167. <td>(</td>
  168. <td class="paramtype">T&#160;</td>
  169. <td class="paramname"><em>scale</em>, </td>
  170. </tr>
  171. <tr>
  172. <td class="paramkey"></td>
  173. <td></td>
  174. <td class="paramtype">T&#160;</td>
  175. <td class="paramname"><em>bias</em>&#160;</td>
  176. </tr>
  177. <tr>
  178. <td></td>
  179. <td>)</td>
  180. <td></td><td></td>
  181. </tr>
  182. </table>
  183. </div><div class="memdoc">
  184. <p>Build a scale bias matrix. </p>
  185. <p>From GLM_GTX_transform2 extension. </p>
  186. </div>
  187. </div>
  188. <a id="gae2bdd91a76759fecfbaef97e3020aa8e"></a>
  189. <h2 class="memtitle"><span class="permalink"><a href="#gae2bdd91a76759fecfbaef97e3020aa8e">&#9670;&nbsp;</a></span>scaleBias() <span class="overload">[2/2]</span></h2>
  190. <div class="memitem">
  191. <div class="memproto">
  192. <table class="memname">
  193. <tr>
  194. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::scaleBias </td>
  195. <td>(</td>
  196. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  197. <td class="paramname"><em>m</em>, </td>
  198. </tr>
  199. <tr>
  200. <td class="paramkey"></td>
  201. <td></td>
  202. <td class="paramtype">T&#160;</td>
  203. <td class="paramname"><em>scale</em>, </td>
  204. </tr>
  205. <tr>
  206. <td class="paramkey"></td>
  207. <td></td>
  208. <td class="paramtype">T&#160;</td>
  209. <td class="paramname"><em>bias</em>&#160;</td>
  210. </tr>
  211. <tr>
  212. <td></td>
  213. <td>)</td>
  214. <td></td><td></td>
  215. </tr>
  216. </table>
  217. </div><div class="memdoc">
  218. <p>Build a scale bias matrix. </p>
  219. <p>From GLM_GTX_transform2 extension. </p>
  220. </div>
  221. </div>
  222. <a id="gabf714b8a358181572b32a45555f71948"></a>
  223. <h2 class="memtitle"><span class="permalink"><a href="#gabf714b8a358181572b32a45555f71948">&#9670;&nbsp;</a></span>shearX2D()</h2>
  224. <div class="memitem">
  225. <div class="memproto">
  226. <table class="memname">
  227. <tr>
  228. <td class="memname">GLM_FUNC_DECL mat&lt;3, 3, T, Q&gt; glm::shearX2D </td>
  229. <td>(</td>
  230. <td class="paramtype">mat&lt; 3, 3, T, Q &gt; const &amp;&#160;</td>
  231. <td class="paramname"><em>m</em>, </td>
  232. </tr>
  233. <tr>
  234. <td class="paramkey"></td>
  235. <td></td>
  236. <td class="paramtype">T&#160;</td>
  237. <td class="paramname"><em>y</em>&#160;</td>
  238. </tr>
  239. <tr>
  240. <td></td>
  241. <td>)</td>
  242. <td></td><td></td>
  243. </tr>
  244. </table>
  245. </div><div class="memdoc">
  246. <p>Transforms a matrix with a shearing on X axis. </p>
  247. <p>From GLM_GTX_transform2 extension. </p>
  248. </div>
  249. </div>
  250. <a id="ga73e867c6cd4d700fe2054437e56106c4"></a>
  251. <h2 class="memtitle"><span class="permalink"><a href="#ga73e867c6cd4d700fe2054437e56106c4">&#9670;&nbsp;</a></span>shearX3D()</h2>
  252. <div class="memitem">
  253. <div class="memproto">
  254. <table class="memname">
  255. <tr>
  256. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::shearX3D </td>
  257. <td>(</td>
  258. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  259. <td class="paramname"><em>m</em>, </td>
  260. </tr>
  261. <tr>
  262. <td class="paramkey"></td>
  263. <td></td>
  264. <td class="paramtype">T&#160;</td>
  265. <td class="paramname"><em>y</em>, </td>
  266. </tr>
  267. <tr>
  268. <td class="paramkey"></td>
  269. <td></td>
  270. <td class="paramtype">T&#160;</td>
  271. <td class="paramname"><em>z</em>&#160;</td>
  272. </tr>
  273. <tr>
  274. <td></td>
  275. <td>)</td>
  276. <td></td><td></td>
  277. </tr>
  278. </table>
  279. </div><div class="memdoc">
  280. <p>Transforms a matrix with a shearing on X axis From GLM_GTX_transform2 extension. </p>
  281. </div>
  282. </div>
  283. <a id="gac7998d0763d9181550c77e8af09a182c"></a>
  284. <h2 class="memtitle"><span class="permalink"><a href="#gac7998d0763d9181550c77e8af09a182c">&#9670;&nbsp;</a></span>shearY2D()</h2>
  285. <div class="memitem">
  286. <div class="memproto">
  287. <table class="memname">
  288. <tr>
  289. <td class="memname">GLM_FUNC_DECL mat&lt;3, 3, T, Q&gt; glm::shearY2D </td>
  290. <td>(</td>
  291. <td class="paramtype">mat&lt; 3, 3, T, Q &gt; const &amp;&#160;</td>
  292. <td class="paramname"><em>m</em>, </td>
  293. </tr>
  294. <tr>
  295. <td class="paramkey"></td>
  296. <td></td>
  297. <td class="paramtype">T&#160;</td>
  298. <td class="paramname"><em>x</em>&#160;</td>
  299. </tr>
  300. <tr>
  301. <td></td>
  302. <td>)</td>
  303. <td></td><td></td>
  304. </tr>
  305. </table>
  306. </div><div class="memdoc">
  307. <p>Transforms a matrix with a shearing on Y axis. </p>
  308. <p>From GLM_GTX_transform2 extension. </p>
  309. </div>
  310. </div>
  311. <a id="gade5bb65ffcb513973db1a1314fb5cfac"></a>
  312. <h2 class="memtitle"><span class="permalink"><a href="#gade5bb65ffcb513973db1a1314fb5cfac">&#9670;&nbsp;</a></span>shearY3D()</h2>
  313. <div class="memitem">
  314. <div class="memproto">
  315. <table class="memname">
  316. <tr>
  317. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::shearY3D </td>
  318. <td>(</td>
  319. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  320. <td class="paramname"><em>m</em>, </td>
  321. </tr>
  322. <tr>
  323. <td class="paramkey"></td>
  324. <td></td>
  325. <td class="paramtype">T&#160;</td>
  326. <td class="paramname"><em>x</em>, </td>
  327. </tr>
  328. <tr>
  329. <td class="paramkey"></td>
  330. <td></td>
  331. <td class="paramtype">T&#160;</td>
  332. <td class="paramname"><em>z</em>&#160;</td>
  333. </tr>
  334. <tr>
  335. <td></td>
  336. <td>)</td>
  337. <td></td><td></td>
  338. </tr>
  339. </table>
  340. </div><div class="memdoc">
  341. <p>Transforms a matrix with a shearing on Y axis. </p>
  342. <p>From GLM_GTX_transform2 extension. </p>
  343. </div>
  344. </div>
  345. <a id="ga6591e0a3a9d2c9c0b6577bb4dace0255"></a>
  346. <h2 class="memtitle"><span class="permalink"><a href="#ga6591e0a3a9d2c9c0b6577bb4dace0255">&#9670;&nbsp;</a></span>shearZ3D()</h2>
  347. <div class="memitem">
  348. <div class="memproto">
  349. <table class="memname">
  350. <tr>
  351. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::shearZ3D </td>
  352. <td>(</td>
  353. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  354. <td class="paramname"><em>m</em>, </td>
  355. </tr>
  356. <tr>
  357. <td class="paramkey"></td>
  358. <td></td>
  359. <td class="paramtype">T&#160;</td>
  360. <td class="paramname"><em>x</em>, </td>
  361. </tr>
  362. <tr>
  363. <td class="paramkey"></td>
  364. <td></td>
  365. <td class="paramtype">T&#160;</td>
  366. <td class="paramname"><em>y</em>&#160;</td>
  367. </tr>
  368. <tr>
  369. <td></td>
  370. <td>)</td>
  371. <td></td><td></td>
  372. </tr>
  373. </table>
  374. </div><div class="memdoc">
  375. <p>Transforms a matrix with a shearing on Z axis. </p>
  376. <p>From GLM_GTX_transform2 extension. </p>
  377. </div>
  378. </div>
  379. </div><!-- contents -->
  380. <!-- start footer part -->
  381. <hr class="footer"/><address class="footer"><small>
  382. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  383. <img class="footer" src="doxygen.png" alt="doxygen"/>
  384. </a> 1.8.14
  385. </small></address>
  386. </body>
  387. </html>