mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
174 lines
29 KiB
HTML
174 lines
29 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.8.8"/>
|
|
<title>0.9.6: packing.hpp Source File</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">0.9.6
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.8 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li class="current"><a href="files.html"><span>Files</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="files.html"><span>File List</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="nav-path" class="navpath">
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_153b03dd71a7bff437c38ec53cb2e014.html">Source</a></li><li class="navelem"><a class="el" href="dir_0c6652232a835be54bedd6cfd7502504.html">G-Truc</a></li><li class="navelem"><a class="el" href="dir_e2c7faa62a52820b5be8795affd6e495.html">glm</a></li><li class="navelem"><a class="el" href="dir_5cf96241cdcf6779b80e104875f9716f.html">glm</a></li><li class="navelem"><a class="el" href="dir_8aa733b201d3a9f98631fbccc86ae6c7.html">gtc</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">gtc/packing.hpp</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<a href="a00086.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div>
|
|
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="preprocessor">#pragma once</span></div>
|
|
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span> </div>
|
|
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment">// Dependency:</span></div>
|
|
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="preprocessor">#include "<a class="code" href="a00129.html">type_precision.hpp</a>"</span></div>
|
|
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div>
|
|
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span> <span class="preprocessor">#if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))</span></div>
|
|
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span> <span class="preprocessor"># pragma message("GLM: GLM_GTC_packing extension included")</span></div>
|
|
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span> <span class="preprocessor">#endif</span></div>
|
|
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span> </div>
|
|
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span> <span class="keyword">namespace </span><a class="code" href="a00145.html">glm</a></div>
|
|
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span> {</div>
|
|
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div>
|
|
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  GLM_FUNC_DECL uint8 <a class="code" href="a00173.html#ga4b2fa60df3460403817d28b082ee0736">packUnorm1x8</a>(<span class="keywordtype">float</span> v);</div>
|
|
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span> </div>
|
|
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  GLM_FUNC_DECL <span class="keywordtype">float</span> <a class="code" href="a00173.html#ga1319207e30874fb4931a9ee913983ee1">unpackUnorm1x8</a>(uint8 p);</div>
|
|
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span> </div>
|
|
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  GLM_FUNC_DECL uint16 <a class="code" href="a00173.html#ga9a666b1c688ab54100061ed06526de6e">packUnorm2x8</a>(<a class="code" href="a00161.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> </div>
|
|
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  GLM_FUNC_DECL <a class="code" href="a00161.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> <a class="code" href="a00173.html#ga637cbe3913dd95c6e7b4c99c61bd611f">unpackUnorm2x8</a>(uint16 p);</div>
|
|
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  </div>
|
|
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  GLM_FUNC_DECL uint8 <a class="code" href="a00173.html#gae3592e0795e62aaa1865b3a10496a7a1">packSnorm1x8</a>(<span class="keywordtype">float</span> s);</div>
|
|
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div>
|
|
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  GLM_FUNC_DECL <span class="keywordtype">float</span> <a class="code" href="a00173.html#ga4851ff86678aa1c7ace9d67846894285">unpackSnorm1x8</a>(uint8 p);</div>
|
|
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  </div>
|
|
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>  GLM_FUNC_DECL uint16 <a class="code" href="a00173.html#ga6be3cfb2cce3702f03e91bbeb5286d7e">packSnorm2x8</a>(<a class="code" href="a00161.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span> </div>
|
|
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>  GLM_FUNC_DECL <a class="code" href="a00161.html#ga09d0200e8ff86391d8804b4fefd5f1da">vec2</a> <a class="code" href="a00173.html#ga8b128e89be449fc71336968a66bf6e1a">unpackSnorm2x8</a>(uint16 p);</div>
|
|
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>  </div>
|
|
<div class="line"><a name="l00183"></a><span class="lineno"> 183</span>  GLM_FUNC_DECL uint16 <a class="code" href="a00173.html#ga9f82737bf2a44bedff1d286b76837886">packUnorm1x16</a>(<span class="keywordtype">float</span> v);</div>
|
|
<div class="line"><a name="l00184"></a><span class="lineno"> 184</span> </div>
|
|
<div class="line"><a name="l00196"></a><span class="lineno"> 196</span>  GLM_FUNC_DECL <span class="keywordtype">float</span> <a class="code" href="a00173.html#ga83d34160a5cb7bcb5339823210fc7501">unpackUnorm1x16</a>(uint16 p);</div>
|
|
<div class="line"><a name="l00197"></a><span class="lineno"> 197</span> </div>
|
|
<div class="line"><a name="l00212"></a><span class="lineno"> 212</span>  GLM_FUNC_DECL uint64 <a class="code" href="a00173.html#ga1f63c264e7ab63264e2b2a99fd393897">packUnorm4x16</a>(<a class="code" href="a00161.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00213"></a><span class="lineno"> 213</span> </div>
|
|
<div class="line"><a name="l00228"></a><span class="lineno"> 228</span>  GLM_FUNC_DECL <a class="code" href="a00161.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> <a class="code" href="a00173.html#ga2ae149c5d2473ac1e5f347bb654a242d">unpackUnorm4x16</a>(uint64 p);</div>
|
|
<div class="line"><a name="l00229"></a><span class="lineno"> 229</span> </div>
|
|
<div class="line"><a name="l00241"></a><span class="lineno"> 241</span>  GLM_FUNC_DECL uint16 <a class="code" href="a00173.html#gab22f8bcfdb5fc65af4701b25f143c1af">packSnorm1x16</a>(<span class="keywordtype">float</span> v);</div>
|
|
<div class="line"><a name="l00242"></a><span class="lineno"> 242</span> </div>
|
|
<div class="line"><a name="l00254"></a><span class="lineno"> 254</span>  GLM_FUNC_DECL <span class="keywordtype">float</span> <a class="code" href="a00173.html#ga96dd15002370627a443c835ab03a766c">unpackSnorm1x16</a>(uint16 p);</div>
|
|
<div class="line"><a name="l00255"></a><span class="lineno"> 255</span> </div>
|
|
<div class="line"><a name="l00270"></a><span class="lineno"> 270</span>  GLM_FUNC_DECL uint64 <a class="code" href="a00173.html#ga358943934d21da947d5bcc88c2ab7832">packSnorm4x16</a>(<a class="code" href="a00161.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00271"></a><span class="lineno"> 271</span> </div>
|
|
<div class="line"><a name="l00286"></a><span class="lineno"> 286</span>  GLM_FUNC_DECL <a class="code" href="a00161.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> <a class="code" href="a00173.html#gadb01fc0530f07beb509c89d97b6f4d20">unpackSnorm4x16</a>(uint64 <span class="keyword">const</span> & p);</div>
|
|
<div class="line"><a name="l00287"></a><span class="lineno"> 287</span>  </div>
|
|
<div class="line"><a name="l00297"></a><span class="lineno"> 297</span>  GLM_FUNC_DECL uint16 <a class="code" href="a00173.html#ga43f2093b6ff192a79058ff7834fc3528">packHalf1x16</a>(<span class="keywordtype">float</span> v);</div>
|
|
<div class="line"><a name="l00298"></a><span class="lineno"> 298</span>  </div>
|
|
<div class="line"><a name="l00308"></a><span class="lineno"> 308</span>  GLM_FUNC_DECL <span class="keywordtype">float</span> <a class="code" href="a00173.html#gac37dedaba24b00adb4ec6e8f92c19dbf">unpackHalf1x16</a>(uint16 v);</div>
|
|
<div class="line"><a name="l00309"></a><span class="lineno"> 309</span> </div>
|
|
<div class="line"><a name="l00321"></a><span class="lineno"> 321</span>  GLM_FUNC_DECL uint64 <a class="code" href="a00173.html#gafe2f7b39caf8f5ec555e1c059ec530e6">packHalf4x16</a>(<a class="code" href="a00161.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00322"></a><span class="lineno"> 322</span>  </div>
|
|
<div class="line"><a name="l00334"></a><span class="lineno"> 334</span>  GLM_FUNC_DECL <a class="code" href="a00161.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> <a class="code" href="a00173.html#ga57dfc41b2eb20b0ac00efae7d9c49dcd">unpackHalf4x16</a>(uint64 p);</div>
|
|
<div class="line"><a name="l00335"></a><span class="lineno"> 335</span> </div>
|
|
<div class="line"><a name="l00347"></a><span class="lineno"> 347</span>  GLM_FUNC_DECL uint32 <a class="code" href="a00173.html#ga06ecb6afb902dba45419008171db9023">packI3x10_1x2</a>(<a class="code" href="a00161.html#gaaa26c41d168dc00be0fe55f4d0a34224">ivec4</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00348"></a><span class="lineno"> 348</span> </div>
|
|
<div class="line"><a name="l00358"></a><span class="lineno"> 358</span>  GLM_FUNC_DECL <a class="code" href="a00161.html#gaaa26c41d168dc00be0fe55f4d0a34224">ivec4</a> <a class="code" href="a00173.html#ga9a05330e5490be0908d3b117d82aff56">unpackI3x10_1x2</a>(uint32 p);</div>
|
|
<div class="line"><a name="l00359"></a><span class="lineno"> 359</span> </div>
|
|
<div class="line"><a name="l00371"></a><span class="lineno"> 371</span>  GLM_FUNC_DECL uint32 <a class="code" href="a00173.html#gada3d88d59f0f458f9c51a9fd359a4bc0">packU3x10_1x2</a>(<a class="code" href="a00161.html#gaa7c3a0e7ae50c34c3290415c115f251e">uvec4</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00372"></a><span class="lineno"> 372</span> </div>
|
|
<div class="line"><a name="l00382"></a><span class="lineno"> 382</span>  GLM_FUNC_DECL <a class="code" href="a00161.html#gaa7c3a0e7ae50c34c3290415c115f251e">uvec4</a> <a class="code" href="a00173.html#ga48df3042a7d079767f5891a1bfd8a60a">unpackU3x10_1x2</a>(uint32 p);</div>
|
|
<div class="line"><a name="l00383"></a><span class="lineno"> 383</span> </div>
|
|
<div class="line"><a name="l00400"></a><span class="lineno"> 400</span>  GLM_FUNC_DECL uint32 <a class="code" href="a00173.html#gab997545661877d2c7362a5084d3897d3">packSnorm3x10_1x2</a>(<a class="code" href="a00161.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00401"></a><span class="lineno"> 401</span> </div>
|
|
<div class="line"><a name="l00417"></a><span class="lineno"> 417</span>  GLM_FUNC_DECL <a class="code" href="a00161.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> <a class="code" href="a00173.html#ga7a4fbf79be9740e3c57737bc2af05e5b">unpackSnorm3x10_1x2</a>(uint32 p);</div>
|
|
<div class="line"><a name="l00418"></a><span class="lineno"> 418</span> </div>
|
|
<div class="line"><a name="l00435"></a><span class="lineno"> 435</span>  GLM_FUNC_DECL uint32 <a class="code" href="a00173.html#ga8a1ee625d2707c60530fb3fca2980b19">packUnorm3x10_1x2</a>(<a class="code" href="a00161.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00436"></a><span class="lineno"> 436</span> </div>
|
|
<div class="line"><a name="l00452"></a><span class="lineno"> 452</span>  GLM_FUNC_DECL <a class="code" href="a00161.html#gafbab23070ca47932487d25332adc7d7c">vec4</a> <a class="code" href="a00173.html#ga5156d3060355fe332865da2c7f78815f">unpackUnorm3x10_1x2</a>(uint32 p);</div>
|
|
<div class="line"><a name="l00453"></a><span class="lineno"> 453</span> </div>
|
|
<div class="line"><a name="l00463"></a><span class="lineno"> 463</span>  GLM_FUNC_DECL uint32 <a class="code" href="a00173.html#ga4944ad465ff950e926d49621f916c78d">packF2x11_1x10</a>(<a class="code" href="a00161.html#gaa8ea2429bb3cb41a715258a447f39897">vec3</a> <span class="keyword">const</span> & v);</div>
|
|
<div class="line"><a name="l00464"></a><span class="lineno"> 464</span> </div>
|
|
<div class="line"><a name="l00473"></a><span class="lineno"> 473</span>  GLM_FUNC_DECL <a class="code" href="a00161.html#gaa8ea2429bb3cb41a715258a447f39897">vec3</a> <a class="code" href="a00173.html#ga2b1fd1e854705b1345e98409e0a25e50">unpackF2x11_1x10</a>(uint32 p);</div>
|
|
<div class="line"><a name="l00474"></a><span class="lineno"> 474</span> </div>
|
|
<div class="line"><a name="l00476"></a><span class="lineno"> 476</span> }<span class="comment">// namespace glm</span></div>
|
|
<div class="line"><a name="l00477"></a><span class="lineno"> 477</span> </div>
|
|
<div class="line"><a name="l00478"></a><span class="lineno"> 478</span> <span class="preprocessor">#include "packing.inl"</span></div>
|
|
<div class="ttc" id="a00173_html_gae3592e0795e62aaa1865b3a10496a7a1"><div class="ttname"><a href="a00173.html#gae3592e0795e62aaa1865b3a10496a7a1">glm::packSnorm1x8</a></div><div class="ttdeci">GLM_FUNC_DECL uint8 packSnorm1x8(float s)</div><div class="ttdoc">First, converts the normalized floating-point value v into 8-bit integer value. </div></div>
|
|
<div class="ttc" id="a00173_html_ga7a4fbf79be9740e3c57737bc2af05e5b"><div class="ttname"><a href="a00173.html#ga7a4fbf79be9740e3c57737bc2af05e5b">glm::unpackSnorm3x10_1x2</a></div><div class="ttdeci">GLM_FUNC_DECL vec4 unpackSnorm3x10_1x2(uint32 p)</div><div class="ttdoc">First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. </div></div>
|
|
<div class="ttc" id="a00173_html_gadb01fc0530f07beb509c89d97b6f4d20"><div class="ttname"><a href="a00173.html#gadb01fc0530f07beb509c89d97b6f4d20">glm::unpackSnorm4x16</a></div><div class="ttdeci">GLM_FUNC_DECL vec4 unpackSnorm4x16(uint64 const &p)</div><div class="ttdoc">First, unpacks a single 64-bit unsigned integer p into four 16-bit signed integers. </div></div>
|
|
<div class="ttc" id="a00173_html_gada3d88d59f0f458f9c51a9fd359a4bc0"><div class="ttname"><a href="a00173.html#gada3d88d59f0f458f9c51a9fd359a4bc0">glm::packU3x10_1x2</a></div><div class="ttdeci">GLM_FUNC_DECL uint32 packU3x10_1x2(uvec4 const &v)</div><div class="ttdoc">Returns an unsigned integer obtained by converting the components of a four-component unsigned intege...</div></div>
|
|
<div class="ttc" id="a00173_html_gafe2f7b39caf8f5ec555e1c059ec530e6"><div class="ttname"><a href="a00173.html#gafe2f7b39caf8f5ec555e1c059ec530e6">glm::packHalf4x16</a></div><div class="ttdeci">GLM_FUNC_DECL uint64 packHalf4x16(vec4 const &v)</div><div class="ttdoc">Returns an unsigned integer obtained by converting the components of a four-component floating-point ...</div></div>
|
|
<div class="ttc" id="a00161_html_gafbab23070ca47932487d25332adc7d7c"><div class="ttname"><a href="a00161.html#gafbab23070ca47932487d25332adc7d7c">glm::vec4</a></div><div class="ttdeci">highp_vec4 vec4</div><div class="ttdoc">4 components vector of floating-point numbers. </div><div class="ttdef"><b>Definition:</b> <a href="a00131_source.html#l00402">type_vec.hpp:402</a></div></div>
|
|
<div class="ttc" id="a00173_html_ga48df3042a7d079767f5891a1bfd8a60a"><div class="ttname"><a href="a00173.html#ga48df3042a7d079767f5891a1bfd8a60a">glm::unpackU3x10_1x2</a></div><div class="ttdeci">GLM_FUNC_DECL uvec4 unpackU3x10_1x2(uint32 p)</div><div class="ttdoc">Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit unsigned integers...</div></div>
|
|
<div class="ttc" id="a00173_html_ga4b2fa60df3460403817d28b082ee0736"><div class="ttname"><a href="a00173.html#ga4b2fa60df3460403817d28b082ee0736">glm::packUnorm1x8</a></div><div class="ttdeci">GLM_FUNC_DECL uint8 packUnorm1x8(float v)</div><div class="ttdoc">First, converts the normalized floating-point value v into a 8-bit integer value. ...</div></div>
|
|
<div class="ttc" id="a00161_html_gaaa26c41d168dc00be0fe55f4d0a34224"><div class="ttname"><a href="a00161.html#gaaa26c41d168dc00be0fe55f4d0a34224">glm::ivec4</a></div><div class="ttdeci">highp_ivec4 ivec4</div><div class="ttdoc">4 components vector of signed integer numbers. </div><div class="ttdef"><b>Definition:</b> <a href="a00131_source.html#l00458">type_vec.hpp:458</a></div></div>
|
|
<div class="ttc" id="a00173_html_ga96dd15002370627a443c835ab03a766c"><div class="ttname"><a href="a00173.html#ga96dd15002370627a443c835ab03a766c">glm::unpackSnorm1x16</a></div><div class="ttdeci">GLM_FUNC_DECL float unpackSnorm1x16(uint16 p)</div><div class="ttdoc">First, unpacks a single 16-bit unsigned integer p into a single 16-bit signed integers. </div></div>
|
|
<div class="ttc" id="a00173_html_ga5156d3060355fe332865da2c7f78815f"><div class="ttname"><a href="a00173.html#ga5156d3060355fe332865da2c7f78815f">glm::unpackUnorm3x10_1x2</a></div><div class="ttdeci">GLM_FUNC_DECL vec4 unpackUnorm3x10_1x2(uint32 p)</div><div class="ttdoc">First, unpacks a single 32-bit unsigned integer p into four 16-bit signed integers. </div></div>
|
|
<div class="ttc" id="a00173_html_ga8b128e89be449fc71336968a66bf6e1a"><div class="ttname"><a href="a00173.html#ga8b128e89be449fc71336968a66bf6e1a">glm::unpackSnorm2x8</a></div><div class="ttdeci">GLM_FUNC_DECL vec2 unpackSnorm2x8(uint16 p)</div><div class="ttdoc">First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit signed integers. </div></div>
|
|
<div class="ttc" id="a00173_html_ga43f2093b6ff192a79058ff7834fc3528"><div class="ttname"><a href="a00173.html#ga43f2093b6ff192a79058ff7834fc3528">glm::packHalf1x16</a></div><div class="ttdeci">GLM_FUNC_DECL uint16 packHalf1x16(float v)</div><div class="ttdoc">Returns an unsigned integer obtained by converting the components of a floating-point scalar to the 1...</div></div>
|
|
<div class="ttc" id="a00173_html_ga4851ff86678aa1c7ace9d67846894285"><div class="ttname"><a href="a00173.html#ga4851ff86678aa1c7ace9d67846894285">glm::unpackSnorm1x8</a></div><div class="ttdeci">GLM_FUNC_DECL float unpackSnorm1x8(uint8 p)</div><div class="ttdoc">First, unpacks a single 8-bit unsigned integer p into a single 8-bit signed integers. </div></div>
|
|
<div class="ttc" id="a00173_html_ga4944ad465ff950e926d49621f916c78d"><div class="ttname"><a href="a00173.html#ga4944ad465ff950e926d49621f916c78d">glm::packF2x11_1x10</a></div><div class="ttdeci">GLM_FUNC_DECL uint32 packF2x11_1x10(vec3 const &v)</div><div class="ttdoc">First, converts the first two components of the normalized floating-point value v into 11-bit signles...</div></div>
|
|
<div class="ttc" id="a00173_html_ga9f82737bf2a44bedff1d286b76837886"><div class="ttname"><a href="a00173.html#ga9f82737bf2a44bedff1d286b76837886">glm::packUnorm1x16</a></div><div class="ttdeci">GLM_FUNC_DECL uint16 packUnorm1x16(float v)</div><div class="ttdoc">First, converts the normalized floating-point value v into a 16-bit integer value. </div></div>
|
|
<div class="ttc" id="a00129_html"><div class="ttname"><a href="a00129.html">type_precision.hpp</a></div><div class="ttdoc">OpenGL Mathematics (glm.g-truc.net) </div></div>
|
|
<div class="ttc" id="a00173_html_ga83d34160a5cb7bcb5339823210fc7501"><div class="ttname"><a href="a00173.html#ga83d34160a5cb7bcb5339823210fc7501">glm::unpackUnorm1x16</a></div><div class="ttdeci">GLM_FUNC_DECL float unpackUnorm1x16(uint16 p)</div><div class="ttdoc">First, unpacks a single 16-bit unsigned integer p into a of 16-bit unsigned integers. </div></div>
|
|
<div class="ttc" id="a00173_html_ga1f63c264e7ab63264e2b2a99fd393897"><div class="ttname"><a href="a00173.html#ga1f63c264e7ab63264e2b2a99fd393897">glm::packUnorm4x16</a></div><div class="ttdeci">GLM_FUNC_DECL uint64 packUnorm4x16(vec4 const &v)</div><div class="ttdoc">First, converts each component of the normalized floating-point value v into 16-bit integer values...</div></div>
|
|
<div class="ttc" id="a00173_html_ga9a05330e5490be0908d3b117d82aff56"><div class="ttname"><a href="a00173.html#ga9a05330e5490be0908d3b117d82aff56">glm::unpackI3x10_1x2</a></div><div class="ttdeci">GLM_FUNC_DECL ivec4 unpackI3x10_1x2(uint32 p)</div><div class="ttdoc">Unpacks a single 32-bit unsigned integer p into three 10-bit and one 2-bit signed integers...</div></div>
|
|
<div class="ttc" id="a00173_html_gab22f8bcfdb5fc65af4701b25f143c1af"><div class="ttname"><a href="a00173.html#gab22f8bcfdb5fc65af4701b25f143c1af">glm::packSnorm1x16</a></div><div class="ttdeci">GLM_FUNC_DECL uint16 packSnorm1x16(float v)</div><div class="ttdoc">First, converts the normalized floating-point value v into 16-bit integer value. </div></div>
|
|
<div class="ttc" id="a00173_html_gac37dedaba24b00adb4ec6e8f92c19dbf"><div class="ttname"><a href="a00173.html#gac37dedaba24b00adb4ec6e8f92c19dbf">glm::unpackHalf1x16</a></div><div class="ttdeci">GLM_FUNC_DECL float unpackHalf1x16(uint16 v)</div><div class="ttdoc">Returns a floating-point scalar with components obtained by unpacking a 16-bit unsigned integer into ...</div></div>
|
|
<div class="ttc" id="a00173_html_ga8a1ee625d2707c60530fb3fca2980b19"><div class="ttname"><a href="a00173.html#ga8a1ee625d2707c60530fb3fca2980b19">glm::packUnorm3x10_1x2</a></div><div class="ttdeci">GLM_FUNC_DECL uint32 packUnorm3x10_1x2(vec4 const &v)</div><div class="ttdoc">First, converts the first three components of the normalized floating-point value v into 10-bit unsig...</div></div>
|
|
<div class="ttc" id="a00173_html_ga2b1fd1e854705b1345e98409e0a25e50"><div class="ttname"><a href="a00173.html#ga2b1fd1e854705b1345e98409e0a25e50">glm::unpackF2x11_1x10</a></div><div class="ttdeci">GLM_FUNC_DECL vec3 unpackF2x11_1x10(uint32 p)</div><div class="ttdoc">First, unpacks a single 32-bit unsigned integer p into two 11-bit signless floating-point values and ...</div></div>
|
|
<div class="ttc" id="a00173_html_ga358943934d21da947d5bcc88c2ab7832"><div class="ttname"><a href="a00173.html#ga358943934d21da947d5bcc88c2ab7832">glm::packSnorm4x16</a></div><div class="ttdeci">GLM_FUNC_DECL uint64 packSnorm4x16(vec4 const &v)</div><div class="ttdoc">First, converts each component of the normalized floating-point value v into 16-bit integer values...</div></div>
|
|
<div class="ttc" id="a00173_html_ga57dfc41b2eb20b0ac00efae7d9c49dcd"><div class="ttname"><a href="a00173.html#ga57dfc41b2eb20b0ac00efae7d9c49dcd">glm::unpackHalf4x16</a></div><div class="ttdeci">GLM_FUNC_DECL vec4 unpackHalf4x16(uint64 p)</div><div class="ttdoc">Returns a four-component floating-point vector with components obtained by unpacking a 64-bit unsigne...</div></div>
|
|
<div class="ttc" id="a00173_html_ga637cbe3913dd95c6e7b4c99c61bd611f"><div class="ttname"><a href="a00173.html#ga637cbe3913dd95c6e7b4c99c61bd611f">glm::unpackUnorm2x8</a></div><div class="ttdeci">GLM_FUNC_DECL vec2 unpackUnorm2x8(uint16 p)</div><div class="ttdoc">First, unpacks a single 16-bit unsigned integer p into a pair of 8-bit unsigned integers. </div></div>
|
|
<div class="ttc" id="a00145_html"><div class="ttname"><a href="a00145.html">glm</a></div><div class="ttdef"><b>Definition:</b> <a href="a00003_source.html#l00039">_noise.hpp:39</a></div></div>
|
|
<div class="ttc" id="a00173_html_ga9a666b1c688ab54100061ed06526de6e"><div class="ttname"><a href="a00173.html#ga9a666b1c688ab54100061ed06526de6e">glm::packUnorm2x8</a></div><div class="ttdeci">GLM_FUNC_DECL uint16 packUnorm2x8(vec2 const &v)</div><div class="ttdoc">First, converts each component of the normalized floating-point value v into 8-bit integer values...</div></div>
|
|
<div class="ttc" id="a00161_html_gaa8ea2429bb3cb41a715258a447f39897"><div class="ttname"><a href="a00161.html#gaa8ea2429bb3cb41a715258a447f39897">glm::vec3</a></div><div class="ttdeci">highp_vec3 vec3</div><div class="ttdoc">3 components vector of floating-point numbers. </div><div class="ttdef"><b>Definition:</b> <a href="a00131_source.html#l00397">type_vec.hpp:397</a></div></div>
|
|
<div class="ttc" id="a00161_html_ga09d0200e8ff86391d8804b4fefd5f1da"><div class="ttname"><a href="a00161.html#ga09d0200e8ff86391d8804b4fefd5f1da">glm::vec2</a></div><div class="ttdeci">highp_vec2 vec2</div><div class="ttdoc">2 components vector of floating-point numbers. </div><div class="ttdef"><b>Definition:</b> <a href="a00131_source.html#l00392">type_vec.hpp:392</a></div></div>
|
|
<div class="ttc" id="a00173_html_ga06ecb6afb902dba45419008171db9023"><div class="ttname"><a href="a00173.html#ga06ecb6afb902dba45419008171db9023">glm::packI3x10_1x2</a></div><div class="ttdeci">GLM_FUNC_DECL uint32 packI3x10_1x2(ivec4 const &v)</div><div class="ttdoc">Returns an unsigned integer obtained by converting the components of a four-component signed integer ...</div></div>
|
|
<div class="ttc" id="a00161_html_gaa7c3a0e7ae50c34c3290415c115f251e"><div class="ttname"><a href="a00161.html#gaa7c3a0e7ae50c34c3290415c115f251e">glm::uvec4</a></div><div class="ttdeci">highp_uvec4 uvec4</div><div class="ttdoc">4 components vector of unsigned integer numbers. </div><div class="ttdef"><b>Definition:</b> <a href="a00131_source.html#l00486">type_vec.hpp:486</a></div></div>
|
|
<div class="ttc" id="a00173_html_ga1319207e30874fb4931a9ee913983ee1"><div class="ttname"><a href="a00173.html#ga1319207e30874fb4931a9ee913983ee1">glm::unpackUnorm1x8</a></div><div class="ttdeci">GLM_FUNC_DECL float unpackUnorm1x8(uint8 p)</div><div class="ttdoc">Convert a single 8-bit integer to a normalized floating-point value. </div></div>
|
|
<div class="ttc" id="a00173_html_gab997545661877d2c7362a5084d3897d3"><div class="ttname"><a href="a00173.html#gab997545661877d2c7362a5084d3897d3">glm::packSnorm3x10_1x2</a></div><div class="ttdeci">GLM_FUNC_DECL uint32 packSnorm3x10_1x2(vec4 const &v)</div><div class="ttdoc">First, converts the first three components of the normalized floating-point value v into 10-bit signe...</div></div>
|
|
<div class="ttc" id="a00173_html_ga2ae149c5d2473ac1e5f347bb654a242d"><div class="ttname"><a href="a00173.html#ga2ae149c5d2473ac1e5f347bb654a242d">glm::unpackUnorm4x16</a></div><div class="ttdeci">GLM_FUNC_DECL vec4 unpackUnorm4x16(uint64 p)</div><div class="ttdoc">First, unpacks a single 64-bit unsigned integer p into four 16-bit unsigned integers. </div></div>
|
|
<div class="ttc" id="a00173_html_ga6be3cfb2cce3702f03e91bbeb5286d7e"><div class="ttname"><a href="a00173.html#ga6be3cfb2cce3702f03e91bbeb5286d7e">glm::packSnorm2x8</a></div><div class="ttdeci">GLM_FUNC_DECL uint16 packSnorm2x8(vec2 const &v)</div><div class="ttdoc">First, converts each component of the normalized floating-point value v into 8-bit integer values...</div></div>
|
|
</div><!-- fragment --></div><!-- contents -->
|
|
<!-- start footer part -->
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.8.8
|
|
</small></address>
|
|
</body>
|
|
</html>
|