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.

271 lines
13 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_ulp</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_ulp<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:ga2e09bd6c8b0a9c91f6f5683d68245634"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
  73. <tr class="memitem:ga2e09bd6c8b0a9c91f6f5683d68245634"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL uint&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00723.html#ga2e09bd6c8b0a9c91f6f5683d68245634">float_distance</a> (T const &amp;x, T const &amp;y)</td></tr>
  74. <tr class="separator:ga2e09bd6c8b0a9c91f6f5683d68245634"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ga72b3223069013f336d8c31812b7ada80"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:ga72b3223069013f336d8c31812b7ada80"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 2, uint, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00723.html#ga72b3223069013f336d8c31812b7ada80">float_distance</a> (vec&lt; 2, T, Q &gt; const &amp;x, vec&lt; 2, T, Q &gt; const &amp;y)</td></tr>
  77. <tr class="separator:ga72b3223069013f336d8c31812b7ada80"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:gae516ae554faa6117660828240e8bdaf0"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  79. <tr class="memitem:gae516ae554faa6117660828240e8bdaf0"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00723.html#gae516ae554faa6117660828240e8bdaf0">next_float</a> (genType const &amp;x)</td></tr>
  80. <tr class="separator:gae516ae554faa6117660828240e8bdaf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:gad107ec3d9697ef82032a33338a73ebdd"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  82. <tr class="memitem:gad107ec3d9697ef82032a33338a73ebdd"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00723.html#gad107ec3d9697ef82032a33338a73ebdd">next_float</a> (genType const &amp;x, uint const &amp;Distance)</td></tr>
  83. <tr class="separator:gad107ec3d9697ef82032a33338a73ebdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:ga2fcbb7bfbfc595712bfddc51b0715b07"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  85. <tr class="memitem:ga2fcbb7bfbfc595712bfddc51b0715b07"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00723.html#ga2fcbb7bfbfc595712bfddc51b0715b07">prev_float</a> (genType const &amp;x)</td></tr>
  86. <tr class="separator:ga2fcbb7bfbfc595712bfddc51b0715b07"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:gaa399d5b6472a70e8952f9b26ecaacdec"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  88. <tr class="memitem:gaa399d5b6472a70e8952f9b26ecaacdec"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00723.html#gaa399d5b6472a70e8952f9b26ecaacdec">prev_float</a> (genType const &amp;x, uint const &amp;Distance)</td></tr>
  89. <tr class="separator:gaa399d5b6472a70e8952f9b26ecaacdec"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. </table>
  91. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  92. <p>Include &lt;<a class="el" href="a00440.html" title="GLM_GTC_ulp ">glm/gtc/ulp.hpp</a>&gt; to use the features of this extension. </p>
  93. <p>Allow the measurement of the accuracy of a function against a reference implementation. This extension works on floating-point data and provide results in ULP. </p>
  94. <h2 class="groupheader">Function Documentation</h2>
  95. <a id="ga2e09bd6c8b0a9c91f6f5683d68245634"></a>
  96. <h2 class="memtitle"><span class="permalink"><a href="#ga2e09bd6c8b0a9c91f6f5683d68245634">&#9670;&nbsp;</a></span>float_distance() <span class="overload">[1/2]</span></h2>
  97. <div class="memitem">
  98. <div class="memproto">
  99. <table class="memname">
  100. <tr>
  101. <td class="memname">GLM_FUNC_DECL uint glm::float_distance </td>
  102. <td>(</td>
  103. <td class="paramtype">T const &amp;&#160;</td>
  104. <td class="paramname"><em>x</em>, </td>
  105. </tr>
  106. <tr>
  107. <td class="paramkey"></td>
  108. <td></td>
  109. <td class="paramtype">T const &amp;&#160;</td>
  110. <td class="paramname"><em>y</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>Return the distance in the number of ULP between 2 scalars. </p>
  120. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00723.html" title="Include &lt;glm/gtc/ulp.hpp&gt; to use the features of this extension. ">GLM_GTC_ulp</a> </dd></dl>
  121. </div>
  122. </div>
  123. <a id="ga72b3223069013f336d8c31812b7ada80"></a>
  124. <h2 class="memtitle"><span class="permalink"><a href="#ga72b3223069013f336d8c31812b7ada80">&#9670;&nbsp;</a></span>float_distance() <span class="overload">[2/2]</span></h2>
  125. <div class="memitem">
  126. <div class="memproto">
  127. <table class="memname">
  128. <tr>
  129. <td class="memname">GLM_FUNC_DECL vec&lt;2, uint, Q&gt; glm::float_distance </td>
  130. <td>(</td>
  131. <td class="paramtype">vec&lt; 2, T, Q &gt; const &amp;&#160;</td>
  132. <td class="paramname"><em>x</em>, </td>
  133. </tr>
  134. <tr>
  135. <td class="paramkey"></td>
  136. <td></td>
  137. <td class="paramtype">vec&lt; 2, T, Q &gt; const &amp;&#160;</td>
  138. <td class="paramname"><em>y</em>&#160;</td>
  139. </tr>
  140. <tr>
  141. <td></td>
  142. <td>)</td>
  143. <td></td><td></td>
  144. </tr>
  145. </table>
  146. </div><div class="memdoc">
  147. <p>Return the distance in the number of ULP between 2 vectors. </p>
  148. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00723.html" title="Include &lt;glm/gtc/ulp.hpp&gt; to use the features of this extension. ">GLM_GTC_ulp</a> </dd></dl>
  149. </div>
  150. </div>
  151. <a id="gae516ae554faa6117660828240e8bdaf0"></a>
  152. <h2 class="memtitle"><span class="permalink"><a href="#gae516ae554faa6117660828240e8bdaf0">&#9670;&nbsp;</a></span>next_float() <span class="overload">[1/2]</span></h2>
  153. <div class="memitem">
  154. <div class="memproto">
  155. <table class="memname">
  156. <tr>
  157. <td class="memname">GLM_FUNC_DECL genType glm::next_float </td>
  158. <td>(</td>
  159. <td class="paramtype">genType const &amp;&#160;</td>
  160. <td class="paramname"><em>x</em></td><td>)</td>
  161. <td></td>
  162. </tr>
  163. </table>
  164. </div><div class="memdoc">
  165. <p>Return the next ULP value(s) after the input value(s). </p>
  166. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00723.html" title="Include &lt;glm/gtc/ulp.hpp&gt; to use the features of this extension. ">GLM_GTC_ulp</a> </dd></dl>
  167. </div>
  168. </div>
  169. <a id="gad107ec3d9697ef82032a33338a73ebdd"></a>
  170. <h2 class="memtitle"><span class="permalink"><a href="#gad107ec3d9697ef82032a33338a73ebdd">&#9670;&nbsp;</a></span>next_float() <span class="overload">[2/2]</span></h2>
  171. <div class="memitem">
  172. <div class="memproto">
  173. <table class="memname">
  174. <tr>
  175. <td class="memname">GLM_FUNC_DECL genType glm::next_float </td>
  176. <td>(</td>
  177. <td class="paramtype">genType const &amp;&#160;</td>
  178. <td class="paramname"><em>x</em>, </td>
  179. </tr>
  180. <tr>
  181. <td class="paramkey"></td>
  182. <td></td>
  183. <td class="paramtype">uint const &amp;&#160;</td>
  184. <td class="paramname"><em>Distance</em>&#160;</td>
  185. </tr>
  186. <tr>
  187. <td></td>
  188. <td>)</td>
  189. <td></td><td></td>
  190. </tr>
  191. </table>
  192. </div><div class="memdoc">
  193. <p>Return the value(s) ULP distance after the input value(s). </p>
  194. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00723.html" title="Include &lt;glm/gtc/ulp.hpp&gt; to use the features of this extension. ">GLM_GTC_ulp</a> </dd></dl>
  195. </div>
  196. </div>
  197. <a id="ga2fcbb7bfbfc595712bfddc51b0715b07"></a>
  198. <h2 class="memtitle"><span class="permalink"><a href="#ga2fcbb7bfbfc595712bfddc51b0715b07">&#9670;&nbsp;</a></span>prev_float() <span class="overload">[1/2]</span></h2>
  199. <div class="memitem">
  200. <div class="memproto">
  201. <table class="memname">
  202. <tr>
  203. <td class="memname">GLM_FUNC_DECL genType glm::prev_float </td>
  204. <td>(</td>
  205. <td class="paramtype">genType const &amp;&#160;</td>
  206. <td class="paramname"><em>x</em></td><td>)</td>
  207. <td></td>
  208. </tr>
  209. </table>
  210. </div><div class="memdoc">
  211. <p>Return the previous ULP value(s) before the input value(s). </p>
  212. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00723.html" title="Include &lt;glm/gtc/ulp.hpp&gt; to use the features of this extension. ">GLM_GTC_ulp</a> </dd></dl>
  213. </div>
  214. </div>
  215. <a id="gaa399d5b6472a70e8952f9b26ecaacdec"></a>
  216. <h2 class="memtitle"><span class="permalink"><a href="#gaa399d5b6472a70e8952f9b26ecaacdec">&#9670;&nbsp;</a></span>prev_float() <span class="overload">[2/2]</span></h2>
  217. <div class="memitem">
  218. <div class="memproto">
  219. <table class="memname">
  220. <tr>
  221. <td class="memname">GLM_FUNC_DECL genType glm::prev_float </td>
  222. <td>(</td>
  223. <td class="paramtype">genType const &amp;&#160;</td>
  224. <td class="paramname"><em>x</em>, </td>
  225. </tr>
  226. <tr>
  227. <td class="paramkey"></td>
  228. <td></td>
  229. <td class="paramtype">uint const &amp;&#160;</td>
  230. <td class="paramname"><em>Distance</em>&#160;</td>
  231. </tr>
  232. <tr>
  233. <td></td>
  234. <td>)</td>
  235. <td></td><td></td>
  236. </tr>
  237. </table>
  238. </div><div class="memdoc">
  239. <p>Return the value(s) ULP distance before the input value(s). </p>
  240. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00723.html" title="Include &lt;glm/gtc/ulp.hpp&gt; to use the features of this extension. ">GLM_GTC_ulp</a> </dd></dl>
  241. </div>
  242. </div>
  243. </div><!-- contents -->
  244. <!-- start footer part -->
  245. <hr class="footer"/><address class="footer"><small>
  246. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  247. <img class="footer" src="doxygen.png" alt="doxygen"/>
  248. </a> 1.8.14
  249. </small></address>
  250. </body>
  251. </html>