mirror of
https://github.com/g-truc/glm.git
synced 2024-11-16 23:04:35 +00:00
148 lines
17 KiB
HTML
148 lines
17 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.5"/>
|
|
<title>GLM: packing.hpp File Reference</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 style="padding-left: 0.5em;">
|
|
<div id="projectname">GLM
|
|
 <span id="projectnumber">0.9.5</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.5 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</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_8ceffd4ee35c3518d4e8bdc7e638efe8.html">Users</a></li><li class="navelem"><a class="el" href="dir_968fb7988749a6351e7b3d0c1783dec4.html">Groove</a></li><li class="navelem"><a class="el" href="dir_6e418c18ca640a0404613de005739e2e.html">Documents</a></li><li class="navelem"><a class="el" href="dir_e3ecd7863bd215c92a17f47e2ae3be43.html">GitHub</a></li><li class="navelem"><a class="el" href="dir_edf753475b928be648c1cf1c6443cf63.html">glm</a></li><li class="navelem"><a class="el" href="dir_e50778361fd4ab4de52181ed9eb2b726.html">glm</a></li><li class="navelem"><a class="el" href="dir_f7324829a002c536307b42a892c06451.html">gtc</a></li> </ul>
|
|
</div>
|
|
</div><!-- top -->
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#namespaces">Namespaces</a> |
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">gtc/packing.hpp File Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p><a href="a00091_source.html">Go to the source code of this file.</a></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
|
|
Namespaces</h2></td></tr>
|
|
<tr class="memitem:a00151"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a00151.html">glm</a></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:ga4944ad465ff950e926d49621f916c78d"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga4944ad465ff950e926d49621f916c78d">packF2x11_1x10</a> (vec3 const &v)</td></tr>
|
|
<tr class="separator:ga4944ad465ff950e926d49621f916c78d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab7f8a84e119fe3f1ff57d7e2ec093747"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint16 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gab7f8a84e119fe3f1ff57d7e2ec093747">packHalf1x16</a> (float const &v)</td></tr>
|
|
<tr class="separator:gab7f8a84e119fe3f1ff57d7e2ec093747"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gafe2f7b39caf8f5ec555e1c059ec530e6"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint64 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gafe2f7b39caf8f5ec555e1c059ec530e6">packHalf4x16</a> (vec4 const &v)</td></tr>
|
|
<tr class="separator:gafe2f7b39caf8f5ec555e1c059ec530e6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga06ecb6afb902dba45419008171db9023"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga06ecb6afb902dba45419008171db9023">packI3x10_1x2</a> (ivec4 const &v)</td></tr>
|
|
<tr class="separator:ga06ecb6afb902dba45419008171db9023"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab05d07ca244dddc2d82ba71d843691e4"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint16 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gab05d07ca244dddc2d82ba71d843691e4">packSnorm1x16</a> (float const &v)</td></tr>
|
|
<tr class="separator:gab05d07ca244dddc2d82ba71d843691e4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaeecb4166fa0f5764846cb6c215766398"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint8 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gaeecb4166fa0f5764846cb6c215766398">packSnorm1x8</a> (float const &s)</td></tr>
|
|
<tr class="separator:gaeecb4166fa0f5764846cb6c215766398"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga6be3cfb2cce3702f03e91bbeb5286d7e"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint16 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga6be3cfb2cce3702f03e91bbeb5286d7e">packSnorm2x8</a> (vec2 const &v)</td></tr>
|
|
<tr class="separator:ga6be3cfb2cce3702f03e91bbeb5286d7e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab997545661877d2c7362a5084d3897d3"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gab997545661877d2c7362a5084d3897d3">packSnorm3x10_1x2</a> (vec4 const &v)</td></tr>
|
|
<tr class="separator:gab997545661877d2c7362a5084d3897d3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga358943934d21da947d5bcc88c2ab7832"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint64 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga358943934d21da947d5bcc88c2ab7832">packSnorm4x16</a> (vec4 const &v)</td></tr>
|
|
<tr class="separator:ga358943934d21da947d5bcc88c2ab7832"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gada3d88d59f0f458f9c51a9fd359a4bc0"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gada3d88d59f0f458f9c51a9fd359a4bc0">packU3x10_1x2</a> (uvec4 const &v)</td></tr>
|
|
<tr class="separator:gada3d88d59f0f458f9c51a9fd359a4bc0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga146ced9fe50f08bbbccac5693d717a27"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint16 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga146ced9fe50f08bbbccac5693d717a27">packUnorm1x16</a> (float const &v)</td></tr>
|
|
<tr class="separator:ga146ced9fe50f08bbbccac5693d717a27"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab16a1b79ed7431e9d84e8fde983b6d11"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint8 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gab16a1b79ed7431e9d84e8fde983b6d11">packUnorm1x8</a> (float const &v)</td></tr>
|
|
<tr class="separator:gab16a1b79ed7431e9d84e8fde983b6d11"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga9a666b1c688ab54100061ed06526de6e"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint16 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga9a666b1c688ab54100061ed06526de6e">packUnorm2x8</a> (vec2 const &v)</td></tr>
|
|
<tr class="separator:ga9a666b1c688ab54100061ed06526de6e"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga8a1ee625d2707c60530fb3fca2980b19"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint32 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga8a1ee625d2707c60530fb3fca2980b19">packUnorm3x10_1x2</a> (vec4 const &v)</td></tr>
|
|
<tr class="separator:ga8a1ee625d2707c60530fb3fca2980b19"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga1f63c264e7ab63264e2b2a99fd393897"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uint64 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga1f63c264e7ab63264e2b2a99fd393897">packUnorm4x16</a> (vec4 const &v)</td></tr>
|
|
<tr class="separator:ga1f63c264e7ab63264e2b2a99fd393897"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gabee51ecab6b477b18e7da4fc7393d0e9"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec3 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gabee51ecab6b477b18e7da4fc7393d0e9">unpackF2x11_1x10</a> (uint32 const &p)</td></tr>
|
|
<tr class="separator:gabee51ecab6b477b18e7da4fc7393d0e9"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga4c5ad3375f215b9bd0e530dd43624882"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga4c5ad3375f215b9bd0e530dd43624882">unpackHalf1x16</a> (uint16 const &v)</td></tr>
|
|
<tr class="separator:ga4c5ad3375f215b9bd0e530dd43624882"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7acdbf24148ef556939719cf47036524"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec4 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga7acdbf24148ef556939719cf47036524">unpackHalf4x16</a> (uint64 const &p)</td></tr>
|
|
<tr class="separator:ga7acdbf24148ef556939719cf47036524"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga1ff4f5a28d764786f916f9d069d16e86"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL ivec4 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga1ff4f5a28d764786f916f9d069d16e86">unpackI3x10_1x2</a> (uint32 const &p)</td></tr>
|
|
<tr class="separator:ga1ff4f5a28d764786f916f9d069d16e86"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7a065826893fb3ab85097a8ed23d6654"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga7a065826893fb3ab85097a8ed23d6654">unpackSnorm1x16</a> (uint16 const &p)</td></tr>
|
|
<tr class="separator:ga7a065826893fb3ab85097a8ed23d6654"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gacb89a737b93aa41e3efce2148fffbea4"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gacb89a737b93aa41e3efce2148fffbea4">unpackSnorm1x8</a> (uint8 const &p)</td></tr>
|
|
<tr class="separator:gacb89a737b93aa41e3efce2148fffbea4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaca99cad292a1045eefb1ad4cb535c31a"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec2 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gaca99cad292a1045eefb1ad4cb535c31a">unpackSnorm2x8</a> (uint16 const &p)</td></tr>
|
|
<tr class="separator:gaca99cad292a1045eefb1ad4cb535c31a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga03af1e97f8a96c429524ebf20a6509f5"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec4 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga03af1e97f8a96c429524ebf20a6509f5">unpackSnorm3x10_1x2</a> (uint32 const &p)</td></tr>
|
|
<tr class="separator:ga03af1e97f8a96c429524ebf20a6509f5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gadb01fc0530f07beb509c89d97b6f4d20"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec4 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gadb01fc0530f07beb509c89d97b6f4d20">unpackSnorm4x16</a> (uint64 const &p)</td></tr>
|
|
<tr class="separator:gadb01fc0530f07beb509c89d97b6f4d20"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaef276e11b8246c34d993b0eb01f66481"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL uvec4 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gaef276e11b8246c34d993b0eb01f66481">unpackU3x10_1x2</a> (uint32 const &p)</td></tr>
|
|
<tr class="separator:gaef276e11b8246c34d993b0eb01f66481"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac2e137ade637150f6a9a14e394c3064b"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gac2e137ade637150f6a9a14e394c3064b">unpackUnorm1x16</a> (uint16 const &p)</td></tr>
|
|
<tr class="separator:gac2e137ade637150f6a9a14e394c3064b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga5e96a68924f1a4a9f4d75475098f5ddb"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL float </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga5e96a68924f1a4a9f4d75475098f5ddb">unpackUnorm1x8</a> (uint8 const &p)</td></tr>
|
|
<tr class="separator:ga5e96a68924f1a4a9f4d75475098f5ddb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2f28b1b4f401c6cec9465a0f266a1481"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec2 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga2f28b1b4f401c6cec9465a0f266a1481">unpackUnorm2x8</a> (uint16 const &p)</td></tr>
|
|
<tr class="separator:ga2f28b1b4f401c6cec9465a0f266a1481"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gabec69b5ec17cd939035302551bfd04e5"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec4 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#gabec69b5ec17cd939035302551bfd04e5">unpackUnorm3x10_1x2</a> (uint32 const &p)</td></tr>
|
|
<tr class="separator:gabec69b5ec17cd939035302551bfd04e5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0b957d3ce90faf63cf6b826939837947"><td class="memItemLeft" align="right" valign="top">GLM_FUNC_DECL vec4 </td><td class="memItemRight" valign="bottom"><a class="el" href="a00178.html#ga0b957d3ce90faf63cf6b826939837947">unpackUnorm4x16</a> (uint64 const &p)</td></tr>
|
|
<tr class="separator:ga0b957d3ce90faf63cf6b826939837947"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>OpenGL Mathematics (glm.g-truc.net) </p>
|
|
<p>Copyright (c) 2005 - 2014 G-Truc Creation (www.g-truc.net) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
|
|
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
|
|
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
|
|
<p><a class="el" href="a00178.html">GLM_GTC_packing</a></p>
|
|
<dl class="section date"><dt>Date</dt><dd>2013-08-08 / 2013-08-08 </dd></dl>
|
|
<dl class="section author"><dt>Author</dt><dd>Christophe Riccio</dd></dl>
|
|
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="a00167.html" title="The core of GLM, which implements exactly and only the GLSL specification to the degree possible...">GLM Core</a> (dependence) </dd></dl>
|
|
|
|
<p>Definition in file <a class="el" href="a00091_source.html">gtc/packing.hpp</a>.</p>
|
|
</div></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.5
|
|
</small></address>
|
|
</body>
|
|
</html>
|