Platformer in OpenGL
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

636 řádky
33 KiB

před 5 roky
  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: Integer functions</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">Integer functions<div class="ingroups"><a class="el" href="a00698.html">Core features</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:ga44abfe3379e11cbd29425a843420d0d6"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  73. <tr class="memitem:ga44abfe3379e11cbd29425a843420d0d6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00787.html#ga44abfe3379e11cbd29425a843420d0d6">bitCount</a> (genType v)</td></tr>
  74. <tr class="separator:ga44abfe3379e11cbd29425a843420d0d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:gaac7b15e40bdea8d9aa4c4cb34049f7b5"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:gaac7b15e40bdea8d9aa4c4cb34049f7b5"><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="a00787.html#gaac7b15e40bdea8d9aa4c4cb34049f7b5">bitCount</a> (vec&lt; L, T, Q &gt; const &amp;v)</td></tr>
  77. <tr class="separator:gaac7b15e40bdea8d9aa4c4cb34049f7b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga346b25ab11e793e91a4a69c8aa6819f2"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:ga346b25ab11e793e91a4a69c8aa6819f2"><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="a00787.html#ga346b25ab11e793e91a4a69c8aa6819f2">bitfieldExtract</a> (vec&lt; L, T, Q &gt; const &amp;Value, int Offset, int Bits)</td></tr>
  80. <tr class="separator:ga346b25ab11e793e91a4a69c8aa6819f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:ga2e82992340d421fadb61a473df699b20"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:ga2e82992340d421fadb61a473df699b20"><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="a00787.html#ga2e82992340d421fadb61a473df699b20">bitfieldInsert</a> (vec&lt; L, T, Q &gt; const &amp;Base, vec&lt; L, T, Q &gt; const &amp;Insert, int Offset, int Bits)</td></tr>
  83. <tr class="separator:ga2e82992340d421fadb61a473df699b20"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:ga750a1d92464489b7711dee67aa3441b6"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  85. <tr class="memitem:ga750a1d92464489b7711dee67aa3441b6"><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="a00787.html#ga750a1d92464489b7711dee67aa3441b6">bitfieldReverse</a> (vec&lt; L, T, Q &gt; const &amp;v)</td></tr>
  86. <tr class="separator:ga750a1d92464489b7711dee67aa3441b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:gaf74c4d969fa34ab8acb9d390f5ca5274"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  88. <tr class="memitem:gaf74c4d969fa34ab8acb9d390f5ca5274"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00787.html#gaf74c4d969fa34ab8acb9d390f5ca5274">findLSB</a> (genIUType x)</td></tr>
  89. <tr class="separator:gaf74c4d969fa34ab8acb9d390f5ca5274"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:ga4454c0331d6369888c28ab677f4810c7"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  91. <tr class="memitem:ga4454c0331d6369888c28ab677f4810c7"><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="a00787.html#ga4454c0331d6369888c28ab677f4810c7">findLSB</a> (vec&lt; L, T, Q &gt; const &amp;v)</td></tr>
  92. <tr class="separator:ga4454c0331d6369888c28ab677f4810c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:ga7e4a794d766861c70bc961630f8ef621"><td class="memTemplParams" colspan="2">template&lt;typename genIUType &gt; </td></tr>
  94. <tr class="memitem:ga7e4a794d766861c70bc961630f8ef621"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00787.html#ga7e4a794d766861c70bc961630f8ef621">findMSB</a> (genIUType x)</td></tr>
  95. <tr class="separator:ga7e4a794d766861c70bc961630f8ef621"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:ga39ac4d52028bb6ab08db5ad6562c2872"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  97. <tr class="memitem:ga39ac4d52028bb6ab08db5ad6562c2872"><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="a00787.html#ga39ac4d52028bb6ab08db5ad6562c2872">findMSB</a> (vec&lt; L, T, Q &gt; const &amp;v)</td></tr>
  98. <tr class="separator:ga39ac4d52028bb6ab08db5ad6562c2872"><td class="memSeparator" colspan="2">&#160;</td></tr>
  99. <tr class="memitem:gac0c510a70e852f57594a9141848642e3"><td class="memTemplParams" colspan="2">template&lt;length_t L, qualifier Q&gt; </td></tr>
  100. <tr class="memitem:gac0c510a70e852f57594a9141848642e3"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00787.html#gac0c510a70e852f57594a9141848642e3">imulExtended</a> (vec&lt; L, int, Q &gt; const &amp;x, vec&lt; L, int, Q &gt; const &amp;y, vec&lt; L, int, Q &gt; &amp;msb, vec&lt; L, int, Q &gt; &amp;lsb)</td></tr>
  101. <tr class="separator:gac0c510a70e852f57594a9141848642e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:gaedcec48743632dff6786bcc492074b1b"><td class="memTemplParams" colspan="2">template&lt;length_t L, qualifier Q&gt; </td></tr>
  103. <tr class="memitem:gaedcec48743632dff6786bcc492074b1b"><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="a00787.html#gaedcec48743632dff6786bcc492074b1b">uaddCarry</a> (vec&lt; L, uint, Q &gt; const &amp;x, vec&lt; L, uint, Q &gt; const &amp;y, vec&lt; L, uint, Q &gt; &amp;carry)</td></tr>
  104. <tr class="separator:gaedcec48743632dff6786bcc492074b1b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:ga732e2fb56db57ea541c7e5c92b7121be"><td class="memTemplParams" colspan="2">template&lt;length_t L, qualifier Q&gt; </td></tr>
  106. <tr class="memitem:ga732e2fb56db57ea541c7e5c92b7121be"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00787.html#ga732e2fb56db57ea541c7e5c92b7121be">umulExtended</a> (vec&lt; L, uint, Q &gt; const &amp;x, vec&lt; L, uint, Q &gt; const &amp;y, vec&lt; L, uint, Q &gt; &amp;msb, vec&lt; L, uint, Q &gt; &amp;lsb)</td></tr>
  107. <tr class="separator:ga732e2fb56db57ea541c7e5c92b7121be"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:gae3316ba1229ad9b9f09480833321b053"><td class="memTemplParams" colspan="2">template&lt;length_t L, qualifier Q&gt; </td></tr>
  109. <tr class="memitem:gae3316ba1229ad9b9f09480833321b053"><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="a00787.html#gae3316ba1229ad9b9f09480833321b053">usubBorrow</a> (vec&lt; L, uint, Q &gt; const &amp;x, vec&lt; L, uint, Q &gt; const &amp;y, vec&lt; L, uint, Q &gt; &amp;borrow)</td></tr>
  110. <tr class="separator:gae3316ba1229ad9b9f09480833321b053"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. </table>
  112. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  113. <p>Provides GLSL functions on integer types. </p>
  114. <p>These all operate component-wise. The description is per component. The notation [a, b] means the set of bits from bit-number a through bit-number b, inclusive. The lowest-order bit is bit 0.</p>
  115. <p>Include &lt;<a class="el" href="a00401.html" title="Core features ">glm/integer.hpp</a>&gt; to use these core features. </p>
  116. <h2 class="groupheader">Function Documentation</h2>
  117. <a id="ga44abfe3379e11cbd29425a843420d0d6"></a>
  118. <h2 class="memtitle"><span class="permalink"><a href="#ga44abfe3379e11cbd29425a843420d0d6">&#9670;&nbsp;</a></span>bitCount() <span class="overload">[1/2]</span></h2>
  119. <div class="memitem">
  120. <div class="memproto">
  121. <table class="memname">
  122. <tr>
  123. <td class="memname">GLM_FUNC_DECL int glm::bitCount </td>
  124. <td>(</td>
  125. <td class="paramtype">genType&#160;</td>
  126. <td class="paramname"><em>v</em></td><td>)</td>
  127. <td></td>
  128. </tr>
  129. </table>
  130. </div><div class="memdoc">
  131. <p>Returns the number of bits set to 1 in the binary representation of value. </p>
  132. <dl class="tparams"><dt>Template Parameters</dt><dd>
  133. <table class="tparams">
  134. <tr><td class="paramname">genType</td><td>Signed or unsigned integer scalar or vector types.</td></tr>
  135. </table>
  136. </dd>
  137. </dl>
  138. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/bitCount.xml">GLSL bitCount man page</a> </dd>
  139. <dd>
  140. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  141. </div>
  142. </div>
  143. <a id="gaac7b15e40bdea8d9aa4c4cb34049f7b5"></a>
  144. <h2 class="memtitle"><span class="permalink"><a href="#gaac7b15e40bdea8d9aa4c4cb34049f7b5">&#9670;&nbsp;</a></span>bitCount() <span class="overload">[2/2]</span></h2>
  145. <div class="memitem">
  146. <div class="memproto">
  147. <table class="memname">
  148. <tr>
  149. <td class="memname">GLM_FUNC_DECL vec&lt;L, int, Q&gt; glm::bitCount </td>
  150. <td>(</td>
  151. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  152. <td class="paramname"><em>v</em></td><td>)</td>
  153. <td></td>
  154. </tr>
  155. </table>
  156. </div><div class="memdoc">
  157. <p>Returns the number of bits set to 1 in the binary representation of value. </p>
  158. <dl class="tparams"><dt>Template Parameters</dt><dd>
  159. <table class="tparams">
  160. <tr><td class="paramname">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector. </td></tr>
  161. <tr><td class="paramname">T</td><td>Signed or unsigned integer scalar or vector 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/bitCount.xml">GLSL bitCount man page</a> </dd>
  166. <dd>
  167. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  168. </div>
  169. </div>
  170. <a id="ga346b25ab11e793e91a4a69c8aa6819f2"></a>
  171. <h2 class="memtitle"><span class="permalink"><a href="#ga346b25ab11e793e91a4a69c8aa6819f2">&#9670;&nbsp;</a></span>bitfieldExtract()</h2>
  172. <div class="memitem">
  173. <div class="memproto">
  174. <table class="memname">
  175. <tr>
  176. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::bitfieldExtract </td>
  177. <td>(</td>
  178. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  179. <td class="paramname"><em>Value</em>, </td>
  180. </tr>
  181. <tr>
  182. <td class="paramkey"></td>
  183. <td></td>
  184. <td class="paramtype">int&#160;</td>
  185. <td class="paramname"><em>Offset</em>, </td>
  186. </tr>
  187. <tr>
  188. <td class="paramkey"></td>
  189. <td></td>
  190. <td class="paramtype">int&#160;</td>
  191. <td class="paramname"><em>Bits</em>&#160;</td>
  192. </tr>
  193. <tr>
  194. <td></td>
  195. <td>)</td>
  196. <td></td><td></td>
  197. </tr>
  198. </table>
  199. </div><div class="memdoc">
  200. <p>Extracts bits [offset, offset + bits - 1] from value, returning them in the least significant bits of the result. </p>
  201. <p>For unsigned data types, the most significant bits of the result will be set to zero. For signed data types, the most significant bits will be set to the value of bit offset + base - 1.</p>
  202. <p>If bits is zero, the result will be zero. The result will be undefined if offset or bits is negative, or if the sum of offset and bits is greater than the number of bits used to store the operand.</p>
  203. <dl class="tparams"><dt>Template Parameters</dt><dd>
  204. <table class="tparams">
  205. <tr><td class="paramname">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector. </td></tr>
  206. <tr><td class="paramname">T</td><td>Signed or unsigned integer scalar types.</td></tr>
  207. </table>
  208. </dd>
  209. </dl>
  210. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/bitfieldExtract.xml">GLSL bitfieldExtract man page</a> </dd>
  211. <dd>
  212. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  213. </div>
  214. </div>
  215. <a id="ga2e82992340d421fadb61a473df699b20"></a>
  216. <h2 class="memtitle"><span class="permalink"><a href="#ga2e82992340d421fadb61a473df699b20">&#9670;&nbsp;</a></span>bitfieldInsert()</h2>
  217. <div class="memitem">
  218. <div class="memproto">
  219. <table class="memname">
  220. <tr>
  221. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::bitfieldInsert </td>
  222. <td>(</td>
  223. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  224. <td class="paramname"><em>Base</em>, </td>
  225. </tr>
  226. <tr>
  227. <td class="paramkey"></td>
  228. <td></td>
  229. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  230. <td class="paramname"><em>Insert</em>, </td>
  231. </tr>
  232. <tr>
  233. <td class="paramkey"></td>
  234. <td></td>
  235. <td class="paramtype">int&#160;</td>
  236. <td class="paramname"><em>Offset</em>, </td>
  237. </tr>
  238. <tr>
  239. <td class="paramkey"></td>
  240. <td></td>
  241. <td class="paramtype">int&#160;</td>
  242. <td class="paramname"><em>Bits</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 the insertion the bits least-significant bits of insert into base. </p>
  252. <p>The result will have bits [offset, offset + bits - 1] taken from bits [0, bits - 1] of insert, and all other bits taken directly from the corresponding bits of base. If bits is zero, the result will simply be base. The result will be undefined if offset or bits is negative, or if the sum of offset and bits is greater than the number of bits used to store the operand.</p>
  253. <dl class="tparams"><dt>Template Parameters</dt><dd>
  254. <table class="tparams">
  255. <tr><td class="paramname">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector. </td></tr>
  256. <tr><td class="paramname">T</td><td>Signed or unsigned integer scalar or vector types.</td></tr>
  257. </table>
  258. </dd>
  259. </dl>
  260. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/bitfieldInsert.xml">GLSL bitfieldInsert man page</a> </dd>
  261. <dd>
  262. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  263. </div>
  264. </div>
  265. <a id="ga750a1d92464489b7711dee67aa3441b6"></a>
  266. <h2 class="memtitle"><span class="permalink"><a href="#ga750a1d92464489b7711dee67aa3441b6">&#9670;&nbsp;</a></span>bitfieldReverse()</h2>
  267. <div class="memitem">
  268. <div class="memproto">
  269. <table class="memname">
  270. <tr>
  271. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::bitfieldReverse </td>
  272. <td>(</td>
  273. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  274. <td class="paramname"><em>v</em></td><td>)</td>
  275. <td></td>
  276. </tr>
  277. </table>
  278. </div><div class="memdoc">
  279. <p>Returns the reversal of the bits of value. </p>
  280. <p>The bit numbered n of the result will be taken from bit (bits - 1) - n of value, where bits is the total number of bits used to represent value.</p>
  281. <dl class="tparams"><dt>Template Parameters</dt><dd>
  282. <table class="tparams">
  283. <tr><td class="paramname">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector. </td></tr>
  284. <tr><td class="paramname">T</td><td>Signed or unsigned integer scalar or vector types.</td></tr>
  285. </table>
  286. </dd>
  287. </dl>
  288. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/bitfieldReverse.xml">GLSL bitfieldReverse man page</a> </dd>
  289. <dd>
  290. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  291. </div>
  292. </div>
  293. <a id="gaf74c4d969fa34ab8acb9d390f5ca5274"></a>
  294. <h2 class="memtitle"><span class="permalink"><a href="#gaf74c4d969fa34ab8acb9d390f5ca5274">&#9670;&nbsp;</a></span>findLSB() <span class="overload">[1/2]</span></h2>
  295. <div class="memitem">
  296. <div class="memproto">
  297. <table class="memname">
  298. <tr>
  299. <td class="memname">GLM_FUNC_DECL int glm::findLSB </td>
  300. <td>(</td>
  301. <td class="paramtype">genIUType&#160;</td>
  302. <td class="paramname"><em>x</em></td><td>)</td>
  303. <td></td>
  304. </tr>
  305. </table>
  306. </div><div class="memdoc">
  307. <p>Returns the bit number of the least significant bit set to 1 in the binary representation of value. </p>
  308. <p>If value is zero, -1 will be returned.</p>
  309. <dl class="tparams"><dt>Template Parameters</dt><dd>
  310. <table class="tparams">
  311. <tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar types.</td></tr>
  312. </table>
  313. </dd>
  314. </dl>
  315. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/findLSB.xml">GLSL findLSB man page</a> </dd>
  316. <dd>
  317. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  318. </div>
  319. </div>
  320. <a id="ga4454c0331d6369888c28ab677f4810c7"></a>
  321. <h2 class="memtitle"><span class="permalink"><a href="#ga4454c0331d6369888c28ab677f4810c7">&#9670;&nbsp;</a></span>findLSB() <span class="overload">[2/2]</span></h2>
  322. <div class="memitem">
  323. <div class="memproto">
  324. <table class="memname">
  325. <tr>
  326. <td class="memname">GLM_FUNC_DECL vec&lt;L, int, Q&gt; glm::findLSB </td>
  327. <td>(</td>
  328. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  329. <td class="paramname"><em>v</em></td><td>)</td>
  330. <td></td>
  331. </tr>
  332. </table>
  333. </div><div class="memdoc">
  334. <p>Returns the bit number of the least significant bit set to 1 in the binary representation of value. </p>
  335. <p>If value is zero, -1 will be returned.</p>
  336. <dl class="tparams"><dt>Template Parameters</dt><dd>
  337. <table class="tparams">
  338. <tr><td class="paramname">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector. </td></tr>
  339. <tr><td class="paramname">T</td><td>Signed or unsigned integer scalar types.</td></tr>
  340. </table>
  341. </dd>
  342. </dl>
  343. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/findLSB.xml">GLSL findLSB man page</a> </dd>
  344. <dd>
  345. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  346. </div>
  347. </div>
  348. <a id="ga7e4a794d766861c70bc961630f8ef621"></a>
  349. <h2 class="memtitle"><span class="permalink"><a href="#ga7e4a794d766861c70bc961630f8ef621">&#9670;&nbsp;</a></span>findMSB() <span class="overload">[1/2]</span></h2>
  350. <div class="memitem">
  351. <div class="memproto">
  352. <table class="memname">
  353. <tr>
  354. <td class="memname">GLM_FUNC_DECL int glm::findMSB </td>
  355. <td>(</td>
  356. <td class="paramtype">genIUType&#160;</td>
  357. <td class="paramname"><em>x</em></td><td>)</td>
  358. <td></td>
  359. </tr>
  360. </table>
  361. </div><div class="memdoc">
  362. <p>Returns the bit number of the most significant bit in the binary representation of value. </p>
  363. <p>For positive integers, the result will be the bit number of the most significant bit set to 1. For negative integers, the result will be the bit number of the most significant bit set to 0. For a value of zero or negative one, -1 will be returned.</p>
  364. <dl class="tparams"><dt>Template Parameters</dt><dd>
  365. <table class="tparams">
  366. <tr><td class="paramname">genIUType</td><td>Signed or unsigned integer scalar types.</td></tr>
  367. </table>
  368. </dd>
  369. </dl>
  370. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/findMSB.xml">GLSL findMSB man page</a> </dd>
  371. <dd>
  372. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  373. </div>
  374. </div>
  375. <a id="ga39ac4d52028bb6ab08db5ad6562c2872"></a>
  376. <h2 class="memtitle"><span class="permalink"><a href="#ga39ac4d52028bb6ab08db5ad6562c2872">&#9670;&nbsp;</a></span>findMSB() <span class="overload">[2/2]</span></h2>
  377. <div class="memitem">
  378. <div class="memproto">
  379. <table class="memname">
  380. <tr>
  381. <td class="memname">GLM_FUNC_DECL vec&lt;L, int, Q&gt; glm::findMSB </td>
  382. <td>(</td>
  383. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  384. <td class="paramname"><em>v</em></td><td>)</td>
  385. <td></td>
  386. </tr>
  387. </table>
  388. </div><div class="memdoc">
  389. <p>Returns the bit number of the most significant bit in the binary representation of value. </p>
  390. <p>For positive integers, the result will be the bit number of the most significant bit set to 1. For negative integers, the result will be the bit number of the most significant bit set to 0. For a value of zero or negative one, -1 will be returned.</p>
  391. <dl class="tparams"><dt>Template Parameters</dt><dd>
  392. <table class="tparams">
  393. <tr><td class="paramname">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector. </td></tr>
  394. <tr><td class="paramname">T</td><td>Signed or unsigned integer scalar types.</td></tr>
  395. </table>
  396. </dd>
  397. </dl>
  398. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/findMSB.xml">GLSL findMSB man page</a> </dd>
  399. <dd>
  400. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  401. </div>
  402. </div>
  403. <a id="gac0c510a70e852f57594a9141848642e3"></a>
  404. <h2 class="memtitle"><span class="permalink"><a href="#gac0c510a70e852f57594a9141848642e3">&#9670;&nbsp;</a></span>imulExtended()</h2>
  405. <div class="memitem">
  406. <div class="memproto">
  407. <table class="memname">
  408. <tr>
  409. <td class="memname">GLM_FUNC_DECL void glm::imulExtended </td>
  410. <td>(</td>
  411. <td class="paramtype">vec&lt; L, int, Q &gt; const &amp;&#160;</td>
  412. <td class="paramname"><em>x</em>, </td>
  413. </tr>
  414. <tr>
  415. <td class="paramkey"></td>
  416. <td></td>
  417. <td class="paramtype">vec&lt; L, int, Q &gt; const &amp;&#160;</td>
  418. <td class="paramname"><em>y</em>, </td>
  419. </tr>
  420. <tr>
  421. <td class="paramkey"></td>
  422. <td></td>
  423. <td class="paramtype">vec&lt; L, int, Q &gt; &amp;&#160;</td>
  424. <td class="paramname"><em>msb</em>, </td>
  425. </tr>
  426. <tr>
  427. <td class="paramkey"></td>
  428. <td></td>
  429. <td class="paramtype">vec&lt; L, int, Q &gt; &amp;&#160;</td>
  430. <td class="paramname"><em>lsb</em>&#160;</td>
  431. </tr>
  432. <tr>
  433. <td></td>
  434. <td>)</td>
  435. <td></td><td></td>
  436. </tr>
  437. </table>
  438. </div><div class="memdoc">
  439. <p>Multiplies 32-bit integers x and y, producing a 64-bit result. </p>
  440. <p>The 32 least-significant bits are returned in lsb. The 32 most-significant bits are returned in msb.</p>
  441. <dl class="tparams"><dt>Template Parameters</dt><dd>
  442. <table class="tparams">
  443. <tr><td class="paramname">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector.</td></tr>
  444. </table>
  445. </dd>
  446. </dl>
  447. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/imulExtended.xml">GLSL imulExtended man page</a> </dd>
  448. <dd>
  449. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  450. </div>
  451. </div>
  452. <a id="gaedcec48743632dff6786bcc492074b1b"></a>
  453. <h2 class="memtitle"><span class="permalink"><a href="#gaedcec48743632dff6786bcc492074b1b">&#9670;&nbsp;</a></span>uaddCarry()</h2>
  454. <div class="memitem">
  455. <div class="memproto">
  456. <table class="memname">
  457. <tr>
  458. <td class="memname">GLM_FUNC_DECL vec&lt;L, uint, Q&gt; glm::uaddCarry </td>
  459. <td>(</td>
  460. <td class="paramtype">vec&lt; L, uint, Q &gt; const &amp;&#160;</td>
  461. <td class="paramname"><em>x</em>, </td>
  462. </tr>
  463. <tr>
  464. <td class="paramkey"></td>
  465. <td></td>
  466. <td class="paramtype">vec&lt; L, uint, Q &gt; const &amp;&#160;</td>
  467. <td class="paramname"><em>y</em>, </td>
  468. </tr>
  469. <tr>
  470. <td class="paramkey"></td>
  471. <td></td>
  472. <td class="paramtype">vec&lt; L, uint, Q &gt; &amp;&#160;</td>
  473. <td class="paramname"><em>carry</em>&#160;</td>
  474. </tr>
  475. <tr>
  476. <td></td>
  477. <td>)</td>
  478. <td></td><td></td>
  479. </tr>
  480. </table>
  481. </div><div class="memdoc">
  482. <p>Adds 32-bit unsigned integer x and y, returning the sum modulo pow(2, 32). </p>
  483. <p>The value carry is set to 0 if the sum was less than pow(2, 32), or to 1 otherwise.</p>
  484. <dl class="tparams"><dt>Template Parameters</dt><dd>
  485. <table class="tparams">
  486. <tr><td class="paramname">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector.</td></tr>
  487. </table>
  488. </dd>
  489. </dl>
  490. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/uaddCarry.xml">GLSL uaddCarry man page</a> </dd>
  491. <dd>
  492. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  493. </div>
  494. </div>
  495. <a id="ga732e2fb56db57ea541c7e5c92b7121be"></a>
  496. <h2 class="memtitle"><span class="permalink"><a href="#ga732e2fb56db57ea541c7e5c92b7121be">&#9670;&nbsp;</a></span>umulExtended()</h2>
  497. <div class="memitem">
  498. <div class="memproto">
  499. <table class="memname">
  500. <tr>
  501. <td class="memname">GLM_FUNC_DECL void glm::umulExtended </td>
  502. <td>(</td>
  503. <td class="paramtype">vec&lt; L, uint, Q &gt; const &amp;&#160;</td>
  504. <td class="paramname"><em>x</em>, </td>
  505. </tr>
  506. <tr>
  507. <td class="paramkey"></td>
  508. <td></td>
  509. <td class="paramtype">vec&lt; L, uint, Q &gt; const &amp;&#160;</td>
  510. <td class="paramname"><em>y</em>, </td>
  511. </tr>
  512. <tr>
  513. <td class="paramkey"></td>
  514. <td></td>
  515. <td class="paramtype">vec&lt; L, uint, Q &gt; &amp;&#160;</td>
  516. <td class="paramname"><em>msb</em>, </td>
  517. </tr>
  518. <tr>
  519. <td class="paramkey"></td>
  520. <td></td>
  521. <td class="paramtype">vec&lt; L, uint, Q &gt; &amp;&#160;</td>
  522. <td class="paramname"><em>lsb</em>&#160;</td>
  523. </tr>
  524. <tr>
  525. <td></td>
  526. <td>)</td>
  527. <td></td><td></td>
  528. </tr>
  529. </table>
  530. </div><div class="memdoc">
  531. <p>Multiplies 32-bit integers x and y, producing a 64-bit result. </p>
  532. <p>The 32 least-significant bits are returned in lsb. The 32 most-significant bits are returned in msb.</p>
  533. <dl class="tparams"><dt>Template Parameters</dt><dd>
  534. <table class="tparams">
  535. <tr><td class="paramname">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector.</td></tr>
  536. </table>
  537. </dd>
  538. </dl>
  539. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/umulExtended.xml">GLSL umulExtended man page</a> </dd>
  540. <dd>
  541. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  542. </div>
  543. </div>
  544. <a id="gae3316ba1229ad9b9f09480833321b053"></a>
  545. <h2 class="memtitle"><span class="permalink"><a href="#gae3316ba1229ad9b9f09480833321b053">&#9670;&nbsp;</a></span>usubBorrow()</h2>
  546. <div class="memitem">
  547. <div class="memproto">
  548. <table class="memname">
  549. <tr>
  550. <td class="memname">GLM_FUNC_DECL vec&lt;L, uint, Q&gt; glm::usubBorrow </td>
  551. <td>(</td>
  552. <td class="paramtype">vec&lt; L, uint, Q &gt; const &amp;&#160;</td>
  553. <td class="paramname"><em>x</em>, </td>
  554. </tr>
  555. <tr>
  556. <td class="paramkey"></td>
  557. <td></td>
  558. <td class="paramtype">vec&lt; L, uint, Q &gt; const &amp;&#160;</td>
  559. <td class="paramname"><em>y</em>, </td>
  560. </tr>
  561. <tr>
  562. <td class="paramkey"></td>
  563. <td></td>
  564. <td class="paramtype">vec&lt; L, uint, Q &gt; &amp;&#160;</td>
  565. <td class="paramname"><em>borrow</em>&#160;</td>
  566. </tr>
  567. <tr>
  568. <td></td>
  569. <td>)</td>
  570. <td></td><td></td>
  571. </tr>
  572. </table>
  573. </div><div class="memdoc">
  574. <p>Subtracts the 32-bit unsigned integer y from x, returning the difference if non-negative, or pow(2, 32) plus the difference otherwise. </p>
  575. <p>The value borrow is set to 0 if x &gt;= y, or to 1 otherwise.</p>
  576. <dl class="tparams"><dt>Template Parameters</dt><dd>
  577. <table class="tparams">
  578. <tr><td class="paramname">L</td><td>An integer between 1 and 4 included that qualify the dimension of the vector.</td></tr>
  579. </table>
  580. </dd>
  581. </dl>
  582. <dl class="section see"><dt>See also</dt><dd><a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/usubBorrow.xml">GLSL usubBorrow man page</a> </dd>
  583. <dd>
  584. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.8 Integer Functions</a> </dd></dl>
  585. </div>
  586. </div>
  587. </div><!-- contents -->
  588. <!-- start footer part -->
  589. <hr class="footer"/><address class="footer"><small>
  590. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  591. <img class="footer" src="doxygen.png" alt="doxygen"/>
  592. </a> 1.8.14
  593. </small></address>
  594. </body>
  595. </html>