a00178.html 72 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978
  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.5"/>
  7. <title>GLM: GLM_GTC_packing</title>
  8. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  9. <script type="text/javascript" src="jquery.js"></script>
  10. <script type="text/javascript" src="dynsections.js"></script>
  11. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  12. </head>
  13. <body>
  14. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  15. <div id="titlearea">
  16. <table cellspacing="0" cellpadding="0">
  17. <tbody>
  18. <tr style="height: 56px;">
  19. <td style="padding-left: 0.5em;">
  20. <div id="projectname">GLM
  21. &#160;<span id="projectnumber">0.9.5</span>
  22. </div>
  23. </td>
  24. </tr>
  25. </tbody>
  26. </table>
  27. </div>
  28. <!-- end header part -->
  29. <!-- Generated by Doxygen 1.8.5 -->
  30. <div id="navrow1" class="tabs">
  31. <ul class="tablist">
  32. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  33. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  34. <li><a href="modules.html"><span>Modules</span></a></li>
  35. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  36. <li><a href="files.html"><span>Files</span></a></li>
  37. </ul>
  38. </div>
  39. </div><!-- top -->
  40. <div class="header">
  41. <div class="summary">
  42. <a href="#func-members">Functions</a> </div>
  43. <div class="headertitle">
  44. <div class="title">GLM_GTC_packing<div class="ingroups"><a class="el" href="a00164.html">GTC Extensions (Stable)</a></div></div> </div>
  45. </div><!--header-->
  46. <div class="contents">
  47. <table class="memberdecls">
  48. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
  49. Functions</h2></td></tr>
  50. <tr class="memitem:ga4944ad465ff950e926d49621f916c78d"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga4944ad465ff950e926d49621f916c78d">packF2x11_1x10</a> (vec3 const &amp;v)</td></tr>
  51. <tr class="separator:ga4944ad465ff950e926d49621f916c78d"><td class="memSeparator" colspan="2">&#160;</td></tr>
  52. <tr class="memitem:gab7f8a84e119fe3f1ff57d7e2ec093747"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gab7f8a84e119fe3f1ff57d7e2ec093747">packHalf1x16</a> (float const &amp;v)</td></tr>
  53. <tr class="separator:gab7f8a84e119fe3f1ff57d7e2ec093747"><td class="memSeparator" colspan="2">&#160;</td></tr>
  54. <tr class="memitem:gafe2f7b39caf8f5ec555e1c059ec530e6"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gafe2f7b39caf8f5ec555e1c059ec530e6">packHalf4x16</a> (vec4 const &amp;v)</td></tr>
  55. <tr class="separator:gafe2f7b39caf8f5ec555e1c059ec530e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
  56. <tr class="memitem:ga06ecb6afb902dba45419008171db9023"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga06ecb6afb902dba45419008171db9023">packI3x10_1x2</a> (ivec4 const &amp;v)</td></tr>
  57. <tr class="separator:ga06ecb6afb902dba45419008171db9023"><td class="memSeparator" colspan="2">&#160;</td></tr>
  58. <tr class="memitem:gab05d07ca244dddc2d82ba71d843691e4"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gab05d07ca244dddc2d82ba71d843691e4">packSnorm1x16</a> (float const &amp;v)</td></tr>
  59. <tr class="separator:gab05d07ca244dddc2d82ba71d843691e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  60. <tr class="memitem:gaeecb4166fa0f5764846cb6c215766398"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gaeecb4166fa0f5764846cb6c215766398">packSnorm1x8</a> (float const &amp;s)</td></tr>
  61. <tr class="separator:gaeecb4166fa0f5764846cb6c215766398"><td class="memSeparator" colspan="2">&#160;</td></tr>
  62. <tr class="memitem:ga6be3cfb2cce3702f03e91bbeb5286d7e"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga6be3cfb2cce3702f03e91bbeb5286d7e">packSnorm2x8</a> (vec2 const &amp;v)</td></tr>
  63. <tr class="separator:ga6be3cfb2cce3702f03e91bbeb5286d7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  64. <tr class="memitem:gab997545661877d2c7362a5084d3897d3"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gab997545661877d2c7362a5084d3897d3">packSnorm3x10_1x2</a> (vec4 const &amp;v)</td></tr>
  65. <tr class="separator:gab997545661877d2c7362a5084d3897d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
  66. <tr class="memitem:ga358943934d21da947d5bcc88c2ab7832"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga358943934d21da947d5bcc88c2ab7832">packSnorm4x16</a> (vec4 const &amp;v)</td></tr>
  67. <tr class="separator:ga358943934d21da947d5bcc88c2ab7832"><td class="memSeparator" colspan="2">&#160;</td></tr>
  68. <tr class="memitem:gada3d88d59f0f458f9c51a9fd359a4bc0"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gada3d88d59f0f458f9c51a9fd359a4bc0">packU3x10_1x2</a> (uvec4 const &amp;v)</td></tr>
  69. <tr class="separator:gada3d88d59f0f458f9c51a9fd359a4bc0"><td class="memSeparator" colspan="2">&#160;</td></tr>
  70. <tr class="memitem:ga146ced9fe50f08bbbccac5693d717a27"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga146ced9fe50f08bbbccac5693d717a27">packUnorm1x16</a> (float const &amp;v)</td></tr>
  71. <tr class="separator:ga146ced9fe50f08bbbccac5693d717a27"><td class="memSeparator" colspan="2">&#160;</td></tr>
  72. <tr class="memitem:gab16a1b79ed7431e9d84e8fde983b6d11"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint8&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gab16a1b79ed7431e9d84e8fde983b6d11">packUnorm1x8</a> (float const &amp;v)</td></tr>
  73. <tr class="separator:gab16a1b79ed7431e9d84e8fde983b6d11"><td class="memSeparator" colspan="2">&#160;</td></tr>
  74. <tr class="memitem:ga9a666b1c688ab54100061ed06526de6e"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint16&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga9a666b1c688ab54100061ed06526de6e">packUnorm2x8</a> (vec2 const &amp;v)</td></tr>
  75. <tr class="separator:ga9a666b1c688ab54100061ed06526de6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
  76. <tr class="memitem:ga8a1ee625d2707c60530fb3fca2980b19"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint32&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga8a1ee625d2707c60530fb3fca2980b19">packUnorm3x10_1x2</a> (vec4 const &amp;v)</td></tr>
  77. <tr class="separator:ga8a1ee625d2707c60530fb3fca2980b19"><td class="memSeparator" colspan="2">&#160;</td></tr>
  78. <tr class="memitem:ga1f63c264e7ab63264e2b2a99fd393897"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga1f63c264e7ab63264e2b2a99fd393897">packUnorm4x16</a> (vec4 const &amp;v)</td></tr>
  79. <tr class="separator:ga1f63c264e7ab63264e2b2a99fd393897"><td class="memSeparator" colspan="2">&#160;</td></tr>
  80. <tr class="memitem:gabee51ecab6b477b18e7da4fc7393d0e9"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec3&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gabee51ecab6b477b18e7da4fc7393d0e9">unpackF2x11_1x10</a> (uint32 const &amp;p)</td></tr>
  81. <tr class="separator:gabee51ecab6b477b18e7da4fc7393d0e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
  82. <tr class="memitem:ga4c5ad3375f215b9bd0e530dd43624882"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga4c5ad3375f215b9bd0e530dd43624882">unpackHalf1x16</a> (uint16 const &amp;v)</td></tr>
  83. <tr class="separator:ga4c5ad3375f215b9bd0e530dd43624882"><td class="memSeparator" colspan="2">&#160;</td></tr>
  84. <tr class="memitem:ga7acdbf24148ef556939719cf47036524"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga7acdbf24148ef556939719cf47036524">unpackHalf4x16</a> (uint64 const &amp;p)</td></tr>
  85. <tr class="separator:ga7acdbf24148ef556939719cf47036524"><td class="memSeparator" colspan="2">&#160;</td></tr>
  86. <tr class="memitem:ga1ff4f5a28d764786f916f9d069d16e86"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL ivec4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga1ff4f5a28d764786f916f9d069d16e86">unpackI3x10_1x2</a> (uint32 const &amp;p)</td></tr>
  87. <tr class="separator:ga1ff4f5a28d764786f916f9d069d16e86"><td class="memSeparator" colspan="2">&#160;</td></tr>
  88. <tr class="memitem:ga7a065826893fb3ab85097a8ed23d6654"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga7a065826893fb3ab85097a8ed23d6654">unpackSnorm1x16</a> (uint16 const &amp;p)</td></tr>
  89. <tr class="separator:ga7a065826893fb3ab85097a8ed23d6654"><td class="memSeparator" colspan="2">&#160;</td></tr>
  90. <tr class="memitem:gacb89a737b93aa41e3efce2148fffbea4"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gacb89a737b93aa41e3efce2148fffbea4">unpackSnorm1x8</a> (uint8 const &amp;p)</td></tr>
  91. <tr class="separator:gacb89a737b93aa41e3efce2148fffbea4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  92. <tr class="memitem:gaca99cad292a1045eefb1ad4cb535c31a"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gaca99cad292a1045eefb1ad4cb535c31a">unpackSnorm2x8</a> (uint16 const &amp;p)</td></tr>
  93. <tr class="separator:gaca99cad292a1045eefb1ad4cb535c31a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  94. <tr class="memitem:ga03af1e97f8a96c429524ebf20a6509f5"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga03af1e97f8a96c429524ebf20a6509f5">unpackSnorm3x10_1x2</a> (uint32 const &amp;p)</td></tr>
  95. <tr class="separator:ga03af1e97f8a96c429524ebf20a6509f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  96. <tr class="memitem:gadb01fc0530f07beb509c89d97b6f4d20"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gadb01fc0530f07beb509c89d97b6f4d20">unpackSnorm4x16</a> (uint64 const &amp;p)</td></tr>
  97. <tr class="separator:gadb01fc0530f07beb509c89d97b6f4d20"><td class="memSeparator" colspan="2">&#160;</td></tr>
  98. <tr class="memitem:gaef276e11b8246c34d993b0eb01f66481"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uvec4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gaef276e11b8246c34d993b0eb01f66481">unpackU3x10_1x2</a> (uint32 const &amp;p)</td></tr>
  99. <tr class="separator:gaef276e11b8246c34d993b0eb01f66481"><td class="memSeparator" colspan="2">&#160;</td></tr>
  100. <tr class="memitem:gac2e137ade637150f6a9a14e394c3064b"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gac2e137ade637150f6a9a14e394c3064b">unpackUnorm1x16</a> (uint16 const &amp;p)</td></tr>
  101. <tr class="separator:gac2e137ade637150f6a9a14e394c3064b"><td class="memSeparator" colspan="2">&#160;</td></tr>
  102. <tr class="memitem:ga5e96a68924f1a4a9f4d75475098f5ddb"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga5e96a68924f1a4a9f4d75475098f5ddb">unpackUnorm1x8</a> (uint8 const &amp;p)</td></tr>
  103. <tr class="separator:ga5e96a68924f1a4a9f4d75475098f5ddb"><td class="memSeparator" colspan="2">&#160;</td></tr>
  104. <tr class="memitem:ga2f28b1b4f401c6cec9465a0f266a1481"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec2&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga2f28b1b4f401c6cec9465a0f266a1481">unpackUnorm2x8</a> (uint16 const &amp;p)</td></tr>
  105. <tr class="separator:ga2f28b1b4f401c6cec9465a0f266a1481"><td class="memSeparator" colspan="2">&#160;</td></tr>
  106. <tr class="memitem:gabec69b5ec17cd939035302551bfd04e5"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gabec69b5ec17cd939035302551bfd04e5">unpackUnorm3x10_1x2</a> (uint32 const &amp;p)</td></tr>
  107. <tr class="separator:gabec69b5ec17cd939035302551bfd04e5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  108. <tr class="memitem:ga0b957d3ce90faf63cf6b826939837947"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec4&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga0b957d3ce90faf63cf6b826939837947">unpackUnorm4x16</a> (uint64 const &amp;p)</td></tr>
  109. <tr class="separator:ga0b957d3ce90faf63cf6b826939837947"><td class="memSeparator" colspan="2">&#160;</td></tr>
  110. </table>
  111. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  112. <p>This extension provides a set of function to convert vertors to packed formats. </p>
  113. <p>&lt;<a class="el" href="a00091.html" title="OpenGL Mathematics (glm.g-truc.net) ">glm/gtc/packing.hpp</a>&gt; need to be included to use these features. </p>
  114. <h2 class="groupheader">Function Documentation</h2>
  115. <a class="anchor" id="ga4944ad465ff950e926d49621f916c78d"></a>
  116. <div class="memitem">
  117. <div class="memproto">
  118. <table class="memname">
  119. <tr>
  120. <td class="memname">GLM_FUNC_DECL uint32 glm::packF2x11_1x10 </td>
  121. <td>(</td>
  122. <td class="paramtype">vec3 const &amp;&#160;</td>
  123. <td class="paramname"><em>v</em></td><td>)</td>
  124. <td></td>
  125. </tr>
  126. </table>
  127. </div><div class="memdoc">
  128. <p>First, converts the first two components of the normalized floating-point value v into 11-bit signless floating-point values. </p>
  129. <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>
  130. <p>The first vector component specifies the 11 least-significant bits of the result; the last component specifies the 10 most-significant bits.</p>
  131. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  132. <dd>
  133. <a class="el" href="a00168.html#gaa8ea2429bb3cb41a715258a447f39897" title="3 components vector of floating-point numbers. ">vec3</a> <a class="el" href="a00178.html#gabee51ecab6b477b18e7da4fc7393d0e9" title="First, unpacks a single 32-bit unsigned integer p into two 11-bit signless floating-point values and ...">unpackF2x11_1x10(uint32 const &amp; p)</a> </dd></dl>
  134. </div>
  135. </div>
  136. <a class="anchor" id="gab7f8a84e119fe3f1ff57d7e2ec093747"></a>
  137. <div class="memitem">
  138. <div class="memproto">
  139. <table class="memname">
  140. <tr>
  141. <td class="memname">GLM_FUNC_DECL uint16 glm::packHalf1x16 </td>
  142. <td>(</td>
  143. <td class="paramtype">float const &amp;&#160;</td>
  144. <td class="paramname"><em>v</em></td><td>)</td>
  145. <td></td>
  146. </tr>
  147. </table>
  148. </div><div class="memdoc">
  149. <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>
  150. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  151. <dd>
  152. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00161.html#ga20f134b07db3a3d3a38efb2617388c92" title="Returns an unsigned integer obtained by converting the components of a two-component floating-point v...">packHalf2x16(vec2 const &amp; v)</a> </dd>
  153. <dd>
  154. <a class="el" href="a00182.html#gab630f76c26b50298187f7889104d4b9c" title="64 bit unsigned integer type. ">uint64</a> <a class="el" href="a00178.html#gafe2f7b39caf8f5ec555e1c059ec530e6" title="Returns an unsigned integer obtained by converting the components of a four-component floating-point ...">packHalf4x16(vec4 const &amp; v)</a> </dd>
  155. <dd>
  156. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packHalf2x16.xml">GLSL packHalf2x16 man page</a> </dd>
  157. <dd>
  158. <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>
  159. </div>
  160. </div>
  161. <a class="anchor" id="gafe2f7b39caf8f5ec555e1c059ec530e6"></a>
  162. <div class="memitem">
  163. <div class="memproto">
  164. <table class="memname">
  165. <tr>
  166. <td class="memname">GLM_FUNC_DECL uint64 glm::packHalf4x16 </td>
  167. <td>(</td>
  168. <td class="paramtype">vec4 const &amp;&#160;</td>
  169. <td class="paramname"><em>v</em></td><td>)</td>
  170. <td></td>
  171. </tr>
  172. </table>
  173. </div><div class="memdoc">
  174. <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>
  175. <p>The first vector component specifies the 16 least-significant bits of the result; the forth component specifies the 16 most-significant bits.</p>
  176. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  177. <dd>
  178. <a class="el" href="a00182.html#ga13471cbbe74e4303a57f3743d007b74d" title="16 bit unsigned integer type. ">uint16</a> <a class="el" href="a00178.html#gab7f8a84e119fe3f1ff57d7e2ec093747" title="Returns an unsigned integer obtained by converting the components of a floating-point scalar to the 1...">packHalf1x16(float const &amp; v)</a> </dd>
  179. <dd>
  180. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00161.html#ga20f134b07db3a3d3a38efb2617388c92" title="Returns an unsigned integer obtained by converting the components of a two-component floating-point v...">packHalf2x16(vec2 const &amp; v)</a> </dd>
  181. <dd>
  182. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packHalf2x16.xml">GLSL packHalf2x16 man page</a> </dd>
  183. <dd>
  184. <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>
  185. </div>
  186. </div>
  187. <a class="anchor" id="ga06ecb6afb902dba45419008171db9023"></a>
  188. <div class="memitem">
  189. <div class="memproto">
  190. <table class="memname">
  191. <tr>
  192. <td class="memname">GLM_FUNC_DECL uint32 glm::packI3x10_1x2 </td>
  193. <td>(</td>
  194. <td class="paramtype">ivec4 const &amp;&#160;</td>
  195. <td class="paramname"><em>v</em></td><td>)</td>
  196. <td></td>
  197. </tr>
  198. </table>
  199. </div><div class="memdoc">
  200. <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>
  201. <p>The first vector component specifies the 10 least-significant bits of the result; the forth component specifies the 2 most-significant bits.</p>
  202. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  203. <dd>
  204. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> packI3x10_1x2(uvec4 const &amp; v) </dd>
  205. <dd>
  206. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#gab997545661877d2c7362a5084d3897d3" title="First, converts the first three components of the normalized floating-point value v into 10-bit signe...">packSnorm3x10_1x2(vec4 const &amp; v)</a> </dd>
  207. <dd>
  208. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#ga8a1ee625d2707c60530fb3fca2980b19" title="First, converts the first three components of the normalized floating-point value v into 10-bit unsig...">packUnorm3x10_1x2(vec4 const &amp; v)</a> </dd>
  209. <dd>
  210. <a class="el" href="a00168.html#gaaa26c41d168dc00be0fe55f4d0a34224" title="4 components vector of signed integer numbers. ">ivec4</a> <a class="el" href="a00178.html#ga1ff4f5a28d764786f916f9d069d16e86" title="Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit signed integers...">unpackI3x10_1x2(uint32 const &amp; p)</a> </dd></dl>
  211. </div>
  212. </div>
  213. <a class="anchor" id="gab05d07ca244dddc2d82ba71d843691e4"></a>
  214. <div class="memitem">
  215. <div class="memproto">
  216. <table class="memname">
  217. <tr>
  218. <td class="memname">GLM_FUNC_DECL uint16 glm::packSnorm1x16 </td>
  219. <td>(</td>
  220. <td class="paramtype">float const &amp;&#160;</td>
  221. <td class="paramname"><em>v</em></td><td>)</td>
  222. <td></td>
  223. </tr>
  224. </table>
  225. </div><div class="memdoc">
  226. <p>First, converts the normalized floating-point value v into 16-bit integer value. </p>
  227. <p>Then, the results are packed into the returned 16-bit unsigned integer.</p>
  228. <p>The conversion to fixed point is done as follows: packSnorm1x8: round(clamp(s, -1, +1) * 32767.0)</p>
  229. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  230. <dd>
  231. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00161.html#ga977ab172da5494e5ac63e952afacfbe2" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packSnorm2x16(vec2 const &amp; v)</a> </dd>
  232. <dd>
  233. <a class="el" href="a00182.html#gab630f76c26b50298187f7889104d4b9c" title="64 bit unsigned integer type. ">uint64</a> <a class="el" href="a00178.html#ga358943934d21da947d5bcc88c2ab7832" title="First, converts each component of the normalized floating-point value v into 16-bit integer values...">packSnorm4x16(vec4 const &amp; v)</a> </dd>
  234. <dd>
  235. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packSnorm4x8.xml">GLSL packSnorm4x8 man page</a> </dd>
  236. <dd>
  237. <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>
  238. </div>
  239. </div>
  240. <a class="anchor" id="gaeecb4166fa0f5764846cb6c215766398"></a>
  241. <div class="memitem">
  242. <div class="memproto">
  243. <table class="memname">
  244. <tr>
  245. <td class="memname">GLM_FUNC_DECL uint8 glm::packSnorm1x8 </td>
  246. <td>(</td>
  247. <td class="paramtype">float const &amp;&#160;</td>
  248. <td class="paramname"><em>s</em></td><td>)</td>
  249. <td></td>
  250. </tr>
  251. </table>
  252. </div><div class="memdoc">
  253. <p>First, converts the normalized floating-point value v into 8-bit integer value. </p>
  254. <p>Then, the results are packed into the returned 8-bit unsigned integer.</p>
  255. <p>The conversion to fixed point is done as follows: packSnorm1x8: round(clamp(s, -1, +1) * 127.0)</p>
  256. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  257. <dd>
  258. <a class="el" href="a00182.html#ga13471cbbe74e4303a57f3743d007b74d" title="16 bit unsigned integer type. ">uint16</a> <a class="el" href="a00178.html#ga6be3cfb2cce3702f03e91bbeb5286d7e" title="First, converts each component of the normalized floating-point value v into 8-bit integer values...">packSnorm2x8(vec2 const &amp; v)</a> </dd>
  259. <dd>
  260. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00161.html#ga85e8f17627516445026ab7a9c2e3531a" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packSnorm4x8(vec4 const &amp; v)</a> </dd>
  261. <dd>
  262. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packSnorm4x8.xml">GLSL packSnorm4x8 man page</a> </dd>
  263. <dd>
  264. <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>
  265. </div>
  266. </div>
  267. <a class="anchor" id="ga6be3cfb2cce3702f03e91bbeb5286d7e"></a>
  268. <div class="memitem">
  269. <div class="memproto">
  270. <table class="memname">
  271. <tr>
  272. <td class="memname">GLM_FUNC_DECL uint16 glm::packSnorm2x8 </td>
  273. <td>(</td>
  274. <td class="paramtype">vec2 const &amp;&#160;</td>
  275. <td class="paramname"><em>v</em></td><td>)</td>
  276. <td></td>
  277. </tr>
  278. </table>
  279. </div><div class="memdoc">
  280. <p>First, converts each component of the normalized floating-point value v into 8-bit integer values. </p>
  281. <p>Then, the results are packed into the returned 16-bit unsigned integer.</p>
  282. <p>The conversion for component c of v to fixed point is done as follows: packSnorm2x8: round(clamp(c, -1, +1) * 127.0)</p>
  283. <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>
  284. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  285. <dd>
  286. <a class="el" href="a00182.html#ga36475e31b1992cfde54c1a6f5a148865" title="8 bit unsigned integer type. ">uint8</a> <a class="el" href="a00178.html#gaeecb4166fa0f5764846cb6c215766398" title="First, converts the normalized floating-point value v into 8-bit integer value. ">packSnorm1x8(float const &amp; v)</a> </dd>
  287. <dd>
  288. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00161.html#ga85e8f17627516445026ab7a9c2e3531a" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packSnorm4x8(vec4 const &amp; v)</a> </dd>
  289. <dd>
  290. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packSnorm4x8.xml">GLSL packSnorm4x8 man page</a> </dd>
  291. <dd>
  292. <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>
  293. </div>
  294. </div>
  295. <a class="anchor" id="gab997545661877d2c7362a5084d3897d3"></a>
  296. <div class="memitem">
  297. <div class="memproto">
  298. <table class="memname">
  299. <tr>
  300. <td class="memname">GLM_FUNC_DECL uint32 glm::packSnorm3x10_1x2 </td>
  301. <td>(</td>
  302. <td class="paramtype">vec4 const &amp;&#160;</td>
  303. <td class="paramname"><em>v</em></td><td>)</td>
  304. <td></td>
  305. </tr>
  306. </table>
  307. </div><div class="memdoc">
  308. <p>First, converts the first three components of the normalized floating-point value v into 10-bit signed integer values. </p>
  309. <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>
  310. <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>
  311. <p>The first vector component specifies the 10 least-significant bits of the result; the forth component specifies the 2 most-significant bits.</p>
  312. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  313. <dd>
  314. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> <a class="el" href="a00178.html#ga03af1e97f8a96c429524ebf20a6509f5" title="First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. ">unpackSnorm3x10_1x2(uint32 const &amp; p)</a> </dd>
  315. <dd>
  316. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#ga8a1ee625d2707c60530fb3fca2980b19" title="First, converts the first three components of the normalized floating-point value v into 10-bit unsig...">packUnorm3x10_1x2(vec4 const &amp; v)</a> </dd>
  317. <dd>
  318. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#gada3d88d59f0f458f9c51a9fd359a4bc0" title="Returns an unsigned integer obtained by converting the components of a four-component unsigned intege...">packU3x10_1x2(uvec4 const &amp; v)</a> </dd>
  319. <dd>
  320. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#ga06ecb6afb902dba45419008171db9023" title="Returns an unsigned integer obtained by converting the components of a four-component signed integer ...">packI3x10_1x2(ivec4 const &amp; v)</a> </dd></dl>
  321. </div>
  322. </div>
  323. <a class="anchor" id="ga358943934d21da947d5bcc88c2ab7832"></a>
  324. <div class="memitem">
  325. <div class="memproto">
  326. <table class="memname">
  327. <tr>
  328. <td class="memname">GLM_FUNC_DECL uint64 glm::packSnorm4x16 </td>
  329. <td>(</td>
  330. <td class="paramtype">vec4 const &amp;&#160;</td>
  331. <td class="paramname"><em>v</em></td><td>)</td>
  332. <td></td>
  333. </tr>
  334. </table>
  335. </div><div class="memdoc">
  336. <p>First, converts each component of the normalized floating-point value v into 16-bit integer values. </p>
  337. <p>Then, the results are packed into the returned 64-bit unsigned integer.</p>
  338. <p>The conversion for component c of v to fixed point is done as follows: packSnorm2x8: round(clamp(c, -1, +1) * 32767.0)</p>
  339. <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>
  340. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  341. <dd>
  342. <a class="el" href="a00182.html#ga13471cbbe74e4303a57f3743d007b74d" title="16 bit unsigned integer type. ">uint16</a> <a class="el" href="a00178.html#gab05d07ca244dddc2d82ba71d843691e4" title="First, converts the normalized floating-point value v into 16-bit integer value. ">packSnorm1x16(float const &amp; v)</a> </dd>
  343. <dd>
  344. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00161.html#ga977ab172da5494e5ac63e952afacfbe2" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packSnorm2x16(vec2 const &amp; v)</a> </dd>
  345. <dd>
  346. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packSnorm4x8.xml">GLSL packSnorm4x8 man page</a> </dd>
  347. <dd>
  348. <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>
  349. </div>
  350. </div>
  351. <a class="anchor" id="gada3d88d59f0f458f9c51a9fd359a4bc0"></a>
  352. <div class="memitem">
  353. <div class="memproto">
  354. <table class="memname">
  355. <tr>
  356. <td class="memname">GLM_FUNC_DECL uint32 glm::packU3x10_1x2 </td>
  357. <td>(</td>
  358. <td class="paramtype">uvec4 const &amp;&#160;</td>
  359. <td class="paramname"><em>v</em></td><td>)</td>
  360. <td></td>
  361. </tr>
  362. </table>
  363. </div><div class="memdoc">
  364. <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>
  365. <p>The first vector component specifies the 10 least-significant bits of the result; the forth component specifies the 2 most-significant bits.</p>
  366. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  367. <dd>
  368. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#ga06ecb6afb902dba45419008171db9023" title="Returns an unsigned integer obtained by converting the components of a four-component signed integer ...">packI3x10_1x2(ivec4 const &amp; v)</a> </dd>
  369. <dd>
  370. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#gab997545661877d2c7362a5084d3897d3" title="First, converts the first three components of the normalized floating-point value v into 10-bit signe...">packSnorm3x10_1x2(vec4 const &amp; v)</a> </dd>
  371. <dd>
  372. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#ga8a1ee625d2707c60530fb3fca2980b19" title="First, converts the first three components of the normalized floating-point value v into 10-bit unsig...">packUnorm3x10_1x2(vec4 const &amp; v)</a> </dd>
  373. <dd>
  374. <a class="el" href="a00168.html#gaaa26c41d168dc00be0fe55f4d0a34224" title="4 components vector of signed integer numbers. ">ivec4</a> <a class="el" href="a00178.html#gaef276e11b8246c34d993b0eb01f66481" title="Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit unsigned integers...">unpackU3x10_1x2(uint32 const &amp; p)</a> </dd></dl>
  375. </div>
  376. </div>
  377. <a class="anchor" id="ga146ced9fe50f08bbbccac5693d717a27"></a>
  378. <div class="memitem">
  379. <div class="memproto">
  380. <table class="memname">
  381. <tr>
  382. <td class="memname">GLM_FUNC_DECL uint16 glm::packUnorm1x16 </td>
  383. <td>(</td>
  384. <td class="paramtype">float const &amp;&#160;</td>
  385. <td class="paramname"><em>v</em></td><td>)</td>
  386. <td></td>
  387. </tr>
  388. </table>
  389. </div><div class="memdoc">
  390. <p>First, converts the normalized floating-point value v into a 16-bit integer value. </p>
  391. <p>Then, the results are packed into the returned 16-bit unsigned integer.</p>
  392. <p>The conversion for component c of v to fixed point is done as follows: packUnorm1x16: round(clamp(c, 0, +1) * 65535.0)</p>
  393. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  394. <dd>
  395. <a class="el" href="a00182.html#ga13471cbbe74e4303a57f3743d007b74d" title="16 bit unsigned integer type. ">uint16</a> <a class="el" href="a00178.html#gab05d07ca244dddc2d82ba71d843691e4" title="First, converts the normalized floating-point value v into 16-bit integer value. ">packSnorm1x16(float const &amp; v)</a> </dd>
  396. <dd>
  397. <a class="el" href="a00182.html#gab630f76c26b50298187f7889104d4b9c" title="64 bit unsigned integer type. ">uint64</a> <a class="el" href="a00178.html#ga358943934d21da947d5bcc88c2ab7832" title="First, converts each component of the normalized floating-point value v into 16-bit integer values...">packSnorm4x16(vec4 const &amp; v)</a> </dd>
  398. <dd>
  399. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packUnorm4x8.xml">GLSL packUnorm4x8 man page</a> </dd>
  400. <dd>
  401. <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>
  402. </div>
  403. </div>
  404. <a class="anchor" id="gab16a1b79ed7431e9d84e8fde983b6d11"></a>
  405. <div class="memitem">
  406. <div class="memproto">
  407. <table class="memname">
  408. <tr>
  409. <td class="memname">GLM_FUNC_DECL uint8 glm::packUnorm1x8 </td>
  410. <td>(</td>
  411. <td class="paramtype">float const &amp;&#160;</td>
  412. <td class="paramname"><em>v</em></td><td>)</td>
  413. <td></td>
  414. </tr>
  415. </table>
  416. </div><div class="memdoc">
  417. <p>First, converts the normalized floating-point value v into a 8-bit integer value. </p>
  418. <p>Then, the results are packed into the returned 8-bit unsigned integer.</p>
  419. <p>The conversion for component c of v to fixed point is done as follows: packUnorm1x8: round(clamp(c, 0, +1) * 255.0)</p>
  420. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  421. <dd>
  422. <a class="el" href="a00182.html#ga13471cbbe74e4303a57f3743d007b74d" title="16 bit unsigned integer type. ">uint16</a> <a class="el" href="a00178.html#ga9a666b1c688ab54100061ed06526de6e" title="First, converts each component of the normalized floating-point value v into 8-bit integer values...">packUnorm2x8(vec2 const &amp; v)</a> </dd>
  423. <dd>
  424. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00161.html#gaf7d2f7341a9eeb4a436929d6f9ad08f2" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packUnorm4x8(vec4 const &amp; v)</a> </dd>
  425. <dd>
  426. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packUnorm4x8.xml">GLSL packUnorm4x8 man page</a> </dd>
  427. <dd>
  428. <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>
  429. </div>
  430. </div>
  431. <a class="anchor" id="ga9a666b1c688ab54100061ed06526de6e"></a>
  432. <div class="memitem">
  433. <div class="memproto">
  434. <table class="memname">
  435. <tr>
  436. <td class="memname">GLM_FUNC_DECL uint16 glm::packUnorm2x8 </td>
  437. <td>(</td>
  438. <td class="paramtype">vec2 const &amp;&#160;</td>
  439. <td class="paramname"><em>v</em></td><td>)</td>
  440. <td></td>
  441. </tr>
  442. </table>
  443. </div><div class="memdoc">
  444. <p>First, converts each component of the normalized floating-point value v into 8-bit integer values. </p>
  445. <p>Then, the results are packed into the returned 16-bit unsigned integer.</p>
  446. <p>The conversion for component c of v to fixed point is done as follows: packUnorm2x8: round(clamp(c, 0, +1) * 255.0)</p>
  447. <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>
  448. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  449. <dd>
  450. <a class="el" href="a00182.html#ga36475e31b1992cfde54c1a6f5a148865" title="8 bit unsigned integer type. ">uint8</a> <a class="el" href="a00178.html#gab16a1b79ed7431e9d84e8fde983b6d11" title="First, converts the normalized floating-point value v into a 8-bit integer value. ...">packUnorm1x8(float const &amp; v)</a> </dd>
  451. <dd>
  452. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00161.html#gaf7d2f7341a9eeb4a436929d6f9ad08f2" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packUnorm4x8(vec4 const &amp; v)</a> </dd>
  453. <dd>
  454. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packUnorm4x8.xml">GLSL packUnorm4x8 man page</a> </dd>
  455. <dd>
  456. <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>
  457. </div>
  458. </div>
  459. <a class="anchor" id="ga8a1ee625d2707c60530fb3fca2980b19"></a>
  460. <div class="memitem">
  461. <div class="memproto">
  462. <table class="memname">
  463. <tr>
  464. <td class="memname">GLM_FUNC_DECL uint32 glm::packUnorm3x10_1x2 </td>
  465. <td>(</td>
  466. <td class="paramtype">vec4 const &amp;&#160;</td>
  467. <td class="paramname"><em>v</em></td><td>)</td>
  468. <td></td>
  469. </tr>
  470. </table>
  471. </div><div class="memdoc">
  472. <p>First, converts the first three components of the normalized floating-point value v into 10-bit unsigned integer values. </p>
  473. <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>
  474. <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>
  475. <p>The first vector component specifies the 10 least-significant bits of the result; the forth component specifies the 2 most-significant bits.</p>
  476. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  477. <dd>
  478. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> <a class="el" href="a00178.html#gabec69b5ec17cd939035302551bfd04e5" title="First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. ">unpackUnorm3x10_1x2(uint32 const &amp; p)</a> </dd>
  479. <dd>
  480. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#ga8a1ee625d2707c60530fb3fca2980b19" title="First, converts the first three components of the normalized floating-point value v into 10-bit unsig...">packUnorm3x10_1x2(vec4 const &amp; v)</a> </dd>
  481. <dd>
  482. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#gada3d88d59f0f458f9c51a9fd359a4bc0" title="Returns an unsigned integer obtained by converting the components of a four-component unsigned intege...">packU3x10_1x2(uvec4 const &amp; v)</a> </dd>
  483. <dd>
  484. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#ga06ecb6afb902dba45419008171db9023" title="Returns an unsigned integer obtained by converting the components of a four-component signed integer ...">packI3x10_1x2(ivec4 const &amp; v)</a> </dd></dl>
  485. </div>
  486. </div>
  487. <a class="anchor" id="ga1f63c264e7ab63264e2b2a99fd393897"></a>
  488. <div class="memitem">
  489. <div class="memproto">
  490. <table class="memname">
  491. <tr>
  492. <td class="memname">GLM_FUNC_DECL uint64 glm::packUnorm4x16 </td>
  493. <td>(</td>
  494. <td class="paramtype">vec4 const &amp;&#160;</td>
  495. <td class="paramname"><em>v</em></td><td>)</td>
  496. <td></td>
  497. </tr>
  498. </table>
  499. </div><div class="memdoc">
  500. <p>First, converts each component of the normalized floating-point value v into 16-bit integer values. </p>
  501. <p>Then, the results are packed into the returned 64-bit unsigned integer.</p>
  502. <p>The conversion for component c of v to fixed point is done as follows: packUnorm4x16: round(clamp(c, 0, +1) * 65535.0)</p>
  503. <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>
  504. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  505. <dd>
  506. <a class="el" href="a00182.html#ga13471cbbe74e4303a57f3743d007b74d" title="16 bit unsigned integer type. ">uint16</a> <a class="el" href="a00178.html#ga146ced9fe50f08bbbccac5693d717a27" title="First, converts the normalized floating-point value v into a 16-bit integer value. ">packUnorm1x16(float const &amp; v)</a> </dd>
  507. <dd>
  508. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00161.html#ga0e2d107039fe608a209497af867b85fb" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packUnorm2x16(vec2 const &amp; v)</a> </dd>
  509. <dd>
  510. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/packUnorm4x8.xml">GLSL packUnorm4x8 man page</a> </dd>
  511. <dd>
  512. <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>
  513. </div>
  514. </div>
  515. <a class="anchor" id="gabee51ecab6b477b18e7da4fc7393d0e9"></a>
  516. <div class="memitem">
  517. <div class="memproto">
  518. <table class="memname">
  519. <tr>
  520. <td class="memname">GLM_FUNC_DECL vec3 glm::unpackF2x11_1x10 </td>
  521. <td>(</td>
  522. <td class="paramtype">uint32 const &amp;&#160;</td>
  523. <td class="paramname"><em>p</em></td><td>)</td>
  524. <td></td>
  525. </tr>
  526. </table>
  527. </div><div class="memdoc">
  528. <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>
  529. <p>Then, each component is converted to a normalized floating-point value to generate the returned three-component vector.</p>
  530. <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>
  531. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  532. <dd>
  533. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#ga4944ad465ff950e926d49621f916c78d" title="First, converts the first two components of the normalized floating-point value v into 11-bit signles...">packF2x11_1x10(vec3 const &amp; v)</a> </dd></dl>
  534. </div>
  535. </div>
  536. <a class="anchor" id="ga4c5ad3375f215b9bd0e530dd43624882"></a>
  537. <div class="memitem">
  538. <div class="memproto">
  539. <table class="memname">
  540. <tr>
  541. <td class="memname">GLM_FUNC_DECL float glm::unpackHalf1x16 </td>
  542. <td>(</td>
  543. <td class="paramtype">uint16 const &amp;&#160;</td>
  544. <td class="paramname"><em>v</em></td><td>)</td>
  545. <td></td>
  546. </tr>
  547. </table>
  548. </div><div class="memdoc">
  549. <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>
  550. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  551. <dd>
  552. <a class="el" href="a00168.html#ga09d0200e8ff86391d8804b4fefd5f1da" title="2 components vector of floating-point numbers. ">vec2</a> <a class="el" href="a00161.html#ga8d431ee6df169088a08f4464976925d9" title="Returns a two-component floating-point vector with components obtained by unpacking a 32-bit unsigned...">unpackHalf2x16(uint32 const &amp; v)</a> </dd>
  553. <dd>
  554. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> <a class="el" href="a00178.html#ga7acdbf24148ef556939719cf47036524" title="Returns a four-component floating-point vector with components obtained by unpacking a 64-bit unsigne...">unpackHalf4x16(uint64 const &amp; v)</a> </dd>
  555. <dd>
  556. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackHalf2x16.xml">GLSL unpackHalf2x16 man page</a> </dd>
  557. <dd>
  558. <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>
  559. </div>
  560. </div>
  561. <a class="anchor" id="ga7acdbf24148ef556939719cf47036524"></a>
  562. <div class="memitem">
  563. <div class="memproto">
  564. <table class="memname">
  565. <tr>
  566. <td class="memname">GLM_FUNC_DECL vec4 glm::unpackHalf4x16 </td>
  567. <td>(</td>
  568. <td class="paramtype">uint64 const &amp;&#160;</td>
  569. <td class="paramname"><em>p</em></td><td>)</td>
  570. <td></td>
  571. </tr>
  572. </table>
  573. </div><div class="memdoc">
  574. <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>
  575. <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>
  576. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  577. <dd>
  578. float <a class="el" href="a00178.html#ga4c5ad3375f215b9bd0e530dd43624882" title="Returns a floating-point scalar with components obtained by unpacking a 16-bit unsigned integer into ...">unpackHalf1x16(uint16 const &amp; v)</a> </dd>
  579. <dd>
  580. <a class="el" href="a00168.html#ga09d0200e8ff86391d8804b4fefd5f1da" title="2 components vector of floating-point numbers. ">vec2</a> <a class="el" href="a00161.html#ga8d431ee6df169088a08f4464976925d9" title="Returns a two-component floating-point vector with components obtained by unpacking a 32-bit unsigned...">unpackHalf2x16(uint32 const &amp; v)</a> </dd>
  581. <dd>
  582. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackHalf2x16.xml">GLSL unpackHalf2x16 man page</a> </dd>
  583. <dd>
  584. <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.4 Floating-Point Pack and Unpack Functions</a> </dd></dl>
  585. </div>
  586. </div>
  587. <a class="anchor" id="ga1ff4f5a28d764786f916f9d069d16e86"></a>
  588. <div class="memitem">
  589. <div class="memproto">
  590. <table class="memname">
  591. <tr>
  592. <td class="memname">GLM_FUNC_DECL ivec4 glm::unpackI3x10_1x2 </td>
  593. <td>(</td>
  594. <td class="paramtype">uint32 const &amp;&#160;</td>
  595. <td class="paramname"><em>p</em></td><td>)</td>
  596. <td></td>
  597. </tr>
  598. </table>
  599. </div><div class="memdoc">
  600. <p>Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit signed integers. </p>
  601. <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>
  602. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  603. <dd>
  604. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#gada3d88d59f0f458f9c51a9fd359a4bc0" title="Returns an unsigned integer obtained by converting the components of a four-component unsigned intege...">packU3x10_1x2(uvec4 const &amp; v)</a> </dd>
  605. <dd>
  606. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> <a class="el" href="a00178.html#ga03af1e97f8a96c429524ebf20a6509f5" title="First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. ">unpackSnorm3x10_1x2(uint32 const &amp; p)</a>; </dd>
  607. <dd>
  608. <a class="el" href="a00168.html#gaa7c3a0e7ae50c34c3290415c115f251e" title="4 components vector of unsigned integer numbers. ">uvec4</a> <a class="el" href="a00178.html#ga1ff4f5a28d764786f916f9d069d16e86" title="Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit signed integers...">unpackI3x10_1x2(uint32 const &amp; p)</a>; </dd></dl>
  609. </div>
  610. </div>
  611. <a class="anchor" id="ga7a065826893fb3ab85097a8ed23d6654"></a>
  612. <div class="memitem">
  613. <div class="memproto">
  614. <table class="memname">
  615. <tr>
  616. <td class="memname">GLM_FUNC_DECL float glm::unpackSnorm1x16 </td>
  617. <td>(</td>
  618. <td class="paramtype">uint16 const &amp;&#160;</td>
  619. <td class="paramname"><em>p</em></td><td>)</td>
  620. <td></td>
  621. </tr>
  622. </table>
  623. </div><div class="memdoc">
  624. <p>First, unpacks a single 16-bit unsigned integer p into a single 16-bit signed integers. </p>
  625. <p>Then, each component is converted to a normalized floating-point value to generate the returned scalar.</p>
  626. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm1x16: clamp(f / 32767.0, -1, +1)</p>
  627. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  628. <dd>
  629. <a class="el" href="a00168.html#ga09d0200e8ff86391d8804b4fefd5f1da" title="2 components vector of floating-point numbers. ">vec2</a> unpackSnorm2x16(uint32 p) </dd>
  630. <dd>
  631. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> unpackSnorm4x16(uint64 p) </dd>
  632. <dd>
  633. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackSnorm1x16.xml">GLSL unpackSnorm4x8 man page</a> </dd>
  634. <dd>
  635. <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>
  636. </div>
  637. </div>
  638. <a class="anchor" id="gacb89a737b93aa41e3efce2148fffbea4"></a>
  639. <div class="memitem">
  640. <div class="memproto">
  641. <table class="memname">
  642. <tr>
  643. <td class="memname">GLM_FUNC_DECL float glm::unpackSnorm1x8 </td>
  644. <td>(</td>
  645. <td class="paramtype">uint8 const &amp;&#160;</td>
  646. <td class="paramname"><em>p</em></td><td>)</td>
  647. <td></td>
  648. </tr>
  649. </table>
  650. </div><div class="memdoc">
  651. <p>First, unpacks a single 8-bit unsigned integer p into a single 8-bit signed integers. </p>
  652. <p>Then, the value is converted to a normalized floating-point value to generate the returned scalar.</p>
  653. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm1x8: clamp(f / 127.0, -1, +1)</p>
  654. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  655. <dd>
  656. <a class="el" href="a00168.html#ga09d0200e8ff86391d8804b4fefd5f1da" title="2 components vector of floating-point numbers. ">vec2</a> unpackSnorm2x8(uint16 p) </dd>
  657. <dd>
  658. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> unpackSnorm4x8(uint32 p) </dd>
  659. <dd>
  660. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackSnorm4x8.xml">GLSL unpackSnorm4x8 man page</a> </dd>
  661. <dd>
  662. <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>
  663. </div>
  664. </div>
  665. <a class="anchor" id="gaca99cad292a1045eefb1ad4cb535c31a"></a>
  666. <div class="memitem">
  667. <div class="memproto">
  668. <table class="memname">
  669. <tr>
  670. <td class="memname">GLM_FUNC_DECL vec2 glm::unpackSnorm2x8 </td>
  671. <td>(</td>
  672. <td class="paramtype">uint16 const &amp;&#160;</td>
  673. <td class="paramname"><em>p</em></td><td>)</td>
  674. <td></td>
  675. </tr>
  676. </table>
  677. </div><div class="memdoc">
  678. <p>First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit signed integers. </p>
  679. <p>Then, each component is converted to a normalized floating-point value to generate the returned two-component vector.</p>
  680. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm2x8: clamp(f / 127.0, -1, +1)</p>
  681. <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>
  682. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  683. <dd>
  684. float unpackSnorm1x8(uint8 p) </dd>
  685. <dd>
  686. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> unpackSnorm4x8(uint32 p) </dd>
  687. <dd>
  688. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackSnorm4x8.xml">GLSL unpackSnorm4x8 man page</a> </dd>
  689. <dd>
  690. <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>
  691. </div>
  692. </div>
  693. <a class="anchor" id="ga03af1e97f8a96c429524ebf20a6509f5"></a>
  694. <div class="memitem">
  695. <div class="memproto">
  696. <table class="memname">
  697. <tr>
  698. <td class="memname">GLM_FUNC_DECL vec4 glm::unpackSnorm3x10_1x2 </td>
  699. <td>(</td>
  700. <td class="paramtype">uint32 const &amp;&#160;</td>
  701. <td class="paramname"><em>p</em></td><td>)</td>
  702. <td></td>
  703. </tr>
  704. </table>
  705. </div><div class="memdoc">
  706. <p>First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. </p>
  707. <p>Then, each component is converted to a normalized floating-point value to generate the returned four-component vector.</p>
  708. <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>
  709. <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>
  710. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  711. <dd>
  712. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#gab997545661877d2c7362a5084d3897d3" title="First, converts the first three components of the normalized floating-point value v into 10-bit signe...">packSnorm3x10_1x2(vec4 const &amp; v)</a> </dd>
  713. <dd>
  714. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> <a class="el" href="a00178.html#gabec69b5ec17cd939035302551bfd04e5" title="First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. ">unpackUnorm3x10_1x2(uint32 const &amp; p)</a>) </dd>
  715. <dd>
  716. <a class="el" href="a00168.html#gaa7c3a0e7ae50c34c3290415c115f251e" title="4 components vector of unsigned integer numbers. ">uvec4</a> <a class="el" href="a00178.html#ga1ff4f5a28d764786f916f9d069d16e86" title="Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit signed integers...">unpackI3x10_1x2(uint32 const &amp; p)</a> </dd>
  717. <dd>
  718. <a class="el" href="a00168.html#gaa7c3a0e7ae50c34c3290415c115f251e" title="4 components vector of unsigned integer numbers. ">uvec4</a> <a class="el" href="a00178.html#gaef276e11b8246c34d993b0eb01f66481" title="Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit unsigned integers...">unpackU3x10_1x2(uint32 const &amp; p)</a> </dd></dl>
  719. </div>
  720. </div>
  721. <a class="anchor" id="gadb01fc0530f07beb509c89d97b6f4d20"></a>
  722. <div class="memitem">
  723. <div class="memproto">
  724. <table class="memname">
  725. <tr>
  726. <td class="memname">GLM_FUNC_DECL vec4 glm::unpackSnorm4x16 </td>
  727. <td>(</td>
  728. <td class="paramtype">uint64 const &amp;&#160;</td>
  729. <td class="paramname"><em>p</em></td><td>)</td>
  730. <td></td>
  731. </tr>
  732. </table>
  733. </div><div class="memdoc">
  734. <p>First, unpacks a single 64-bit unsigned integer p into four 16-bit signed integers. </p>
  735. <p>Then, each component is converted to a normalized floating-point value to generate the returned four-component vector.</p>
  736. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackSnorm4x16: clamp(f / 32767.0, -1, +1)</p>
  737. <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>
  738. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  739. <dd>
  740. float unpackSnorm1x16(uint16 p) </dd>
  741. <dd>
  742. <a class="el" href="a00168.html#ga09d0200e8ff86391d8804b4fefd5f1da" title="2 components vector of floating-point numbers. ">vec2</a> unpackSnorm2x16(uint32 p) </dd>
  743. <dd>
  744. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackSnorm2x16.xml">GLSL unpackSnorm4x8 man page</a> </dd>
  745. <dd>
  746. <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>
  747. </div>
  748. </div>
  749. <a class="anchor" id="gaef276e11b8246c34d993b0eb01f66481"></a>
  750. <div class="memitem">
  751. <div class="memproto">
  752. <table class="memname">
  753. <tr>
  754. <td class="memname">GLM_FUNC_DECL uvec4 glm::unpackU3x10_1x2 </td>
  755. <td>(</td>
  756. <td class="paramtype">uint32 const &amp;&#160;</td>
  757. <td class="paramname"><em>p</em></td><td>)</td>
  758. <td></td>
  759. </tr>
  760. </table>
  761. </div><div class="memdoc">
  762. <p>Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit unsigned integers. </p>
  763. <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>
  764. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  765. <dd>
  766. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#gada3d88d59f0f458f9c51a9fd359a4bc0" title="Returns an unsigned integer obtained by converting the components of a four-component unsigned intege...">packU3x10_1x2(uvec4 const &amp; v)</a> </dd>
  767. <dd>
  768. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> <a class="el" href="a00178.html#ga03af1e97f8a96c429524ebf20a6509f5" title="First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. ">unpackSnorm3x10_1x2(uint32 const &amp; p)</a>; </dd>
  769. <dd>
  770. <a class="el" href="a00168.html#gaa7c3a0e7ae50c34c3290415c115f251e" title="4 components vector of unsigned integer numbers. ">uvec4</a> <a class="el" href="a00178.html#ga1ff4f5a28d764786f916f9d069d16e86" title="Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit signed integers...">unpackI3x10_1x2(uint32 const &amp; p)</a>; </dd></dl>
  771. </div>
  772. </div>
  773. <a class="anchor" id="gac2e137ade637150f6a9a14e394c3064b"></a>
  774. <div class="memitem">
  775. <div class="memproto">
  776. <table class="memname">
  777. <tr>
  778. <td class="memname">GLM_FUNC_DECL float glm::unpackUnorm1x16 </td>
  779. <td>(</td>
  780. <td class="paramtype">uint16 const &amp;&#160;</td>
  781. <td class="paramname"><em>p</em></td><td>)</td>
  782. <td></td>
  783. </tr>
  784. </table>
  785. </div><div class="memdoc">
  786. <p>First, unpacks a single 16-bit unsigned integer p into a of 16-bit unsigned integers. </p>
  787. <p>Then, the value is converted to a normalized floating-point value to generate the returned scalar.</p>
  788. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnorm1x16: f / 65535.0</p>
  789. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  790. <dd>
  791. <a class="el" href="a00168.html#ga09d0200e8ff86391d8804b4fefd5f1da" title="2 components vector of floating-point numbers. ">vec2</a> unpackUnorm2x16(uint32 p) </dd>
  792. <dd>
  793. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> unpackUnorm4x16(uint64 p) </dd>
  794. <dd>
  795. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackUnorm2x16.xml">GLSL unpackUnorm2x16 man page</a> </dd>
  796. <dd>
  797. <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>
  798. </div>
  799. </div>
  800. <a class="anchor" id="ga5e96a68924f1a4a9f4d75475098f5ddb"></a>
  801. <div class="memitem">
  802. <div class="memproto">
  803. <table class="memname">
  804. <tr>
  805. <td class="memname">GLM_FUNC_DECL float glm::unpackUnorm1x8 </td>
  806. <td>(</td>
  807. <td class="paramtype">uint8 const &amp;&#160;</td>
  808. <td class="paramname"><em>p</em></td><td>)</td>
  809. <td></td>
  810. </tr>
  811. </table>
  812. </div><div class="memdoc">
  813. <p>Convert a single 8-bit integer to a normalized floating-point value. </p>
  814. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnorm4x8: f / 255.0</p>
  815. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  816. <dd>
  817. <a class="el" href="a00168.html#ga09d0200e8ff86391d8804b4fefd5f1da" title="2 components vector of floating-point numbers. ">vec2</a> unpackUnorm2x8(uint16 p) </dd>
  818. <dd>
  819. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> unpackUnorm4x8(uint32 p) </dd>
  820. <dd>
  821. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackUnorm4x8.xml">GLSL unpackUnorm4x8 man page</a> </dd>
  822. <dd>
  823. <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>
  824. </div>
  825. </div>
  826. <a class="anchor" id="ga2f28b1b4f401c6cec9465a0f266a1481"></a>
  827. <div class="memitem">
  828. <div class="memproto">
  829. <table class="memname">
  830. <tr>
  831. <td class="memname">GLM_FUNC_DECL vec2 glm::unpackUnorm2x8 </td>
  832. <td>(</td>
  833. <td class="paramtype">uint16 const &amp;&#160;</td>
  834. <td class="paramname"><em>p</em></td><td>)</td>
  835. <td></td>
  836. </tr>
  837. </table>
  838. </div><div class="memdoc">
  839. <p>First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit unsigned integers. </p>
  840. <p>Then, each component is converted to a normalized floating-point value to generate the returned two-component vector.</p>
  841. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnorm4x8: f / 255.0</p>
  842. <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>
  843. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  844. <dd>
  845. float unpackUnorm1x8(uint8 v) </dd>
  846. <dd>
  847. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> unpackUnorm4x8(uint32 p) </dd>
  848. <dd>
  849. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackUnorm4x8.xml">GLSL unpackUnorm4x8 man page</a> </dd>
  850. <dd>
  851. <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>
  852. </div>
  853. </div>
  854. <a class="anchor" id="gabec69b5ec17cd939035302551bfd04e5"></a>
  855. <div class="memitem">
  856. <div class="memproto">
  857. <table class="memname">
  858. <tr>
  859. <td class="memname">GLM_FUNC_DECL vec4 glm::unpackUnorm3x10_1x2 </td>
  860. <td>(</td>
  861. <td class="paramtype">uint32 const &amp;&#160;</td>
  862. <td class="paramname"><em>p</em></td><td>)</td>
  863. <td></td>
  864. </tr>
  865. </table>
  866. </div><div class="memdoc">
  867. <p>First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. </p>
  868. <p>Then, each component is converted to a normalized floating-point value to generate the returned four-component vector.</p>
  869. <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>
  870. <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>
  871. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  872. <dd>
  873. <a class="el" href="a00182.html#ga5fa3ddcab56c789bc272ff5651faa12d" title="32 bit unsigned integer type. ">uint32</a> <a class="el" href="a00178.html#gab997545661877d2c7362a5084d3897d3" title="First, converts the first three components of the normalized floating-point value v into 10-bit signe...">packSnorm3x10_1x2(vec4 const &amp; v)</a> </dd>
  874. <dd>
  875. <a class="el" href="a00168.html#gafbab23070ca47932487d25332adc7d7c" title="4 components vector of floating-point numbers. ">vec4</a> unpackInorm3x10_1x2(uint32 const &amp; p)) </dd>
  876. <dd>
  877. <a class="el" href="a00168.html#gaa7c3a0e7ae50c34c3290415c115f251e" title="4 components vector of unsigned integer numbers. ">uvec4</a> <a class="el" href="a00178.html#ga1ff4f5a28d764786f916f9d069d16e86" title="Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit signed integers...">unpackI3x10_1x2(uint32 const &amp; p)</a> </dd>
  878. <dd>
  879. <a class="el" href="a00168.html#gaa7c3a0e7ae50c34c3290415c115f251e" title="4 components vector of unsigned integer numbers. ">uvec4</a> <a class="el" href="a00178.html#gaef276e11b8246c34d993b0eb01f66481" title="Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit unsigned integers...">unpackU3x10_1x2(uint32 const &amp; p)</a> </dd></dl>
  880. </div>
  881. </div>
  882. <a class="anchor" id="ga0b957d3ce90faf63cf6b826939837947"></a>
  883. <div class="memitem">
  884. <div class="memproto">
  885. <table class="memname">
  886. <tr>
  887. <td class="memname">GLM_FUNC_DECL vec4 glm::unpackUnorm4x16 </td>
  888. <td>(</td>
  889. <td class="paramtype">uint64 const &amp;&#160;</td>
  890. <td class="paramname"><em>p</em></td><td>)</td>
  891. <td></td>
  892. </tr>
  893. </table>
  894. </div><div class="memdoc">
  895. <p>First, unpacks a single 64-bit unsigned integer p into four 16-bit unsigned integers. </p>
  896. <p>Then, each component is converted to a normalized floating-point value to generate the returned four-component vector.</p>
  897. <p>The conversion for unpacked fixed-point value f to floating point is done as follows: unpackUnormx4x16: f / 65535.0</p>
  898. <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>
  899. <dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00178.html" title="This extension provides a set of function to convert vertors to packed formats. ">GLM_GTC_packing</a> </dd>
  900. <dd>
  901. float unpackUnorm1x16(uint16 p) </dd>
  902. <dd>
  903. <a class="el" href="a00168.html#ga09d0200e8ff86391d8804b4fefd5f1da" title="2 components vector of floating-point numbers. ">vec2</a> unpackUnorm2x16(uint32 p) </dd>
  904. <dd>
  905. <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackUnorm2x16.xml">GLSL unpackUnorm2x16 man page</a> </dd>
  906. <dd>
  907. <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>
  908. </div>
  909. </div>
  910. </div><!-- contents -->
  911. <!-- start footer part -->
  912. <hr class="footer"/><address class="footer"><small>
  913. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  914. <img class="footer" src="doxygen.png" alt="doxygen"/>
  915. </a> 1.8.5
  916. </small></address>
  917. </body>
  918. </html>