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.

189 lines
8.9 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_GTC_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="#func-members">Functions</a> </div>
  65. <div class="headertitle">
  66. <div class="title">GLM_GTC_integer<div class="ingroups"><a class="el" href="a00704.html">Recommended 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:ga57824268ebe13a922f1d69a5d37f637f"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:ga57824268ebe13a922f1d69a5d37f637f"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, int, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00710.html#ga57824268ebe13a922f1d69a5d37f637f">iround</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  74. <tr class="separator:ga57824268ebe13a922f1d69a5d37f637f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ga9bd682e74bfacb005c735305207ec417"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  76. <tr class="memitem:ga9bd682e74bfacb005c735305207ec417"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genIUType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00710.html#ga9bd682e74bfacb005c735305207ec417">log2</a> (genIUType x)</td></tr>
  77. <tr class="separator:ga9bd682e74bfacb005c735305207ec417"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga6715b9d573972a0f7763d30d45bcaec4"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:ga6715b9d573972a0f7763d30d45bcaec4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, uint, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00710.html#ga6715b9d573972a0f7763d30d45bcaec4">uround</a> (vec&lt; L, T, Q &gt; const &amp;x)</td></tr>
  80. <tr class="separator:ga6715b9d573972a0f7763d30d45bcaec4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. </table>
  82. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  83. <p>Include &lt;<a class="el" href="a01355.html" title="GLM_GTC_integer ">glm/gtc/integer.hpp</a>&gt; to use the features of this extension. </p>
  84. <p>Allow to perform bit operations on integer values </p>
  85. <h2 class="groupheader">Function Documentation</h2>
  86. <a id="ga57824268ebe13a922f1d69a5d37f637f"></a>
  87. <h2 class="memtitle"><span class="permalink"><a href="#ga57824268ebe13a922f1d69a5d37f637f">&#9670;&nbsp;</a></span>iround()</h2>
  88. <div class="memitem">
  89. <div class="memproto">
  90. <table class="memname">
  91. <tr>
  92. <td class="memname">GLM_FUNC_DECL vec&lt;L, int, Q&gt; glm::iround </td>
  93. <td>(</td>
  94. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  95. <td class="paramname"><em>x</em></td><td>)</td>
  96. <td></td>
  97. </tr>
  98. </table>
  99. </div><div class="memdoc">
  100. <p>Returns a value equal to the nearest integer to x. </p>
  101. <p>The fraction 0.5 will round in a direction chosen by the implementation, presumably the direction that is fastest.</p>
  102. <dl class="params"><dt>Parameters</dt><dd>
  103. <table class="params">
  104. <tr><td class="paramname">x</td><td>The values of the argument must be greater or equal to zero. </td></tr>
  105. </table>
  106. </dd>
  107. </dl>
  108. <dl class="tparams"><dt>Template Parameters</dt><dd>
  109. <table class="tparams">
  110. <tr><td class="paramname">T</td><td>floating point scalar types.</td></tr>
  111. </table>
  112. </dd>
  113. </dl>
  114. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/round.xml">GLSL round man page</a> </dd>
  115. <dd>
  116. <a class="el" href="a00710.html" title="Include &lt;glm/gtc/integer.hpp&gt; to use the features of this extension. ">GLM_GTC_integer</a> </dd></dl>
  117. </div>
  118. </div>
  119. <a id="ga9bd682e74bfacb005c735305207ec417"></a>
  120. <h2 class="memtitle"><span class="permalink"><a href="#ga9bd682e74bfacb005c735305207ec417">&#9670;&nbsp;</a></span>log2()</h2>
  121. <div class="memitem">
  122. <div class="memproto">
  123. <table class="memname">
  124. <tr>
  125. <td class="memname">GLM_FUNC_DECL genIUType glm::log2 </td>
  126. <td>(</td>
  127. <td class="paramtype">genIUType&#160;</td>
  128. <td class="paramname"><em>x</em></td><td>)</td>
  129. <td></td>
  130. </tr>
  131. </table>
  132. </div><div class="memdoc">
  133. <p>Returns the log2 of x for integer values. </p>
  134. <p>Can be reliably using to compute mipmap count from the texture size. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="a00710.html" title="Include &lt;glm/gtc/integer.hpp&gt; to use the features of this extension. ">GLM_GTC_integer</a> </dd></dl>
  135. </div>
  136. </div>
  137. <a id="ga6715b9d573972a0f7763d30d45bcaec4"></a>
  138. <h2 class="memtitle"><span class="permalink"><a href="#ga6715b9d573972a0f7763d30d45bcaec4">&#9670;&nbsp;</a></span>uround()</h2>
  139. <div class="memitem">
  140. <div class="memproto">
  141. <table class="memname">
  142. <tr>
  143. <td class="memname">GLM_FUNC_DECL vec&lt;L, uint, Q&gt; glm::uround </td>
  144. <td>(</td>
  145. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  146. <td class="paramname"><em>x</em></td><td>)</td>
  147. <td></td>
  148. </tr>
  149. </table>
  150. </div><div class="memdoc">
  151. <p>Returns a value equal to the nearest integer to x. </p>
  152. <p>The fraction 0.5 will round in a direction chosen by the implementation, presumably the direction that is fastest.</p>
  153. <dl class="params"><dt>Parameters</dt><dd>
  154. <table class="params">
  155. <tr><td class="paramname">x</td><td>The values of the argument must be greater or equal to zero. </td></tr>
  156. </table>
  157. </dd>
  158. </dl>
  159. <dl class="tparams"><dt>Template Parameters</dt><dd>
  160. <table class="tparams">
  161. <tr><td class="paramname">T</td><td>floating point scalar types.</td></tr>
  162. </table>
  163. </dd>
  164. </dl>
  165. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/round.xml">GLSL round man page</a> </dd>
  166. <dd>
  167. <a class="el" href="a00710.html" title="Include &lt;glm/gtc/integer.hpp&gt; to use the features of this extension. ">GLM_GTC_integer</a> </dd></dl>
  168. </div>
  169. </div>
  170. </div><!-- contents -->
  171. <!-- start footer part -->
  172. <hr class="footer"/><address class="footer"><small>
  173. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  174. <img class="footer" src="doxygen.png" alt="doxygen"/>
  175. </a> 1.8.14
  176. </small></address>
  177. </body>
  178. </html>