Download GLM 0.9.1.1</a></div></div><br/><divclass="menu2"><ahref="./index.html">Front page</a></div><divclass="menu2"><ahref="./download.html">Downloads</a></div><divclass="menu2"><ahref="http://www.opengl.org/sdk/libs/GLM/">OpenGL SDK page</a></div><br/><divclass="menu2"><ahref="./glm-0.9.1.pdf">GLM Manual</a></div><divclass="menu2"><ahref="./api-0.9.1/index.html">GLM API</a></div><divclass="menu2"><ahref="./code.html">Code samples</a></div><divclass="menu2"><ahref="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">GLSL Specification</a></div><divclass="menu2"><ahref="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">OpenGL.org Toolkits forum</a></div><br/><divclass="menu2"><ahref="https://sourceforge.net/apps/trac/ogl-math/newticket">Report a bug</a></div><divclass="menu2"><ahref="https://sourceforge.net/projects/ogl-math/">SourceForge page</a></div><divclass="menu2"><ahref="http://www.g-truc.net/project-0016.html#menu">G-Truc Creation page</a></div><divclass="menu2"><ahref="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary">Browse Git repository</a></div><divclass="menu2"><ahref="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=snapshot;h=HEAD;sf=tgz">Source snapshot</a></div><br/><br/><divclass="menu2"><ahref="http://www.g-truc.net"><imgclass="menu-img"src="./common/g-truc.png"alt="G-Truc"/></a></div><br/></td><tdclass="page"><divclass="title1"><imgsrc="./common/title.png"alt="OpenGL Mathematics"/></div><divclass="title3">GLSL + Optional features = OpenGL Mathematics (GLM).<br/>A C++ mathematics library for 3D graphics.<br/></div><br/><br/><p>
Download GLM 0.9.1.2</a></div></div><br/><divclass="menu2"><ahref="./index.html">Front page</a></div><divclass="menu2"><ahref="./download.html">Downloads</a></div><divclass="menu2"><ahref="http://www.opengl.org/sdk/libs/GLM/">OpenGL SDK page</a></div><br/><divclass="menu2"><ahref="./glm-0.9.1.pdf">GLM Manual</a></div><divclass="menu2"><ahref="./api-0.9.1/index.html">GLM API</a></div><divclass="menu2"><ahref="./code.html">Code samples</a></div><divclass="menu2"><ahref="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">GLSL Specification</a></div><divclass="menu2"><ahref="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">OpenGL.org Toolkits forum</a></div><br/><divclass="menu2"><ahref="https://sourceforge.net/apps/trac/ogl-math/newticket">Report a bug</a></div><divclass="menu2"><ahref="https://sourceforge.net/projects/ogl-math/">SourceForge page</a></div><divclass="menu2"><ahref="http://www.g-truc.net/project-0016.html#menu">G-Truc Creation page</a></div><divclass="menu2"><ahref="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary">Browse Git repository</a></div><divclass="menu2"><ahref="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=snapshot;h=HEAD;sf=tgz">Source snapshot</a></div><br/><br/><divclass="menu2"><ahref="http://www.g-truc.net"><imgclass="menu-img"src="./common/g-truc.png"alt="G-Truc"/></a></div><br/></td><tdclass="page"><divclass="title1"><imgsrc="./common/title.png"alt="OpenGL Mathematics"/></div><divclass="title3">GLSL + Optional features = OpenGL Mathematics (GLM).<br/>A C++ mathematics library for 3D graphics.<br/></div><br/><br/><p>
OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics software
OpenGL Mathematics (GLM) is a header only C++ mathematics library for graphics software
based on the <ahref="http://www.opengl.org/documentation/glsl/">OpenGL Shading Language (GLSL)</a> specification.
based on the <ahref="http://www.opengl.org/documentation/glsl/">OpenGL Shading Language (GLSL)</a> specification.
</p><p>
</p><p>
@ -32,7 +32,9 @@
</p><p>
</p><p>
Thanks for contributing to the project by <ahref="https://sourceforge.net/apps/trac/ogl-math/newticket">submitting tickets</a> for bug reports and feature requests. (SF.net account required).
Thanks for contributing to the project by <ahref="https://sourceforge.net/apps/trac/ogl-math/newticket">submitting tickets</a> for bug reports and feature requests. (SF.net account required).
//! 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.
//! Then, each component is converted to a normalized floating-point value to generate the returned two- or four-component vector.
//!
//! The conversion for unpacked fixed-point value f to floating point is done as follows:
//! unpackUnorm2x16: f / 65535.0
//!
//! 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.
//!
//! \li <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackUnorm2x16.xml">GLSL unpackUnorm2x16 man page</a>
//! 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.
//! Then, each component is converted to a normalized floating-point value to generate the returned two- or four-component vector.
//!
//! The conversion for unpacked fixed-point value f to floating point is done as follows:
//! unpackUnorm4x8: f / 255.0
//!
//! 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.
//!
//! \li <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackUnorm4x8.xml">GLSL unpackUnorm4x8 man page</a>
//! 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.
//! Then, each component is converted to a normalized floating-point value to generate the returned two- or four-component vector.
//!
//! The conversion for unpacked fixed-point value f to floating point is done as follows:
//! unpackSnorm4x8: clamp(f / 127.0, -1, +1)
//!
//! 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.
//!
//! \li <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/unpackSnorm4x8.xml">GLSL unpackSnorm4x8 man page</a>