Platformer in OpenGL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

287 lines
12 KiB

5 years ago
  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_matrix_transform_2d</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_matrix_transform_2d<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:gad5c84a4932a758f385a87098ce1b1660"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:gad5c84a4932a758f385a87098ce1b1660"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_QUALIFIER mat&lt; 3, 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00758.html#gad5c84a4932a758f385a87098ce1b1660">rotate</a> (mat&lt; 3, 3, T, Q &gt; const &amp;m, T angle)</td></tr>
  74. <tr class="separator:gad5c84a4932a758f385a87098ce1b1660"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:gadb47d2ad2bd984b213e8ff7d9cd8154e"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:gadb47d2ad2bd984b213e8ff7d9cd8154e"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_QUALIFIER mat&lt; 3, 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00758.html#gadb47d2ad2bd984b213e8ff7d9cd8154e">scale</a> (mat&lt; 3, 3, T, Q &gt; const &amp;m, vec&lt; 2, T, Q &gt; const &amp;v)</td></tr>
  77. <tr class="separator:gadb47d2ad2bd984b213e8ff7d9cd8154e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga2a118ece5db1e2022112b954846012af"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:ga2a118ece5db1e2022112b954846012af"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_QUALIFIER mat&lt; 3, 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00758.html#ga2a118ece5db1e2022112b954846012af">shearX</a> (mat&lt; 3, 3, T, Q &gt; const &amp;m, T y)</td></tr>
  80. <tr class="separator:ga2a118ece5db1e2022112b954846012af"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:ga717f1833369c1ac4a40e4ac015af885e"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:ga717f1833369c1ac4a40e4ac015af885e"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_QUALIFIER mat&lt; 3, 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00758.html#ga717f1833369c1ac4a40e4ac015af885e">shearY</a> (mat&lt; 3, 3, T, Q &gt; const &amp;m, T x)</td></tr>
  83. <tr class="separator:ga717f1833369c1ac4a40e4ac015af885e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:gaf4573ae47c80938aa9053ef6a33755ab"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  85. <tr class="memitem:gaf4573ae47c80938aa9053ef6a33755ab"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_QUALIFIER mat&lt; 3, 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00758.html#gaf4573ae47c80938aa9053ef6a33755ab">translate</a> (mat&lt; 3, 3, T, Q &gt; const &amp;m, vec&lt; 2, T, Q &gt; const &amp;v)</td></tr>
  86. <tr class="separator:gaf4573ae47c80938aa9053ef6a33755ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. </table>
  88. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  89. <p>Include &lt;<a class="el" href="a00536.html" title="GLM_GTX_matrix_transform_2d ">glm/gtx/matrix_transform_2d.hpp</a>&gt; to use the features of this extension. </p>
  90. <p>Defines functions that generate common 2d transformation matrices. </p>
  91. <h2 class="groupheader">Function Documentation</h2>
  92. <a id="gad5c84a4932a758f385a87098ce1b1660"></a>
  93. <h2 class="memtitle"><span class="permalink"><a href="#gad5c84a4932a758f385a87098ce1b1660">&#9670;&nbsp;</a></span>rotate()</h2>
  94. <div class="memitem">
  95. <div class="memproto">
  96. <table class="memname">
  97. <tr>
  98. <td class="memname">GLM_FUNC_QUALIFIER mat&lt;3, 3, T, Q&gt; glm::rotate </td>
  99. <td>(</td>
  100. <td class="paramtype">mat&lt; 3, 3, T, Q &gt; const &amp;&#160;</td>
  101. <td class="paramname"><em>m</em>, </td>
  102. </tr>
  103. <tr>
  104. <td class="paramkey"></td>
  105. <td></td>
  106. <td class="paramtype">T&#160;</td>
  107. <td class="paramname"><em>angle</em>&#160;</td>
  108. </tr>
  109. <tr>
  110. <td></td>
  111. <td>)</td>
  112. <td></td><td></td>
  113. </tr>
  114. </table>
  115. </div><div class="memdoc">
  116. <p>Builds a rotation 3 * 3 matrix created from an angle. </p>
  117. <dl class="params"><dt>Parameters</dt><dd>
  118. <table class="params">
  119. <tr><td class="paramname">m</td><td>Input matrix multiplied by this translation matrix. </td></tr>
  120. <tr><td class="paramname">angle</td><td>Rotation angle expressed in radians. </td></tr>
  121. </table>
  122. </dd>
  123. </dl>
  124. </div>
  125. </div>
  126. <a id="gadb47d2ad2bd984b213e8ff7d9cd8154e"></a>
  127. <h2 class="memtitle"><span class="permalink"><a href="#gadb47d2ad2bd984b213e8ff7d9cd8154e">&#9670;&nbsp;</a></span>scale()</h2>
  128. <div class="memitem">
  129. <div class="memproto">
  130. <table class="memname">
  131. <tr>
  132. <td class="memname">GLM_FUNC_QUALIFIER mat&lt;3, 3, T, Q&gt; glm::scale </td>
  133. <td>(</td>
  134. <td class="paramtype">mat&lt; 3, 3, T, Q &gt; const &amp;&#160;</td>
  135. <td class="paramname"><em>m</em>, </td>
  136. </tr>
  137. <tr>
  138. <td class="paramkey"></td>
  139. <td></td>
  140. <td class="paramtype">vec&lt; 2, T, Q &gt; const &amp;&#160;</td>
  141. <td class="paramname"><em>v</em>&#160;</td>
  142. </tr>
  143. <tr>
  144. <td></td>
  145. <td>)</td>
  146. <td></td><td></td>
  147. </tr>
  148. </table>
  149. </div><div class="memdoc">
  150. <p>Builds a scale 3 * 3 matrix created from a vector of 2 components. </p>
  151. <dl class="params"><dt>Parameters</dt><dd>
  152. <table class="params">
  153. <tr><td class="paramname">m</td><td>Input matrix multiplied by this translation matrix. </td></tr>
  154. <tr><td class="paramname">v</td><td>Coordinates of a scale vector. </td></tr>
  155. </table>
  156. </dd>
  157. </dl>
  158. </div>
  159. </div>
  160. <a id="ga2a118ece5db1e2022112b954846012af"></a>
  161. <h2 class="memtitle"><span class="permalink"><a href="#ga2a118ece5db1e2022112b954846012af">&#9670;&nbsp;</a></span>shearX()</h2>
  162. <div class="memitem">
  163. <div class="memproto">
  164. <table class="memname">
  165. <tr>
  166. <td class="memname">GLM_FUNC_QUALIFIER mat&lt;3, 3, T, Q&gt; glm::shearX </td>
  167. <td>(</td>
  168. <td class="paramtype">mat&lt; 3, 3, T, Q &gt; const &amp;&#160;</td>
  169. <td class="paramname"><em>m</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>y</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>Builds an horizontal (parallel to the x axis) shear 3 * 3 matrix. </p>
  185. <dl class="params"><dt>Parameters</dt><dd>
  186. <table class="params">
  187. <tr><td class="paramname">m</td><td>Input matrix multiplied by this translation matrix. </td></tr>
  188. <tr><td class="paramname">y</td><td>Shear factor. </td></tr>
  189. </table>
  190. </dd>
  191. </dl>
  192. </div>
  193. </div>
  194. <a id="ga717f1833369c1ac4a40e4ac015af885e"></a>
  195. <h2 class="memtitle"><span class="permalink"><a href="#ga717f1833369c1ac4a40e4ac015af885e">&#9670;&nbsp;</a></span>shearY()</h2>
  196. <div class="memitem">
  197. <div class="memproto">
  198. <table class="memname">
  199. <tr>
  200. <td class="memname">GLM_FUNC_QUALIFIER mat&lt;3, 3, T, Q&gt; glm::shearY </td>
  201. <td>(</td>
  202. <td class="paramtype">mat&lt; 3, 3, T, Q &gt; const &amp;&#160;</td>
  203. <td class="paramname"><em>m</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>x</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>Builds a vertical (parallel to the y axis) shear 3 * 3 matrix. </p>
  219. <dl class="params"><dt>Parameters</dt><dd>
  220. <table class="params">
  221. <tr><td class="paramname">m</td><td>Input matrix multiplied by this translation matrix. </td></tr>
  222. <tr><td class="paramname">x</td><td>Shear factor. </td></tr>
  223. </table>
  224. </dd>
  225. </dl>
  226. </div>
  227. </div>
  228. <a id="gaf4573ae47c80938aa9053ef6a33755ab"></a>
  229. <h2 class="memtitle"><span class="permalink"><a href="#gaf4573ae47c80938aa9053ef6a33755ab">&#9670;&nbsp;</a></span>translate()</h2>
  230. <div class="memitem">
  231. <div class="memproto">
  232. <table class="memname">
  233. <tr>
  234. <td class="memname">GLM_FUNC_QUALIFIER mat&lt;3, 3, T, Q&gt; glm::translate </td>
  235. <td>(</td>
  236. <td class="paramtype">mat&lt; 3, 3, T, Q &gt; const &amp;&#160;</td>
  237. <td class="paramname"><em>m</em>, </td>
  238. </tr>
  239. <tr>
  240. <td class="paramkey"></td>
  241. <td></td>
  242. <td class="paramtype">vec&lt; 2, T, Q &gt; const &amp;&#160;</td>
  243. <td class="paramname"><em>v</em>&#160;</td>
  244. </tr>
  245. <tr>
  246. <td></td>
  247. <td>)</td>
  248. <td></td><td></td>
  249. </tr>
  250. </table>
  251. </div><div class="memdoc">
  252. <p>Builds a translation 3 * 3 matrix created from a vector of 2 components. </p>
  253. <dl class="params"><dt>Parameters</dt><dd>
  254. <table class="params">
  255. <tr><td class="paramname">m</td><td>Input matrix multiplied by this translation matrix. </td></tr>
  256. <tr><td class="paramname">v</td><td>Coordinates of a translation vector. </td></tr>
  257. </table>
  258. </dd>
  259. </dl>
  260. </div>
  261. </div>
  262. </div><!-- contents -->
  263. <!-- start footer part -->
  264. <hr class="footer"/><address class="footer"><small>
  265. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  266. <img class="footer" src="doxygen.png" alt="doxygen"/>
  267. </a> 1.8.14
  268. </small></address>
  269. </body>
  270. </html>