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.

231 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_component_wise</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_component_wise<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:gaf71833350e15e74d31cbf8a3e7f27051"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  73. <tr class="memitem:gaf71833350e15e74d31cbf8a3e7f27051"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType::value_type&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00733.html#gaf71833350e15e74d31cbf8a3e7f27051">compAdd</a> (genType const &amp;v)</td></tr>
  74. <tr class="separator:gaf71833350e15e74d31cbf8a3e7f27051"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:gabfa4bb19298c8c73d4217ba759c496b6"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  76. <tr class="memitem:gabfa4bb19298c8c73d4217ba759c496b6"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType::value_type&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00733.html#gabfa4bb19298c8c73d4217ba759c496b6">compMax</a> (genType const &amp;v)</td></tr>
  77. <tr class="separator:gabfa4bb19298c8c73d4217ba759c496b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:gab5d0832b5c7bb01b8d7395973bfb1425"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  79. <tr class="memitem:gab5d0832b5c7bb01b8d7395973bfb1425"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType::value_type&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00733.html#gab5d0832b5c7bb01b8d7395973bfb1425">compMin</a> (genType const &amp;v)</td></tr>
  80. <tr class="separator:gab5d0832b5c7bb01b8d7395973bfb1425"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:gae8ab88024197202c9479d33bdc5a8a5d"><td class="memTemplParams" colspan="2">template&lt;typename genType &gt; </td></tr>
  82. <tr class="memitem:gae8ab88024197202c9479d33bdc5a8a5d"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL genType::value_type&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00733.html#gae8ab88024197202c9479d33bdc5a8a5d">compMul</a> (genType const &amp;v)</td></tr>
  83. <tr class="separator:gae8ab88024197202c9479d33bdc5a8a5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:ga8f2b81ada8515875e58cb1667b6b9908"><td class="memTemplParams" colspan="2">template&lt;typename floatType , length_t L, typename T , qualifier Q&gt; </td></tr>
  85. <tr class="memitem:ga8f2b81ada8515875e58cb1667b6b9908"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, floatType, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00733.html#ga8f2b81ada8515875e58cb1667b6b9908">compNormalize</a> (vec&lt; L, T, Q &gt; const &amp;v)</td></tr>
  86. <tr class="separator:ga8f2b81ada8515875e58cb1667b6b9908"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:ga80abc2980d65d675f435d178c36880eb"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , typename floatType , qualifier Q&gt; </td></tr>
  88. <tr class="memitem:ga80abc2980d65d675f435d178c36880eb"><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="a00733.html#ga80abc2980d65d675f435d178c36880eb">compScale</a> (vec&lt; L, floatType, Q &gt; const &amp;v)</td></tr>
  89. <tr class="separator:ga80abc2980d65d675f435d178c36880eb"><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="a00464.html" title="GLM_GTX_component_wise ">glm/gtx/component_wise.hpp</a>&gt; to use the features of this extension. </p>
  93. <p>Operations between components of a type </p>
  94. <h2 class="groupheader">Function Documentation</h2>
  95. <a id="gaf71833350e15e74d31cbf8a3e7f27051"></a>
  96. <h2 class="memtitle"><span class="permalink"><a href="#gaf71833350e15e74d31cbf8a3e7f27051">&#9670;&nbsp;</a></span>compAdd()</h2>
  97. <div class="memitem">
  98. <div class="memproto">
  99. <table class="memname">
  100. <tr>
  101. <td class="memname">GLM_FUNC_DECL genType::value_type glm::compAdd </td>
  102. <td>(</td>
  103. <td class="paramtype">genType const &amp;&#160;</td>
  104. <td class="paramname"><em>v</em></td><td>)</td>
  105. <td></td>
  106. </tr>
  107. </table>
  108. </div><div class="memdoc">
  109. <p>Add all vector components together. </p>
  110. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00733.html" title="Include &lt;glm/gtx/component_wise.hpp&gt; to use the features of this extension. ">GLM_GTX_component_wise</a> </dd></dl>
  111. </div>
  112. </div>
  113. <a id="gabfa4bb19298c8c73d4217ba759c496b6"></a>
  114. <h2 class="memtitle"><span class="permalink"><a href="#gabfa4bb19298c8c73d4217ba759c496b6">&#9670;&nbsp;</a></span>compMax()</h2>
  115. <div class="memitem">
  116. <div class="memproto">
  117. <table class="memname">
  118. <tr>
  119. <td class="memname">GLM_FUNC_DECL genType::value_type glm::compMax </td>
  120. <td>(</td>
  121. <td class="paramtype">genType const &amp;&#160;</td>
  122. <td class="paramname"><em>v</em></td><td>)</td>
  123. <td></td>
  124. </tr>
  125. </table>
  126. </div><div class="memdoc">
  127. <p>Find the maximum value between single vector components. </p>
  128. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00733.html" title="Include &lt;glm/gtx/component_wise.hpp&gt; to use the features of this extension. ">GLM_GTX_component_wise</a> </dd></dl>
  129. </div>
  130. </div>
  131. <a id="gab5d0832b5c7bb01b8d7395973bfb1425"></a>
  132. <h2 class="memtitle"><span class="permalink"><a href="#gab5d0832b5c7bb01b8d7395973bfb1425">&#9670;&nbsp;</a></span>compMin()</h2>
  133. <div class="memitem">
  134. <div class="memproto">
  135. <table class="memname">
  136. <tr>
  137. <td class="memname">GLM_FUNC_DECL genType::value_type glm::compMin </td>
  138. <td>(</td>
  139. <td class="paramtype">genType const &amp;&#160;</td>
  140. <td class="paramname"><em>v</em></td><td>)</td>
  141. <td></td>
  142. </tr>
  143. </table>
  144. </div><div class="memdoc">
  145. <p>Find the minimum value between single vector components. </p>
  146. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00733.html" title="Include &lt;glm/gtx/component_wise.hpp&gt; to use the features of this extension. ">GLM_GTX_component_wise</a> </dd></dl>
  147. </div>
  148. </div>
  149. <a id="gae8ab88024197202c9479d33bdc5a8a5d"></a>
  150. <h2 class="memtitle"><span class="permalink"><a href="#gae8ab88024197202c9479d33bdc5a8a5d">&#9670;&nbsp;</a></span>compMul()</h2>
  151. <div class="memitem">
  152. <div class="memproto">
  153. <table class="memname">
  154. <tr>
  155. <td class="memname">GLM_FUNC_DECL genType::value_type glm::compMul </td>
  156. <td>(</td>
  157. <td class="paramtype">genType const &amp;&#160;</td>
  158. <td class="paramname"><em>v</em></td><td>)</td>
  159. <td></td>
  160. </tr>
  161. </table>
  162. </div><div class="memdoc">
  163. <p>Multiply all vector components together. </p>
  164. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00733.html" title="Include &lt;glm/gtx/component_wise.hpp&gt; to use the features of this extension. ">GLM_GTX_component_wise</a> </dd></dl>
  165. </div>
  166. </div>
  167. <a id="ga8f2b81ada8515875e58cb1667b6b9908"></a>
  168. <h2 class="memtitle"><span class="permalink"><a href="#ga8f2b81ada8515875e58cb1667b6b9908">&#9670;&nbsp;</a></span>compNormalize()</h2>
  169. <div class="memitem">
  170. <div class="memproto">
  171. <table class="memname">
  172. <tr>
  173. <td class="memname">GLM_FUNC_DECL vec&lt;L, floatType, Q&gt; glm::compNormalize </td>
  174. <td>(</td>
  175. <td class="paramtype">vec&lt; L, T, Q &gt; const &amp;&#160;</td>
  176. <td class="paramname"><em>v</em></td><td>)</td>
  177. <td></td>
  178. </tr>
  179. </table>
  180. </div><div class="memdoc">
  181. <p>Convert an integer vector to a normalized float vector. </p>
  182. <p>If the parameter value type is already a floating qualifier type, the value is passed through. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="a00733.html" title="Include &lt;glm/gtx/component_wise.hpp&gt; to use the features of this extension. ">GLM_GTX_component_wise</a> </dd></dl>
  183. </div>
  184. </div>
  185. <a id="ga80abc2980d65d675f435d178c36880eb"></a>
  186. <h2 class="memtitle"><span class="permalink"><a href="#ga80abc2980d65d675f435d178c36880eb">&#9670;&nbsp;</a></span>compScale()</h2>
  187. <div class="memitem">
  188. <div class="memproto">
  189. <table class="memname">
  190. <tr>
  191. <td class="memname">GLM_FUNC_DECL vec&lt;L, T, Q&gt; glm::compScale </td>
  192. <td>(</td>
  193. <td class="paramtype">vec&lt; L, floatType, Q &gt; const &amp;&#160;</td>
  194. <td class="paramname"><em>v</em></td><td>)</td>
  195. <td></td>
  196. </tr>
  197. </table>
  198. </div><div class="memdoc">
  199. <p>Convert a normalized float vector to an integer vector. </p>
  200. <p>If the parameter value type is already a floating qualifier type, the value is passed through. </p><dl class="section see"><dt>See also</dt><dd><a class="el" href="a00733.html" title="Include &lt;glm/gtx/component_wise.hpp&gt; to use the features of this extension. ">GLM_GTX_component_wise</a> </dd></dl>
  201. </div>
  202. </div>
  203. </div><!-- contents -->
  204. <!-- start footer part -->
  205. <hr class="footer"/><address class="footer"><small>
  206. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  207. <img class="footer" src="doxygen.png" alt="doxygen"/>
  208. </a> 1.8.14
  209. </small></address>
  210. </body>
  211. </html>