Download GLM 0.9.2.6</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.2.pdf">GLM Manual</a></div><divclass="menu2"><ahref="./api-0.9.2/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 graphics programming<br/></div><br/><br/><p>
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.
</p><p>
@ -33,8 +33,16 @@
</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).
Half based vector types have been fixed on GCC 4.4 and below, missing l-value swizzle operations added and a couple of other bugs squeezed down.
</p><p>
Finally, all the Visual C++ /W4 warnings should have been removed. However, for this to happen, it is required to build with the Visual C++ language extension disabled (/Za).
The main improvement of this version comes from the extended number of matrix constructors so that a programmer can used different scalar types for each parameter.
</p><ulxmlns="http://www.w3.org/1999/xhtml"class="code-list"><liclass="code-line"><spanclass="code-line-content"><spanclass="keyword">#include </span><spanclass="string"><glm/glm.hpp></span></span></li><liclass="code-line"><spanclass="code-line-content"/></li><liclass="code-line"><spanclass="code-line-content"><spanclass="comment">// Create an identity matrix</span></span></li><liclass="code-line"><spanclass="code-line-content">
Half based vector types have been fixed on GCC 4.4 and below, missing l-value swizzle operations added and a couple of other bugs squeezed down.
</paragraph>
<paragraph>
Finally, all the Visual C++ /W4 warnings should have been removed. However, for this to happen, it is required to build with the Visual C++ language extension disabled (/Za).