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.

2088 lines
130 KiB

5 years ago
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <meta name="generator" content="Doxygen 1.8.14"/>
  7. <meta name="viewport" content="width=device-width, initial-scale=1"/>
  8. <title>0.9.9 API documenation: GLM_GTC_packing</title>
  9. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  10. <script type="text/javascript" src="jquery.js"></script>
  11. <script type="text/javascript" src="dynsections.js"></script>
  12. <link href="search/search.css" rel="stylesheet" type="text/css"/>
  13. <script type="text/javascript" src="search/searchdata.js"></script>
  14. <script type="text/javascript" src="search/search.js"></script>
  15. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  16. </head>
  17. <body>
  18. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  19. <div id="titlearea">
  20. <table cellspacing="0" cellpadding="0">
  21. <tbody>
  22. <tr style="height: 56px;">
  23. <td id="projectlogo"><img alt="Logo" src="logo-mini.png"/></td>
  24. <td id="projectalign" style="padding-left: 0.5em;">
  25. <div id="projectname">0.9.9 API documenation
  26. </div>
  27. </td>
  28. </tr>
  29. </tbody>
  30. </table>
  31. </div>
  32. <!-- end header part -->
  33. <!-- Generated by Doxygen 1.8.14 -->
  34. <script type="text/javascript">
  35. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  36. var searchBox = new SearchBox("searchBox", "search",false,'Search');
  37. /* @license-end */
  38. </script>
  39. <script type="text/javascript" src="menudata.js"></script>
  40. <script type="text/javascript" src="menu.js"></script>
  41. <script type="text/javascript">
  42. /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  43. $(function() {
  44. initMenu('',true,false,'search.php','Search');
  45. $(document).ready(function() { init_search(); });
  46. });
  47. /* @license-end */</script>
  48. <div id="main-nav"></div>
  49. </div><!-- top -->
  50. <!-- window showing the filter options -->
  51. <div id="MSearchSelectWindow"
  52. onmouseover="return searchBox.OnSearchSelectShow()"
  53. onmouseout="return searchBox.OnSearchSelectHide()"
  54. onkeydown="return searchBox.OnSearchSelectKey(event)">
  55. </div>
  56. <!-- iframe showing the search results (closed by default) -->
  57. <div id="MSearchResultsWindow">
  58. <iframe src="javascript:void(0)" frameborder="0"
  59. name="MSearchResults" id="MSearchResults">
  60. </iframe>
  61. </div>
  62. <div class="header">
  63. <div class="summary">
  64. <a href="#func-members">Functions</a> </div>
  65. <div class="headertitle">
  66. <div class="title">GLM_GTC_packing<div class="ingroups"><a class="el" href="a00704.html">Recommended extensions</a></div></div> </div>
  67. </div><!--header-->
  68. <div class="contents">
  69. <table class="memberdecls">
  70. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  71. Functions</h2></td></tr>
  72. <tr class="memitem:ga4944ad465ff950e926d49621f916c78d"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga4944ad465ff950e926d49621f916c78d">packF2x11_1x10</a> (<a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a> const &amp;v)</td></tr>
  73. <tr class="separator:ga4944ad465ff950e926d49621f916c78d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  74. <tr class="memitem:ga3f648fc205467792dc6d8c59c748f8a6"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga3f648fc205467792dc6d8c59c748f8a6">packF3x9_E1x5</a> (<a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a> const &amp;v)</td></tr>
  75. <tr class="separator:ga3f648fc205467792dc6d8c59c748f8a6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  76. <tr class="memitem:ga2d8bbce673ebc04831c1fb05c47f5251"><td class="memTemplParams" colspan="2">template&lt;length_t L, qualifier Q&gt; </td></tr>
  77. <tr class="memitem:ga2d8bbce673ebc04831c1fb05c47f5251"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00716.html#ga2d8bbce673ebc04831c1fb05c47f5251">packHalf</a> (vec&lt; L, float, Q &gt; const &amp;v)</td></tr>
  78. <tr class="separator:ga2d8bbce673ebc04831c1fb05c47f5251"><td class="memSeparator" colspan="2">&#160;</td></tr>
  79. <tr class="memitem:ga43f2093b6ff192a79058ff7834fc3528"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga43f2093b6ff192a79058ff7834fc3528">packHalf1x16</a> (float v)</td></tr>
  80. <tr class="separator:ga43f2093b6ff192a79058ff7834fc3528"><td class="memSeparator" colspan="2">&#160;</td></tr>
  81. <tr class="memitem:gafe2f7b39caf8f5ec555e1c059ec530e6"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gafe2f7b39caf8f5ec555e1c059ec530e6">packHalf4x16</a> (<a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;v)</td></tr>
  82. <tr class="separator:gafe2f7b39caf8f5ec555e1c059ec530e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  83. <tr class="memitem:ga06ecb6afb902dba45419008171db9023"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga06ecb6afb902dba45419008171db9023">packI3x10_1x2</a> (<a class="el" href="a00699.html#ga5abb4603dae0ce58c595e66d9123d812">ivec4</a> const &amp;v)</td></tr>
  84. <tr class="separator:ga06ecb6afb902dba45419008171db9023"><td class="memSeparator" colspan="2">&#160;</td></tr>
  85. <tr class="memitem:ga3644163cf3a47bf1d4af1f4b03013a7e"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga3644163cf3a47bf1d4af1f4b03013a7e">packInt2x16</a> (<a class="el" href="a00721.html#ga2996630ba7b10535af8e065cf326f761">i16vec2</a> const &amp;v)</td></tr>
  86. <tr class="separator:ga3644163cf3a47bf1d4af1f4b03013a7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  87. <tr class="memitem:gad1e4c8a9e67d86b61a6eec86703a827a"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00682.html#gaff5189f97f9e842d9636a0f240001b2e">int64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gad1e4c8a9e67d86b61a6eec86703a827a">packInt2x32</a> (<a class="el" href="a00721.html#ga8b44026374982dcd1e52d22bac99247e">i32vec2</a> const &amp;v)</td></tr>
  88. <tr class="separator:gad1e4c8a9e67d86b61a6eec86703a827a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  89. <tr class="memitem:ga8884b1f2292414f36d59ef3be5d62914"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00682.html#ga4355d16fcf9f644c9ac84293f0b1801f">int16</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga8884b1f2292414f36d59ef3be5d62914">packInt2x8</a> (<a class="el" href="a00721.html#gad06935764d78f43f9d542c784c2212ec">i8vec2</a> const &amp;v)</td></tr>
  90. <tr class="separator:ga8884b1f2292414f36d59ef3be5d62914"><td class="memSeparator" colspan="2">&#160;</td></tr>
  91. <tr class="memitem:ga1989f093a27ae69cf9207145be48b3d7"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00682.html#gaff5189f97f9e842d9636a0f240001b2e">int64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga1989f093a27ae69cf9207145be48b3d7">packInt4x16</a> (<a class="el" href="a00721.html#ga550831bfc26d1e0101c1cb3d79938c06">i16vec4</a> const &amp;v)</td></tr>
  92. <tr class="separator:ga1989f093a27ae69cf9207145be48b3d7"><td class="memSeparator" colspan="2">&#160;</td></tr>
  93. <tr class="memitem:gaf2238401d5ce2aaade1a44ba19709072"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00682.html#ga56f1a81c92849566ae864511088eb7e8">int32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gaf2238401d5ce2aaade1a44ba19709072">packInt4x8</a> (<a class="el" href="a00721.html#ga4177a44206121dabc8c4ff1c0f544574">i8vec4</a> const &amp;v)</td></tr>
  94. <tr class="separator:gaf2238401d5ce2aaade1a44ba19709072"><td class="memSeparator" colspan="2">&#160;</td></tr>
  95. <tr class="memitem:ga0466daf4c90f76cc64b3f105ce727295"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  96. <tr class="memitem:ga0466daf4c90f76cc64b3f105ce727295"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; 4, T, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00716.html#ga0466daf4c90f76cc64b3f105ce727295">packRGBM</a> (vec&lt; 3, T, Q &gt; const &amp;rgb)</td></tr>
  97. <tr class="separator:ga0466daf4c90f76cc64b3f105ce727295"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <tr class="memitem:gaa54b5855a750d6aeb12c1c902f5939b8"><td class="memTemplParams" colspan="2">template&lt;typename intType , length_t L, typename floatType , qualifier Q&gt; </td></tr>
  99. <tr class="memitem:gaa54b5855a750d6aeb12c1c902f5939b8"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, intType, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00716.html#gaa54b5855a750d6aeb12c1c902f5939b8">packSnorm</a> (vec&lt; L, floatType, Q &gt; const &amp;v)</td></tr>
  100. <tr class="separator:gaa54b5855a750d6aeb12c1c902f5939b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  101. <tr class="memitem:gab22f8bcfdb5fc65af4701b25f143c1af"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gab22f8bcfdb5fc65af4701b25f143c1af">packSnorm1x16</a> (float v)</td></tr>
  102. <tr class="separator:gab22f8bcfdb5fc65af4701b25f143c1af"><td class="memSeparator" colspan="2">&#160;</td></tr>
  103. <tr class="memitem:gae3592e0795e62aaa1865b3a10496a7a1"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gae3592e0795e62aaa1865b3a10496a7a1">packSnorm1x8</a> (float s)</td></tr>
  104. <tr class="separator:gae3592e0795e62aaa1865b3a10496a7a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  105. <tr class="memitem:ga6be3cfb2cce3702f03e91bbeb5286d7e"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga6be3cfb2cce3702f03e91bbeb5286d7e">packSnorm2x8</a> (<a class="el" href="a00699.html#gabe65c061834f61b4f7cb6037b19006a4">vec2</a> const &amp;v)</td></tr>
  106. <tr class="separator:ga6be3cfb2cce3702f03e91bbeb5286d7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  107. <tr class="memitem:gab997545661877d2c7362a5084d3897d3"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gab997545661877d2c7362a5084d3897d3">packSnorm3x10_1x2</a> (<a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;v)</td></tr>
  108. <tr class="separator:gab997545661877d2c7362a5084d3897d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  109. <tr class="memitem:ga358943934d21da947d5bcc88c2ab7832"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga358943934d21da947d5bcc88c2ab7832">packSnorm4x16</a> (<a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;v)</td></tr>
  110. <tr class="separator:ga358943934d21da947d5bcc88c2ab7832"><td class="memSeparator" colspan="2">&#160;</td></tr>
  111. <tr class="memitem:gada3d88d59f0f458f9c51a9fd359a4bc0"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gada3d88d59f0f458f9c51a9fd359a4bc0">packU3x10_1x2</a> (<a class="el" href="a00699.html#gaa57e96bb337867329d5f43bcc27c1095">uvec4</a> const &amp;v)</td></tr>
  112. <tr class="separator:gada3d88d59f0f458f9c51a9fd359a4bc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  113. <tr class="memitem:ga5eecc9e8cbaf51ac6cf57501e670ee19"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga5eecc9e8cbaf51ac6cf57501e670ee19">packUint2x16</a> (<a class="el" href="a00721.html#ga2a78447eb9d66a114b193f4a25899c16">u16vec2</a> const &amp;v)</td></tr>
  114. <tr class="separator:ga5eecc9e8cbaf51ac6cf57501e670ee19"><td class="memSeparator" colspan="2">&#160;</td></tr>
  115. <tr class="memitem:gaa864081097b86e83d8e4a4d79c382b22"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gaa864081097b86e83d8e4a4d79c382b22">packUint2x32</a> (<a class="el" href="a00721.html#ga2a266e46ee218d0c680f12b35c500cc0">u32vec2</a> const &amp;v)</td></tr>
  116. <tr class="separator:gaa864081097b86e83d8e4a4d79c382b22"><td class="memSeparator" colspan="2">&#160;</td></tr>
  117. <tr class="memitem:ga3c3c9fb53ae7823b10fa083909357590"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga3c3c9fb53ae7823b10fa083909357590">packUint2x8</a> (<a class="el" href="a00721.html#ga518b8d948a6b4ddb72f84d5c3b7b6611">u8vec2</a> const &amp;v)</td></tr>
  118. <tr class="separator:ga3c3c9fb53ae7823b10fa083909357590"><td class="memSeparator" colspan="2">&#160;</td></tr>
  119. <tr class="memitem:ga2ceb62cca347d8ace42ee90317a3f1f9"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga2ceb62cca347d8ace42ee90317a3f1f9">packUint4x16</a> (<a class="el" href="a00721.html#ga529496d75775fb656a07993ea9af2450">u16vec4</a> const &amp;v)</td></tr>
  120. <tr class="separator:ga2ceb62cca347d8ace42ee90317a3f1f9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  121. <tr class="memitem:gaa0fe2f09aeb403cd66c1a062f58861ab"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gaa0fe2f09aeb403cd66c1a062f58861ab">packUint4x8</a> (<a class="el" href="a00721.html#ga20779a61de2fd526a17f12fe53ec46b1">u8vec4</a> const &amp;v)</td></tr>
  122. <tr class="separator:gaa0fe2f09aeb403cd66c1a062f58861ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  123. <tr class="memitem:gaccd3f27e6ba5163eb7aa9bc8ff96251a"><td class="memTemplParams" colspan="2">template&lt;typename uintType , length_t L, typename floatType , qualifier Q&gt; </td></tr>
  124. <tr class="memitem:gaccd3f27e6ba5163eb7aa9bc8ff96251a"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, uintType, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00716.html#gaccd3f27e6ba5163eb7aa9bc8ff96251a">packUnorm</a> (vec&lt; L, floatType, Q &gt; const &amp;v)</td></tr>
  125. <tr class="separator:gaccd3f27e6ba5163eb7aa9bc8ff96251a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  126. <tr class="memitem:ga9f82737bf2a44bedff1d286b76837886"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga9f82737bf2a44bedff1d286b76837886">packUnorm1x16</a> (float v)</td></tr>
  127. <tr class="separator:ga9f82737bf2a44bedff1d286b76837886"><td class="memSeparator" colspan="2">&#160;</td></tr>
  128. <tr class="memitem:ga768e0337dd6246773f14aa0a421fe9a8"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga768e0337dd6246773f14aa0a421fe9a8">packUnorm1x5_1x6_1x5</a> (<a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a> const &amp;v)</td></tr>
  129. <tr class="separator:ga768e0337dd6246773f14aa0a421fe9a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
  130. <tr class="memitem:ga4b2fa60df3460403817d28b082ee0736"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga4b2fa60df3460403817d28b082ee0736">packUnorm1x8</a> (float v)</td></tr>
  131. <tr class="separator:ga4b2fa60df3460403817d28b082ee0736"><td class="memSeparator" colspan="2">&#160;</td></tr>
  132. <tr class="memitem:ga7f9abdb50f9be1aa1c14912504a0d98d"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga7f9abdb50f9be1aa1c14912504a0d98d">packUnorm2x3_1x2</a> (<a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a> const &amp;v)</td></tr>
  133. <tr class="separator:ga7f9abdb50f9be1aa1c14912504a0d98d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  134. <tr class="memitem:gab6bbd5be3b8e6db538ecb33a7844481c"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gab6bbd5be3b8e6db538ecb33a7844481c">packUnorm2x4</a> (<a class="el" href="a00699.html#gabe65c061834f61b4f7cb6037b19006a4">vec2</a> const &amp;v)</td></tr>
  135. <tr class="separator:gab6bbd5be3b8e6db538ecb33a7844481c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  136. <tr class="memitem:ga9a666b1c688ab54100061ed06526de6e"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga9a666b1c688ab54100061ed06526de6e">packUnorm2x8</a> (<a class="el" href="a00699.html#gabe65c061834f61b4f7cb6037b19006a4">vec2</a> const &amp;v)</td></tr>
  137. <tr class="separator:ga9a666b1c688ab54100061ed06526de6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  138. <tr class="memitem:ga8a1ee625d2707c60530fb3fca2980b19"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga8a1ee625d2707c60530fb3fca2980b19">packUnorm3x10_1x2</a> (<a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;v)</td></tr>
  139. <tr class="separator:ga8a1ee625d2707c60530fb3fca2980b19"><td class="memSeparator" colspan="2">&#160;</td></tr>
  140. <tr class="memitem:gaec4112086d7fb133bea104a7c237de52"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gaec4112086d7fb133bea104a7c237de52">packUnorm3x5_1x1</a> (<a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;v)</td></tr>
  141. <tr class="separator:gaec4112086d7fb133bea104a7c237de52"><td class="memSeparator" colspan="2">&#160;</td></tr>
  142. <tr class="memitem:ga1f63c264e7ab63264e2b2a99fd393897"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga1f63c264e7ab63264e2b2a99fd393897">packUnorm4x16</a> (<a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;v)</td></tr>
  143. <tr class="separator:ga1f63c264e7ab63264e2b2a99fd393897"><td class="memSeparator" colspan="2">&#160;</td></tr>
  144. <tr class="memitem:gad3e7e3ce521513584a53aedc5f9765c1"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gad3e7e3ce521513584a53aedc5f9765c1">packUnorm4x4</a> (<a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;v)</td></tr>
  145. <tr class="separator:gad3e7e3ce521513584a53aedc5f9765c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  146. <tr class="memitem:ga2b1fd1e854705b1345e98409e0a25e50"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga2b1fd1e854705b1345e98409e0a25e50">unpackF2x11_1x10</a> (<a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> p)</td></tr>
  147. <tr class="separator:ga2b1fd1e854705b1345e98409e0a25e50"><td class="memSeparator" colspan="2">&#160;</td></tr>
  148. <tr class="memitem:gab9e60ebe3ad3eeced6a9ec6eb876d74e"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gab9e60ebe3ad3eeced6a9ec6eb876d74e">unpackF3x9_E1x5</a> (<a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> p)</td></tr>
  149. <tr class="separator:gab9e60ebe3ad3eeced6a9ec6eb876d74e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  150. <tr class="memitem:ga30d6b2f1806315bcd6047131f547d33b"><td class="memTemplParams" colspan="2">template&lt;length_t L, qualifier Q&gt; </td></tr>
  151. <tr class="memitem:ga30d6b2f1806315bcd6047131f547d33b"><td class="memTemplItemLeft" align="right" valign="top">GLM_FUNC_DECL vec&lt; L, float, Q &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00716.html#ga30d6b2f1806315bcd6047131f547d33b">unpackHalf</a> (vec&lt; L, <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>, Q &gt; const &amp;p)</td></tr>
  152. <tr class="separator:ga30d6b2f1806315bcd6047131f547d33b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  153. <tr class="memitem:gac37dedaba24b00adb4ec6e8f92c19dbf"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gac37dedaba24b00adb4ec6e8f92c19dbf">unpackHalf1x16</a> (<a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> v)</td></tr>
  154. <tr class="separator:gac37dedaba24b00adb4ec6e8f92c19dbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
  155. <tr class="memitem:ga57dfc41b2eb20b0ac00efae7d9c49dcd"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga57dfc41b2eb20b0ac00efae7d9c49dcd">unpackHalf4x16</a> (<a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a> p)</td></tr>
  156. <tr class="separator:ga57dfc41b2eb20b0ac00efae7d9c49dcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  157. <tr class="memitem:ga9a05330e5490be0908d3b117d82aff56"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#ga5abb4603dae0ce58c595e66d9123d812">ivec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga9a05330e5490be0908d3b117d82aff56">unpackI3x10_1x2</a> (<a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> p)</td></tr>
  158. <tr class="separator:ga9a05330e5490be0908d3b117d82aff56"><td class="memSeparator" colspan="2">&#160;</td></tr>
  159. <tr class="memitem:gaccde055882918a3175de82f4ca8b7d8e"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00721.html#ga2996630ba7b10535af8e065cf326f761">i16vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gaccde055882918a3175de82f4ca8b7d8e">unpackInt2x16</a> (int p)</td></tr>
  160. <tr class="separator:gaccde055882918a3175de82f4ca8b7d8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  161. <tr class="memitem:gab297c0bfd38433524791eb0584d8f08d"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00721.html#ga8b44026374982dcd1e52d22bac99247e">i32vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gab297c0bfd38433524791eb0584d8f08d">unpackInt2x32</a> (<a class="el" href="a00682.html#gaff5189f97f9e842d9636a0f240001b2e">int64</a> p)</td></tr>
  162. <tr class="separator:gab297c0bfd38433524791eb0584d8f08d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  163. <tr class="memitem:gab0c59f1e259fca9e68adb2207a6b665e"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00721.html#gad06935764d78f43f9d542c784c2212ec">i8vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gab0c59f1e259fca9e68adb2207a6b665e">unpackInt2x8</a> (<a class="el" href="a00682.html#ga4355d16fcf9f644c9ac84293f0b1801f">int16</a> p)</td></tr>
  164. <tr class="separator:gab0c59f1e259fca9e68adb2207a6b665e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  165. <tr class="memitem:ga52c154a9b232b62c22517a700cc0c78c"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00721.html#ga550831bfc26d1e0101c1cb3d79938c06">i16vec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga52c154a9b232b62c22517a700cc0c78c">unpackInt4x16</a> (<a class="el" href="a00682.html#gaff5189f97f9e842d9636a0f240001b2e">int64</a> p)</td></tr>
  166. <tr class="separator:ga52c154a9b232b62c22517a700cc0c78c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  167. <tr class="memitem:ga1cd8d2038cdd33a860801aa155a26221"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00721.html#ga4177a44206121dabc8c4ff1c0f544574">i8vec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga1cd8d2038cdd33a860801aa155a26221">unpackInt4x8</a> (<a class="el" href="a00682.html#ga56f1a81c92849566ae864511088eb7e8">int32</a> p)</td></tr>
  168. <tr class="separator:ga1cd8d2038cdd33a860801aa155a26221"><td class="memSeparator" colspan="2">&#160;</td></tr>
  169. <tr class="memitem:ga5c1ec97894b05ea21a05aea4f0204a02"><td class="memTemplParams" colspan="2">template&lt;length_t L, typename T , qualifier Q&gt; </td></tr>
  170. <tr class="memitem:ga5c1ec97894b05ea21a05aea4f0204a02"><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="a00716.html#ga5c1ec97894b05ea21a05aea4f0204a02">unpackRGBM</a> (vec&lt; 4, T, Q &gt; const &amp;rgbm)</td></tr>
  171. <tr class="separator:ga5c1ec97894b05ea21a05aea4f0204a02"><td class="memSeparator" colspan="2">&#160;</td></tr>
  172. <tr class="memitem:ga6d49b31e5c3f9df8e1f99ab62b999482"><td class="memTemplParams" colspan="2">template&lt;typename floatType , length_t L, typename intType , qualifier Q&gt; </td></tr>
  173. <tr class="memitem:ga6d49b31e5c3f9df8e1f99ab62b999482"><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="a00716.html#ga6d49b31e5c3f9df8e1f99ab62b999482">unpackSnorm</a> (vec&lt; L, intType, Q &gt; const &amp;v)</td></tr>
  174. <tr class="separator:ga6d49b31e5c3f9df8e1f99ab62b999482"><td class="memSeparator" colspan="2">&#160;</td></tr>
  175. <tr class="memitem:ga96dd15002370627a443c835ab03a766c"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga96dd15002370627a443c835ab03a766c">unpackSnorm1x16</a> (<a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> p)</td></tr>
  176. <tr class="separator:ga96dd15002370627a443c835ab03a766c"><td class="memSeparator" colspan="2">&#160;</td></tr>
  177. <tr class="memitem:ga4851ff86678aa1c7ace9d67846894285"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga4851ff86678aa1c7ace9d67846894285">unpackSnorm1x8</a> (<a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a> p)</td></tr>
  178. <tr class="separator:ga4851ff86678aa1c7ace9d67846894285"><td class="memSeparator" colspan="2">&#160;</td></tr>
  179. <tr class="memitem:ga8b128e89be449fc71336968a66bf6e1a"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#gabe65c061834f61b4f7cb6037b19006a4">vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga8b128e89be449fc71336968a66bf6e1a">unpackSnorm2x8</a> (<a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> p)</td></tr>
  180. <tr class="separator:ga8b128e89be449fc71336968a66bf6e1a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  181. <tr class="memitem:ga7a4fbf79be9740e3c57737bc2af05e5b"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga7a4fbf79be9740e3c57737bc2af05e5b">unpackSnorm3x10_1x2</a> (<a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> p)</td></tr>
  182. <tr class="separator:ga7a4fbf79be9740e3c57737bc2af05e5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  183. <tr class="memitem:gaaddf9c353528fe896106f7181219c7f4"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gaaddf9c353528fe896106f7181219c7f4">unpackSnorm4x16</a> (<a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a> p)</td></tr>
  184. <tr class="separator:gaaddf9c353528fe896106f7181219c7f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  185. <tr class="memitem:ga48df3042a7d079767f5891a1bfd8a60a"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#gaa57e96bb337867329d5f43bcc27c1095">uvec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga48df3042a7d079767f5891a1bfd8a60a">unpackU3x10_1x2</a> (<a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> p)</td></tr>
  186. <tr class="separator:ga48df3042a7d079767f5891a1bfd8a60a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  187. <tr class="memitem:ga035bbbeab7ec2b28c0529757395b645b"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00721.html#ga2a78447eb9d66a114b193f4a25899c16">u16vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga035bbbeab7ec2b28c0529757395b645b">unpackUint2x16</a> (uint p)</td></tr>
  188. <tr class="separator:ga035bbbeab7ec2b28c0529757395b645b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  189. <tr class="memitem:gaf942ff11b65e83eb5f77e68329ebc6ab"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00721.html#ga2a266e46ee218d0c680f12b35c500cc0">u32vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gaf942ff11b65e83eb5f77e68329ebc6ab">unpackUint2x32</a> (<a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a> p)</td></tr>
  190. <tr class="separator:gaf942ff11b65e83eb5f77e68329ebc6ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
  191. <tr class="memitem:gaa7600a6c71784b637a410869d2a5adcd"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00721.html#ga518b8d948a6b4ddb72f84d5c3b7b6611">u8vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gaa7600a6c71784b637a410869d2a5adcd">unpackUint2x8</a> (<a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> p)</td></tr>
  192. <tr class="separator:gaa7600a6c71784b637a410869d2a5adcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  193. <tr class="memitem:gab173834ef14cfc23a96a959f3ff4b8dc"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00721.html#ga529496d75775fb656a07993ea9af2450">u16vec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gab173834ef14cfc23a96a959f3ff4b8dc">unpackUint4x16</a> (<a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a> p)</td></tr>
  194. <tr class="separator:gab173834ef14cfc23a96a959f3ff4b8dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
  195. <tr class="memitem:gaf6dc0e4341810a641c7ed08f10e335d1"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00721.html#ga20779a61de2fd526a17f12fe53ec46b1">u8vec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gaf6dc0e4341810a641c7ed08f10e335d1">unpackUint4x8</a> (<a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> p)</td></tr>
  196. <tr class="separator:gaf6dc0e4341810a641c7ed08f10e335d1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  197. <tr class="memitem:ga3e6ac9178b59f0b1b2f7599f2183eb7f"><td class="memTemplParams" colspan="2">template&lt;typename floatType , length_t L, typename uintType , qualifier Q&gt; </td></tr>
  198. <tr class="memitem:ga3e6ac9178b59f0b1b2f7599f2183eb7f"><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="a00716.html#ga3e6ac9178b59f0b1b2f7599f2183eb7f">unpackUnorm</a> (vec&lt; L, uintType, Q &gt; const &amp;v)</td></tr>
  199. <tr class="separator:ga3e6ac9178b59f0b1b2f7599f2183eb7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  200. <tr class="memitem:ga83d34160a5cb7bcb5339823210fc7501"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga83d34160a5cb7bcb5339823210fc7501">unpackUnorm1x16</a> (<a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> p)</td></tr>
  201. <tr class="separator:ga83d34160a5cb7bcb5339823210fc7501"><td class="memSeparator" colspan="2">&#160;</td></tr>
  202. <tr class="memitem:gab3bc08ecfc0f3339be93fb2b3b56d88a"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gab3bc08ecfc0f3339be93fb2b3b56d88a">unpackUnorm1x5_1x6_1x5</a> (<a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> p)</td></tr>
  203. <tr class="separator:gab3bc08ecfc0f3339be93fb2b3b56d88a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  204. <tr class="memitem:ga1319207e30874fb4931a9ee913983ee1"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga1319207e30874fb4931a9ee913983ee1">unpackUnorm1x8</a> (<a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a> p)</td></tr>
  205. <tr class="separator:ga1319207e30874fb4931a9ee913983ee1"><td class="memSeparator" colspan="2">&#160;</td></tr>
  206. <tr class="memitem:ga6abd5a9014df3b5ce4059008d2491260"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga6abd5a9014df3b5ce4059008d2491260">unpackUnorm2x3_1x2</a> (<a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a> p)</td></tr>
  207. <tr class="separator:ga6abd5a9014df3b5ce4059008d2491260"><td class="memSeparator" colspan="2">&#160;</td></tr>
  208. <tr class="memitem:ga2e50476132fe5f27f08e273d9c70d85b"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#gabe65c061834f61b4f7cb6037b19006a4">vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga2e50476132fe5f27f08e273d9c70d85b">unpackUnorm2x4</a> (<a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a> p)</td></tr>
  209. <tr class="separator:ga2e50476132fe5f27f08e273d9c70d85b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  210. <tr class="memitem:ga637cbe3913dd95c6e7b4c99c61bd611f"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#gabe65c061834f61b4f7cb6037b19006a4">vec2</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga637cbe3913dd95c6e7b4c99c61bd611f">unpackUnorm2x8</a> (<a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> p)</td></tr>
  211. <tr class="separator:ga637cbe3913dd95c6e7b4c99c61bd611f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  212. <tr class="memitem:ga5156d3060355fe332865da2c7f78815f"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga5156d3060355fe332865da2c7f78815f">unpackUnorm3x10_1x2</a> (<a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> p)</td></tr>
  213. <tr class="separator:ga5156d3060355fe332865da2c7f78815f"><td class="memSeparator" colspan="2">&#160;</td></tr>
  214. <tr class="memitem:ga5ff95ff5bc16f396432ab67243dbae4d"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga5ff95ff5bc16f396432ab67243dbae4d">unpackUnorm3x5_1x1</a> (<a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> p)</td></tr>
  215. <tr class="separator:ga5ff95ff5bc16f396432ab67243dbae4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  216. <tr class="memitem:ga2ae149c5d2473ac1e5f347bb654a242d"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#ga2ae149c5d2473ac1e5f347bb654a242d">unpackUnorm4x16</a> (<a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a> p)</td></tr>
  217. <tr class="separator:ga2ae149c5d2473ac1e5f347bb654a242d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  218. <tr class="memitem:gac58ee89d0e224bb6df5e8bbb18843a2d"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00716.html#gac58ee89d0e224bb6df5e8bbb18843a2d">unpackUnorm4x4</a> (<a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> p)</td></tr>
  219. <tr class="separator:gac58ee89d0e224bb6df5e8bbb18843a2d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  220. </table>
  221. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  222. <p>Include &lt;<a class="el" href="a01367.html" title="GLM_GTC_packing ">glm/gtc/packing.hpp</a>&gt; to use the features of this extension. </p>
  223. <p>This extension provides a set of function to convert vertors to packed formats. </p>
  224. <h2 class="groupheader">Function Documentation</h2>
  225. <a id="ga4944ad465ff950e926d49621f916c78d"></a>
  226. <h2 class="memtitle"><span class="permalink"><a href="#ga4944ad465ff950e926d49621f916c78d">&#9670;&nbsp;</a></span>packF2x11_1x10()</h2>
  227. <div class="memitem">
  228. <div class="memproto">
  229. <table class="memname">
  230. <tr>
  231. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> glm::packF2x11_1x10 </td>
  232. <td>(</td>
  233. <td class="paramtype"><a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a> const &amp;&#160;</td>
  234. <td class="paramname"><em>v</em></td><td>)</td>
  235. <td></td>
  236. </tr>
  237. </table>
  238. </div><div class="memdoc">
  239. <p>First, converts the first two components of the normalized floating-point value v into 11-bit signless floating-point values. </p>
  240. <p>Then, converts the third component of the normalized floating-point value v into a 10-bit signless floating-point value. Then, the results are packed into the returned 32-bit unsigned integer.</p>
  241. <p>The first vector component specifies the 11 least-significant bits of the result; the last component specifies the 10 most-significant bits.</p>
  242. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  243. <dd>
  244. vec3 unpackF2x11_1x10(uint32 const&amp; p) </dd></dl>
  245. </div>
  246. </div>
  247. <a id="ga3f648fc205467792dc6d8c59c748f8a6"></a>
  248. <h2 class="memtitle"><span class="permalink"><a href="#ga3f648fc205467792dc6d8c59c748f8a6">&#9670;&nbsp;</a></span>packF3x9_E1x5()</h2>
  249. <div class="memitem">
  250. <div class="memproto">
  251. <table class="memname">
  252. <tr>
  253. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> glm::packF3x9_E1x5 </td>
  254. <td>(</td>
  255. <td class="paramtype"><a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a> const &amp;&#160;</td>
  256. <td class="paramname"><em>v</em></td><td>)</td>
  257. <td></td>
  258. </tr>
  259. </table>
  260. </div><div class="memdoc">
  261. <p>First, converts the first two components of the normalized floating-point value v into 11-bit signless floating-point values. </p>
  262. <p>Then, converts the third component of the normalized floating-point value v into a 10-bit signless floating-point value. Then, the results are packed into the returned 32-bit unsigned integer.</p>
  263. <p>The first vector component specifies the 11 least-significant bits of the result; the last component specifies the 10 most-significant bits.</p>
  264. <p>packF3x9_E1x5 allows encoding into RGBE / RGB9E5 format</p>
  265. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  266. <dd>
  267. vec3 unpackF3x9_E1x5(uint32 const&amp; p) </dd></dl>
  268. </div>
  269. </div>
  270. <a id="ga2d8bbce673ebc04831c1fb05c47f5251"></a>
  271. <h2 class="memtitle"><span class="permalink"><a href="#ga2d8bbce673ebc04831c1fb05c47f5251">&#9670;&nbsp;</a></span>packHalf()</h2>
  272. <div class="memitem">
  273. <div class="memproto">
  274. <table class="memname">
  275. <tr>
  276. <td class="memname">GLM_FUNC_DECL vec&lt;L, <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>, Q&gt; glm::packHalf </td>
  277. <td>(</td>
  278. <td class="paramtype">vec&lt; L, float, Q &gt; const &amp;&#160;</td>
  279. <td class="paramname"><em>v</em></td><td>)</td>
  280. <td></td>
  281. </tr>
  282. </table>
  283. </div><div class="memdoc">
  284. <p>Returns an unsigned integer vector obtained by converting the components of a floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification. </p>
  285. <p>The first vector component specifies the 16 least-significant bits of the result; the forth component specifies the 16 most-significant bits.</p>
  286. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  287. <dd>
  288. vec&lt;L, float, Q&gt; unpackHalf(vec&lt;L, uint16, Q&gt; const&amp; p) </dd>
  289. <dd>
  290. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  291. </div>
  292. </div>
  293. <a id="ga43f2093b6ff192a79058ff7834fc3528"></a>
  294. <h2 class="memtitle"><span class="permalink"><a href="#ga43f2093b6ff192a79058ff7834fc3528">&#9670;&nbsp;</a></span>packHalf1x16()</h2>
  295. <div class="memitem">
  296. <div class="memproto">
  297. <table class="memname">
  298. <tr>
  299. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> glm::packHalf1x16 </td>
  300. <td>(</td>
  301. <td class="paramtype">float&#160;</td>
  302. <td class="paramname"><em>v</em></td><td>)</td>
  303. <td></td>
  304. </tr>
  305. </table>
  306. </div><div class="memdoc">
  307. <p>Returns an unsigned integer obtained by converting the components of a floating-point scalar to the 16-bit floating-point representation found in the OpenGL Specification, and then packing this 16-bit value into a 16-bit unsigned integer. </p>
  308. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  309. <dd>
  310. uint32 packHalf2x16(vec2 const&amp; v) </dd>
  311. <dd>
  312. uint64 packHalf4x16(vec4 const&amp; v) </dd>
  313. <dd>
  314. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packHalf2x16.xml">GLSL packHalf2x16 man page</a> </dd>
  315. <dd>
  316. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  317. </div>
  318. </div>
  319. <a id="gafe2f7b39caf8f5ec555e1c059ec530e6"></a>
  320. <h2 class="memtitle"><span class="permalink"><a href="#gafe2f7b39caf8f5ec555e1c059ec530e6">&#9670;&nbsp;</a></span>packHalf4x16()</h2>
  321. <div class="memitem">
  322. <div class="memproto">
  323. <table class="memname">
  324. <tr>
  325. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a> glm::packHalf4x16 </td>
  326. <td>(</td>
  327. <td class="paramtype"><a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;&#160;</td>
  328. <td class="paramname"><em>v</em></td><td>)</td>
  329. <td></td>
  330. </tr>
  331. </table>
  332. </div><div class="memdoc">
  333. <p>Returns an unsigned integer obtained by converting the components of a four-component floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification, and then packing these four 16-bit values into a 64-bit unsigned integer. </p>
  334. <p>The first vector component specifies the 16 least-significant bits of the result; the forth component specifies the 16 most-significant bits.</p>
  335. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  336. <dd>
  337. uint16 packHalf1x16(float const&amp; v) </dd>
  338. <dd>
  339. uint32 packHalf2x16(vec2 const&amp; v) </dd>
  340. <dd>
  341. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packHalf2x16.xml">GLSL packHalf2x16 man page</a> </dd>
  342. <dd>
  343. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  344. </div>
  345. </div>
  346. <a id="ga06ecb6afb902dba45419008171db9023"></a>
  347. <h2 class="memtitle"><span class="permalink"><a href="#ga06ecb6afb902dba45419008171db9023">&#9670;&nbsp;</a></span>packI3x10_1x2()</h2>
  348. <div class="memitem">
  349. <div class="memproto">
  350. <table class="memname">
  351. <tr>
  352. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> glm::packI3x10_1x2 </td>
  353. <td>(</td>
  354. <td class="paramtype"><a class="el" href="a00699.html#ga5abb4603dae0ce58c595e66d9123d812">ivec4</a> const &amp;&#160;</td>
  355. <td class="paramname"><em>v</em></td><td>)</td>
  356. <td></td>
  357. </tr>
  358. </table>
  359. </div><div class="memdoc">
  360. <p>Returns an unsigned integer obtained by converting the components of a four-component signed integer vector to the 10-10-10-2-bit signed integer representation found in the OpenGL Specification, and then packing these four values into a 32-bit unsigned integer. </p>
  361. <p>The first vector component specifies the 10 least-significant bits of the result; the forth component specifies the 2 most-significant bits.</p>
  362. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  363. <dd>
  364. uint32 packI3x10_1x2(uvec4 const&amp; v) </dd>
  365. <dd>
  366. uint32 packSnorm3x10_1x2(vec4 const&amp; v) </dd>
  367. <dd>
  368. uint32 packUnorm3x10_1x2(vec4 const&amp; v) </dd>
  369. <dd>
  370. ivec4 unpackI3x10_1x2(uint32 const&amp; p) </dd></dl>
  371. </div>
  372. </div>
  373. <a id="ga3644163cf3a47bf1d4af1f4b03013a7e"></a>
  374. <h2 class="memtitle"><span class="permalink"><a href="#ga3644163cf3a47bf1d4af1f4b03013a7e">&#9670;&nbsp;</a></span>packInt2x16()</h2>
  375. <div class="memitem">
  376. <div class="memproto">
  377. <table class="memname">
  378. <tr>
  379. <td class="memname">GLM_FUNC_DECL int glm::packInt2x16 </td>
  380. <td>(</td>
  381. <td class="paramtype"><a class="el" href="a00721.html#ga2996630ba7b10535af8e065cf326f761">i16vec2</a> const &amp;&#160;</td>
  382. <td class="paramname"><em>v</em></td><td>)</td>
  383. <td></td>
  384. </tr>
  385. </table>
  386. </div><div class="memdoc">
  387. <p>Convert each component from an integer vector into a packed unsigned integer. </p>
  388. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  389. <dd>
  390. i16vec2 unpackInt2x16(int p) </dd></dl>
  391. </div>
  392. </div>
  393. <a id="gad1e4c8a9e67d86b61a6eec86703a827a"></a>
  394. <h2 class="memtitle"><span class="permalink"><a href="#gad1e4c8a9e67d86b61a6eec86703a827a">&#9670;&nbsp;</a></span>packInt2x32()</h2>
  395. <div class="memitem">
  396. <div class="memproto">
  397. <table class="memname">
  398. <tr>
  399. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00682.html#gaff5189f97f9e842d9636a0f240001b2e">int64</a> glm::packInt2x32 </td>
  400. <td>(</td>
  401. <td class="paramtype"><a class="el" href="a00721.html#ga8b44026374982dcd1e52d22bac99247e">i32vec2</a> const &amp;&#160;</td>
  402. <td class="paramname"><em>v</em></td><td>)</td>
  403. <td></td>
  404. </tr>
  405. </table>
  406. </div><div class="memdoc">
  407. <p>Convert each component from an integer vector into a packed unsigned integer. </p>
  408. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  409. <dd>
  410. i32vec2 unpackInt2x32(int p) </dd></dl>
  411. </div>
  412. </div>
  413. <a id="ga8884b1f2292414f36d59ef3be5d62914"></a>
  414. <h2 class="memtitle"><span class="permalink"><a href="#ga8884b1f2292414f36d59ef3be5d62914">&#9670;&nbsp;</a></span>packInt2x8()</h2>
  415. <div class="memitem">
  416. <div class="memproto">
  417. <table class="memname">
  418. <tr>
  419. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00682.html#ga4355d16fcf9f644c9ac84293f0b1801f">int16</a> glm::packInt2x8 </td>
  420. <td>(</td>
  421. <td class="paramtype"><a class="el" href="a00721.html#gad06935764d78f43f9d542c784c2212ec">i8vec2</a> const &amp;&#160;</td>
  422. <td class="paramname"><em>v</em></td><td>)</td>
  423. <td></td>
  424. </tr>
  425. </table>
  426. </div><div class="memdoc">
  427. <p>Convert each component from an integer vector into a packed unsigned integer. </p>
  428. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  429. <dd>
  430. i8vec2 unpackInt2x8(int16 p) </dd></dl>
  431. </div>
  432. </div>
  433. <a id="ga1989f093a27ae69cf9207145be48b3d7"></a>
  434. <h2 class="memtitle"><span class="permalink"><a href="#ga1989f093a27ae69cf9207145be48b3d7">&#9670;&nbsp;</a></span>packInt4x16()</h2>
  435. <div class="memitem">
  436. <div class="memproto">
  437. <table class="memname">
  438. <tr>
  439. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00682.html#gaff5189f97f9e842d9636a0f240001b2e">int64</a> glm::packInt4x16 </td>
  440. <td>(</td>
  441. <td class="paramtype"><a class="el" href="a00721.html#ga550831bfc26d1e0101c1cb3d79938c06">i16vec4</a> const &amp;&#160;</td>
  442. <td class="paramname"><em>v</em></td><td>)</td>
  443. <td></td>
  444. </tr>
  445. </table>
  446. </div><div class="memdoc">
  447. <p>Convert each component from an integer vector into a packed unsigned integer. </p>
  448. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  449. <dd>
  450. i16vec4 unpackInt4x16(int64 p) </dd></dl>
  451. </div>
  452. </div>
  453. <a id="gaf2238401d5ce2aaade1a44ba19709072"></a>
  454. <h2 class="memtitle"><span class="permalink"><a href="#gaf2238401d5ce2aaade1a44ba19709072">&#9670;&nbsp;</a></span>packInt4x8()</h2>
  455. <div class="memitem">
  456. <div class="memproto">
  457. <table class="memname">
  458. <tr>
  459. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00682.html#ga56f1a81c92849566ae864511088eb7e8">int32</a> glm::packInt4x8 </td>
  460. <td>(</td>
  461. <td class="paramtype"><a class="el" href="a00721.html#ga4177a44206121dabc8c4ff1c0f544574">i8vec4</a> const &amp;&#160;</td>
  462. <td class="paramname"><em>v</em></td><td>)</td>
  463. <td></td>
  464. </tr>
  465. </table>
  466. </div><div class="memdoc">
  467. <p>Convert each component from an integer vector into a packed unsigned integer. </p>
  468. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  469. <dd>
  470. i8vec4 unpackInt4x8(int32 p) </dd></dl>
  471. </div>
  472. </div>
  473. <a id="ga0466daf4c90f76cc64b3f105ce727295"></a>
  474. <h2 class="memtitle"><span class="permalink"><a href="#ga0466daf4c90f76cc64b3f105ce727295">&#9670;&nbsp;</a></span>packRGBM()</h2>
  475. <div class="memitem">
  476. <div class="memproto">
  477. <table class="memname">
  478. <tr>
  479. <td class="memname">GLM_FUNC_DECL vec&lt;4, T, Q&gt; glm::packRGBM </td>
  480. <td>(</td>
  481. <td class="paramtype">vec&lt; 3, T, Q &gt; const &amp;&#160;</td>
  482. <td class="paramname"><em>rgb</em></td><td>)</td>
  483. <td></td>
  484. </tr>
  485. </table>
  486. </div><div class="memdoc">
  487. <p>Returns an unsigned integer vector obtained by converting the components of a floating-point vector to the 16-bit floating-point representation found in the OpenGL Specification. </p>
  488. <p>The first vector component specifies the 16 least-significant bits of the result; the forth component specifies the 16 most-significant bits.</p>
  489. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  490. <dd>
  491. vec&lt;3, T, Q&gt; unpackRGBM(vec&lt;4, T, Q&gt; const&amp; p) </dd>
  492. <dd>
  493. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  494. </div>
  495. </div>
  496. <a id="gaa54b5855a750d6aeb12c1c902f5939b8"></a>
  497. <h2 class="memtitle"><span class="permalink"><a href="#gaa54b5855a750d6aeb12c1c902f5939b8">&#9670;&nbsp;</a></span>packSnorm()</h2>
  498. <div class="memitem">
  499. <div class="memproto">
  500. <table class="memname">
  501. <tr>
  502. <td class="memname">GLM_FUNC_DECL vec&lt;L, intType, Q&gt; glm::packSnorm </td>
  503. <td>(</td>
  504. <td class="paramtype">vec&lt; L, floatType, Q &gt; const &amp;&#160;</td>
  505. <td class="paramname"><em>v</em></td><td>)</td>
  506. <td></td>
  507. </tr>
  508. </table>
  509. </div><div class="memdoc">
  510. <p>Convert each component of the normalized floating-point vector into signed integer values. </p>
  511. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  512. <dd>
  513. vec&lt;L, floatType, Q&gt; unpackSnorm(vec&lt;L, intType, Q&gt; const&amp; p); </dd></dl>
  514. </div>
  515. </div>
  516. <a id="gab22f8bcfdb5fc65af4701b25f143c1af"></a>
  517. <h2 class="memtitle"><span class="permalink"><a href="#gab22f8bcfdb5fc65af4701b25f143c1af">&#9670;&nbsp;</a></span>packSnorm1x16()</h2>
  518. <div class="memitem">
  519. <div class="memproto">
  520. <table class="memname">
  521. <tr>
  522. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> glm::packSnorm1x16 </td>
  523. <td>(</td>
  524. <td class="paramtype">float&#160;</td>
  525. <td class="paramname"><em>v</em></td><td>)</td>
  526. <td></td>
  527. </tr>
  528. </table>
  529. </div><div class="memdoc">
  530. <p>First, converts the normalized floating-point value v into 16-bit integer value. </p>
  531. <p>Then, the results are packed into the returned 16-bit unsigned integer.</p>
  532. <p>The conversion to fixed point is done as follows: packSnorm1x8: round(clamp(s, -1, +1) * 32767.0)</p>
  533. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  534. <dd>
  535. uint32 packSnorm2x16(vec2 const&amp; v) </dd>
  536. <dd>
  537. uint64 packSnorm4x16(vec4 const&amp; v) </dd>
  538. <dd>
  539. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packSnorm4x8.xml">GLSL packSnorm4x8 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.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  542. </div>
  543. </div>
  544. <a id="gae3592e0795e62aaa1865b3a10496a7a1"></a>
  545. <h2 class="memtitle"><span class="permalink"><a href="#gae3592e0795e62aaa1865b3a10496a7a1">&#9670;&nbsp;</a></span>packSnorm1x8()</h2>
  546. <div class="memitem">
  547. <div class="memproto">
  548. <table class="memname">
  549. <tr>
  550. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a> glm::packSnorm1x8 </td>
  551. <td>(</td>
  552. <td class="paramtype">float&#160;</td>
  553. <td class="paramname"><em>s</em></td><td>)</td>
  554. <td></td>
  555. </tr>
  556. </table>
  557. </div><div class="memdoc">
  558. <p>First, converts the normalized floating-point value v into 8-bit integer value. </p>
  559. <p>Then, the results are packed into the returned 8-bit unsigned integer.</p>
  560. <p>The conversion to fixed point is done as follows: packSnorm1x8: round(clamp(s, -1, +1) * 127.0)</p>
  561. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  562. <dd>
  563. uint16 packSnorm2x8(vec2 const&amp; v) </dd>
  564. <dd>
  565. uint32 packSnorm4x8(vec4 const&amp; v) </dd>
  566. <dd>
  567. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packSnorm4x8.xml">GLSL packSnorm4x8 man page</a> </dd>
  568. <dd>
  569. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  570. </div>
  571. </div>
  572. <a id="ga6be3cfb2cce3702f03e91bbeb5286d7e"></a>
  573. <h2 class="memtitle"><span class="permalink"><a href="#ga6be3cfb2cce3702f03e91bbeb5286d7e">&#9670;&nbsp;</a></span>packSnorm2x8()</h2>
  574. <div class="memitem">
  575. <div class="memproto">
  576. <table class="memname">
  577. <tr>
  578. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> glm::packSnorm2x8 </td>
  579. <td>(</td>
  580. <td class="paramtype"><a class="el" href="a00699.html#gabe65c061834f61b4f7cb6037b19006a4">vec2</a> const &amp;&#160;</td>
  581. <td class="paramname"><em>v</em></td><td>)</td>
  582. <td></td>
  583. </tr>
  584. </table>
  585. </div><div class="memdoc">
  586. <p>First, converts each component of the normalized floating-point value v into 8-bit integer values. </p>
  587. <p>Then, the results are packed into the returned 16-bit unsigned integer.</p>
  588. <p>The conversion for component c of v to fixed point is done as follows: packSnorm2x8: round(clamp(c, -1, +1) * 127.0)</p>
  589. <p>The first component of the vector will be written to the least significant bits of the output; the last component will be written to the most significant bits.</p>
  590. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  591. <dd>
  592. uint8 packSnorm1x8(float const&amp; v) </dd>
  593. <dd>
  594. uint32 packSnorm4x8(vec4 const&amp; v) </dd>
  595. <dd>
  596. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packSnorm4x8.xml">GLSL packSnorm4x8 man page</a> </dd>
  597. <dd>
  598. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  599. </div>
  600. </div>
  601. <a id="gab997545661877d2c7362a5084d3897d3"></a>
  602. <h2 class="memtitle"><span class="permalink"><a href="#gab997545661877d2c7362a5084d3897d3">&#9670;&nbsp;</a></span>packSnorm3x10_1x2()</h2>
  603. <div class="memitem">
  604. <div class="memproto">
  605. <table class="memname">
  606. <tr>
  607. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> glm::packSnorm3x10_1x2 </td>
  608. <td>(</td>
  609. <td class="paramtype"><a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;&#160;</td>
  610. <td class="paramname"><em>v</em></td><td>)</td>
  611. <td></td>
  612. </tr>
  613. </table>
  614. </div><div class="memdoc">
  615. <p>First, converts the first three components of the normalized floating-point value v into 10-bit signed integer values. </p>
  616. <p>Then, converts the forth component of the normalized floating-point value v into 2-bit signed integer values. Then, the results are packed into the returned 32-bit unsigned integer.</p>
  617. <p>The conversion for component c of v to fixed point is done as follows: packSnorm3x10_1x2(xyz): round(clamp(c, -1, +1) * 511.0) packSnorm3x10_1x2(w): round(clamp(c, -1, +1) * 1.0)</p>
  618. <p>The first vector component specifies the 10 least-significant bits of the result; the forth component specifies the 2 most-significant bits.</p>
  619. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  620. <dd>
  621. vec4 unpackSnorm3x10_1x2(uint32 const&amp; p) </dd>
  622. <dd>
  623. uint32 packUnorm3x10_1x2(vec4 const&amp; v) </dd>
  624. <dd>
  625. uint32 packU3x10_1x2(uvec4 const&amp; v) </dd>
  626. <dd>
  627. uint32 packI3x10_1x2(ivec4 const&amp; v) </dd></dl>
  628. </div>
  629. </div>
  630. <a id="ga358943934d21da947d5bcc88c2ab7832"></a>
  631. <h2 class="memtitle"><span class="permalink"><a href="#ga358943934d21da947d5bcc88c2ab7832">&#9670;&nbsp;</a></span>packSnorm4x16()</h2>
  632. <div class="memitem">
  633. <div class="memproto">
  634. <table class="memname">
  635. <tr>
  636. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a> glm::packSnorm4x16 </td>
  637. <td>(</td>
  638. <td class="paramtype"><a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;&#160;</td>
  639. <td class="paramname"><em>v</em></td><td>)</td>
  640. <td></td>
  641. </tr>
  642. </table>
  643. </div><div class="memdoc">
  644. <p>First, converts each component of the normalized floating-point value v into 16-bit integer values. </p>
  645. <p>Then, the results are packed into the returned 64-bit unsigned integer.</p>
  646. <p>The conversion for component c of v to fixed point is done as follows: packSnorm2x8: round(clamp(c, -1, +1) * 32767.0)</p>
  647. <p>The first component of the vector will be written to the least significant bits of the output; the last component will be written to the most significant bits.</p>
  648. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  649. <dd>
  650. uint16 packSnorm1x16(float const&amp; v) </dd>
  651. <dd>
  652. uint32 packSnorm2x16(vec2 const&amp; v) </dd>
  653. <dd>
  654. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packSnorm4x8.xml">GLSL packSnorm4x8 man page</a> </dd>
  655. <dd>
  656. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  657. </div>
  658. </div>
  659. <a id="gada3d88d59f0f458f9c51a9fd359a4bc0"></a>
  660. <h2 class="memtitle"><span class="permalink"><a href="#gada3d88d59f0f458f9c51a9fd359a4bc0">&#9670;&nbsp;</a></span>packU3x10_1x2()</h2>
  661. <div class="memitem">
  662. <div class="memproto">
  663. <table class="memname">
  664. <tr>
  665. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> glm::packU3x10_1x2 </td>
  666. <td>(</td>
  667. <td class="paramtype"><a class="el" href="a00699.html#gaa57e96bb337867329d5f43bcc27c1095">uvec4</a> const &amp;&#160;</td>
  668. <td class="paramname"><em>v</em></td><td>)</td>
  669. <td></td>
  670. </tr>
  671. </table>
  672. </div><div class="memdoc">
  673. <p>Returns an unsigned integer obtained by converting the components of a four-component unsigned integer vector to the 10-10-10-2-bit unsigned integer representation found in the OpenGL Specification, and then packing these four values into a 32-bit unsigned integer. </p>
  674. <p>The first vector component specifies the 10 least-significant bits of the result; the forth component specifies the 2 most-significant bits.</p>
  675. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  676. <dd>
  677. uint32 packI3x10_1x2(ivec4 const&amp; v) </dd>
  678. <dd>
  679. uint32 packSnorm3x10_1x2(vec4 const&amp; v) </dd>
  680. <dd>
  681. uint32 packUnorm3x10_1x2(vec4 const&amp; v) </dd>
  682. <dd>
  683. ivec4 unpackU3x10_1x2(uint32 const&amp; p) </dd></dl>
  684. </div>
  685. </div>
  686. <a id="ga5eecc9e8cbaf51ac6cf57501e670ee19"></a>
  687. <h2 class="memtitle"><span class="permalink"><a href="#ga5eecc9e8cbaf51ac6cf57501e670ee19">&#9670;&nbsp;</a></span>packUint2x16()</h2>
  688. <div class="memitem">
  689. <div class="memproto">
  690. <table class="memname">
  691. <tr>
  692. <td class="memname">GLM_FUNC_DECL uint glm::packUint2x16 </td>
  693. <td>(</td>
  694. <td class="paramtype"><a class="el" href="a00721.html#ga2a78447eb9d66a114b193f4a25899c16">u16vec2</a> const &amp;&#160;</td>
  695. <td class="paramname"><em>v</em></td><td>)</td>
  696. <td></td>
  697. </tr>
  698. </table>
  699. </div><div class="memdoc">
  700. <p>Convert each component from an integer vector into a packed unsigned integer. </p>
  701. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  702. <dd>
  703. u16vec2 unpackUint2x16(uint p) </dd></dl>
  704. </div>
  705. </div>
  706. <a id="gaa864081097b86e83d8e4a4d79c382b22"></a>
  707. <h2 class="memtitle"><span class="permalink"><a href="#gaa864081097b86e83d8e4a4d79c382b22">&#9670;&nbsp;</a></span>packUint2x32()</h2>
  708. <div class="memitem">
  709. <div class="memproto">
  710. <table class="memname">
  711. <tr>
  712. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a> glm::packUint2x32 </td>
  713. <td>(</td>
  714. <td class="paramtype"><a class="el" href="a00721.html#ga2a266e46ee218d0c680f12b35c500cc0">u32vec2</a> const &amp;&#160;</td>
  715. <td class="paramname"><em>v</em></td><td>)</td>
  716. <td></td>
  717. </tr>
  718. </table>
  719. </div><div class="memdoc">
  720. <p>Convert each component from an integer vector into a packed unsigned integer. </p>
  721. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  722. <dd>
  723. u32vec2 unpackUint2x32(int p) </dd></dl>
  724. </div>
  725. </div>
  726. <a id="ga3c3c9fb53ae7823b10fa083909357590"></a>
  727. <h2 class="memtitle"><span class="permalink"><a href="#ga3c3c9fb53ae7823b10fa083909357590">&#9670;&nbsp;</a></span>packUint2x8()</h2>
  728. <div class="memitem">
  729. <div class="memproto">
  730. <table class="memname">
  731. <tr>
  732. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> glm::packUint2x8 </td>
  733. <td>(</td>
  734. <td class="paramtype"><a class="el" href="a00721.html#ga518b8d948a6b4ddb72f84d5c3b7b6611">u8vec2</a> const &amp;&#160;</td>
  735. <td class="paramname"><em>v</em></td><td>)</td>
  736. <td></td>
  737. </tr>
  738. </table>
  739. </div><div class="memdoc">
  740. <p>Convert each component from an integer vector into a packed unsigned integer. </p>
  741. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  742. <dd>
  743. u8vec2 unpackInt2x8(uint16 p) </dd></dl>
  744. </div>
  745. </div>
  746. <a id="ga2ceb62cca347d8ace42ee90317a3f1f9"></a>
  747. <h2 class="memtitle"><span class="permalink"><a href="#ga2ceb62cca347d8ace42ee90317a3f1f9">&#9670;&nbsp;</a></span>packUint4x16()</h2>
  748. <div class="memitem">
  749. <div class="memproto">
  750. <table class="memname">
  751. <tr>
  752. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a> glm::packUint4x16 </td>
  753. <td>(</td>
  754. <td class="paramtype"><a class="el" href="a00721.html#ga529496d75775fb656a07993ea9af2450">u16vec4</a> const &amp;&#160;</td>
  755. <td class="paramname"><em>v</em></td><td>)</td>
  756. <td></td>
  757. </tr>
  758. </table>
  759. </div><div class="memdoc">
  760. <p>Convert each component from an integer vector into a packed unsigned integer. </p>
  761. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  762. <dd>
  763. u16vec4 unpackUint4x16(uint64 p) </dd></dl>
  764. </div>
  765. </div>
  766. <a id="gaa0fe2f09aeb403cd66c1a062f58861ab"></a>
  767. <h2 class="memtitle"><span class="permalink"><a href="#gaa0fe2f09aeb403cd66c1a062f58861ab">&#9670;&nbsp;</a></span>packUint4x8()</h2>
  768. <div class="memitem">
  769. <div class="memproto">
  770. <table class="memname">
  771. <tr>
  772. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> glm::packUint4x8 </td>
  773. <td>(</td>
  774. <td class="paramtype"><a class="el" href="a00721.html#ga20779a61de2fd526a17f12fe53ec46b1">u8vec4</a> const &amp;&#160;</td>
  775. <td class="paramname"><em>v</em></td><td>)</td>
  776. <td></td>
  777. </tr>
  778. </table>
  779. </div><div class="memdoc">
  780. <p>Convert each component from an integer vector into a packed unsigned integer. </p>
  781. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  782. <dd>
  783. u8vec4 unpackUint4x8(uint32 p) </dd></dl>
  784. </div>
  785. </div>
  786. <a id="gaccd3f27e6ba5163eb7aa9bc8ff96251a"></a>
  787. <h2 class="memtitle"><span class="permalink"><a href="#gaccd3f27e6ba5163eb7aa9bc8ff96251a">&#9670;&nbsp;</a></span>packUnorm()</h2>
  788. <div class="memitem">
  789. <div class="memproto">
  790. <table class="memname">
  791. <tr>
  792. <td class="memname">GLM_FUNC_DECL vec&lt;L, uintType, Q&gt; glm::packUnorm </td>
  793. <td>(</td>
  794. <td class="paramtype">vec&lt; L, floatType, Q &gt; const &amp;&#160;</td>
  795. <td class="paramname"><em>v</em></td><td>)</td>
  796. <td></td>
  797. </tr>
  798. </table>
  799. </div><div class="memdoc">
  800. <p>Convert each component of the normalized floating-point vector into unsigned integer values. </p>
  801. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  802. <dd>
  803. vec&lt;L, floatType, Q&gt; unpackUnorm(vec&lt;L, intType, Q&gt; const&amp; p); </dd></dl>
  804. </div>
  805. </div>
  806. <a id="ga9f82737bf2a44bedff1d286b76837886"></a>
  807. <h2 class="memtitle"><span class="permalink"><a href="#ga9f82737bf2a44bedff1d286b76837886">&#9670;&nbsp;</a></span>packUnorm1x16()</h2>
  808. <div class="memitem">
  809. <div class="memproto">
  810. <table class="memname">
  811. <tr>
  812. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> glm::packUnorm1x16 </td>
  813. <td>(</td>
  814. <td class="paramtype">float&#160;</td>
  815. <td class="paramname"><em>v</em></td><td>)</td>
  816. <td></td>
  817. </tr>
  818. </table>
  819. </div><div class="memdoc">
  820. <p>First, converts the normalized floating-point value v into a 16-bit integer value. </p>
  821. <p>Then, the results are packed into the returned 16-bit unsigned integer.</p>
  822. <p>The conversion for component c of v to fixed point is done as follows: packUnorm1x16: round(clamp(c, 0, +1) * 65535.0)</p>
  823. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  824. <dd>
  825. uint16 packSnorm1x16(float const&amp; v) </dd>
  826. <dd>
  827. uint64 packSnorm4x16(vec4 const&amp; v) </dd>
  828. <dd>
  829. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packUnorm4x8.xml">GLSL packUnorm4x8 man page</a> </dd>
  830. <dd>
  831. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  832. </div>
  833. </div>
  834. <a id="ga768e0337dd6246773f14aa0a421fe9a8"></a>
  835. <h2 class="memtitle"><span class="permalink"><a href="#ga768e0337dd6246773f14aa0a421fe9a8">&#9670;&nbsp;</a></span>packUnorm1x5_1x6_1x5()</h2>
  836. <div class="memitem">
  837. <div class="memproto">
  838. <table class="memname">
  839. <tr>
  840. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> glm::packUnorm1x5_1x6_1x5 </td>
  841. <td>(</td>
  842. <td class="paramtype"><a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a> const &amp;&#160;</td>
  843. <td class="paramname"><em>v</em></td><td>)</td>
  844. <td></td>
  845. </tr>
  846. </table>
  847. </div><div class="memdoc">
  848. <p>Convert each component of the normalized floating-point vector into unsigned integer values. </p>
  849. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  850. <dd>
  851. vec3 unpackUnorm1x5_1x6_1x5(uint16 p) </dd></dl>
  852. </div>
  853. </div>
  854. <a id="ga4b2fa60df3460403817d28b082ee0736"></a>
  855. <h2 class="memtitle"><span class="permalink"><a href="#ga4b2fa60df3460403817d28b082ee0736">&#9670;&nbsp;</a></span>packUnorm1x8()</h2>
  856. <div class="memitem">
  857. <div class="memproto">
  858. <table class="memname">
  859. <tr>
  860. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a> glm::packUnorm1x8 </td>
  861. <td>(</td>
  862. <td class="paramtype">float&#160;</td>
  863. <td class="paramname"><em>v</em></td><td>)</td>
  864. <td></td>
  865. </tr>
  866. </table>
  867. </div><div class="memdoc">
  868. <p>First, converts the normalized floating-point value v into a 8-bit integer value. </p>
  869. <p>Then, the results are packed into the returned 8-bit unsigned integer.</p>
  870. <p>The conversion for component c of v to fixed point is done as follows: packUnorm1x8: round(clamp(c, 0, +1) * 255.0)</p>
  871. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  872. <dd>
  873. uint16 packUnorm2x8(vec2 const&amp; v) </dd>
  874. <dd>
  875. uint32 packUnorm4x8(vec4 const&amp; v) </dd>
  876. <dd>
  877. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packUnorm4x8.xml">GLSL packUnorm4x8 man page</a> </dd>
  878. <dd>
  879. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  880. </div>
  881. </div>
  882. <a id="ga7f9abdb50f9be1aa1c14912504a0d98d"></a>
  883. <h2 class="memtitle"><span class="permalink"><a href="#ga7f9abdb50f9be1aa1c14912504a0d98d">&#9670;&nbsp;</a></span>packUnorm2x3_1x2()</h2>
  884. <div class="memitem">
  885. <div class="memproto">
  886. <table class="memname">
  887. <tr>
  888. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a> glm::packUnorm2x3_1x2 </td>
  889. <td>(</td>
  890. <td class="paramtype"><a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a> const &amp;&#160;</td>
  891. <td class="paramname"><em>v</em></td><td>)</td>
  892. <td></td>
  893. </tr>
  894. </table>
  895. </div><div class="memdoc">
  896. <p>Convert each component of the normalized floating-point vector into unsigned integer values. </p>
  897. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  898. <dd>
  899. vec3 unpackUnorm2x3_1x2(uint8 p) </dd></dl>
  900. </div>
  901. </div>
  902. <a id="gab6bbd5be3b8e6db538ecb33a7844481c"></a>
  903. <h2 class="memtitle"><span class="permalink"><a href="#gab6bbd5be3b8e6db538ecb33a7844481c">&#9670;&nbsp;</a></span>packUnorm2x4()</h2>
  904. <div class="memitem">
  905. <div class="memproto">
  906. <table class="memname">
  907. <tr>
  908. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a> glm::packUnorm2x4 </td>
  909. <td>(</td>
  910. <td class="paramtype"><a class="el" href="a00699.html#gabe65c061834f61b4f7cb6037b19006a4">vec2</a> const &amp;&#160;</td>
  911. <td class="paramname"><em>v</em></td><td>)</td>
  912. <td></td>
  913. </tr>
  914. </table>
  915. </div><div class="memdoc">
  916. <p>Convert each component of the normalized floating-point vector into unsigned integer values. </p>
  917. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  918. <dd>
  919. vec2 unpackUnorm2x4(uint8 p) </dd></dl>
  920. </div>
  921. </div>
  922. <a id="ga9a666b1c688ab54100061ed06526de6e"></a>
  923. <h2 class="memtitle"><span class="permalink"><a href="#ga9a666b1c688ab54100061ed06526de6e">&#9670;&nbsp;</a></span>packUnorm2x8()</h2>
  924. <div class="memitem">
  925. <div class="memproto">
  926. <table class="memname">
  927. <tr>
  928. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> glm::packUnorm2x8 </td>
  929. <td>(</td>
  930. <td class="paramtype"><a class="el" href="a00699.html#gabe65c061834f61b4f7cb6037b19006a4">vec2</a> const &amp;&#160;</td>
  931. <td class="paramname"><em>v</em></td><td>)</td>
  932. <td></td>
  933. </tr>
  934. </table>
  935. </div><div class="memdoc">
  936. <p>First, converts each component of the normalized floating-point value v into 8-bit integer values. </p>
  937. <p>Then, the results are packed into the returned 16-bit unsigned integer.</p>
  938. <p>The conversion for component c of v to fixed point is done as follows: packUnorm2x8: round(clamp(c, 0, +1) * 255.0)</p>
  939. <p>The first component of the vector will be written to the least significant bits of the output; the last component will be written to the most significant bits.</p>
  940. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  941. <dd>
  942. uint8 packUnorm1x8(float const&amp; v) </dd>
  943. <dd>
  944. uint32 packUnorm4x8(vec4 const&amp; v) </dd>
  945. <dd>
  946. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packUnorm4x8.xml">GLSL packUnorm4x8 man page</a> </dd>
  947. <dd>
  948. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  949. </div>
  950. </div>
  951. <a id="ga8a1ee625d2707c60530fb3fca2980b19"></a>
  952. <h2 class="memtitle"><span class="permalink"><a href="#ga8a1ee625d2707c60530fb3fca2980b19">&#9670;&nbsp;</a></span>packUnorm3x10_1x2()</h2>
  953. <div class="memitem">
  954. <div class="memproto">
  955. <table class="memname">
  956. <tr>
  957. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a> glm::packUnorm3x10_1x2 </td>
  958. <td>(</td>
  959. <td class="paramtype"><a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;&#160;</td>
  960. <td class="paramname"><em>v</em></td><td>)</td>
  961. <td></td>
  962. </tr>
  963. </table>
  964. </div><div class="memdoc">
  965. <p>First, converts the first three components of the normalized floating-point value v into 10-bit unsigned integer values. </p>
  966. <p>Then, converts the forth component of the normalized floating-point value v into 2-bit signed uninteger values. Then, the results are packed into the returned 32-bit unsigned integer.</p>
  967. <p>The conversion for component c of v to fixed point is done as follows: packUnorm3x10_1x2(xyz): round(clamp(c, 0, +1) * 1023.0) packUnorm3x10_1x2(w): round(clamp(c, 0, +1) * 3.0)</p>
  968. <p>The first vector component specifies the 10 least-significant bits of the result; the forth component specifies the 2 most-significant bits.</p>
  969. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  970. <dd>
  971. vec4 unpackUnorm3x10_1x2(uint32 const&amp; p) </dd>
  972. <dd>
  973. uint32 packUnorm3x10_1x2(vec4 const&amp; v) </dd>
  974. <dd>
  975. uint32 packU3x10_1x2(uvec4 const&amp; v) </dd>
  976. <dd>
  977. uint32 packI3x10_1x2(ivec4 const&amp; v) </dd></dl>
  978. </div>
  979. </div>
  980. <a id="gaec4112086d7fb133bea104a7c237de52"></a>
  981. <h2 class="memtitle"><span class="permalink"><a href="#gaec4112086d7fb133bea104a7c237de52">&#9670;&nbsp;</a></span>packUnorm3x5_1x1()</h2>
  982. <div class="memitem">
  983. <div class="memproto">
  984. <table class="memname">
  985. <tr>
  986. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> glm::packUnorm3x5_1x1 </td>
  987. <td>(</td>
  988. <td class="paramtype"><a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;&#160;</td>
  989. <td class="paramname"><em>v</em></td><td>)</td>
  990. <td></td>
  991. </tr>
  992. </table>
  993. </div><div class="memdoc">
  994. <p>Convert each component of the normalized floating-point vector into unsigned integer values. </p>
  995. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  996. <dd>
  997. vec4 unpackUnorm3x5_1x1(uint16 p) </dd></dl>
  998. </div>
  999. </div>
  1000. <a id="ga1f63c264e7ab63264e2b2a99fd393897"></a>
  1001. <h2 class="memtitle"><span class="permalink"><a href="#ga1f63c264e7ab63264e2b2a99fd393897">&#9670;&nbsp;</a></span>packUnorm4x16()</h2>
  1002. <div class="memitem">
  1003. <div class="memproto">
  1004. <table class="memname">
  1005. <tr>
  1006. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a> glm::packUnorm4x16 </td>
  1007. <td>(</td>
  1008. <td class="paramtype"><a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;&#160;</td>
  1009. <td class="paramname"><em>v</em></td><td>)</td>
  1010. <td></td>
  1011. </tr>
  1012. </table>
  1013. </div><div class="memdoc">
  1014. <p>First, converts each component of the normalized floating-point value v into 16-bit integer values. </p>
  1015. <p>Then, the results are packed into the returned 64-bit unsigned integer.</p>
  1016. <p>The conversion for component c of v to fixed point is done as follows: packUnorm4x16: round(clamp(c, 0, +1) * 65535.0)</p>
  1017. <p>The first component of the vector will be written to the least significant bits of the output; the last component will be written to the most significant bits.</p>
  1018. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1019. <dd>
  1020. uint16 packUnorm1x16(float const&amp; v) </dd>
  1021. <dd>
  1022. uint32 packUnorm2x16(vec2 const&amp; v) </dd>
  1023. <dd>
  1024. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packUnorm4x8.xml">GLSL packUnorm4x8 man page</a> </dd>
  1025. <dd>
  1026. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1027. </div>
  1028. </div>
  1029. <a id="gad3e7e3ce521513584a53aedc5f9765c1"></a>
  1030. <h2 class="memtitle"><span class="permalink"><a href="#gad3e7e3ce521513584a53aedc5f9765c1">&#9670;&nbsp;</a></span>packUnorm4x4()</h2>
  1031. <div class="memitem">
  1032. <div class="memproto">
  1033. <table class="memname">
  1034. <tr>
  1035. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a> glm::packUnorm4x4 </td>
  1036. <td>(</td>
  1037. <td class="paramtype"><a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> const &amp;&#160;</td>
  1038. <td class="paramname"><em>v</em></td><td>)</td>
  1039. <td></td>
  1040. </tr>
  1041. </table>
  1042. </div><div class="memdoc">
  1043. <p>Convert each component of the normalized floating-point vector into unsigned integer values. </p>
  1044. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1045. <dd>
  1046. vec4 unpackUnorm4x4(uint16 p) </dd></dl>
  1047. </div>
  1048. </div>
  1049. <a id="ga2b1fd1e854705b1345e98409e0a25e50"></a>
  1050. <h2 class="memtitle"><span class="permalink"><a href="#ga2b1fd1e854705b1345e98409e0a25e50">&#9670;&nbsp;</a></span>unpackF2x11_1x10()</h2>
  1051. <div class="memitem">
  1052. <div class="memproto">
  1053. <table class="memname">
  1054. <tr>
  1055. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a> glm::unpackF2x11_1x10 </td>
  1056. <td>(</td>
  1057. <td class="paramtype"><a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td>
  1058. <td class="paramname"><em>p</em></td><td>)</td>
  1059. <td></td>
  1060. </tr>
  1061. </table>
  1062. </div><div class="memdoc">
  1063. <p>First, unpacks a single 32-bit unsigned integer p into two 11-bit signless floating-point values and one 10-bit signless floating-point value . </p>
  1064. <p>Then, each component is converted to a normalized floating-point value to generate the returned three-component vector.</p>
  1065. <p>The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.</p>
  1066. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1067. <dd>
  1068. uint32 packF2x11_1x10(vec3 const&amp; v) </dd></dl>
  1069. </div>
  1070. </div>
  1071. <a id="gab9e60ebe3ad3eeced6a9ec6eb876d74e"></a>
  1072. <h2 class="memtitle"><span class="permalink"><a href="#gab9e60ebe3ad3eeced6a9ec6eb876d74e">&#9670;&nbsp;</a></span>unpackF3x9_E1x5()</h2>
  1073. <div class="memitem">
  1074. <div class="memproto">
  1075. <table class="memname">
  1076. <tr>
  1077. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a> glm::unpackF3x9_E1x5 </td>
  1078. <td>(</td>
  1079. <td class="paramtype"><a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td>
  1080. <td class="paramname"><em>p</em></td><td>)</td>
  1081. <td></td>
  1082. </tr>
  1083. </table>
  1084. </div><div class="memdoc">
  1085. <p>First, unpacks a single 32-bit unsigned integer p into two 11-bit signless floating-point values and one 10-bit signless floating-point value . </p>
  1086. <p>Then, each component is converted to a normalized floating-point value to generate the returned three-component vector.</p>
  1087. <p>The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.</p>
  1088. <p>unpackF3x9_E1x5 allows decoding RGBE / RGB9E5 data</p>
  1089. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1090. <dd>
  1091. uint32 packF3x9_E1x5(vec3 const&amp; v) </dd></dl>
  1092. </div>
  1093. </div>
  1094. <a id="ga30d6b2f1806315bcd6047131f547d33b"></a>
  1095. <h2 class="memtitle"><span class="permalink"><a href="#ga30d6b2f1806315bcd6047131f547d33b">&#9670;&nbsp;</a></span>unpackHalf()</h2>
  1096. <div class="memitem">
  1097. <div class="memproto">
  1098. <table class="memname">
  1099. <tr>
  1100. <td class="memname">GLM_FUNC_DECL vec&lt;L, float, Q&gt; glm::unpackHalf </td>
  1101. <td>(</td>
  1102. <td class="paramtype">vec&lt; L, <a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>, Q &gt; const &amp;&#160;</td>
  1103. <td class="paramname"><em>p</em></td><td>)</td>
  1104. <td></td>
  1105. </tr>
  1106. </table>
  1107. </div><div class="memdoc">
  1108. <p>Returns a floating-point vector with components obtained by reinterpreting an integer vector as 16-bit floating-point numbers and converting them to 32-bit floating-point values. </p>
  1109. <p>The first component of the vector is obtained from the 16 least-significant bits of v; the forth component is obtained from the 16 most-significant bits of v.</p>
  1110. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1111. <dd>
  1112. vec&lt;L, uint16, Q&gt; packHalf(vec&lt;L, float, Q&gt; const&amp; v) </dd>
  1113. <dd>
  1114. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1115. </div>
  1116. </div>
  1117. <a id="gac37dedaba24b00adb4ec6e8f92c19dbf"></a>
  1118. <h2 class="memtitle"><span class="permalink"><a href="#gac37dedaba24b00adb4ec6e8f92c19dbf">&#9670;&nbsp;</a></span>unpackHalf1x16()</h2>
  1119. <div class="memitem">
  1120. <div class="memproto">
  1121. <table class="memname">
  1122. <tr>
  1123. <td class="memname">GLM_FUNC_DECL float glm::unpackHalf1x16 </td>
  1124. <td>(</td>
  1125. <td class="paramtype"><a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td>
  1126. <td class="paramname"><em>v</em></td><td>)</td>
  1127. <td></td>
  1128. </tr>
  1129. </table>
  1130. </div><div class="memdoc">
  1131. <p>Returns a floating-point scalar with components obtained by unpacking a 16-bit unsigned integer into a 16-bit value, interpreted as a 16-bit floating-point number according to the OpenGL Specification, and converting it to 32-bit floating-point values. </p>
  1132. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1133. <dd>
  1134. vec2 unpackHalf2x16(uint32 const&amp; v) </dd>
  1135. <dd>
  1136. vec4 unpackHalf4x16(uint64 const&amp; v) </dd>
  1137. <dd>
  1138. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackHalf2x16.xml">GLSL unpackHalf2x16 man page</a> </dd>
  1139. <dd>
  1140. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1141. </div>
  1142. </div>
  1143. <a id="ga57dfc41b2eb20b0ac00efae7d9c49dcd"></a>
  1144. <h2 class="memtitle"><span class="permalink"><a href="#ga57dfc41b2eb20b0ac00efae7d9c49dcd">&#9670;&nbsp;</a></span>unpackHalf4x16()</h2>
  1145. <div class="memitem">
  1146. <div class="memproto">
  1147. <table class="memname">
  1148. <tr>
  1149. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> glm::unpackHalf4x16 </td>
  1150. <td>(</td>
  1151. <td class="paramtype"><a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a>&#160;</td>
  1152. <td class="paramname"><em>p</em></td><td>)</td>
  1153. <td></td>
  1154. </tr>
  1155. </table>
  1156. </div><div class="memdoc">
  1157. <p>Returns a four-component floating-point vector with components obtained by unpacking a 64-bit unsigned integer into four 16-bit values, interpreting those values as 16-bit floating-point numbers according to the OpenGL Specification, and converting them to 32-bit floating-point values. </p>
  1158. <p>The first component of the vector is obtained from the 16 least-significant bits of v; the forth component is obtained from the 16 most-significant bits of v.</p>
  1159. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1160. <dd>
  1161. float unpackHalf1x16(uint16 const&amp; v) </dd>
  1162. <dd>
  1163. vec2 unpackHalf2x16(uint32 const&amp; v) </dd>
  1164. <dd>
  1165. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackHalf2x16.xml">GLSL unpackHalf2x16 man page</a> </dd>
  1166. <dd>
  1167. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1168. </div>
  1169. </div>
  1170. <a id="ga9a05330e5490be0908d3b117d82aff56"></a>
  1171. <h2 class="memtitle"><span class="permalink"><a href="#ga9a05330e5490be0908d3b117d82aff56">&#9670;&nbsp;</a></span>unpackI3x10_1x2()</h2>
  1172. <div class="memitem">
  1173. <div class="memproto">
  1174. <table class="memname">
  1175. <tr>
  1176. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#ga5abb4603dae0ce58c595e66d9123d812">ivec4</a> glm::unpackI3x10_1x2 </td>
  1177. <td>(</td>
  1178. <td class="paramtype"><a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td>
  1179. <td class="paramname"><em>p</em></td><td>)</td>
  1180. <td></td>
  1181. </tr>
  1182. </table>
  1183. </div><div class="memdoc">
  1184. <p>Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit signed integers. </p>
  1185. <p>The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.</p>
  1186. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1187. <dd>
  1188. uint32 packU3x10_1x2(uvec4 const&amp; v) </dd>
  1189. <dd>
  1190. vec4 unpackSnorm3x10_1x2(uint32 const&amp; p); </dd>
  1191. <dd>
  1192. uvec4 unpackI3x10_1x2(uint32 const&amp; p); </dd></dl>
  1193. </div>
  1194. </div>
  1195. <a id="gaccde055882918a3175de82f4ca8b7d8e"></a>
  1196. <h2 class="memtitle"><span class="permalink"><a href="#gaccde055882918a3175de82f4ca8b7d8e">&#9670;&nbsp;</a></span>unpackInt2x16()</h2>
  1197. <div class="memitem">
  1198. <div class="memproto">
  1199. <table class="memname">
  1200. <tr>
  1201. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00721.html#ga2996630ba7b10535af8e065cf326f761">i16vec2</a> glm::unpackInt2x16 </td>
  1202. <td>(</td>
  1203. <td class="paramtype">int&#160;</td>
  1204. <td class="paramname"><em>p</em></td><td>)</td>
  1205. <td></td>
  1206. </tr>
  1207. </table>
  1208. </div><div class="memdoc">
  1209. <p>Convert a packed integer into an integer vector. </p>
  1210. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1211. <dd>
  1212. int packInt2x16(i16vec2 const&amp; v) </dd></dl>
  1213. </div>
  1214. </div>
  1215. <a id="gab297c0bfd38433524791eb0584d8f08d"></a>
  1216. <h2 class="memtitle"><span class="permalink"><a href="#gab297c0bfd38433524791eb0584d8f08d">&#9670;&nbsp;</a></span>unpackInt2x32()</h2>
  1217. <div class="memitem">
  1218. <div class="memproto">
  1219. <table class="memname">
  1220. <tr>
  1221. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00721.html#ga8b44026374982dcd1e52d22bac99247e">i32vec2</a> glm::unpackInt2x32 </td>
  1222. <td>(</td>
  1223. <td class="paramtype"><a class="el" href="a00682.html#gaff5189f97f9e842d9636a0f240001b2e">int64</a>&#160;</td>
  1224. <td class="paramname"><em>p</em></td><td>)</td>
  1225. <td></td>
  1226. </tr>
  1227. </table>
  1228. </div><div class="memdoc">
  1229. <p>Convert a packed integer into an integer vector. </p>
  1230. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1231. <dd>
  1232. int packInt2x16(i32vec2 const&amp; v) </dd></dl>
  1233. </div>
  1234. </div>
  1235. <a id="gab0c59f1e259fca9e68adb2207a6b665e"></a>
  1236. <h2 class="memtitle"><span class="permalink"><a href="#gab0c59f1e259fca9e68adb2207a6b665e">&#9670;&nbsp;</a></span>unpackInt2x8()</h2>
  1237. <div class="memitem">
  1238. <div class="memproto">
  1239. <table class="memname">
  1240. <tr>
  1241. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00721.html#gad06935764d78f43f9d542c784c2212ec">i8vec2</a> glm::unpackInt2x8 </td>
  1242. <td>(</td>
  1243. <td class="paramtype"><a class="el" href="a00682.html#ga4355d16fcf9f644c9ac84293f0b1801f">int16</a>&#160;</td>
  1244. <td class="paramname"><em>p</em></td><td>)</td>
  1245. <td></td>
  1246. </tr>
  1247. </table>
  1248. </div><div class="memdoc">
  1249. <p>Convert a packed integer into an integer vector. </p>
  1250. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1251. <dd>
  1252. int16 packInt2x8(i8vec2 const&amp; v) </dd></dl>
  1253. </div>
  1254. </div>
  1255. <a id="ga52c154a9b232b62c22517a700cc0c78c"></a>
  1256. <h2 class="memtitle"><span class="permalink"><a href="#ga52c154a9b232b62c22517a700cc0c78c">&#9670;&nbsp;</a></span>unpackInt4x16()</h2>
  1257. <div class="memitem">
  1258. <div class="memproto">
  1259. <table class="memname">
  1260. <tr>
  1261. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00721.html#ga550831bfc26d1e0101c1cb3d79938c06">i16vec4</a> glm::unpackInt4x16 </td>
  1262. <td>(</td>
  1263. <td class="paramtype"><a class="el" href="a00682.html#gaff5189f97f9e842d9636a0f240001b2e">int64</a>&#160;</td>
  1264. <td class="paramname"><em>p</em></td><td>)</td>
  1265. <td></td>
  1266. </tr>
  1267. </table>
  1268. </div><div class="memdoc">
  1269. <p>Convert a packed integer into an integer vector. </p>
  1270. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1271. <dd>
  1272. int64 packInt4x16(i16vec4 const&amp; v) </dd></dl>
  1273. </div>
  1274. </div>
  1275. <a id="ga1cd8d2038cdd33a860801aa155a26221"></a>
  1276. <h2 class="memtitle"><span class="permalink"><a href="#ga1cd8d2038cdd33a860801aa155a26221">&#9670;&nbsp;</a></span>unpackInt4x8()</h2>
  1277. <div class="memitem">
  1278. <div class="memproto">
  1279. <table class="memname">
  1280. <tr>
  1281. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00721.html#ga4177a44206121dabc8c4ff1c0f544574">i8vec4</a> glm::unpackInt4x8 </td>
  1282. <td>(</td>
  1283. <td class="paramtype"><a class="el" href="a00682.html#ga56f1a81c92849566ae864511088eb7e8">int32</a>&#160;</td>
  1284. <td class="paramname"><em>p</em></td><td>)</td>
  1285. <td></td>
  1286. </tr>
  1287. </table>
  1288. </div><div class="memdoc">
  1289. <p>Convert a packed integer into an integer vector. </p>
  1290. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1291. <dd>
  1292. int32 packInt2x8(i8vec4 const&amp; v) </dd></dl>
  1293. </div>
  1294. </div>
  1295. <a id="ga5c1ec97894b05ea21a05aea4f0204a02"></a>
  1296. <h2 class="memtitle"><span class="permalink"><a href="#ga5c1ec97894b05ea21a05aea4f0204a02">&#9670;&nbsp;</a></span>unpackRGBM()</h2>
  1297. <div class="memitem">
  1298. <div class="memproto">
  1299. <table class="memname">
  1300. <tr>
  1301. <td class="memname">GLM_FUNC_DECL vec&lt;3, T, Q&gt; glm::unpackRGBM </td>
  1302. <td>(</td>
  1303. <td class="paramtype">vec&lt; 4, T, Q &gt; const &amp;&#160;</td>
  1304. <td class="paramname"><em>rgbm</em></td><td>)</td>
  1305. <td></td>
  1306. </tr>
  1307. </table>
  1308. </div><div class="memdoc">
  1309. <p>Returns a floating-point vector with components obtained by reinterpreting an integer vector as 16-bit floating-point numbers and converting them to 32-bit floating-point values. </p>
  1310. <p>The first component of the vector is obtained from the 16 least-significant bits of v; the forth component is obtained from the 16 most-significant bits of v.</p>
  1311. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1312. <dd>
  1313. vec&lt;4, T, Q&gt; packRGBM(vec&lt;3, float, Q&gt; const&amp; v) </dd>
  1314. <dd>
  1315. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1316. </div>
  1317. </div>
  1318. <a id="ga6d49b31e5c3f9df8e1f99ab62b999482"></a>
  1319. <h2 class="memtitle"><span class="permalink"><a href="#ga6d49b31e5c3f9df8e1f99ab62b999482">&#9670;&nbsp;</a></span>unpackSnorm()</h2>
  1320. <div class="memitem">
  1321. <div class="memproto">
  1322. <table class="memname">
  1323. <tr>
  1324. <td class="memname">GLM_FUNC_DECL vec&lt;L, floatType, Q&gt; glm::unpackSnorm </td>
  1325. <td>(</td>
  1326. <td class="paramtype">vec&lt; L, intType, Q &gt; const &amp;&#160;</td>
  1327. <td class="paramname"><em>v</em></td><td>)</td>
  1328. <td></td>
  1329. </tr>
  1330. </table>
  1331. </div><div class="memdoc">
  1332. <p>Convert a packed integer to a normalized floating-point vector. </p>
  1333. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1334. <dd>
  1335. vec&lt;L, intType, Q&gt; packSnorm(vec&lt;L, floatType, Q&gt; const&amp; v) </dd></dl>
  1336. </div>
  1337. </div>
  1338. <a id="ga96dd15002370627a443c835ab03a766c"></a>
  1339. <h2 class="memtitle"><span class="permalink"><a href="#ga96dd15002370627a443c835ab03a766c">&#9670;&nbsp;</a></span>unpackSnorm1x16()</h2>
  1340. <div class="memitem">
  1341. <div class="memproto">
  1342. <table class="memname">
  1343. <tr>
  1344. <td class="memname">GLM_FUNC_DECL float glm::unpackSnorm1x16 </td>
  1345. <td>(</td>
  1346. <td class="paramtype"><a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td>
  1347. <td class="paramname"><em>p</em></td><td>)</td>
  1348. <td></td>
  1349. </tr>
  1350. </table>
  1351. </div><div class="memdoc">
  1352. <p>First, unpacks a single 16-bit unsigned integer p into a single 16-bit signed integers. </p>
  1353. <p>Then, each component is converted to a normalized floating-point value to generate the returned scalar.</p>
  1354. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm1x16: clamp(f / 32767.0, -1, +1)</p>
  1355. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1356. <dd>
  1357. vec2 unpackSnorm2x16(uint32 p) </dd>
  1358. <dd>
  1359. vec4 unpackSnorm4x16(uint64 p) </dd>
  1360. <dd>
  1361. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackSnorm1x16.xml">GLSL unpackSnorm4x8 man page</a> </dd>
  1362. <dd>
  1363. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1364. </div>
  1365. </div>
  1366. <a id="ga4851ff86678aa1c7ace9d67846894285"></a>
  1367. <h2 class="memtitle"><span class="permalink"><a href="#ga4851ff86678aa1c7ace9d67846894285">&#9670;&nbsp;</a></span>unpackSnorm1x8()</h2>
  1368. <div class="memitem">
  1369. <div class="memproto">
  1370. <table class="memname">
  1371. <tr>
  1372. <td class="memname">GLM_FUNC_DECL float glm::unpackSnorm1x8 </td>
  1373. <td>(</td>
  1374. <td class="paramtype"><a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a>&#160;</td>
  1375. <td class="paramname"><em>p</em></td><td>)</td>
  1376. <td></td>
  1377. </tr>
  1378. </table>
  1379. </div><div class="memdoc">
  1380. <p>First, unpacks a single 8-bit unsigned integer p into a single 8-bit signed integers. </p>
  1381. <p>Then, the value is converted to a normalized floating-point value to generate the returned scalar.</p>
  1382. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm1x8: clamp(f / 127.0, -1, +1)</p>
  1383. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1384. <dd>
  1385. vec2 unpackSnorm2x8(uint16 p) </dd>
  1386. <dd>
  1387. vec4 unpackSnorm4x8(uint32 p) </dd>
  1388. <dd>
  1389. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackSnorm4x8.xml">GLSL unpackSnorm4x8 man page</a> </dd>
  1390. <dd>
  1391. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1392. </div>
  1393. </div>
  1394. <a id="ga8b128e89be449fc71336968a66bf6e1a"></a>
  1395. <h2 class="memtitle"><span class="permalink"><a href="#ga8b128e89be449fc71336968a66bf6e1a">&#9670;&nbsp;</a></span>unpackSnorm2x8()</h2>
  1396. <div class="memitem">
  1397. <div class="memproto">
  1398. <table class="memname">
  1399. <tr>
  1400. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#gabe65c061834f61b4f7cb6037b19006a4">vec2</a> glm::unpackSnorm2x8 </td>
  1401. <td>(</td>
  1402. <td class="paramtype"><a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td>
  1403. <td class="paramname"><em>p</em></td><td>)</td>
  1404. <td></td>
  1405. </tr>
  1406. </table>
  1407. </div><div class="memdoc">
  1408. <p>First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit signed integers. </p>
  1409. <p>Then, each component is converted to a normalized floating-point value to generate the returned two-component vector.</p>
  1410. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm2x8: clamp(f / 127.0, -1, +1)</p>
  1411. <p>The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.</p>
  1412. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1413. <dd>
  1414. float unpackSnorm1x8(uint8 p) </dd>
  1415. <dd>
  1416. vec4 unpackSnorm4x8(uint32 p) </dd>
  1417. <dd>
  1418. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackSnorm4x8.xml">GLSL unpackSnorm4x8 man page</a> </dd>
  1419. <dd>
  1420. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1421. </div>
  1422. </div>
  1423. <a id="ga7a4fbf79be9740e3c57737bc2af05e5b"></a>
  1424. <h2 class="memtitle"><span class="permalink"><a href="#ga7a4fbf79be9740e3c57737bc2af05e5b">&#9670;&nbsp;</a></span>unpackSnorm3x10_1x2()</h2>
  1425. <div class="memitem">
  1426. <div class="memproto">
  1427. <table class="memname">
  1428. <tr>
  1429. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> glm::unpackSnorm3x10_1x2 </td>
  1430. <td>(</td>
  1431. <td class="paramtype"><a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td>
  1432. <td class="paramname"><em>p</em></td><td>)</td>
  1433. <td></td>
  1434. </tr>
  1435. </table>
  1436. </div><div class="memdoc">
  1437. <p>First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. </p>
  1438. <p>Then, each component is converted to a normalized floating-point value to generate the returned four-component vector.</p>
  1439. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm3x10_1x2(xyz): clamp(f / 511.0, -1, +1) unpackSnorm3x10_1x2(w): clamp(f / 511.0, -1, +1)</p>
  1440. <p>The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.</p>
  1441. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1442. <dd>
  1443. uint32 packSnorm3x10_1x2(vec4 const&amp; v) </dd>
  1444. <dd>
  1445. vec4 unpackUnorm3x10_1x2(uint32 const&amp; p)) </dd>
  1446. <dd>
  1447. uvec4 unpackI3x10_1x2(uint32 const&amp; p) </dd>
  1448. <dd>
  1449. uvec4 unpackU3x10_1x2(uint32 const&amp; p) </dd></dl>
  1450. </div>
  1451. </div>
  1452. <a id="gaaddf9c353528fe896106f7181219c7f4"></a>
  1453. <h2 class="memtitle"><span class="permalink"><a href="#gaaddf9c353528fe896106f7181219c7f4">&#9670;&nbsp;</a></span>unpackSnorm4x16()</h2>
  1454. <div class="memitem">
  1455. <div class="memproto">
  1456. <table class="memname">
  1457. <tr>
  1458. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> glm::unpackSnorm4x16 </td>
  1459. <td>(</td>
  1460. <td class="paramtype"><a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a>&#160;</td>
  1461. <td class="paramname"><em>p</em></td><td>)</td>
  1462. <td></td>
  1463. </tr>
  1464. </table>
  1465. </div><div class="memdoc">
  1466. <p>First, unpacks a single 64-bit unsigned integer p into four 16-bit signed integers. </p>
  1467. <p>Then, each component is converted to a normalized floating-point value to generate the returned four-component vector.</p>
  1468. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm4x16: clamp(f / 32767.0, -1, +1)</p>
  1469. <p>The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.</p>
  1470. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1471. <dd>
  1472. float unpackSnorm1x16(uint16 p) </dd>
  1473. <dd>
  1474. vec2 unpackSnorm2x16(uint32 p) </dd>
  1475. <dd>
  1476. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackSnorm2x16.xml">GLSL unpackSnorm4x8 man page</a> </dd>
  1477. <dd>
  1478. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1479. </div>
  1480. </div>
  1481. <a id="ga48df3042a7d079767f5891a1bfd8a60a"></a>
  1482. <h2 class="memtitle"><span class="permalink"><a href="#ga48df3042a7d079767f5891a1bfd8a60a">&#9670;&nbsp;</a></span>unpackU3x10_1x2()</h2>
  1483. <div class="memitem">
  1484. <div class="memproto">
  1485. <table class="memname">
  1486. <tr>
  1487. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#gaa57e96bb337867329d5f43bcc27c1095">uvec4</a> glm::unpackU3x10_1x2 </td>
  1488. <td>(</td>
  1489. <td class="paramtype"><a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td>
  1490. <td class="paramname"><em>p</em></td><td>)</td>
  1491. <td></td>
  1492. </tr>
  1493. </table>
  1494. </div><div class="memdoc">
  1495. <p>Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit unsigned integers. </p>
  1496. <p>The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.</p>
  1497. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1498. <dd>
  1499. uint32 packU3x10_1x2(uvec4 const&amp; v) </dd>
  1500. <dd>
  1501. vec4 unpackSnorm3x10_1x2(uint32 const&amp; p); </dd>
  1502. <dd>
  1503. uvec4 unpackI3x10_1x2(uint32 const&amp; p); </dd></dl>
  1504. </div>
  1505. </div>
  1506. <a id="ga035bbbeab7ec2b28c0529757395b645b"></a>
  1507. <h2 class="memtitle"><span class="permalink"><a href="#ga035bbbeab7ec2b28c0529757395b645b">&#9670;&nbsp;</a></span>unpackUint2x16()</h2>
  1508. <div class="memitem">
  1509. <div class="memproto">
  1510. <table class="memname">
  1511. <tr>
  1512. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00721.html#ga2a78447eb9d66a114b193f4a25899c16">u16vec2</a> glm::unpackUint2x16 </td>
  1513. <td>(</td>
  1514. <td class="paramtype">uint&#160;</td>
  1515. <td class="paramname"><em>p</em></td><td>)</td>
  1516. <td></td>
  1517. </tr>
  1518. </table>
  1519. </div><div class="memdoc">
  1520. <p>Convert a packed integer into an integer vector. </p>
  1521. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1522. <dd>
  1523. uint packUint2x16(u16vec2 const&amp; v) </dd></dl>
  1524. </div>
  1525. </div>
  1526. <a id="gaf942ff11b65e83eb5f77e68329ebc6ab"></a>
  1527. <h2 class="memtitle"><span class="permalink"><a href="#gaf942ff11b65e83eb5f77e68329ebc6ab">&#9670;&nbsp;</a></span>unpackUint2x32()</h2>
  1528. <div class="memitem">
  1529. <div class="memproto">
  1530. <table class="memname">
  1531. <tr>
  1532. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00721.html#ga2a266e46ee218d0c680f12b35c500cc0">u32vec2</a> glm::unpackUint2x32 </td>
  1533. <td>(</td>
  1534. <td class="paramtype"><a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a>&#160;</td>
  1535. <td class="paramname"><em>p</em></td><td>)</td>
  1536. <td></td>
  1537. </tr>
  1538. </table>
  1539. </div><div class="memdoc">
  1540. <p>Convert a packed integer into an integer vector. </p>
  1541. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1542. <dd>
  1543. int packUint2x16(u32vec2 const&amp; v) </dd></dl>
  1544. </div>
  1545. </div>
  1546. <a id="gaa7600a6c71784b637a410869d2a5adcd"></a>
  1547. <h2 class="memtitle"><span class="permalink"><a href="#gaa7600a6c71784b637a410869d2a5adcd">&#9670;&nbsp;</a></span>unpackUint2x8()</h2>
  1548. <div class="memitem">
  1549. <div class="memproto">
  1550. <table class="memname">
  1551. <tr>
  1552. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00721.html#ga518b8d948a6b4ddb72f84d5c3b7b6611">u8vec2</a> glm::unpackUint2x8 </td>
  1553. <td>(</td>
  1554. <td class="paramtype"><a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td>
  1555. <td class="paramname"><em>p</em></td><td>)</td>
  1556. <td></td>
  1557. </tr>
  1558. </table>
  1559. </div><div class="memdoc">
  1560. <p>Convert a packed integer into an integer vector. </p>
  1561. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1562. <dd>
  1563. uint16 packInt2x8(u8vec2 const&amp; v) </dd></dl>
  1564. </div>
  1565. </div>
  1566. <a id="gab173834ef14cfc23a96a959f3ff4b8dc"></a>
  1567. <h2 class="memtitle"><span class="permalink"><a href="#gab173834ef14cfc23a96a959f3ff4b8dc">&#9670;&nbsp;</a></span>unpackUint4x16()</h2>
  1568. <div class="memitem">
  1569. <div class="memproto">
  1570. <table class="memname">
  1571. <tr>
  1572. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00721.html#ga529496d75775fb656a07993ea9af2450">u16vec4</a> glm::unpackUint4x16 </td>
  1573. <td>(</td>
  1574. <td class="paramtype"><a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a>&#160;</td>
  1575. <td class="paramname"><em>p</em></td><td>)</td>
  1576. <td></td>
  1577. </tr>
  1578. </table>
  1579. </div><div class="memdoc">
  1580. <p>Convert a packed integer into an integer vector. </p>
  1581. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1582. <dd>
  1583. uint64 packUint4x16(u16vec4 const&amp; v) </dd></dl>
  1584. </div>
  1585. </div>
  1586. <a id="gaf6dc0e4341810a641c7ed08f10e335d1"></a>
  1587. <h2 class="memtitle"><span class="permalink"><a href="#gaf6dc0e4341810a641c7ed08f10e335d1">&#9670;&nbsp;</a></span>unpackUint4x8()</h2>
  1588. <div class="memitem">
  1589. <div class="memproto">
  1590. <table class="memname">
  1591. <tr>
  1592. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00721.html#ga20779a61de2fd526a17f12fe53ec46b1">u8vec4</a> glm::unpackUint4x8 </td>
  1593. <td>(</td>
  1594. <td class="paramtype"><a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td>
  1595. <td class="paramname"><em>p</em></td><td>)</td>
  1596. <td></td>
  1597. </tr>
  1598. </table>
  1599. </div><div class="memdoc">
  1600. <p>Convert a packed integer into an integer vector. </p>
  1601. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1602. <dd>
  1603. uint32 packUint4x8(u8vec2 const&amp; v) </dd></dl>
  1604. </div>
  1605. </div>
  1606. <a id="ga3e6ac9178b59f0b1b2f7599f2183eb7f"></a>
  1607. <h2 class="memtitle"><span class="permalink"><a href="#ga3e6ac9178b59f0b1b2f7599f2183eb7f">&#9670;&nbsp;</a></span>unpackUnorm()</h2>
  1608. <div class="memitem">
  1609. <div class="memproto">
  1610. <table class="memname">
  1611. <tr>
  1612. <td class="memname">GLM_FUNC_DECL vec&lt;L, floatType, Q&gt; glm::unpackUnorm </td>
  1613. <td>(</td>
  1614. <td class="paramtype">vec&lt; L, uintType, Q &gt; const &amp;&#160;</td>
  1615. <td class="paramname"><em>v</em></td><td>)</td>
  1616. <td></td>
  1617. </tr>
  1618. </table>
  1619. </div><div class="memdoc">
  1620. <p>Convert a packed integer to a normalized floating-point vector. </p>
  1621. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1622. <dd>
  1623. vec&lt;L, intType, Q&gt; packUnorm(vec&lt;L, floatType, Q&gt; const&amp; v) </dd></dl>
  1624. </div>
  1625. </div>
  1626. <a id="ga83d34160a5cb7bcb5339823210fc7501"></a>
  1627. <h2 class="memtitle"><span class="permalink"><a href="#ga83d34160a5cb7bcb5339823210fc7501">&#9670;&nbsp;</a></span>unpackUnorm1x16()</h2>
  1628. <div class="memitem">
  1629. <div class="memproto">
  1630. <table class="memname">
  1631. <tr>
  1632. <td class="memname">GLM_FUNC_DECL float glm::unpackUnorm1x16 </td>
  1633. <td>(</td>
  1634. <td class="paramtype"><a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td>
  1635. <td class="paramname"><em>p</em></td><td>)</td>
  1636. <td></td>
  1637. </tr>
  1638. </table>
  1639. </div><div class="memdoc">
  1640. <p>First, unpacks a single 16-bit unsigned integer p into a of 16-bit unsigned integers. </p>
  1641. <p>Then, the value is converted to a normalized floating-point value to generate the returned scalar.</p>
  1642. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnorm1x16: f / 65535.0</p>
  1643. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1644. <dd>
  1645. vec2 unpackUnorm2x16(uint32 p) </dd>
  1646. <dd>
  1647. vec4 unpackUnorm4x16(uint64 p) </dd>
  1648. <dd>
  1649. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackUnorm2x16.xml">GLSL unpackUnorm2x16 man page</a> </dd>
  1650. <dd>
  1651. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1652. </div>
  1653. </div>
  1654. <a id="gab3bc08ecfc0f3339be93fb2b3b56d88a"></a>
  1655. <h2 class="memtitle"><span class="permalink"><a href="#gab3bc08ecfc0f3339be93fb2b3b56d88a">&#9670;&nbsp;</a></span>unpackUnorm1x5_1x6_1x5()</h2>
  1656. <div class="memitem">
  1657. <div class="memproto">
  1658. <table class="memname">
  1659. <tr>
  1660. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a> glm::unpackUnorm1x5_1x6_1x5 </td>
  1661. <td>(</td>
  1662. <td class="paramtype"><a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td>
  1663. <td class="paramname"><em>p</em></td><td>)</td>
  1664. <td></td>
  1665. </tr>
  1666. </table>
  1667. </div><div class="memdoc">
  1668. <p>Convert a packed integer to a normalized floating-point vector. </p>
  1669. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1670. <dd>
  1671. uint16 packUnorm1x5_1x6_1x5(vec3 const&amp; v) </dd></dl>
  1672. </div>
  1673. </div>
  1674. <a id="ga1319207e30874fb4931a9ee913983ee1"></a>
  1675. <h2 class="memtitle"><span class="permalink"><a href="#ga1319207e30874fb4931a9ee913983ee1">&#9670;&nbsp;</a></span>unpackUnorm1x8()</h2>
  1676. <div class="memitem">
  1677. <div class="memproto">
  1678. <table class="memname">
  1679. <tr>
  1680. <td class="memname">GLM_FUNC_DECL float glm::unpackUnorm1x8 </td>
  1681. <td>(</td>
  1682. <td class="paramtype"><a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a>&#160;</td>
  1683. <td class="paramname"><em>p</em></td><td>)</td>
  1684. <td></td>
  1685. </tr>
  1686. </table>
  1687. </div><div class="memdoc">
  1688. <p>Convert a single 8-bit integer to a normalized floating-point value. </p>
  1689. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnorm4x8: f / 255.0</p>
  1690. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1691. <dd>
  1692. vec2 unpackUnorm2x8(uint16 p) </dd>
  1693. <dd>
  1694. vec4 unpackUnorm4x8(uint32 p) </dd>
  1695. <dd>
  1696. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackUnorm4x8.xml">GLSL unpackUnorm4x8 man page</a> </dd>
  1697. <dd>
  1698. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1699. </div>
  1700. </div>
  1701. <a id="ga6abd5a9014df3b5ce4059008d2491260"></a>
  1702. <h2 class="memtitle"><span class="permalink"><a href="#ga6abd5a9014df3b5ce4059008d2491260">&#9670;&nbsp;</a></span>unpackUnorm2x3_1x2()</h2>
  1703. <div class="memitem">
  1704. <div class="memproto">
  1705. <table class="memname">
  1706. <tr>
  1707. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#ga9c3019b13faf179e4ad3626ea66df334">vec3</a> glm::unpackUnorm2x3_1x2 </td>
  1708. <td>(</td>
  1709. <td class="paramtype"><a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a>&#160;</td>
  1710. <td class="paramname"><em>p</em></td><td>)</td>
  1711. <td></td>
  1712. </tr>
  1713. </table>
  1714. </div><div class="memdoc">
  1715. <p>Convert a packed integer to a normalized floating-point vector. </p>
  1716. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1717. <dd>
  1718. uint8 packUnorm2x3_1x2(vec3 const&amp; v) </dd></dl>
  1719. </div>
  1720. </div>
  1721. <a id="ga2e50476132fe5f27f08e273d9c70d85b"></a>
  1722. <h2 class="memtitle"><span class="permalink"><a href="#ga2e50476132fe5f27f08e273d9c70d85b">&#9670;&nbsp;</a></span>unpackUnorm2x4()</h2>
  1723. <div class="memitem">
  1724. <div class="memproto">
  1725. <table class="memname">
  1726. <tr>
  1727. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#gabe65c061834f61b4f7cb6037b19006a4">vec2</a> glm::unpackUnorm2x4 </td>
  1728. <td>(</td>
  1729. <td class="paramtype"><a class="el" href="a00684.html#gadde6aaee8457bee49c2a92621fe22b79">uint8</a>&#160;</td>
  1730. <td class="paramname"><em>p</em></td><td>)</td>
  1731. <td></td>
  1732. </tr>
  1733. </table>
  1734. </div><div class="memdoc">
  1735. <p>Convert a packed integer to a normalized floating-point vector. </p>
  1736. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1737. <dd>
  1738. uint8 packUnorm2x4(vec2 const&amp; v) </dd></dl>
  1739. </div>
  1740. </div>
  1741. <a id="ga637cbe3913dd95c6e7b4c99c61bd611f"></a>
  1742. <h2 class="memtitle"><span class="permalink"><a href="#ga637cbe3913dd95c6e7b4c99c61bd611f">&#9670;&nbsp;</a></span>unpackUnorm2x8()</h2>
  1743. <div class="memitem">
  1744. <div class="memproto">
  1745. <table class="memname">
  1746. <tr>
  1747. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#gabe65c061834f61b4f7cb6037b19006a4">vec2</a> glm::unpackUnorm2x8 </td>
  1748. <td>(</td>
  1749. <td class="paramtype"><a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td>
  1750. <td class="paramname"><em>p</em></td><td>)</td>
  1751. <td></td>
  1752. </tr>
  1753. </table>
  1754. </div><div class="memdoc">
  1755. <p>First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit unsigned integers. </p>
  1756. <p>Then, each component is converted to a normalized floating-point value to generate the returned two-component vector.</p>
  1757. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnorm4x8: f / 255.0</p>
  1758. <p>The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.</p>
  1759. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1760. <dd>
  1761. float unpackUnorm1x8(uint8 v) </dd>
  1762. <dd>
  1763. vec4 unpackUnorm4x8(uint32 p) </dd>
  1764. <dd>
  1765. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackUnorm4x8.xml">GLSL unpackUnorm4x8 man page</a> </dd>
  1766. <dd>
  1767. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1768. </div>
  1769. </div>
  1770. <a id="ga5156d3060355fe332865da2c7f78815f"></a>
  1771. <h2 class="memtitle"><span class="permalink"><a href="#ga5156d3060355fe332865da2c7f78815f">&#9670;&nbsp;</a></span>unpackUnorm3x10_1x2()</h2>
  1772. <div class="memitem">
  1773. <div class="memproto">
  1774. <table class="memname">
  1775. <tr>
  1776. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> glm::unpackUnorm3x10_1x2 </td>
  1777. <td>(</td>
  1778. <td class="paramtype"><a class="el" href="a00684.html#ga1134b580f8da4de94ca6b1de4d37975e">uint32</a>&#160;</td>
  1779. <td class="paramname"><em>p</em></td><td>)</td>
  1780. <td></td>
  1781. </tr>
  1782. </table>
  1783. </div><div class="memdoc">
  1784. <p>First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. </p>
  1785. <p>Then, each component is converted to a normalized floating-point value to generate the returned four-component vector.</p>
  1786. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm3x10_1x2(xyz): clamp(f / 1023.0, 0, +1) unpackSnorm3x10_1x2(w): clamp(f / 3.0, 0, +1)</p>
  1787. <p>The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.</p>
  1788. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1789. <dd>
  1790. uint32 packSnorm3x10_1x2(vec4 const&amp; v) </dd>
  1791. <dd>
  1792. vec4 unpackInorm3x10_1x2(uint32 const&amp; p)) </dd>
  1793. <dd>
  1794. uvec4 unpackI3x10_1x2(uint32 const&amp; p) </dd>
  1795. <dd>
  1796. uvec4 unpackU3x10_1x2(uint32 const&amp; p) </dd></dl>
  1797. </div>
  1798. </div>
  1799. <a id="ga5ff95ff5bc16f396432ab67243dbae4d"></a>
  1800. <h2 class="memtitle"><span class="permalink"><a href="#ga5ff95ff5bc16f396432ab67243dbae4d">&#9670;&nbsp;</a></span>unpackUnorm3x5_1x1()</h2>
  1801. <div class="memitem">
  1802. <div class="memproto">
  1803. <table class="memname">
  1804. <tr>
  1805. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> glm::unpackUnorm3x5_1x1 </td>
  1806. <td>(</td>
  1807. <td class="paramtype"><a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td>
  1808. <td class="paramname"><em>p</em></td><td>)</td>
  1809. <td></td>
  1810. </tr>
  1811. </table>
  1812. </div><div class="memdoc">
  1813. <p>Convert a packed integer to a normalized floating-point vector. </p>
  1814. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1815. <dd>
  1816. uint16 packUnorm3x5_1x1(vec4 const&amp; v) </dd></dl>
  1817. </div>
  1818. </div>
  1819. <a id="ga2ae149c5d2473ac1e5f347bb654a242d"></a>
  1820. <h2 class="memtitle"><span class="permalink"><a href="#ga2ae149c5d2473ac1e5f347bb654a242d">&#9670;&nbsp;</a></span>unpackUnorm4x16()</h2>
  1821. <div class="memitem">
  1822. <div class="memproto">
  1823. <table class="memname">
  1824. <tr>
  1825. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> glm::unpackUnorm4x16 </td>
  1826. <td>(</td>
  1827. <td class="paramtype"><a class="el" href="a00684.html#gab630f76c26b50298187f7889104d4b9c">uint64</a>&#160;</td>
  1828. <td class="paramname"><em>p</em></td><td>)</td>
  1829. <td></td>
  1830. </tr>
  1831. </table>
  1832. </div><div class="memdoc">
  1833. <p>First, unpacks a single 64-bit unsigned integer p into four 16-bit unsigned integers. </p>
  1834. <p>Then, each component is converted to a normalized floating-point value to generate the returned four-component vector.</p>
  1835. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnormx4x16: f / 65535.0</p>
  1836. <p>The first component of the returned vector will be extracted from the least significant bits of the input; the last component will be extracted from the most significant bits.</p>
  1837. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1838. <dd>
  1839. float unpackUnorm1x16(uint16 p) </dd>
  1840. <dd>
  1841. vec2 unpackUnorm2x16(uint32 p) </dd>
  1842. <dd>
  1843. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackUnorm2x16.xml">GLSL unpackUnorm2x16 man page</a> </dd>
  1844. <dd>
  1845. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  1846. </div>
  1847. </div>
  1848. <a id="gac58ee89d0e224bb6df5e8bbb18843a2d"></a>
  1849. <h2 class="memtitle"><span class="permalink"><a href="#gac58ee89d0e224bb6df5e8bbb18843a2d">&#9670;&nbsp;</a></span>unpackUnorm4x4()</h2>
  1850. <div class="memitem">
  1851. <div class="memproto">
  1852. <table class="memname">
  1853. <tr>
  1854. <td class="memname">GLM_FUNC_DECL <a class="el" href="a00699.html#gac215a35481a6597d1bf622a382e9d6e2">vec4</a> glm::unpackUnorm4x4 </td>
  1855. <td>(</td>
  1856. <td class="paramtype"><a class="el" href="a00684.html#ga05f6b0ae8f6a6e135b0e290c25fe0e4e">uint16</a>&#160;</td>
  1857. <td class="paramname"><em>p</em></td><td>)</td>
  1858. <td></td>
  1859. </tr>
  1860. </table>
  1861. </div><div class="memdoc">
  1862. <p>Convert a packed integer to a normalized floating-point vector. </p>
  1863. <dl class="section see"><dt>See also</dt><dd><a class="el" href="a00716.html" title="Include &lt;glm/gtc/packing.hpp&gt; to use the features of this extension. ">GLM_GTC_packing</a> </dd>
  1864. <dd>
  1865. uint16 packUnorm4x4(vec4 const&amp; v) </dd></dl>
  1866. </div>
  1867. </div>
  1868. </div><!-- contents -->
  1869. <!-- start footer part -->
  1870. <hr class="footer"/><address class="footer"><small>
  1871. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  1872. <img class="footer" src="doxygen.png" alt="doxygen"/>
  1873. </a> 1.8.14
  1874. </small></address>
  1875. </body>
  1876. </html>