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.

360 lines
15 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_integer</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="#typedef-members">Typedefs</a> &#124;
  65. <a href="#func-members">Functions</a> </div>
  66. <div class="headertitle">
  67. <div class="title">GLM_GTX_integer<div class="ingroups"><a class="el" href="a00705.html">Experimental extensions</a></div></div> </div>
  68. </div><!--header-->
  69. <div class="contents">
  70. <table class="memberdecls">
  71. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
  72. Typedefs</h2></td></tr>
  73. <tr class="memitem:gada7e83fdfe943aba4f1d5bf80cb66f40"><td class="memItemLeft" align="right" valign="top">typedef signed int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00747.html#gada7e83fdfe943aba4f1d5bf80cb66f40">sint</a></td></tr>
  74. <tr class="separator:gada7e83fdfe943aba4f1d5bf80cb66f40"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. </table><table class="memberdecls">
  76. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  77. Functions</h2></td></tr>
  78. <tr class="memitem:ga8cbd3120905f398ec321b5d1836e08fb"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  79. <tr class="memitem:ga8cbd3120905f398ec321b5d1836e08fb"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00747.html#ga8cbd3120905f398ec321b5d1836e08fb">factorial</a> (genType const &amp;x)</td></tr>
  80. <tr class="separator:ga8cbd3120905f398ec321b5d1836e08fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:ga7011b4e1c1e1ed492149b028feacc00e"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL unsigned int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00747.html#ga7011b4e1c1e1ed492149b028feacc00e">floor_log2</a> (unsigned int x)</td></tr>
  82. <tr class="separator:ga7011b4e1c1e1ed492149b028feacc00e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. <tr class="memitem:gaabfbb41531ab7ad8d06fc176edfba785"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00747.html#gaabfbb41531ab7ad8d06fc176edfba785">mod</a> (int x, int y)</td></tr>
  84. <tr class="separator:gaabfbb41531ab7ad8d06fc176edfba785"><td class="memSeparator" colspan="2">&#160;</td></tr>
  85. <tr class="memitem:ga63fc8d63e7da1706439233b386ba8b6f"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00747.html#ga63fc8d63e7da1706439233b386ba8b6f">mod</a> (uint x, uint y)</td></tr>
  86. <tr class="separator:ga63fc8d63e7da1706439233b386ba8b6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:ga78dff8bdb361bf0061194c93e003d189"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00747.html#ga78dff8bdb361bf0061194c93e003d189">nlz</a> (uint x)</td></tr>
  88. <tr class="separator:ga78dff8bdb361bf0061194c93e003d189"><td class="memSeparator" colspan="2">&#160;</td></tr>
  89. <tr class="memitem:ga465016030a81d513fa2fac881ebdaa83"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00747.html#ga465016030a81d513fa2fac881ebdaa83">pow</a> (int x, uint y)</td></tr>
  90. <tr class="separator:ga465016030a81d513fa2fac881ebdaa83"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr class="memitem:ga998e5ee915d3769255519e2fbaa2bbf0"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00747.html#ga998e5ee915d3769255519e2fbaa2bbf0">pow</a> (uint x, uint y)</td></tr>
  92. <tr class="separator:ga998e5ee915d3769255519e2fbaa2bbf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:ga7ce36693a75879ccd9bb10167cfa722d"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00747.html#ga7ce36693a75879ccd9bb10167cfa722d">sqrt</a> (int x)</td></tr>
  94. <tr class="separator:ga7ce36693a75879ccd9bb10167cfa722d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:ga1975d318978d6dacf78b6444fa5ed7bc"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00747.html#ga1975d318978d6dacf78b6444fa5ed7bc">sqrt</a> (uint x)</td></tr>
  96. <tr class="separator:ga1975d318978d6dacf78b6444fa5ed7bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  97. </table>
  98. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  99. <p>Include &lt;<a class="el" href="a01358.html" title="GLM_GTX_integer ">glm/gtx/integer.hpp</a>&gt; to use the features of this extension. </p>
  100. <p>Add support for integer for core functions </p>
  101. <h2 class="groupheader">Typedef Documentation</h2>
  102. <a id="gada7e83fdfe943aba4f1d5bf80cb66f40"></a>
  103. <h2 class="memtitle"><span class="permalink"><a href="#gada7e83fdfe943aba4f1d5bf80cb66f40">&#9670;&nbsp;</a></span>sint</h2>
  104. <div class="memitem">
  105. <div class="memproto">
  106. <table class="memname">
  107. <tr>
  108. <td class="memname">typedef signed int <a class="el" href="a00747.html#gada7e83fdfe943aba4f1d5bf80cb66f40">sint</a></td>
  109. </tr>
  110. </table>
  111. </div><div class="memdoc">
  112. <p>32bit signed integer. </p>
  113. <p>From GLM_GTX_integer extension. </p>
  114. <p class="definition">Definition at line <a class="el" href="a01358_source.html#l00055">55</a> of file <a class="el" href="a01358_source.html">gtx/integer.hpp</a>.</p>
  115. </div>
  116. </div>
  117. <h2 class="groupheader">Function Documentation</h2>
  118. <a id="ga8cbd3120905f398ec321b5d1836e08fb"></a>
  119. <h2 class="memtitle"><span class="permalink"><a href="#ga8cbd3120905f398ec321b5d1836e08fb">&#9670;&nbsp;</a></span>factorial()</h2>
  120. <div class="memitem">
  121. <div class="memproto">
  122. <table class="memname">
  123. <tr>
  124. <td class="memname">GLM_FUNC_DECL genType glm::factorial </td>
  125. <td>(</td>
  126. <td class="paramtype">genType const &amp;&#160;</td>
  127. <td class="paramname"><em>x</em></td><td>)</td>
  128. <td></td>
  129. </tr>
  130. </table>
  131. </div><div class="memdoc">
  132. <p>Return the factorial value of a number (!12 max, integer only) From GLM_GTX_integer extension. </p>
  133. </div>
  134. </div>
  135. <a id="ga7011b4e1c1e1ed492149b028feacc00e"></a>
  136. <h2 class="memtitle"><span class="permalink"><a href="#ga7011b4e1c1e1ed492149b028feacc00e">&#9670;&nbsp;</a></span>floor_log2()</h2>
  137. <div class="memitem">
  138. <div class="memproto">
  139. <table class="memname">
  140. <tr>
  141. <td class="memname">GLM_FUNC_DECL unsigned int glm::floor_log2 </td>
  142. <td>(</td>
  143. <td class="paramtype">unsigned int&#160;</td>
  144. <td class="paramname"><em>x</em></td><td>)</td>
  145. <td></td>
  146. </tr>
  147. </table>
  148. </div><div class="memdoc">
  149. <p>Returns the floor log2 of x. </p>
  150. <p>From GLM_GTX_integer extension. </p>
  151. </div>
  152. </div>
  153. <a id="gaabfbb41531ab7ad8d06fc176edfba785"></a>
  154. <h2 class="memtitle"><span class="permalink"><a href="#gaabfbb41531ab7ad8d06fc176edfba785">&#9670;&nbsp;</a></span>mod() <span class="overload">[1/2]</span></h2>
  155. <div class="memitem">
  156. <div class="memproto">
  157. <table class="memname">
  158. <tr>
  159. <td class="memname">GLM_FUNC_DECL int glm::mod </td>
  160. <td>(</td>
  161. <td class="paramtype">int&#160;</td>
  162. <td class="paramname"><em>x</em>, </td>
  163. </tr>
  164. <tr>
  165. <td class="paramkey"></td>
  166. <td></td>
  167. <td class="paramtype">int&#160;</td>
  168. <td class="paramname"><em>y</em>&#160;</td>
  169. </tr>
  170. <tr>
  171. <td></td>
  172. <td>)</td>
  173. <td></td><td></td>
  174. </tr>
  175. </table>
  176. </div><div class="memdoc">
  177. <p>Modulus. </p>
  178. <p>Returns x - y * floor(x / y) for each component in x using the floating point value y. From GLM_GTX_integer extension. </p>
  179. </div>
  180. </div>
  181. <a id="ga63fc8d63e7da1706439233b386ba8b6f"></a>
  182. <h2 class="memtitle"><span class="permalink"><a href="#ga63fc8d63e7da1706439233b386ba8b6f">&#9670;&nbsp;</a></span>mod() <span class="overload">[2/2]</span></h2>
  183. <div class="memitem">
  184. <div class="memproto">
  185. <table class="memname">
  186. <tr>
  187. <td class="memname">GLM_FUNC_DECL uint glm::mod </td>
  188. <td>(</td>
  189. <td class="paramtype">uint&#160;</td>
  190. <td class="paramname"><em>x</em>, </td>
  191. </tr>
  192. <tr>
  193. <td class="paramkey"></td>
  194. <td></td>
  195. <td class="paramtype">uint&#160;</td>
  196. <td class="paramname"><em>y</em>&#160;</td>
  197. </tr>
  198. <tr>
  199. <td></td>
  200. <td>)</td>
  201. <td></td><td></td>
  202. </tr>
  203. </table>
  204. </div><div class="memdoc">
  205. <p>Modulus. </p>
  206. <p>Returns x - y * floor(x / y) for each component in x using the floating point value y. From GLM_GTX_integer extension. </p>
  207. </div>
  208. </div>
  209. <a id="ga78dff8bdb361bf0061194c93e003d189"></a>
  210. <h2 class="memtitle"><span class="permalink"><a href="#ga78dff8bdb361bf0061194c93e003d189">&#9670;&nbsp;</a></span>nlz()</h2>
  211. <div class="memitem">
  212. <div class="memproto">
  213. <table class="memname">
  214. <tr>
  215. <td class="memname">GLM_FUNC_DECL uint glm::nlz </td>
  216. <td>(</td>
  217. <td class="paramtype">uint&#160;</td>
  218. <td class="paramname"><em>x</em></td><td>)</td>
  219. <td></td>
  220. </tr>
  221. </table>
  222. </div><div class="memdoc">
  223. <p>Returns the number of leading zeros. </p>
  224. <p>From GLM_GTX_integer extension. </p>
  225. </div>
  226. </div>
  227. <a id="ga465016030a81d513fa2fac881ebdaa83"></a>
  228. <h2 class="memtitle"><span class="permalink"><a href="#ga465016030a81d513fa2fac881ebdaa83">&#9670;&nbsp;</a></span>pow() <span class="overload">[1/2]</span></h2>
  229. <div class="memitem">
  230. <div class="memproto">
  231. <table class="memname">
  232. <tr>
  233. <td class="memname">GLM_FUNC_DECL int glm::pow </td>
  234. <td>(</td>
  235. <td class="paramtype">int&#160;</td>
  236. <td class="paramname"><em>x</em>, </td>
  237. </tr>
  238. <tr>
  239. <td class="paramkey"></td>
  240. <td></td>
  241. <td class="paramtype">uint&#160;</td>
  242. <td class="paramname"><em>y</em>&#160;</td>
  243. </tr>
  244. <tr>
  245. <td></td>
  246. <td>)</td>
  247. <td></td><td></td>
  248. </tr>
  249. </table>
  250. </div><div class="memdoc">
  251. <p>Returns x raised to the y power. </p>
  252. <p>From GLM_GTX_integer extension. </p>
  253. </div>
  254. </div>
  255. <a id="ga998e5ee915d3769255519e2fbaa2bbf0"></a>
  256. <h2 class="memtitle"><span class="permalink"><a href="#ga998e5ee915d3769255519e2fbaa2bbf0">&#9670;&nbsp;</a></span>pow() <span class="overload">[2/2]</span></h2>
  257. <div class="memitem">
  258. <div class="memproto">
  259. <table class="memname">
  260. <tr>
  261. <td class="memname">GLM_FUNC_DECL uint glm::pow </td>
  262. <td>(</td>
  263. <td class="paramtype">uint&#160;</td>
  264. <td class="paramname"><em>x</em>, </td>
  265. </tr>
  266. <tr>
  267. <td class="paramkey"></td>
  268. <td></td>
  269. <td class="paramtype">uint&#160;</td>
  270. <td class="paramname"><em>y</em>&#160;</td>
  271. </tr>
  272. <tr>
  273. <td></td>
  274. <td>)</td>
  275. <td></td><td></td>
  276. </tr>
  277. </table>
  278. </div><div class="memdoc">
  279. <p>Returns x raised to the y power. </p>
  280. <p>From GLM_GTX_integer extension. </p>
  281. </div>
  282. </div>
  283. <a id="ga7ce36693a75879ccd9bb10167cfa722d"></a>
  284. <h2 class="memtitle"><span class="permalink"><a href="#ga7ce36693a75879ccd9bb10167cfa722d">&#9670;&nbsp;</a></span>sqrt() <span class="overload">[1/2]</span></h2>
  285. <div class="memitem">
  286. <div class="memproto">
  287. <table class="memname">
  288. <tr>
  289. <td class="memname">GLM_FUNC_DECL int glm::sqrt </td>
  290. <td>(</td>
  291. <td class="paramtype">int&#160;</td>
  292. <td class="paramname"><em>x</em></td><td>)</td>
  293. <td></td>
  294. </tr>
  295. </table>
  296. </div><div class="memdoc">
  297. <p>Returns the positive square root of x. </p>
  298. <p>From GLM_GTX_integer extension. </p>
  299. </div>
  300. </div>
  301. <a id="ga1975d318978d6dacf78b6444fa5ed7bc"></a>
  302. <h2 class="memtitle"><span class="permalink"><a href="#ga1975d318978d6dacf78b6444fa5ed7bc">&#9670;&nbsp;</a></span>sqrt() <span class="overload">[2/2]</span></h2>
  303. <div class="memitem">
  304. <div class="memproto">
  305. <table class="memname">
  306. <tr>
  307. <td class="memname">GLM_FUNC_DECL uint glm::sqrt </td>
  308. <td>(</td>
  309. <td class="paramtype">uint&#160;</td>
  310. <td class="paramname"><em>x</em></td><td>)</td>
  311. <td></td>
  312. </tr>
  313. </table>
  314. </div><div class="memdoc">
  315. <p>Returns the positive square root of x. </p>
  316. <p>From GLM_GTX_integer extension. </p>
  317. </div>
  318. </div>
  319. </div><!-- contents -->
  320. <!-- start footer part -->
  321. <hr class="footer"/><address class="footer"><small>
  322. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  323. <img class="footer" src="doxygen.png" alt="doxygen"/>
  324. </a> 1.8.14
  325. </small></address>
  326. </body>
  327. </html>