Platformer in OpenGL
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

530 wiersze
27 KiB

5 lat temu
  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_EXT_matrix_projection</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_EXT_matrix_projection<div class="ingroups"><a class="el" href="a00703.html">Stable 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:gaf6b21eadb7ac2ecbbe258a9a233b4c82"><td class="memTemplParams" colspan="2">template&lt;typename T , qualifier Q, typename U &gt; </td></tr>
  73. <tr class="memitem:gaf6b21eadb7ac2ecbbe258a9a233b4c82"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL mat&lt; 4, 4, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00666.html#gaf6b21eadb7ac2ecbbe258a9a233b4c82">pickMatrix</a> (vec&lt; 2, T, Q &gt; const &amp;center, vec&lt; 2, T, Q &gt; const &amp;delta, vec&lt; 4, U, Q &gt; const &amp;viewport)</td></tr>
  74. <tr class="separator:gaf6b21eadb7ac2ecbbe258a9a233b4c82"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:gaf36e96033f456659e6705472a06b6e11"><td class="memTemplParams" colspan="2">template&lt;typename T , typename U , qualifier Q&gt; </td></tr>
  76. <tr class="memitem:gaf36e96033f456659e6705472a06b6e11"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00666.html#gaf36e96033f456659e6705472a06b6e11">project</a> (vec&lt; 3, T, Q &gt; const &amp;obj, mat&lt; 4, 4, T, Q &gt; const &amp;model, mat&lt; 4, 4, T, Q &gt; const &amp;proj, vec&lt; 4, U, Q &gt; const &amp;viewport)</td></tr>
  77. <tr class="separator:gaf36e96033f456659e6705472a06b6e11"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga05249751f48d14cb282e4979802b8111"><td class="memTemplParams" colspan="2">template&lt;typename T , typename U , qualifier Q&gt; </td></tr>
  79. <tr class="memitem:ga05249751f48d14cb282e4979802b8111"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00666.html#ga05249751f48d14cb282e4979802b8111">projectNO</a> (vec&lt; 3, T, Q &gt; const &amp;obj, mat&lt; 4, 4, T, Q &gt; const &amp;model, mat&lt; 4, 4, T, Q &gt; const &amp;proj, vec&lt; 4, U, Q &gt; const &amp;viewport)</td></tr>
  80. <tr class="separator:ga05249751f48d14cb282e4979802b8111"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:ga77d157525063dec83a557186873ee080"><td class="memTemplParams" colspan="2">template&lt;typename T , typename U , qualifier Q&gt; </td></tr>
  82. <tr class="memitem:ga77d157525063dec83a557186873ee080"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00666.html#ga77d157525063dec83a557186873ee080">projectZO</a> (vec&lt; 3, T, Q &gt; const &amp;obj, mat&lt; 4, 4, T, Q &gt; const &amp;model, mat&lt; 4, 4, T, Q &gt; const &amp;proj, vec&lt; 4, U, Q &gt; const &amp;viewport)</td></tr>
  83. <tr class="separator:ga77d157525063dec83a557186873ee080"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:ga36641e5d60f994e01c3d8f56b10263d2"><td class="memTemplParams" colspan="2">template&lt;typename T , typename U , qualifier Q&gt; </td></tr>
  85. <tr class="memitem:ga36641e5d60f994e01c3d8f56b10263d2"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00666.html#ga36641e5d60f994e01c3d8f56b10263d2">unProject</a> (vec&lt; 3, T, Q &gt; const &amp;win, mat&lt; 4, 4, T, Q &gt; const &amp;model, mat&lt; 4, 4, T, Q &gt; const &amp;proj, vec&lt; 4, U, Q &gt; const &amp;viewport)</td></tr>
  86. <tr class="separator:ga36641e5d60f994e01c3d8f56b10263d2"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:gae089ba9fc150ff69c252a20e508857b5"><td class="memTemplParams" colspan="2">template&lt;typename T , typename U , qualifier Q&gt; </td></tr>
  88. <tr class="memitem:gae089ba9fc150ff69c252a20e508857b5"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00666.html#gae089ba9fc150ff69c252a20e508857b5">unProjectNO</a> (vec&lt; 3, T, Q &gt; const &amp;win, mat&lt; 4, 4, T, Q &gt; const &amp;model, mat&lt; 4, 4, T, Q &gt; const &amp;proj, vec&lt; 4, U, Q &gt; const &amp;viewport)</td></tr>
  89. <tr class="separator:gae089ba9fc150ff69c252a20e508857b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:gade5136413ce530f8e606124d570fba32"><td class="memTemplParams" colspan="2">template&lt;typename T , typename U , qualifier Q&gt; </td></tr>
  91. <tr class="memitem:gade5136413ce530f8e606124d570fba32"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 3, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00666.html#gade5136413ce530f8e606124d570fba32">unProjectZO</a> (vec&lt; 3, T, Q &gt; const &amp;win, mat&lt; 4, 4, T, Q &gt; const &amp;model, mat&lt; 4, 4, T, Q &gt; const &amp;proj, vec&lt; 4, U, Q &gt; const &amp;viewport)</td></tr>
  92. <tr class="separator:gade5136413ce530f8e606124d570fba32"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. </table>
  94. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  95. <p>Functions that generate common projection transformation matrices. </p>
  96. <p>The matrices generated by this extension use standard OpenGL fixed-function conventions. For example, the lookAt function generates a transform from world space into the specific eye space that the projective matrix functions (perspective, ortho, etc) are designed to expect. The OpenGL compatibility specifications defines the particular layout of this eye space.</p>
  97. <p>Include &lt;<a class="el" href="a00194.html" title="GLM_EXT_matrix_projection ">glm/ext/matrix_projection.hpp</a>&gt; to use the features of this extension.</p>
  98. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00668.html" title="Defines functions that generate common transformation matrices. ">GLM_EXT_matrix_transform</a> </dd>
  99. <dd>
  100. <a class="el" href="a00665.html" title="Defines functions that generate common transformation matrices. ">GLM_EXT_matrix_clip_space</a> </dd></dl>
  101. <h2 class="groupheader">Function Documentation</h2>
  102. <a id="gaf6b21eadb7ac2ecbbe258a9a233b4c82"></a>
  103. <h2 class="memtitle"><span class="permalink"><a href="#gaf6b21eadb7ac2ecbbe258a9a233b4c82">&#9670;&nbsp;</a></span>pickMatrix()</h2>
  104. <div class="memitem">
  105. <div class="memproto">
  106. <table class="memname">
  107. <tr>
  108. <td class="memname">GLM_FUNC_DECL mat&lt;4, 4, T, Q&gt; glm::pickMatrix </td>
  109. <td>(</td>
  110. <td class="paramtype">vec&lt; 2, T, Q &gt; const &amp;&#160;</td>
  111. <td class="paramname"><em>center</em>, </td>
  112. </tr>
  113. <tr>
  114. <td class="paramkey"></td>
  115. <td></td>
  116. <td class="paramtype">vec&lt; 2, T, Q &gt; const &amp;&#160;</td>
  117. <td class="paramname"><em>delta</em>, </td>
  118. </tr>
  119. <tr>
  120. <td class="paramkey"></td>
  121. <td></td>
  122. <td class="paramtype">vec&lt; 4, U, Q &gt; const &amp;&#160;</td>
  123. <td class="paramname"><em>viewport</em>&#160;</td>
  124. </tr>
  125. <tr>
  126. <td></td>
  127. <td>)</td>
  128. <td></td><td></td>
  129. </tr>
  130. </table>
  131. </div><div class="memdoc">
  132. <p>Define a picking region. </p>
  133. <dl class="params"><dt>Parameters</dt><dd>
  134. <table class="params">
  135. <tr><td class="paramname">center</td><td>Specify the center of a picking region in window coordinates. </td></tr>
  136. <tr><td class="paramname">delta</td><td>Specify the width and height, respectively, of the picking region in window coordinates. </td></tr>
  137. <tr><td class="paramname">viewport</td><td>Rendering viewport </td></tr>
  138. </table>
  139. </dd>
  140. </dl>
  141. <dl class="tparams"><dt>Template Parameters</dt><dd>
  142. <table class="tparams">
  143. <tr><td class="paramname">T</td><td>Native type used for the computation. Currently supported: half (not recommended), float or double. </td></tr>
  144. <tr><td class="paramname">U</td><td>Currently supported: Floating-point types and integer types.</td></tr>
  145. </table>
  146. </dd>
  147. </dl>
  148. <dl class="section see"><dt>See also</dt><dd><a href="https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluPickMatrix.xml">gluPickMatrix man page</a> </dd></dl>
  149. </div>
  150. </div>
  151. <a id="gaf36e96033f456659e6705472a06b6e11"></a>
  152. <h2 class="memtitle"><span class="permalink"><a href="#gaf36e96033f456659e6705472a06b6e11">&#9670;&nbsp;</a></span>project()</h2>
  153. <div class="memitem">
  154. <div class="memproto">
  155. <table class="memname">
  156. <tr>
  157. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::project </td>
  158. <td>(</td>
  159. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  160. <td class="paramname"><em>obj</em>, </td>
  161. </tr>
  162. <tr>
  163. <td class="paramkey"></td>
  164. <td></td>
  165. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  166. <td class="paramname"><em>model</em>, </td>
  167. </tr>
  168. <tr>
  169. <td class="paramkey"></td>
  170. <td></td>
  171. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  172. <td class="paramname"><em>proj</em>, </td>
  173. </tr>
  174. <tr>
  175. <td class="paramkey"></td>
  176. <td></td>
  177. <td class="paramtype">vec&lt; 4, U, Q &gt; const &amp;&#160;</td>
  178. <td class="paramname"><em>viewport</em>&#160;</td>
  179. </tr>
  180. <tr>
  181. <td></td>
  182. <td>)</td>
  183. <td></td><td></td>
  184. </tr>
  185. </table>
  186. </div><div class="memdoc">
  187. <p>Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates using default near and far clip planes definition. </p>
  188. <p>To change default near and far clip planes definition use GLM_FORCE_DEPTH_ZERO_TO_ONE.</p>
  189. <dl class="params"><dt>Parameters</dt><dd>
  190. <table class="params">
  191. <tr><td class="paramname">obj</td><td>Specify the object coordinates. </td></tr>
  192. <tr><td class="paramname">model</td><td>Specifies the current modelview matrix </td></tr>
  193. <tr><td class="paramname">proj</td><td>Specifies the current projection matrix </td></tr>
  194. <tr><td class="paramname">viewport</td><td>Specifies the current viewport </td></tr>
  195. </table>
  196. </dd>
  197. </dl>
  198. <dl class="section return"><dt>Returns</dt><dd>Return the computed window coordinates. </dd></dl>
  199. <dl class="tparams"><dt>Template Parameters</dt><dd>
  200. <table class="tparams">
  201. <tr><td class="paramname">T</td><td>Native type used for the computation. Currently supported: half (not recommended), float or double. </td></tr>
  202. <tr><td class="paramname">U</td><td>Currently supported: Floating-point types and integer types.</td></tr>
  203. </table>
  204. </dd>
  205. </dl>
  206. <dl class="section see"><dt>See also</dt><dd><a href="https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluProject.xml">gluProject man page</a> </dd></dl>
  207. </div>
  208. </div>
  209. <a id="ga05249751f48d14cb282e4979802b8111"></a>
  210. <h2 class="memtitle"><span class="permalink"><a href="#ga05249751f48d14cb282e4979802b8111">&#9670;&nbsp;</a></span>projectNO()</h2>
  211. <div class="memitem">
  212. <div class="memproto">
  213. <table class="memname">
  214. <tr>
  215. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::projectNO </td>
  216. <td>(</td>
  217. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  218. <td class="paramname"><em>obj</em>, </td>
  219. </tr>
  220. <tr>
  221. <td class="paramkey"></td>
  222. <td></td>
  223. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  224. <td class="paramname"><em>model</em>, </td>
  225. </tr>
  226. <tr>
  227. <td class="paramkey"></td>
  228. <td></td>
  229. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  230. <td class="paramname"><em>proj</em>, </td>
  231. </tr>
  232. <tr>
  233. <td class="paramkey"></td>
  234. <td></td>
  235. <td class="paramtype">vec&lt; 4, U, Q &gt; const &amp;&#160;</td>
  236. <td class="paramname"><em>viewport</em>&#160;</td>
  237. </tr>
  238. <tr>
  239. <td></td>
  240. <td>)</td>
  241. <td></td><td></td>
  242. </tr>
  243. </table>
  244. </div><div class="memdoc">
  245. <p>Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates. </p>
  246. <p>The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)</p>
  247. <dl class="params"><dt>Parameters</dt><dd>
  248. <table class="params">
  249. <tr><td class="paramname">obj</td><td>Specify the object coordinates. </td></tr>
  250. <tr><td class="paramname">model</td><td>Specifies the current modelview matrix </td></tr>
  251. <tr><td class="paramname">proj</td><td>Specifies the current projection matrix </td></tr>
  252. <tr><td class="paramname">viewport</td><td>Specifies the current viewport </td></tr>
  253. </table>
  254. </dd>
  255. </dl>
  256. <dl class="section return"><dt>Returns</dt><dd>Return the computed window coordinates. </dd></dl>
  257. <dl class="tparams"><dt>Template Parameters</dt><dd>
  258. <table class="tparams">
  259. <tr><td class="paramname">T</td><td>Native type used for the computation. Currently supported: half (not recommended), float or double. </td></tr>
  260. <tr><td class="paramname">U</td><td>Currently supported: Floating-point types and integer types.</td></tr>
  261. </table>
  262. </dd>
  263. </dl>
  264. <dl class="section see"><dt>See also</dt><dd><a href="https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluProject.xml">gluProject man page</a> </dd></dl>
  265. </div>
  266. </div>
  267. <a id="ga77d157525063dec83a557186873ee080"></a>
  268. <h2 class="memtitle"><span class="permalink"><a href="#ga77d157525063dec83a557186873ee080">&#9670;&nbsp;</a></span>projectZO()</h2>
  269. <div class="memitem">
  270. <div class="memproto">
  271. <table class="memname">
  272. <tr>
  273. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::projectZO </td>
  274. <td>(</td>
  275. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  276. <td class="paramname"><em>obj</em>, </td>
  277. </tr>
  278. <tr>
  279. <td class="paramkey"></td>
  280. <td></td>
  281. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  282. <td class="paramname"><em>model</em>, </td>
  283. </tr>
  284. <tr>
  285. <td class="paramkey"></td>
  286. <td></td>
  287. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  288. <td class="paramname"><em>proj</em>, </td>
  289. </tr>
  290. <tr>
  291. <td class="paramkey"></td>
  292. <td></td>
  293. <td class="paramtype">vec&lt; 4, U, Q &gt; const &amp;&#160;</td>
  294. <td class="paramname"><em>viewport</em>&#160;</td>
  295. </tr>
  296. <tr>
  297. <td></td>
  298. <td>)</td>
  299. <td></td><td></td>
  300. </tr>
  301. </table>
  302. </div><div class="memdoc">
  303. <p>Map the specified object coordinates (obj.x, obj.y, obj.z) into window coordinates. </p>
  304. <p>The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)</p>
  305. <dl class="params"><dt>Parameters</dt><dd>
  306. <table class="params">
  307. <tr><td class="paramname">obj</td><td>Specify the object coordinates. </td></tr>
  308. <tr><td class="paramname">model</td><td>Specifies the current modelview matrix </td></tr>
  309. <tr><td class="paramname">proj</td><td>Specifies the current projection matrix </td></tr>
  310. <tr><td class="paramname">viewport</td><td>Specifies the current viewport </td></tr>
  311. </table>
  312. </dd>
  313. </dl>
  314. <dl class="section return"><dt>Returns</dt><dd>Return the computed window coordinates. </dd></dl>
  315. <dl class="tparams"><dt>Template Parameters</dt><dd>
  316. <table class="tparams">
  317. <tr><td class="paramname">T</td><td>Native type used for the computation. Currently supported: half (not recommended), float or double. </td></tr>
  318. <tr><td class="paramname">U</td><td>Currently supported: Floating-point types and integer types.</td></tr>
  319. </table>
  320. </dd>
  321. </dl>
  322. <dl class="section see"><dt>See also</dt><dd><a href="https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluProject.xml">gluProject man page</a> </dd></dl>
  323. </div>
  324. </div>
  325. <a id="ga36641e5d60f994e01c3d8f56b10263d2"></a>
  326. <h2 class="memtitle"><span class="permalink"><a href="#ga36641e5d60f994e01c3d8f56b10263d2">&#9670;&nbsp;</a></span>unProject()</h2>
  327. <div class="memitem">
  328. <div class="memproto">
  329. <table class="memname">
  330. <tr>
  331. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::unProject </td>
  332. <td>(</td>
  333. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  334. <td class="paramname"><em>win</em>, </td>
  335. </tr>
  336. <tr>
  337. <td class="paramkey"></td>
  338. <td></td>
  339. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  340. <td class="paramname"><em>model</em>, </td>
  341. </tr>
  342. <tr>
  343. <td class="paramkey"></td>
  344. <td></td>
  345. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  346. <td class="paramname"><em>proj</em>, </td>
  347. </tr>
  348. <tr>
  349. <td class="paramkey"></td>
  350. <td></td>
  351. <td class="paramtype">vec&lt; 4, U, Q &gt; const &amp;&#160;</td>
  352. <td class="paramname"><em>viewport</em>&#160;</td>
  353. </tr>
  354. <tr>
  355. <td></td>
  356. <td>)</td>
  357. <td></td><td></td>
  358. </tr>
  359. </table>
  360. </div><div class="memdoc">
  361. <p>Map the specified window coordinates (win.x, win.y, win.z) into object coordinates using default near and far clip planes definition. </p>
  362. <p>To change default near and far clip planes definition use GLM_FORCE_DEPTH_ZERO_TO_ONE.</p>
  363. <dl class="params"><dt>Parameters</dt><dd>
  364. <table class="params">
  365. <tr><td class="paramname">win</td><td>Specify the window coordinates to be mapped. </td></tr>
  366. <tr><td class="paramname">model</td><td>Specifies the modelview matrix </td></tr>
  367. <tr><td class="paramname">proj</td><td>Specifies the projection matrix </td></tr>
  368. <tr><td class="paramname">viewport</td><td>Specifies the viewport </td></tr>
  369. </table>
  370. </dd>
  371. </dl>
  372. <dl class="section return"><dt>Returns</dt><dd>Returns the computed object coordinates. </dd></dl>
  373. <dl class="tparams"><dt>Template Parameters</dt><dd>
  374. <table class="tparams">
  375. <tr><td class="paramname">T</td><td>Native type used for the computation. Currently supported: half (not recommended), float or double. </td></tr>
  376. <tr><td class="paramname">U</td><td>Currently supported: Floating-point types and integer types.</td></tr>
  377. </table>
  378. </dd>
  379. </dl>
  380. <dl class="section see"><dt>See also</dt><dd><a href="https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluUnProject.xml">gluUnProject man page</a> </dd></dl>
  381. </div>
  382. </div>
  383. <a id="gae089ba9fc150ff69c252a20e508857b5"></a>
  384. <h2 class="memtitle"><span class="permalink"><a href="#gae089ba9fc150ff69c252a20e508857b5">&#9670;&nbsp;</a></span>unProjectNO()</h2>
  385. <div class="memitem">
  386. <div class="memproto">
  387. <table class="memname">
  388. <tr>
  389. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::unProjectNO </td>
  390. <td>(</td>
  391. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  392. <td class="paramname"><em>win</em>, </td>
  393. </tr>
  394. <tr>
  395. <td class="paramkey"></td>
  396. <td></td>
  397. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  398. <td class="paramname"><em>model</em>, </td>
  399. </tr>
  400. <tr>
  401. <td class="paramkey"></td>
  402. <td></td>
  403. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  404. <td class="paramname"><em>proj</em>, </td>
  405. </tr>
  406. <tr>
  407. <td class="paramkey"></td>
  408. <td></td>
  409. <td class="paramtype">vec&lt; 4, U, Q &gt; const &amp;&#160;</td>
  410. <td class="paramname"><em>viewport</em>&#160;</td>
  411. </tr>
  412. <tr>
  413. <td></td>
  414. <td>)</td>
  415. <td></td><td></td>
  416. </tr>
  417. </table>
  418. </div><div class="memdoc">
  419. <p>Map the specified window coordinates (win.x, win.y, win.z) into object coordinates. </p>
  420. <p>The near and far clip planes correspond to z normalized device coordinates of -1 and +1 respectively. (OpenGL clip volume definition)</p>
  421. <dl class="params"><dt>Parameters</dt><dd>
  422. <table class="params">
  423. <tr><td class="paramname">win</td><td>Specify the window coordinates to be mapped. </td></tr>
  424. <tr><td class="paramname">model</td><td>Specifies the modelview matrix </td></tr>
  425. <tr><td class="paramname">proj</td><td>Specifies the projection matrix </td></tr>
  426. <tr><td class="paramname">viewport</td><td>Specifies the viewport </td></tr>
  427. </table>
  428. </dd>
  429. </dl>
  430. <dl class="section return"><dt>Returns</dt><dd>Returns the computed object coordinates. </dd></dl>
  431. <dl class="tparams"><dt>Template Parameters</dt><dd>
  432. <table class="tparams">
  433. <tr><td class="paramname">T</td><td>Native type used for the computation. Currently supported: half (not recommended), float or double. </td></tr>
  434. <tr><td class="paramname">U</td><td>Currently supported: Floating-point types and integer types.</td></tr>
  435. </table>
  436. </dd>
  437. </dl>
  438. <dl class="section see"><dt>See also</dt><dd><a href="https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluUnProject.xml">gluUnProject man page</a> </dd></dl>
  439. </div>
  440. </div>
  441. <a id="gade5136413ce530f8e606124d570fba32"></a>
  442. <h2 class="memtitle"><span class="permalink"><a href="#gade5136413ce530f8e606124d570fba32">&#9670;&nbsp;</a></span>unProjectZO()</h2>
  443. <div class="memitem">
  444. <div class="memproto">
  445. <table class="memname">
  446. <tr>
  447. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::unProjectZO </td>
  448. <td>(</td>
  449. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  450. <td class="paramname"><em>win</em>, </td>
  451. </tr>
  452. <tr>
  453. <td class="paramkey"></td>
  454. <td></td>
  455. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  456. <td class="paramname"><em>model</em>, </td>
  457. </tr>
  458. <tr>
  459. <td class="paramkey"></td>
  460. <td></td>
  461. <td class="paramtype">mat&lt; 4, 4, T, Q &gt; const &amp;&#160;</td>
  462. <td class="paramname"><em>proj</em>, </td>
  463. </tr>
  464. <tr>
  465. <td class="paramkey"></td>
  466. <td></td>
  467. <td class="paramtype">vec&lt; 4, U, Q &gt; const &amp;&#160;</td>
  468. <td class="paramname"><em>viewport</em>&#160;</td>
  469. </tr>
  470. <tr>
  471. <td></td>
  472. <td>)</td>
  473. <td></td><td></td>
  474. </tr>
  475. </table>
  476. </div><div class="memdoc">
  477. <p>Map the specified window coordinates (win.x, win.y, win.z) into object coordinates. </p>
  478. <p>The near and far clip planes correspond to z normalized device coordinates of 0 and +1 respectively. (Direct3D clip volume definition)</p>
  479. <dl class="params"><dt>Parameters</dt><dd>
  480. <table class="params">
  481. <tr><td class="paramname">win</td><td>Specify the window coordinates to be mapped. </td></tr>
  482. <tr><td class="paramname">model</td><td>Specifies the modelview matrix </td></tr>
  483. <tr><td class="paramname">proj</td><td>Specifies the projection matrix </td></tr>
  484. <tr><td class="paramname">viewport</td><td>Specifies the viewport </td></tr>
  485. </table>
  486. </dd>
  487. </dl>
  488. <dl class="section return"><dt>Returns</dt><dd>Returns the computed object coordinates. </dd></dl>
  489. <dl class="tparams"><dt>Template Parameters</dt><dd>
  490. <table class="tparams">
  491. <tr><td class="paramname">T</td><td>Native type used for the computation. Currently supported: half (not recommended), float or double. </td></tr>
  492. <tr><td class="paramname">U</td><td>Currently supported: Floating-point types and integer types.</td></tr>
  493. </table>
  494. </dd>
  495. </dl>
  496. <dl class="section see"><dt>See also</dt><dd><a href="https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/gluUnProject.xml">gluUnProject man page</a> </dd></dl>
  497. </div>
  498. </div>
  499. </div><!-- contents -->
  500. <!-- start footer part -->
  501. <hr class="footer"/><address class="footer"><small>
  502. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  503. <img class="footer" src="doxygen.png" alt="doxygen"/>
  504. </a> 1.8.14
  505. </small></address>
  506. </body>
  507. </html>