Platformer in OpenGL
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

317 行
18 KiB

5年前
  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_bit</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_bit<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:ga0dcc8fe7c3d3ad60dea409281efa3d05"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  73. <tr class="memitem:ga0dcc8fe7c3d3ad60dea409281efa3d05"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genIUType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00726.html#ga0dcc8fe7c3d3ad60dea409281efa3d05">highestBitValue</a> (genIUType Value)</td></tr>
  74. <tr class="separator:ga0dcc8fe7c3d3ad60dea409281efa3d05"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:ga898ef075ccf809a1e480faab48fe96bf"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:ga898ef075ccf809a1e480faab48fe96bf"><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="a00726.html#ga898ef075ccf809a1e480faab48fe96bf">highestBitValue</a> (vec&lt; L, T, Q &gt; const &amp;value)</td></tr>
  77. <tr class="separator:ga898ef075ccf809a1e480faab48fe96bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga2ff6568089f3a9b67f5c30918855fc6f"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  79. <tr class="memitem:ga2ff6568089f3a9b67f5c30918855fc6f"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genIUType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00726.html#ga2ff6568089f3a9b67f5c30918855fc6f">lowestBitValue</a> (genIUType Value)</td></tr>
  80. <tr class="separator:ga2ff6568089f3a9b67f5c30918855fc6f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:ga8cda2459871f574a0aecbe702ac93291"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  82. <tr class="memitem:ga8cda2459871f574a0aecbe702ac93291"><td class="memTemplItemLeft" align="right" valign="top">GLM_DEPRECATED GLM_FUNC_DECL genIUType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00726.html#ga8cda2459871f574a0aecbe702ac93291">powerOfTwoAbove</a> (genIUType Value)</td></tr>
  83. <tr class="separator:ga8cda2459871f574a0aecbe702ac93291"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:ga2bbded187c5febfefc1e524ba31b3fab"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  85. <tr class="memitem:ga2bbded187c5febfefc1e524ba31b3fab"><td class="memTemplItemLeft" align="right" valign="top">GLM_DEPRECATED GLM_FUNC_DECL vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00726.html#ga2bbded187c5febfefc1e524ba31b3fab">powerOfTwoAbove</a> (vec&lt; L, T, Q &gt; const &amp;value)</td></tr>
  86. <tr class="separator:ga2bbded187c5febfefc1e524ba31b3fab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:ga3de7df63c589325101a2817a56f8e29d"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  88. <tr class="memitem:ga3de7df63c589325101a2817a56f8e29d"><td class="memTemplItemLeft" align="right" valign="top">GLM_DEPRECATED GLM_FUNC_DECL genIUType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00726.html#ga3de7df63c589325101a2817a56f8e29d">powerOfTwoBelow</a> (genIUType Value)</td></tr>
  89. <tr class="separator:ga3de7df63c589325101a2817a56f8e29d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:gaf78ddcc4152c051b2a21e68fecb10980"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  91. <tr class="memitem:gaf78ddcc4152c051b2a21e68fecb10980"><td class="memTemplItemLeft" align="right" valign="top">GLM_DEPRECATED GLM_FUNC_DECL vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00726.html#gaf78ddcc4152c051b2a21e68fecb10980">powerOfTwoBelow</a> (vec&lt; L, T, Q &gt; const &amp;value)</td></tr>
  92. <tr class="separator:gaf78ddcc4152c051b2a21e68fecb10980"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:ga5f65973a5d2ea38c719e6a663149ead9"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  94. <tr class="memitem:ga5f65973a5d2ea38c719e6a663149ead9"><td class="memTemplItemLeft" align="right" valign="top">GLM_DEPRECATED GLM_FUNC_DECL genIUType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00726.html#ga5f65973a5d2ea38c719e6a663149ead9">powerOfTwoNearest</a> (genIUType Value)</td></tr>
  95. <tr class="separator:ga5f65973a5d2ea38c719e6a663149ead9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:gac87e65d11e16c3d6b91c3bcfaef7da0b"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  97. <tr class="memitem:gac87e65d11e16c3d6b91c3bcfaef7da0b"><td class="memTemplItemLeft" align="right" valign="top">GLM_DEPRECATED GLM_FUNC_DECL vec&lt; L, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00726.html#gac87e65d11e16c3d6b91c3bcfaef7da0b">powerOfTwoNearest</a> (vec&lt; L, T, Q &gt; const &amp;value)</td></tr>
  98. <tr class="separator:gac87e65d11e16c3d6b91c3bcfaef7da0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. </table>
  100. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  101. <p>Include &lt;<a class="el" href="a00449.html" title="GLM_GTX_bit ">glm/gtx/bit.hpp</a>&gt; to use the features of this extension. </p>
  102. <p>Allow to perform bit operations on integer values </p>
  103. <h2 class="groupheader">Function Documentation</h2>
  104. <a id="ga0dcc8fe7c3d3ad60dea409281efa3d05"></a>
  105. <h2 class="memtitle"><span class="permalink"><a href="#ga0dcc8fe7c3d3ad60dea409281efa3d05">&#9670;&nbsp;</a></span>highestBitValue() <span class="overload">[1/2]</span></h2>
  106. <div class="memitem">
  107. <div class="memproto">
  108. <table class="memname">
  109. <tr>
  110. <td class="memname">GLM_FUNC_DECL genIUType glm::highestBitValue </td>
  111. <td>(</td>
  112. <td class="paramtype">genIUType&#160;</td>
  113. <td class="paramname"><em>Value</em></td><td>)</td>
  114. <td></td>
  115. </tr>
  116. </table>
  117. </div><div class="memdoc">
  118. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00726.html" title="Include &lt;glm/gtx/bit.hpp&gt; to use the features of this extension. ">GLM_GTX_bit</a> </dd></dl>
  119. </div>
  120. </div>
  121. <a id="ga898ef075ccf809a1e480faab48fe96bf"></a>
  122. <h2 class="memtitle"><span class="permalink"><a href="#ga898ef075ccf809a1e480faab48fe96bf">&#9670;&nbsp;</a></span>highestBitValue() <span class="overload">[2/2]</span></h2>
  123. <div class="memitem">
  124. <div class="memproto">
  125. <table class="memname">
  126. <tr>
  127. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::highestBitValue </td>
  128. <td>(</td>
  129. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  130. <td class="paramname"><em>value</em></td><td>)</td>
  131. <td></td>
  132. </tr>
  133. </table>
  134. </div><div class="memdoc">
  135. <p>Find the highest bit set to 1 in a integer variable and return its value. </p>
  136. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00726.html" title="Include &lt;glm/gtx/bit.hpp&gt; to use the features of this extension. ">GLM_GTX_bit</a> </dd></dl>
  137. </div>
  138. </div>
  139. <a id="ga2ff6568089f3a9b67f5c30918855fc6f"></a>
  140. <h2 class="memtitle"><span class="permalink"><a href="#ga2ff6568089f3a9b67f5c30918855fc6f">&#9670;&nbsp;</a></span>lowestBitValue()</h2>
  141. <div class="memitem">
  142. <div class="memproto">
  143. <table class="memname">
  144. <tr>
  145. <td class="memname">GLM_FUNC_DECL genIUType glm::lowestBitValue </td>
  146. <td>(</td>
  147. <td class="paramtype">genIUType&#160;</td>
  148. <td class="paramname"><em>Value</em></td><td>)</td>
  149. <td></td>
  150. </tr>
  151. </table>
  152. </div><div class="memdoc">
  153. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00726.html" title="Include &lt;glm/gtx/bit.hpp&gt; to use the features of this extension. ">GLM_GTX_bit</a> </dd></dl>
  154. </div>
  155. </div>
  156. <a id="ga8cda2459871f574a0aecbe702ac93291"></a>
  157. <h2 class="memtitle"><span class="permalink"><a href="#ga8cda2459871f574a0aecbe702ac93291">&#9670;&nbsp;</a></span>powerOfTwoAbove() <span class="overload">[1/2]</span></h2>
  158. <div class="memitem">
  159. <div class="memproto">
  160. <table class="memname">
  161. <tr>
  162. <td class="memname">GLM_DEPRECATED GLM_FUNC_DECL genIUType glm::powerOfTwoAbove </td>
  163. <td>(</td>
  164. <td class="paramtype">genIUType&#160;</td>
  165. <td class="paramname"><em>Value</em></td><td>)</td>
  166. <td></td>
  167. </tr>
  168. </table>
  169. </div><div class="memdoc">
  170. <p>Return the power of two number which value is just higher the input value. </p>
  171. <p>Deprecated, use ceilPowerOfTwo from GTC_round instead</p>
  172. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd>
  173. <dd>
  174. <a class="el" href="a00726.html" title="Include &lt;glm/gtx/bit.hpp&gt; to use the features of this extension. ">GLM_GTX_bit</a> </dd></dl>
  175. </div>
  176. </div>
  177. <a id="ga2bbded187c5febfefc1e524ba31b3fab"></a>
  178. <h2 class="memtitle"><span class="permalink"><a href="#ga2bbded187c5febfefc1e524ba31b3fab">&#9670;&nbsp;</a></span>powerOfTwoAbove() <span class="overload">[2/2]</span></h2>
  179. <div class="memitem">
  180. <div class="memproto">
  181. <table class="memname">
  182. <tr>
  183. <td class="memname">GLM_DEPRECATED GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::powerOfTwoAbove </td>
  184. <td>(</td>
  185. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  186. <td class="paramname"><em>value</em></td><td>)</td>
  187. <td></td>
  188. </tr>
  189. </table>
  190. </div><div class="memdoc">
  191. <p>Return the power of two number which value is just higher the input value. </p>
  192. <p>Deprecated, use ceilPowerOfTwo from GTC_round instead</p>
  193. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd>
  194. <dd>
  195. <a class="el" href="a00726.html" title="Include &lt;glm/gtx/bit.hpp&gt; to use the features of this extension. ">GLM_GTX_bit</a> </dd></dl>
  196. </div>
  197. </div>
  198. <a id="ga3de7df63c589325101a2817a56f8e29d"></a>
  199. <h2 class="memtitle"><span class="permalink"><a href="#ga3de7df63c589325101a2817a56f8e29d">&#9670;&nbsp;</a></span>powerOfTwoBelow() <span class="overload">[1/2]</span></h2>
  200. <div class="memitem">
  201. <div class="memproto">
  202. <table class="memname">
  203. <tr>
  204. <td class="memname">GLM_DEPRECATED GLM_FUNC_DECL genIUType glm::powerOfTwoBelow </td>
  205. <td>(</td>
  206. <td class="paramtype">genIUType&#160;</td>
  207. <td class="paramname"><em>Value</em></td><td>)</td>
  208. <td></td>
  209. </tr>
  210. </table>
  211. </div><div class="memdoc">
  212. <p>Return the power of two number which value is just lower the input value. </p>
  213. <p>Deprecated, use floorPowerOfTwo from GTC_round instead</p>
  214. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd>
  215. <dd>
  216. <a class="el" href="a00726.html" title="Include &lt;glm/gtx/bit.hpp&gt; to use the features of this extension. ">GLM_GTX_bit</a> </dd></dl>
  217. </div>
  218. </div>
  219. <a id="gaf78ddcc4152c051b2a21e68fecb10980"></a>
  220. <h2 class="memtitle"><span class="permalink"><a href="#gaf78ddcc4152c051b2a21e68fecb10980">&#9670;&nbsp;</a></span>powerOfTwoBelow() <span class="overload">[2/2]</span></h2>
  221. <div class="memitem">
  222. <div class="memproto">
  223. <table class="memname">
  224. <tr>
  225. <td class="memname">GLM_DEPRECATED GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::powerOfTwoBelow </td>
  226. <td>(</td>
  227. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  228. <td class="paramname"><em>value</em></td><td>)</td>
  229. <td></td>
  230. </tr>
  231. </table>
  232. </div><div class="memdoc">
  233. <p>Return the power of two number which value is just lower the input value. </p>
  234. <p>Deprecated, use floorPowerOfTwo from GTC_round instead</p>
  235. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd>
  236. <dd>
  237. <a class="el" href="a00726.html" title="Include &lt;glm/gtx/bit.hpp&gt; to use the features of this extension. ">GLM_GTX_bit</a> </dd></dl>
  238. </div>
  239. </div>
  240. <a id="ga5f65973a5d2ea38c719e6a663149ead9"></a>
  241. <h2 class="memtitle"><span class="permalink"><a href="#ga5f65973a5d2ea38c719e6a663149ead9">&#9670;&nbsp;</a></span>powerOfTwoNearest() <span class="overload">[1/2]</span></h2>
  242. <div class="memitem">
  243. <div class="memproto">
  244. <table class="memname">
  245. <tr>
  246. <td class="memname">GLM_DEPRECATED GLM_FUNC_DECL genIUType glm::powerOfTwoNearest </td>
  247. <td>(</td>
  248. <td class="paramtype">genIUType&#160;</td>
  249. <td class="paramname"><em>Value</em></td><td>)</td>
  250. <td></td>
  251. </tr>
  252. </table>
  253. </div><div class="memdoc">
  254. <p>Return the power of two number which value is the closet to the input value. </p>
  255. <p>Deprecated, use roundPowerOfTwo from GTC_round instead</p>
  256. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd>
  257. <dd>
  258. <a class="el" href="a00726.html" title="Include &lt;glm/gtx/bit.hpp&gt; to use the features of this extension. ">GLM_GTX_bit</a> </dd></dl>
  259. </div>
  260. </div>
  261. <a id="gac87e65d11e16c3d6b91c3bcfaef7da0b"></a>
  262. <h2 class="memtitle"><span class="permalink"><a href="#gac87e65d11e16c3d6b91c3bcfaef7da0b">&#9670;&nbsp;</a></span>powerOfTwoNearest() <span class="overload">[2/2]</span></h2>
  263. <div class="memitem">
  264. <div class="memproto">
  265. <table class="memname">
  266. <tr>
  267. <td class="memname">GLM_DEPRECATED GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::powerOfTwoNearest </td>
  268. <td>(</td>
  269. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  270. <td class="paramname"><em>value</em></td><td>)</td>
  271. <td></td>
  272. </tr>
  273. </table>
  274. </div><div class="memdoc">
  275. <p>Return the power of two number which value is the closet to the input value. </p>
  276. <p>Deprecated, use roundPowerOfTwo from GTC_round instead</p>
  277. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00719.html" title="Include &lt;glm/gtc/round.hpp&gt; to use the features of this extension. ">GLM_GTC_round</a> </dd>
  278. <dd>
  279. <a class="el" href="a00726.html" title="Include &lt;glm/gtx/bit.hpp&gt; to use the features of this extension. ">GLM_GTX_bit</a> </dd></dl>
  280. </div>
  281. </div>
  282. </div><!-- contents -->
  283. <!-- start footer part -->
  284. <hr class="footer"/><address class="footer"><small>
  285. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  286. <img class="footer" src="doxygen.png" alt="doxygen"/>
  287. </a> 1.8.14
  288. </small></address>
  289. </body>
  290. </html>