a00032_source.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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. <title>func_packing.hpp Source File</title>
  6. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  7. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  8. </head>
  9. <body>
  10. <div id="top"><!-- do not remove this div! -->
  11. <div id="titlearea">
  12. <table cellspacing="0" cellpadding="0">
  13. <tbody>
  14. <tr style="height: 56px;">
  15. <td id="projectlogo"><img alt="Logo" src="logo-mini.png"/></td>
  16. </tr>
  17. </tbody>
  18. </table>
  19. </div>
  20. <!-- Generated by Doxygen 1.7.5.1 -->
  21. <div id="navrow1" class="tabs">
  22. <ul class="tablist">
  23. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  24. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  25. <li><a href="modules.html"><span>Modules</span></a></li>
  26. <li><a href="annotated.html"><span>Classes</span></a></li>
  27. <li class="current"><a href="files.html"><span>Files</span></a></li>
  28. </ul>
  29. </div>
  30. <div id="navrow2" class="tabs2">
  31. <ul class="tablist">
  32. <li><a href="files.html"><span>File&#160;List</span></a></li>
  33. </ul>
  34. </div>
  35. <div class="header">
  36. <div class="headertitle">
  37. <div class="title">func_packing.hpp</div> </div>
  38. </div>
  39. <div class="contents">
  40. <a href="a00032.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
  41. <a name="l00002"></a>00002
  42. <a name="l00003"></a>00003
  43. <a name="l00004"></a>00004
  44. <a name="l00005"></a>00005
  45. <a name="l00006"></a>00006
  46. <a name="l00007"></a>00007
  47. <a name="l00008"></a>00008
  48. <a name="l00009"></a>00009
  49. <a name="l00010"></a>00010
  50. <a name="l00011"></a>00011
  51. <a name="l00012"></a>00012
  52. <a name="l00013"></a>00013
  53. <a name="l00014"></a>00014
  54. <a name="l00015"></a>00015
  55. <a name="l00016"></a>00016
  56. <a name="l00017"></a>00017
  57. <a name="l00018"></a>00018
  58. <a name="l00019"></a>00019
  59. <a name="l00020"></a>00020
  60. <a name="l00021"></a>00021
  61. <a name="l00022"></a>00022
  62. <a name="l00023"></a>00023
  63. <a name="l00024"></a>00024
  64. <a name="l00025"></a>00025
  65. <a name="l00026"></a>00026
  66. <a name="l00027"></a>00027
  67. <a name="l00028"></a>00028
  68. <a name="l00029"></a>00029
  69. <a name="l00030"></a>00030
  70. <a name="l00031"></a>00031
  71. <a name="l00032"></a>00032
  72. <a name="l00033"></a>00033
  73. <a name="l00034"></a>00034
  74. <a name="l00035"></a>00035
  75. <a name="l00036"></a>00036 <span class="preprocessor">#ifndef GLM_CORE_func_packing</span>
  76. <a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define GLM_CORE_func_packing GLM_VERSION</span>
  77. <a name="l00038"></a>00038 <span class="preprocessor"></span>
  78. <a name="l00039"></a>00039 <span class="keyword">namespace </span>glm
  79. <a name="l00040"></a>00040 {
  80. <a name="l00043"></a>00043
  81. <a name="l00055"></a>00055 detail::uint32 <a class="code" href="a00133.html#gae4cbe68e49e238fce5bf83c2ab03746c" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packUnorm2x16</a>(detail::tvec2&lt;detail::float32&gt; <span class="keyword">const</span> &amp; v);
  82. <a name="l00056"></a>00056
  83. <a name="l00068"></a>00068 detail::uint32 <a class="code" href="a00133.html#ga85552b13309c20c90a43fcf4906e6314" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packSnorm2x16</a>(detail::tvec2&lt;detail::float32&gt; <span class="keyword">const</span> &amp; v);
  84. <a name="l00069"></a>00069
  85. <a name="l00081"></a>00081 detail::uint32 <a class="code" href="a00133.html#ga58d4ebc6f2824dcbcef73e3764339ea4" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packUnorm4x8</a>(detail::tvec4&lt;detail::float32&gt; <span class="keyword">const</span> &amp; v);
  86. <a name="l00082"></a>00082
  87. <a name="l00094"></a>00094 detail::uint32 <a class="code" href="a00133.html#gaa9d1bf79e69382e55eb3adf51f978afd" title="First, converts each component of the normalized floating-point value v into 8- or 16-bit integer val...">packSnorm4x8</a>(detail::tvec4&lt;detail::float32&gt; <span class="keyword">const</span> &amp; v);
  88. <a name="l00095"></a>00095
  89. <a name="l00107"></a>00107 detail::tvec2&lt;detail::float32&gt; <a class="code" href="a00133.html#gad146587dbc78ae05c48b8b0e7af7e640" title="First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.">unpackUnorm2x16</a>(detail::uint32 <span class="keyword">const</span> &amp; p);
  90. <a name="l00108"></a>00108
  91. <a name="l00120"></a>00120 detail::tvec2&lt;detail::float32&gt; <a class="code" href="a00133.html#gaaf9e09346412610f361fa17a1e502090" title="First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.">unpackSnorm2x16</a>(detail::uint32 <span class="keyword">const</span> &amp; p);
  92. <a name="l00121"></a>00121
  93. <a name="l00133"></a>00133 detail::tvec4&lt;detail::float32&gt; <a class="code" href="a00133.html#gaeccbff725476f317b1464a0a0fae3be7" title="First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.">unpackUnorm4x8</a>(detail::uint32 <span class="keyword">const</span> &amp; p);
  94. <a name="l00134"></a>00134
  95. <a name="l00146"></a>00146 detail::tvec4&lt;detail::float32&gt; <a class="code" href="a00133.html#ga014513c3f058e755660f702b65559215" title="First, unpacks a single 32-bit unsigned integer p into a pair of 16-bit unsigned integers, four 8-bit unsigned integers, or four 8-bit signed integers.">unpackSnorm4x8</a>(detail::uint32 <span class="keyword">const</span> &amp; p);
  96. <a name="l00147"></a>00147
  97. <a name="l00156"></a>00156 <span class="keywordtype">double</span> <a class="code" href="a00133.html#gab7776e189f8fb8210dbaf4685f9d400a" title="Returns a double-precision value obtained by packing the components of v into a 64-bit value...">packDouble2x32</a>(detail::tvec2&lt;detail::uint32&gt; <span class="keyword">const</span> &amp; v);
  98. <a name="l00157"></a>00157
  99. <a name="l00165"></a>00165 detail::tvec2&lt;detail::uint32&gt; <a class="code" href="a00133.html#gadfbce841431cb5fb8531469a6c1e01d9" title="Returns a two-component unsigned integer vector representation of v.">unpackDouble2x32</a>(<span class="keywordtype">double</span> <span class="keyword">const</span> &amp; v);
  100. <a name="l00166"></a>00166
  101. <a name="l00167"></a>00167
  102. <a name="l00176"></a>00176 <a class="code" href="a00141.html#ga4d16da297112d05af72fc456a1c4f386" title="Unsigned integer type.">uint</a> <a class="code" href="a00133.html#ga5f63a9353416d3d240962520d5e77dbc" title="Returns an unsigned integer obtained by converting the components of a two-component floating-point v...">packHalf2x16</a>(<a class="code" href="a00140.html#ga80139c81aa2687717598312039cea8d1" title="2 components vector of floating-point numbers.">vec2</a> <span class="keyword">const</span> &amp; v);
  103. <a name="l00177"></a>00177
  104. <a name="l00186"></a>00186 <a class="code" href="a00140.html#ga80139c81aa2687717598312039cea8d1" title="2 components vector of floating-point numbers.">vec2</a> <a class="code" href="a00133.html#ga74e86400717e9a83f30ef8610a122daf" title="Returns a two-component floating-point vector with components obtained by unpacking a 32-bit unsigned...">unpackHalf2x16</a>(<a class="code" href="a00141.html#ga4d16da297112d05af72fc456a1c4f386" title="Unsigned integer type.">uint</a> <span class="keyword">const</span> &amp; v);
  105. <a name="l00187"></a>00187
  106. <a name="l00189"></a>00189 }<span class="comment">//namespace glm</span>
  107. <a name="l00190"></a>00190
  108. <a name="l00191"></a>00191 <span class="preprocessor">#include &quot;func_packing.inl&quot;</span>
  109. <a name="l00192"></a>00192
  110. <a name="l00193"></a>00193 <span class="preprocessor">#endif//GLM_CORE_func_packing</span>
  111. <a name="l00194"></a>00194 <span class="preprocessor"></span>
  112. </pre></div></div>
  113. </div>
  114. <hr class="footer"/><address class="footer"><small>
  115. Generated by &#160;<a href="http://www.doxygen.org/index.html">
  116. <img class="footer" src="doxygen.png" alt="doxygen"/>
  117. </a> 1.7.5.1
  118. </small></address>
  119. </body>
  120. </html>