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.

245 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_common</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_common<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:gab7d89c14c48ad01f720fb5daf8813161"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  73. <tr class="memitem:gab7d89c14c48ad01f720fb5daf8813161"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, bool, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00731.html#gab7d89c14c48ad01f720fb5daf8813161">closeBounded</a> (vec&lt; L, T, Q &gt; const &amp;Value, vec&lt; L, T, Q &gt; const &amp;Min, vec&lt; L, T, Q &gt; const &amp;Max)</td></tr>
  74. <tr class="separator:gab7d89c14c48ad01f720fb5daf8813161"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:gae5e80425df9833164ad469e83b475fb4"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:gae5e80425df9833164ad469e83b475fb4"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00731.html#gae5e80425df9833164ad469e83b475fb4">fmod</a> (vec&lt; L, T, Q &gt; const &amp;v)</td></tr>
  77. <tr class="separator:gae5e80425df9833164ad469e83b475fb4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga74aa7c7462245d83bd5a9edf9c6c2d91"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  79. <tr class="memitem:ga74aa7c7462245d83bd5a9edf9c6c2d91"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType::bool_type&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00731.html#ga74aa7c7462245d83bd5a9edf9c6c2d91">isdenormal</a> (genType const &amp;x)</td></tr>
  80. <tr class="separator:ga74aa7c7462245d83bd5a9edf9c6c2d91"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:gafd303042ba2ba695bf53b2315f53f93f"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:gafd303042ba2ba695bf53b2315f53f93f"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, bool, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00731.html#gafd303042ba2ba695bf53b2315f53f93f">openBounded</a> (vec&lt; L, T, Q &gt; const &amp;Value, vec&lt; L, T, Q &gt; const &amp;Min, vec&lt; L, T, Q &gt; const &amp;Max)</td></tr>
  83. <tr class="separator:gafd303042ba2ba695bf53b2315f53f93f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. </table>
  85. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  86. <p>Include &lt;<a class="el" href="a01352.html" title="GLM_GTX_common ">glm/gtx/common.hpp</a>&gt; to use the features of this extension. </p>
  87. <p>Provide functions to increase the compatibility with Cg and HLSL languages </p>
  88. <h2 class="groupheader">Function Documentation</h2>
  89. <a id="gab7d89c14c48ad01f720fb5daf8813161"></a>
  90. <h2 class="memtitle"><span class="permalink"><a href="#gab7d89c14c48ad01f720fb5daf8813161">&#9670;&nbsp;</a></span>closeBounded()</h2>
  91. <div class="memitem">
  92. <div class="memproto">
  93. <table class="memname">
  94. <tr>
  95. <td class="memname">GLM_FUNC_DECL vec&lt;L, bool, Q&gt; glm::closeBounded </td>
  96. <td>(</td>
  97. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  98. <td class="paramname"><em>Value</em>, </td>
  99. </tr>
  100. <tr>
  101. <td class="paramkey"></td>
  102. <td></td>
  103. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  104. <td class="paramname"><em>Min</em>, </td>
  105. </tr>
  106. <tr>
  107. <td class="paramkey"></td>
  108. <td></td>
  109. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  110. <td class="paramname"><em>Max</em>&#160;</td>
  111. </tr>
  112. <tr>
  113. <td></td>
  114. <td>)</td>
  115. <td></td><td></td>
  116. </tr>
  117. </table>
  118. </div><div class="memdoc">
  119. <p>Returns whether vector components values are within an interval. </p>
  120. <p>A closed interval includes its endpoints, and is denoted with square brackets.</p>
  121. <dl class="tparams"><dt>Template Parameters</dt><dd>
  122. <table class="tparams">
  123. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  124. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  125. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  126. </table>
  127. </dd>
  128. </dl>
  129. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00694.html" title="Exposes comparison functions for vector types that take a user defined epsilon values. ">GLM_EXT_vector_relational</a> </dd></dl>
  130. </div>
  131. </div>
  132. <a id="gae5e80425df9833164ad469e83b475fb4"></a>
  133. <h2 class="memtitle"><span class="permalink"><a href="#gae5e80425df9833164ad469e83b475fb4">&#9670;&nbsp;</a></span>fmod()</h2>
  134. <div class="memitem">
  135. <div class="memproto">
  136. <table class="memname">
  137. <tr>
  138. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::fmod </td>
  139. <td>(</td>
  140. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  141. <td class="paramname"><em>v</em></td><td>)</td>
  142. <td></td>
  143. </tr>
  144. </table>
  145. </div><div class="memdoc">
  146. <p>Similar to 'mod' but with a different rounding and integer support. </p>
  147. <p>Returns 'x - y * trunc(x/y)' instead of 'x - y * floor(x/y)'</p>
  148. <dl class="section see"><dt>See also</dt><dd><a href="http://stackoverflow.com/questions/7610631/glsl-mod-vs-hlsl-fmod">GLSL mod vs HLSL fmod</a> </dd>
  149. <dd>
  150. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/mod.xml">GLSL mod man page</a> </dd></dl>
  151. </div>
  152. </div>
  153. <a id="ga74aa7c7462245d83bd5a9edf9c6c2d91"></a>
  154. <h2 class="memtitle"><span class="permalink"><a href="#ga74aa7c7462245d83bd5a9edf9c6c2d91">&#9670;&nbsp;</a></span>isdenormal()</h2>
  155. <div class="memitem">
  156. <div class="memproto">
  157. <table class="memname">
  158. <tr>
  159. <td class="memname">GLM_FUNC_DECL genType::bool_type glm::isdenormal </td>
  160. <td>(</td>
  161. <td class="paramtype">genType const &amp;&#160;</td>
  162. <td class="paramname"><em>x</em></td><td>)</td>
  163. <td></td>
  164. </tr>
  165. </table>
  166. </div><div class="memdoc">
  167. <p>Returns true if x is a denormalized number Numbers whose absolute value is too small to be represented in the normal format are represented in an alternate, denormalized format. </p>
  168. <p>This format is less precise but can represent values closer to zero.</p>
  169. <dl class="tparams"><dt>Template Parameters</dt><dd>
  170. <table class="tparams">
  171. <tr><td class="paramname">genType</td><td>Floating-point scalar or vector types.</td></tr>
  172. </table>
  173. </dd>
  174. </dl>
  175. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/isnan.xml">GLSL isnan man page</a> </dd>
  176. <dd>
  177. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a> </dd></dl>
  178. </div>
  179. </div>
  180. <a id="gafd303042ba2ba695bf53b2315f53f93f"></a>
  181. <h2 class="memtitle"><span class="permalink"><a href="#gafd303042ba2ba695bf53b2315f53f93f">&#9670;&nbsp;</a></span>openBounded()</h2>
  182. <div class="memitem">
  183. <div class="memproto">
  184. <table class="memname">
  185. <tr>
  186. <td class="memname">GLM_FUNC_DECL vec&lt;L, bool, Q&gt; glm::openBounded </td>
  187. <td>(</td>
  188. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  189. <td class="paramname"><em>Value</em>, </td>
  190. </tr>
  191. <tr>
  192. <td class="paramkey"></td>
  193. <td></td>
  194. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  195. <td class="paramname"><em>Min</em>, </td>
  196. </tr>
  197. <tr>
  198. <td class="paramkey"></td>
  199. <td></td>
  200. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  201. <td class="paramname"><em>Max</em>&#160;</td>
  202. </tr>
  203. <tr>
  204. <td></td>
  205. <td>)</td>
  206. <td></td><td></td>
  207. </tr>
  208. </table>
  209. </div><div class="memdoc">
  210. <p>Returns whether vector components values are within an interval. </p>
  211. <p>A open interval excludes its endpoints, and is denoted with square brackets.</p>
  212. <dl class="tparams"><dt>Template Parameters</dt><dd>
  213. <table class="tparams">
  214. <tr><td class="paramname">L</td><td>Integer between 1 and 4 included that qualify the dimension of the vector </td></tr>
  215. <tr><td class="paramname">T</td><td>Floating-point or integer scalar types </td></tr>
  216. <tr><td class="paramname">Q</td><td>Value from qualifier enum</td></tr>
  217. </table>
  218. </dd>
  219. </dl>
  220. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00694.html" title="Exposes comparison functions for vector types that take a user defined epsilon values. ">GLM_EXT_vector_relational</a> </dd></dl>
  221. </div>
  222. </div>
  223. </div><!-- contents -->
  224. <!-- start footer part -->
  225. <hr class="footer"/><address class="footer"><small>
  226. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  227. <img class="footer" src="doxygen.png" alt="doxygen"/>
  228. </a> 1.8.14
  229. </small></address>
  230. </body>
  231. </html>