Merge branch 'noise' of ssh://ogl-math.git.sourceforge.net/gitroot/ogl-math/ogl-math into noise
This commit is contained in:
commit
763699f528
@ -11,8 +11,8 @@
|
|||||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||||
})();
|
})();
|
||||||
</script></head><body><table><tr><td class="menu"><div class="menu1"><br /><div><a href="./goodies/logo1920x1200.png"><img class="menu-img" src="./common/logo.png" alt="GLM Logo" /></a></div><br /><div><a class="menu" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.zip/download">
|
</script></head><body><table><tr><td class="menu"><div class="menu1"><br /><div><a href="./goodies/logo1920x1200.png"><img class="menu-img" src="./common/logo.png" alt="GLM Logo" /></a></div><br /><div><a class="menu" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.zip/download">
|
||||||
Download GLM 0.9.1.1</a></div></div><br /><div class="menu2"><a href="./index.html">Front page</a></div><div class="menu2"><a href="./download.html">Downloads</a></div><div class="menu2"><a href="http://www.opengl.org/sdk/libs/GLM/">OpenGL SDK page</a></div><br /><div class="menu2"><a href="./glm-0.9.1.pdf">GLM Manual</a></div><div class="menu2"><a href="./api-0.9.1/index.html">GLM API</a></div><div class="menu2"><a href="./code.html">Code samples</a></div><div class="menu2"><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">GLSL Specification</a></div><div class="menu2"><a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">OpenGL.org Toolkits forum</a></div><br /><div class="menu2"><a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Report a bug</a></div><div class="menu2"><a href="https://sourceforge.net/projects/ogl-math/">SourceForge page</a></div><div class="menu2"><a href="http://www.g-truc.net/project-0016.html#menu">G-Truc Creation page</a></div><div class="menu2"><a href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary">Browse Git repository</a></div><div class="menu2"><a href="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 /><div class="menu2"><a href="http://www.g-truc.net"><img class="menu-img" src="./common/g-truc.png" alt="G-Truc" /></a></div><br /></td><td class="page"><div class="title1"><img src="./common/title.png" alt="OpenGL Mathematics" /></div><div class="title3">GLSL + Optional features = OpenGL Mathematics (GLM).<br />A C++ mathematics library for 3D graphics.<br /></div><br /><br /><div><div class="title-date"> </div><div class="title4"> </div><div><p>
|
Download GLM 0.9.1.2</a></div></div><br /><div class="menu2"><a href="./index.html">Front page</a></div><div class="menu2"><a href="./download.html">Downloads</a></div><div class="menu2"><a href="http://www.opengl.org/sdk/libs/GLM/">OpenGL SDK page</a></div><br /><div class="menu2"><a href="./glm-0.9.1.pdf">GLM Manual</a></div><div class="menu2"><a href="./api-0.9.1/index.html">GLM API</a></div><div class="menu2"><a href="./code.html">Code samples</a></div><div class="menu2"><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">GLSL Specification</a></div><div class="menu2"><a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">OpenGL.org Toolkits forum</a></div><br /><div class="menu2"><a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Report a bug</a></div><div class="menu2"><a href="https://sourceforge.net/projects/ogl-math/">SourceForge page</a></div><div class="menu2"><a href="http://www.g-truc.net/project-0016.html#menu">G-Truc Creation page</a></div><div class="menu2"><a href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary">Browse Git repository</a></div><div class="menu2"><a href="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 /><div class="menu2"><a href="http://www.g-truc.net"><img class="menu-img" src="./common/g-truc.png" alt="G-Truc" /></a></div><br /></td><td class="page"><div class="title1"><img src="./common/title.png" alt="OpenGL Mathematics" /></div><div class="title3">GLSL + Optional features = OpenGL Mathematics (GLM).<br />A C++ mathematics library for 3D graphics.<br /></div><br /><br /><div><div class="title-date"> </div><div class="title4"> </div><div><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 <a href="http://www.opengl.org/documentation/glsl/">OpenGL Shading Language (GLSL)</a> specification.
|
based on the <a href="http://www.opengl.org/documentation/glsl/">OpenGL Shading Language (GLSL)</a> specification.
|
||||||
</p><p>
|
</p><p>
|
||||||
|
@ -11,8 +11,8 @@
|
|||||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||||
})();
|
})();
|
||||||
</script></head><body><table><tr><td class="menu"><div class="menu1"><br /><div><a href="./goodies/logo1920x1200.png"><img class="menu-img" src="./common/logo.png" alt="GLM Logo" /></a></div><br /><div><a class="menu" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.zip/download">
|
</script></head><body><table><tr><td class="menu"><div class="menu1"><br /><div><a href="./goodies/logo1920x1200.png"><img class="menu-img" src="./common/logo.png" alt="GLM Logo" /></a></div><br /><div><a class="menu" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.zip/download">
|
||||||
Download GLM 0.9.1.1</a></div></div><br /><div class="menu2"><a href="./index.html">Front page</a></div><div class="menu2"><a href="./download.html">Downloads</a></div><div class="menu2"><a href="http://www.opengl.org/sdk/libs/GLM/">OpenGL SDK page</a></div><br /><div class="menu2"><a href="./glm-0.9.1.pdf">GLM Manual</a></div><div class="menu2"><a href="./api-0.9.1/index.html">GLM API</a></div><div class="menu2"><a href="./code.html">Code samples</a></div><div class="menu2"><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">GLSL Specification</a></div><div class="menu2"><a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">OpenGL.org Toolkits forum</a></div><br /><div class="menu2"><a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Report a bug</a></div><div class="menu2"><a href="https://sourceforge.net/projects/ogl-math/">SourceForge page</a></div><div class="menu2"><a href="http://www.g-truc.net/project-0016.html#menu">G-Truc Creation page</a></div><div class="menu2"><a href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary">Browse Git repository</a></div><div class="menu2"><a href="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 /><div class="menu2"><a href="http://www.g-truc.net"><img class="menu-img" src="./common/g-truc.png" alt="G-Truc" /></a></div><br /></td><td class="page"><div class="title1"><img src="./common/title.png" alt="OpenGL Mathematics" /></div><div class="title3">GLSL + Optional features = OpenGL Mathematics (GLM).<br />A C++ mathematics library for 3D graphics.<br /></div><br /><br /><span xmlns="http://www.w3.org/1999/xhtml" class="code-title">Compute a triangle normal:</span><ul xmlns="http://www.w3.org/1999/xhtml" class="code-list"><li class="code-line"><span class="code-line-content"><span class="keyword">#include </span><span class="string"><glm/glm.hpp></span></span></li><li class="code-line"><span class="code-line-content" /></li><li class="code-line"><span class="code-line-content"><span class="keyword">void </span> computeNormal(triangle & Triangle)
|
Download GLM 0.9.1.2</a></div></div><br /><div class="menu2"><a href="./index.html">Front page</a></div><div class="menu2"><a href="./download.html">Downloads</a></div><div class="menu2"><a href="http://www.opengl.org/sdk/libs/GLM/">OpenGL SDK page</a></div><br /><div class="menu2"><a href="./glm-0.9.1.pdf">GLM Manual</a></div><div class="menu2"><a href="./api-0.9.1/index.html">GLM API</a></div><div class="menu2"><a href="./code.html">Code samples</a></div><div class="menu2"><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">GLSL Specification</a></div><div class="menu2"><a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">OpenGL.org Toolkits forum</a></div><br /><div class="menu2"><a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Report a bug</a></div><div class="menu2"><a href="https://sourceforge.net/projects/ogl-math/">SourceForge page</a></div><div class="menu2"><a href="http://www.g-truc.net/project-0016.html#menu">G-Truc Creation page</a></div><div class="menu2"><a href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary">Browse Git repository</a></div><div class="menu2"><a href="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 /><div class="menu2"><a href="http://www.g-truc.net"><img class="menu-img" src="./common/g-truc.png" alt="G-Truc" /></a></div><br /></td><td class="page"><div class="title1"><img src="./common/title.png" alt="OpenGL Mathematics" /></div><div class="title3">GLSL + Optional features = OpenGL Mathematics (GLM).<br />A C++ mathematics library for 3D graphics.<br /></div><br /><br /><span xmlns="http://www.w3.org/1999/xhtml" class="code-title">Compute a triangle normal:</span><ul xmlns="http://www.w3.org/1999/xhtml" class="code-list"><li class="code-line"><span class="code-line-content"><span class="keyword">#include </span><span class="string"><glm/glm.hpp></span></span></li><li class="code-line"><span class="code-line-content" /></li><li class="code-line"><span class="code-line-content"><span class="keyword">void </span> computeNormal(triangle & Triangle)
|
||||||
</span></li><li class="code-line"><span class="code-line-content">
|
</span></li><li class="code-line"><span class="code-line-content">
|
||||||
{
|
{
|
||||||
</span></li><li class="code-line"><span class="code-line-content" style="padding-left:32px">
|
</span></li><li class="code-line"><span class="code-line-content" style="padding-left:32px">
|
||||||
|
@ -11,11 +11,12 @@
|
|||||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||||
})();
|
})();
|
||||||
</script></head><body><table><tr><td class="menu"><div class="menu1"><br /><div><a href="./goodies/logo1920x1200.png"><img class="menu-img" src="./common/logo.png" alt="GLM Logo" /></a></div><br /><div><a class="menu" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.zip/download">
|
</script></head><body><table><tr><td class="menu"><div class="menu1"><br /><div><a href="./goodies/logo1920x1200.png"><img class="menu-img" src="./common/logo.png" alt="GLM Logo" /></a></div><br /><div><a class="menu" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.zip/download">
|
||||||
Download GLM 0.9.1.1</a></div></div><br /><div class="menu2"><a href="./index.html">Front page</a></div><div class="menu2"><a href="./download.html">Downloads</a></div><div class="menu2"><a href="http://www.opengl.org/sdk/libs/GLM/">OpenGL SDK page</a></div><br /><div class="menu2"><a href="./glm-0.9.1.pdf">GLM Manual</a></div><div class="menu2"><a href="./api-0.9.1/index.html">GLM API</a></div><div class="menu2"><a href="./code.html">Code samples</a></div><div class="menu2"><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">GLSL Specification</a></div><div class="menu2"><a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">OpenGL.org Toolkits forum</a></div><br /><div class="menu2"><a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Report a bug</a></div><div class="menu2"><a href="https://sourceforge.net/projects/ogl-math/">SourceForge page</a></div><div class="menu2"><a href="http://www.g-truc.net/project-0016.html#menu">G-Truc Creation page</a></div><div class="menu2"><a href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary">Browse Git repository</a></div><div class="menu2"><a href="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 /><div class="menu2"><a href="http://www.g-truc.net"><img class="menu-img" src="./common/g-truc.png" alt="G-Truc" /></a></div><br /></td><td class="page"><div class="title1"><img src="./common/title.png" alt="OpenGL Mathematics" /></div><div class="title3">GLSL + Optional features = OpenGL Mathematics (GLM).<br />A C++ mathematics library for 3D graphics.<br /></div><br /><br /><div><div class="title4">Current release</div></div><div class="issue-content">17/03/2010:
|
Download GLM 0.9.1.2</a></div></div><br /><div class="menu2"><a href="./index.html">Front page</a></div><div class="menu2"><a href="./download.html">Downloads</a></div><div class="menu2"><a href="http://www.opengl.org/sdk/libs/GLM/">OpenGL SDK page</a></div><br /><div class="menu2"><a href="./glm-0.9.1.pdf">GLM Manual</a></div><div class="menu2"><a href="./api-0.9.1/index.html">GLM API</a></div><div class="menu2"><a href="./code.html">Code samples</a></div><div class="menu2"><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">GLSL Specification</a></div><div class="menu2"><a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">OpenGL.org Toolkits forum</a></div><br /><div class="menu2"><a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Report a bug</a></div><div class="menu2"><a href="https://sourceforge.net/projects/ogl-math/">SourceForge page</a></div><div class="menu2"><a href="http://www.g-truc.net/project-0016.html#menu">G-Truc Creation page</a></div><div class="menu2"><a href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary">Browse Git repository</a></div><div class="menu2"><a href="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 /><div class="menu2"><a href="http://www.g-truc.net"><img class="menu-img" src="./common/g-truc.png" alt="G-Truc" /></a></div><br /></td><td class="page"><div class="title1"><img src="./common/title.png" alt="OpenGL Mathematics" /></div><div class="title3">GLSL + Optional features = OpenGL Mathematics (GLM).<br />A C++ mathematics library for 3D graphics.<br /></div><br /><br /><div><div class="title4">Current release</div></div><div class="issue-content">12/04/2010:
|
||||||
<a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.zip/download">GLM 0.9.1.1</a>
|
<a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.zip/download">GLM 0.9.1.2</a>
|
||||||
(3.4 MB)
|
(3.4 MB)
|
||||||
</div><div class="news-separator">_________________</div><br /><div><div class="title4">GLM - zip files</div><div class="issue-content">17/03/2010: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.zip/download">GLM 0.9.1.1</a> (3.4 MB)
|
</div><div class="news-separator">_________________</div><br /><div><div class="title4">GLM - zip files</div><div class="issue-content">12/04/2010: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.zip/download">GLM 0.9.1.2</a> (3.4 MB)
|
||||||
|
</div><div class="issue-content">17/03/2010: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.zip/download">GLM 0.9.1.1</a> (3.4 MB)
|
||||||
</div><div class="issue-content">03/03/2010: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.zip/download">GLM 0.9.1.0</a> (3.4 MB)
|
</div><div class="issue-content">03/03/2010: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.zip/download">GLM 0.9.1.0</a> (3.4 MB)
|
||||||
</div><div class="issue-content">13/02/2010: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.B/glm-0.9.1.B.zip/download">GLM 0.9.1.B</a> (3.4 MB)
|
</div><div class="issue-content">13/02/2010: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.B/glm-0.9.1.B.zip/download">GLM 0.9.1.B</a> (3.4 MB)
|
||||||
</div><div class="issue-content">13/02/2010: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.zip/download">GLM 0.9.0.8</a> (3.3 MB)
|
</div><div class="issue-content">13/02/2010: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.zip/download">GLM 0.9.0.8</a> (3.3 MB)
|
||||||
@ -70,7 +71,8 @@
|
|||||||
</div><div class="issue-content">02/19/2006: <a href="http://prdownloads.sourceforge.net/glf/glm-0.3.zip?download">GLM 0.3.0.0</a> (945 KB)
|
</div><div class="issue-content">02/19/2006: <a href="http://prdownloads.sourceforge.net/glf/glm-0.3.zip?download">GLM 0.3.0.0</a> (945 KB)
|
||||||
</div><div class="issue-content">05/05/2005: <a href="http://prdownloads.sourceforge.net/glf/glm-0.2.zip?download">GLM 0.2.0.0</a> (194 KB)
|
</div><div class="issue-content">05/05/2005: <a href="http://prdownloads.sourceforge.net/glf/glm-0.2.zip?download">GLM 0.2.0.0</a> (194 KB)
|
||||||
</div><div class="issue-content">02/21/2005: <a href="http://prdownloads.sourceforge.net/glf/glm-0.1-ur.zip?download">GLM 0.1.0.0</a> (29.2 KB)
|
</div><div class="issue-content">02/21/2005: <a href="http://prdownloads.sourceforge.net/glf/glm-0.1-ur.zip?download">GLM 0.1.0.0</a> (29.2 KB)
|
||||||
</div></div><div class="news-separator">_________________</div><br /><div><div class="title4">GLM - 7z files</div><div class="issue-content">17/03/2011: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.7z/download">GLM 0.9.1.1</a> (2.1 MB)
|
</div></div><div class="news-separator">_________________</div><br /><div><div class="title4">GLM - 7z files</div><div class="issue-content">12/04/2011: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.7z/download">GLM 0.9.1.2</a> (2.1 MB)
|
||||||
|
</div><div class="issue-content">17/03/2011: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.7z/download">GLM 0.9.1.1</a> (2.1 MB)
|
||||||
</div><div class="issue-content">03/03/2011: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.7z/download">GLM 0.9.1.0</a> (2.1 MB)
|
</div><div class="issue-content">03/03/2011: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.7z/download">GLM 0.9.1.0</a> (2.1 MB)
|
||||||
</div><div class="issue-content">13/02/2011: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.B/glm-0.9.1.B.7z/download">GLM 0.9.1.B</a> (2.1 MB)
|
</div><div class="issue-content">13/02/2011: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.B/glm-0.9.1.B.7z/download">GLM 0.9.1.B</a> (2.1 MB)
|
||||||
</div><div class="issue-content">13/02/2011: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.7z/download">GLM 0.9.0.8</a> (1.9 MB)
|
</div><div class="issue-content">13/02/2011: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.7z/download">GLM 0.9.0.8</a> (1.9 MB)
|
||||||
|
@ -11,5 +11,5 @@
|
|||||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||||
})();
|
})();
|
||||||
</script></head><body><table><tr><td class="menu"><div class="menu1"><br /><div><a href="./goodies/logo1920x1200.png"><img class="menu-img" src="./common/logo.png" alt="GLM Logo" /></a></div><br /><div><a class="menu" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.zip/download">
|
</script></head><body><table><tr><td class="menu"><div class="menu1"><br /><div><a href="./goodies/logo1920x1200.png"><img class="menu-img" src="./common/logo.png" alt="GLM Logo" /></a></div><br /><div><a class="menu" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.zip/download">
|
||||||
Download GLM 0.9.1.1</a></div></div><br /><div class="menu2"><a href="./index.html">Front page</a></div><div class="menu2"><a href="./download.html">Downloads</a></div><div class="menu2"><a href="http://www.opengl.org/sdk/libs/GLM/">OpenGL SDK page</a></div><br /><div class="menu2"><a href="./glm-0.9.1.pdf">GLM Manual</a></div><div class="menu2"><a href="./api-0.9.1/index.html">GLM API</a></div><div class="menu2"><a href="./code.html">Code samples</a></div><div class="menu2"><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">GLSL Specification</a></div><div class="menu2"><a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">OpenGL.org Toolkits forum</a></div><br /><div class="menu2"><a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Report a bug</a></div><div class="menu2"><a href="https://sourceforge.net/projects/ogl-math/">SourceForge page</a></div><div class="menu2"><a href="http://www.g-truc.net/project-0016.html#menu">G-Truc Creation page</a></div><div class="menu2"><a href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary">Browse Git repository</a></div><div class="menu2"><a href="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 /><div class="menu2"><a href="http://www.g-truc.net"><img class="menu-img" src="./common/g-truc.png" alt="G-Truc" /></a></div><br /></td><td class="page"><div class="title1"><img src="./common/title.png" alt="OpenGL Mathematics" /></div><div class="title3">GLSL + Optional features = OpenGL Mathematics (GLM).<br />A C++ mathematics library for 3D graphics.<br /></div><br /><br /><div><div class="title-date">16/10/2008</div><div class="title4">GLM Logo</div><div><table style="width:100%;"><tr style="width:100%;"><td><p />Download: <a href="./goodies/logo2560x1600.png">2560x1600</a><br />Download: <a href="./goodies/logo1920x1200.png">1920x1200</a><br />Download: <a href="./goodies/logo1600x1000.png">1600x1000</a><br />Download: <a href="./goodies/logo1280x0800.png">1280x0800</a><br />Download: <a href="./goodies/logo1024x0640.png">1024x0640</a><br /></td><td style="text-align:right;"><a ref="goodies/logo.png"><img src="image/logo-mini.png" alt=" " /></a></td></tr></table></div><div class="news-separator">_________________</div><br /></div><div><div class="title-date">16/10/2008</div><div class="title4">GLM Font</div><div><table style="width:100%;"><tr style="width:100%;"><td><p />Download: <a href="./goodies/tenby-five.otf">Font (.otf)</a><br /></td><td style="text-align:right;"><a ref="goodies/font.png"><img src="image/font-mini.png" alt=" " /></a></td></tr></table></div><div class="news-separator">_________________</div><br /></div><div class="email"><img src="./common/email.png" alt="email not available as text" /></div><div class="news-separator">_________________</div><br /><div class="title3">Copyright Š 2005 - 2011<a href="http://www.g-truc.net">G-Truc Creation</a></div></td></tr></table></body></html>
|
Download GLM 0.9.1.2</a></div></div><br /><div class="menu2"><a href="./index.html">Front page</a></div><div class="menu2"><a href="./download.html">Downloads</a></div><div class="menu2"><a href="http://www.opengl.org/sdk/libs/GLM/">OpenGL SDK page</a></div><br /><div class="menu2"><a href="./glm-0.9.1.pdf">GLM Manual</a></div><div class="menu2"><a href="./api-0.9.1/index.html">GLM API</a></div><div class="menu2"><a href="./code.html">Code samples</a></div><div class="menu2"><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">GLSL Specification</a></div><div class="menu2"><a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">OpenGL.org Toolkits forum</a></div><br /><div class="menu2"><a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Report a bug</a></div><div class="menu2"><a href="https://sourceforge.net/projects/ogl-math/">SourceForge page</a></div><div class="menu2"><a href="http://www.g-truc.net/project-0016.html#menu">G-Truc Creation page</a></div><div class="menu2"><a href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary">Browse Git repository</a></div><div class="menu2"><a href="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 /><div class="menu2"><a href="http://www.g-truc.net"><img class="menu-img" src="./common/g-truc.png" alt="G-Truc" /></a></div><br /></td><td class="page"><div class="title1"><img src="./common/title.png" alt="OpenGL Mathematics" /></div><div class="title3">GLSL + Optional features = OpenGL Mathematics (GLM).<br />A C++ mathematics library for 3D graphics.<br /></div><br /><br /><div><div class="title-date">16/10/2008</div><div class="title4">GLM Logo</div><div><table style="width:100%;"><tr style="width:100%;"><td><p />Download: <a href="./goodies/logo2560x1600.png">2560x1600</a><br />Download: <a href="./goodies/logo1920x1200.png">1920x1200</a><br />Download: <a href="./goodies/logo1600x1000.png">1600x1000</a><br />Download: <a href="./goodies/logo1280x0800.png">1280x0800</a><br />Download: <a href="./goodies/logo1024x0640.png">1024x0640</a><br /></td><td style="text-align:right;"><a ref="goodies/logo.png"><img src="image/logo-mini.png" alt=" " /></a></td></tr></table></div><div class="news-separator">_________________</div><br /></div><div><div class="title-date">16/10/2008</div><div class="title4">GLM Font</div><div><table style="width:100%;"><tr style="width:100%;"><td><p />Download: <a href="./goodies/tenby-five.otf">Font (.otf)</a><br /></td><td style="text-align:right;"><a ref="goodies/font.png"><img src="image/font-mini.png" alt=" " /></a></td></tr></table></div><div class="news-separator">_________________</div><br /></div><div class="email"><img src="./common/email.png" alt="email not available as text" /></div><div class="news-separator">_________________</div><br /><div class="title3">Copyright Š 2005 - 2011<a href="http://www.g-truc.net">G-Truc Creation</a></div></td></tr></table></body></html>
|
@ -11,8 +11,8 @@
|
|||||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||||
})();
|
})();
|
||||||
</script></head><body><table><tr><td class="menu"><div class="menu1"><br /><div><a href="./goodies/logo1920x1200.png"><img class="menu-img" src="./common/logo.png" alt="GLM Logo" /></a></div><br /><div><a class="menu" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.zip/download">
|
</script></head><body><table><tr><td class="menu"><div class="menu1"><br /><div><a href="./goodies/logo1920x1200.png"><img class="menu-img" src="./common/logo.png" alt="GLM Logo" /></a></div><br /><div><a class="menu" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.zip/download">
|
||||||
Download GLM 0.9.1.1</a></div></div><br /><div class="menu2"><a href="./index.html">Front page</a></div><div class="menu2"><a href="./download.html">Downloads</a></div><div class="menu2"><a href="http://www.opengl.org/sdk/libs/GLM/">OpenGL SDK page</a></div><br /><div class="menu2"><a href="./glm-0.9.1.pdf">GLM Manual</a></div><div class="menu2"><a href="./api-0.9.1/index.html">GLM API</a></div><div class="menu2"><a href="./code.html">Code samples</a></div><div class="menu2"><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">GLSL Specification</a></div><div class="menu2"><a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">OpenGL.org Toolkits forum</a></div><br /><div class="menu2"><a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Report a bug</a></div><div class="menu2"><a href="https://sourceforge.net/projects/ogl-math/">SourceForge page</a></div><div class="menu2"><a href="http://www.g-truc.net/project-0016.html#menu">G-Truc Creation page</a></div><div class="menu2"><a href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary">Browse Git repository</a></div><div class="menu2"><a href="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 /><div class="menu2"><a href="http://www.g-truc.net"><img class="menu-img" src="./common/g-truc.png" alt="G-Truc" /></a></div><br /></td><td class="page"><div class="title1"><img src="./common/title.png" alt="OpenGL Mathematics" /></div><div class="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 /><div class="menu2"><a href="./index.html">Front page</a></div><div class="menu2"><a href="./download.html">Downloads</a></div><div class="menu2"><a href="http://www.opengl.org/sdk/libs/GLM/">OpenGL SDK page</a></div><br /><div class="menu2"><a href="./glm-0.9.1.pdf">GLM Manual</a></div><div class="menu2"><a href="./api-0.9.1/index.html">GLM API</a></div><div class="menu2"><a href="./code.html">Code samples</a></div><div class="menu2"><a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.10.6.clean.pdf">GLSL Specification</a></div><div class="menu2"><a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=postlist&Board=10&page=1">OpenGL.org Toolkits forum</a></div><br /><div class="menu2"><a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Report a bug</a></div><div class="menu2"><a href="https://sourceforge.net/projects/ogl-math/">SourceForge page</a></div><div class="menu2"><a href="http://www.g-truc.net/project-0016.html#menu">G-Truc Creation page</a></div><div class="menu2"><a href="http://ogl-math.git.sourceforge.net/git/gitweb.cgi?p=ogl-math/ogl-math;a=summary">Browse Git repository</a></div><div class="menu2"><a href="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 /><div class="menu2"><a href="http://www.g-truc.net"><img class="menu-img" src="./common/g-truc.png" alt="G-Truc" /></a></div><br /></td><td class="page"><div class="title1"><img src="./common/title.png" alt="OpenGL Mathematics" /></div><div class="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 <a href="http://www.opengl.org/documentation/glsl/">OpenGL Shading Language (GLSL)</a> specification.
|
based on the <a href="http://www.opengl.org/documentation/glsl/">OpenGL Shading Language (GLSL)</a> specification.
|
||||||
</p><p>
|
</p><p>
|
||||||
@ -32,31 +32,33 @@
|
|||||||
</p><p>
|
</p><p>
|
||||||
Thanks for contributing to the project by <a href="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 <a href="https://sourceforge.net/apps/trac/ogl-math/newticket">submitting tickets</a> for bug reports and feature requests. (SF.net account required).
|
||||||
Any feedback is welcome at glm@g-truc.net.
|
Any feedback is welcome at glm@g-truc.net.
|
||||||
</p><br /><div><h3>17/03/2011 - GLM 0.9.1.1 released</h3><div><p>
|
</p><br /><div><h3>15/04/2011 - GLM 0.9.1.2 released</h3><div><p>
|
||||||
GLM 0.9.1.1 fixes some bugs, warnings on Clang C++ and clean up a bit the code.
|
Bug fixes Only for GLM 0.9.1.2.
|
||||||
</p><p>
|
</p>Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.zip/download">GLM 0.9.1.2 (zip)</a><br />Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.7z/download">GLM 0.9.1.2 (7z)</a><br />Link: <a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</a><br /></div><br /></div><div><h3>17/03/2011 - GLM 0.9.1.1 released</h3><div><p>
|
||||||
If you have uncounter any issue with GLM 0.9.1.0, please download this revision.
|
GLM 0.9.1.1 fixes some bugs, warnings on Clang C++ and clean up a bit the code.
|
||||||
</p><p>
|
</p><p>
|
||||||
Finally, the work has started for GLM 0.9.2 so if you have requests don't forget to <a href="https://sourceforge.net/apps/trac/ogl-math/newticket">submit them!</a></p>Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.zip/download">GLM 0.9.1.1 (zip)</a><br />Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.7z/download">GLM 0.9.1.1 (7z)</a><br />Link: <a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</a><br /></div><br /></div><div><h3>03/03/2011 - GLM 0.9.1.0 final released</h3><div><p>
|
If you have uncounter any issue with GLM 0.9.1.0, please download this revision.
|
||||||
Finally, GLM 0.9.1 branch is reaching the status of stable with
|
</p><p>
|
||||||
<a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.zip/download">GLM 0.9.1.0</a>.
|
Finally, the work has started for GLM 0.9.2 so if you have requests don't forget to <a href="https://sourceforge.net/apps/trac/ogl-math/newticket">submit them!</a></p>Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.zip/download">GLM 0.9.1.1 (zip)</a><br />Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.7z/download">GLM 0.9.1.1 (7z)</a><br />Link: <a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</a><br /></div><br /></div><div><h3>03/03/2011 - GLM 0.9.1.0 final released</h3><div><p>
|
||||||
</p><p>
|
Finally, GLM 0.9.1 branch is reaching the status of stable with
|
||||||
From GLM 0.9.1 beta, mainly bugs has been fixed. GLM has evolved on many sides since GLM 0.9.0:
|
<a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.zip/download">GLM 0.9.1.0</a>.
|
||||||
Improved documentation (manual and doxygen), better test framework, simplified setup/options/configration of GLM and new experimental SIMD API.
|
</p><p>
|
||||||
</p><p>
|
From GLM 0.9.1 beta, mainly bugs has been fixed. GLM has evolved on many sides since GLM 0.9.0:
|
||||||
GLM 0.9.1.0 is not 100% backward compatile with
|
Improved documentation (manual and doxygen), better test framework, simplified setup/options/configration of GLM and new experimental SIMD API.
|
||||||
<a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.zip/download">GLM 0.9.0.8</a>
|
</p><p>
|
||||||
but mainly advanced usages should be affected by the differencies.
|
GLM 0.9.1.0 is not 100% backward compatile with
|
||||||
Have a look at the <a href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM manual</a> for more information on how to use GLM 0.9.1.
|
<a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.zip/download">GLM 0.9.0.8</a>
|
||||||
</p>Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.zip/download">GLM 0.9.1.0 (zip)</a><br />Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.7z/download">GLM 0.9.1.0 (7z)</a><br />Link: <a href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM 0.9.1 manual</a><br />Link: <a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</a><br /></div><br /></div><div><h3>13/02/2011 - GLM 0.9.0.8 and GLM 0.9.1 beta released</h3><div><p>
|
but mainly advanced usages should be affected by the differencies.
|
||||||
The stable version, GLM 0.9.0.8, adds the operator * for quaternion products and deprecated the cross function previously used for the same purpose.
|
Have a look at the <a href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM manual</a> for more information on how to use GLM 0.9.1.
|
||||||
Also, it clarifies that GLM is a header only library when a user try to build it. Once more, there is nothing to build.
|
</p>Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.zip/download">GLM 0.9.1.0 (zip)</a><br />Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.7z/download">GLM 0.9.1.0 (7z)</a><br />Link: <a href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM 0.9.1 manual</a><br />Link: <a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</a><br /></div><br /></div><div><h3>13/02/2011 - GLM 0.9.0.8 and GLM 0.9.1 beta released</h3><div><p>
|
||||||
</p><p>
|
The stable version, GLM 0.9.0.8, adds the operator * for quaternion products and deprecated the cross function previously used for the same purpose.
|
||||||
The development version, GLM 0.9.1 beta, provides an improved <a href="http://glm.g-truc.net/html-0.9.1/index.html">API documentation</a> by
|
Also, it clarifies that GLM is a header only library when a user try to build it. Once more, there is nothing to build.
|
||||||
<a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showprofile&User=23530">Alfonse Reinheart</a>,
|
</p><p>
|
||||||
author of <a href="http://www.arcsynthesis.org/gltut/">a great OpenGL tutorial</a> which uses GLM.
|
The development version, GLM 0.9.1 beta, provides an improved <a href="http://glm.g-truc.net/html-0.9.1/index.html">API documentation</a> by
|
||||||
This version also improves the SIMD extensions and it fixes many bugs.
|
<a href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showprofile&User=23530">Alfonse Reinheart</a>,
|
||||||
</p>Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.B/glm-0.9.1.B.zip/download">GLM 0.9.1.B (zip)</a><br />Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.B/glm-0.9.1.B.7z/download">GLM 0.9.1.B (7z)</a><br />Link: <a href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM 0.9.1 manual</a><br />Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.zip/download">GLM 0.9.0.8 (zip)</a><br />Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.7z/download">GLM 0.9.0.8 (7z)</a><br />Link: <a href="http://glm.g-truc.net/glm-0.9.0.pdf">GLM 0.9.0 manual</a><br />Link: <a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</a><br /></div><br /></div><div><h3>31/01/2011 - GLM 0.9.1 alpha released</h3><div><p>
|
author of <a href="http://www.arcsynthesis.org/gltut/">a great OpenGL tutorial</a> which uses GLM.
|
||||||
|
This version also improves the SIMD extensions and it fixes many bugs.
|
||||||
|
</p>Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.B/glm-0.9.1.B.zip/download">GLM 0.9.1.B (zip)</a><br />Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.B/glm-0.9.1.B.7z/download">GLM 0.9.1.B (7z)</a><br />Link: <a href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM 0.9.1 manual</a><br />Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.zip/download">GLM 0.9.0.8 (zip)</a><br />Download: <a href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.7z/download">GLM 0.9.0.8 (7z)</a><br />Link: <a href="http://glm.g-truc.net/glm-0.9.0.pdf">GLM 0.9.0 manual</a><br />Link: <a href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</a><br /></div><br /></div><div><h3>31/01/2011 - GLM 0.9.1 alpha released</h3><div><p>
|
||||||
This new version of GLM is bringing a lot of improvements and maybe too many considering the development time it has required:
|
This new version of GLM is bringing a lot of improvements and maybe too many considering the development time it has required:
|
||||||
API exposing SIMD implementation but also some new, safe and feature complet swizzling functions and a new setup API.
|
API exposing SIMD implementation but also some new, safe and feature complet swizzling functions and a new setup API.
|
||||||
All this is described in the largely updated <a href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM manual</a>.
|
All this is described in the largely updated <a href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM manual</a>.
|
||||||
|
120
doc/src/data.xml
120
doc/src/data.xml
@ -152,74 +152,74 @@
|
|||||||
</todo>
|
</todo>
|
||||||
|
|
||||||
<page_news>
|
<page_news>
|
||||||
<news index="0063" date="12/04/2011" title="GLM 0.9.1.2 released" image="goodies/logo.png" image-mini="image/logo-mini.png">
|
<news index="0063" date="15/04/2011" title="GLM 0.9.1.2 released" image="goodies/logo.png" image-mini="image/logo-mini.png">
|
||||||
<paragraph>
|
<paragraph>
|
||||||
Only bug fixes for GLM 0.9.1.2.
|
Bug fixes Only for GLM 0.9.1.2.
|
||||||
</paragraph>
|
</paragraph>
|
||||||
|
|
||||||
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.zip/download">GLM 0.9.1.2 (zip)</source>
|
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.zip/download">GLM 0.9.1.2 (zip)</source>
|
||||||
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.7z/download">GLM 0.9.1.2 (7z)</source>
|
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.2/glm-0.9.1.2.7z/download">GLM 0.9.1.2 (7z)</source>
|
||||||
<source type="Link" href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</source>
|
<source type="Link" href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</source>
|
||||||
</news>
|
</news>
|
||||||
|
|
||||||
<news index="0062" date="17/03/2011" title="GLM 0.9.1.1 released" image="goodies/logo.png" image-mini="image/logo-mini.png">
|
<news index="0062" date="17/03/2011" title="GLM 0.9.1.1 released" image="goodies/logo.png" image-mini="image/logo-mini.png">
|
||||||
<paragraph>
|
<paragraph>
|
||||||
GLM 0.9.1.1 fixes some bugs, warnings on Clang C++ and clean up a bit the code.
|
GLM 0.9.1.1 fixes some bugs, warnings on Clang C++ and clean up a bit the code.
|
||||||
</paragraph>
|
</paragraph>
|
||||||
<paragraph>
|
<paragraph>
|
||||||
If you have uncounter any issue with GLM 0.9.1.0, please download this revision.
|
If you have uncounter any issue with GLM 0.9.1.0, please download this revision.
|
||||||
</paragraph>
|
</paragraph>
|
||||||
<paragraph>
|
<paragraph>
|
||||||
Finally, the work has started for GLM 0.9.2 so if you have requests don't forget to <link href="https://sourceforge.net/apps/trac/ogl-math/newticket">submit them!</link>
|
Finally, the work has started for GLM 0.9.2 so if you have requests don't forget to <link href="https://sourceforge.net/apps/trac/ogl-math/newticket">submit them!</link>
|
||||||
</paragraph>
|
</paragraph>
|
||||||
|
|
||||||
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.zip/download">GLM 0.9.1.1 (zip)</source>
|
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.zip/download">GLM 0.9.1.1 (zip)</source>
|
||||||
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.7z/download">GLM 0.9.1.1 (7z)</source>
|
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.1/glm-0.9.1.1.7z/download">GLM 0.9.1.1 (7z)</source>
|
||||||
<source type="Link" href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</source>
|
<source type="Link" href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</source>
|
||||||
</news>
|
</news>
|
||||||
|
|
||||||
<news index="0061" date="03/03/2011" title="GLM 0.9.1.0 final released" image="goodies/logo.png" image-mini="image/logo-mini.png">
|
|
||||||
<paragraph>
|
|
||||||
Finally, GLM 0.9.1 branch is reaching the status of stable with
|
|
||||||
<link href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.zip/download">GLM 0.9.1.0</link>.
|
|
||||||
</paragraph>
|
|
||||||
<paragraph>
|
|
||||||
From GLM 0.9.1 beta, mainly bugs has been fixed. GLM has evolved on many sides since GLM 0.9.0:
|
|
||||||
Improved documentation (manual and doxygen), better test framework, simplified setup/options/configration of GLM and new experimental SIMD API.
|
|
||||||
</paragraph>
|
|
||||||
<paragraph>
|
|
||||||
GLM 0.9.1.0 is not 100% backward compatile with
|
|
||||||
<link href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.zip/download">GLM 0.9.0.8</link>
|
|
||||||
but mainly advanced usages should be affected by the differencies.
|
|
||||||
Have a look at the <link href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM manual</link> for more information on how to use GLM 0.9.1.
|
|
||||||
</paragraph>
|
|
||||||
|
|
||||||
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.zip/download">GLM 0.9.1.0 (zip)</source>
|
<news index="0061" date="03/03/2011" title="GLM 0.9.1.0 final released" image="goodies/logo.png" image-mini="image/logo-mini.png">
|
||||||
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.7z/download">GLM 0.9.1.0 (7z)</source>
|
<paragraph>
|
||||||
<source type="Link" href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM 0.9.1 manual</source>
|
Finally, GLM 0.9.1 branch is reaching the status of stable with
|
||||||
<source type="Link" href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</source>
|
<link href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.zip/download">GLM 0.9.1.0</link>.
|
||||||
</news>
|
</paragraph>
|
||||||
|
<paragraph>
|
||||||
|
From GLM 0.9.1 beta, mainly bugs has been fixed. GLM has evolved on many sides since GLM 0.9.0:
|
||||||
|
Improved documentation (manual and doxygen), better test framework, simplified setup/options/configration of GLM and new experimental SIMD API.
|
||||||
|
</paragraph>
|
||||||
|
<paragraph>
|
||||||
|
GLM 0.9.1.0 is not 100% backward compatile with
|
||||||
|
<link href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.zip/download">GLM 0.9.0.8</link>
|
||||||
|
but mainly advanced usages should be affected by the differencies.
|
||||||
|
Have a look at the <link href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM manual</link> for more information on how to use GLM 0.9.1.
|
||||||
|
</paragraph>
|
||||||
|
|
||||||
<news index="0060" date="13/02/2011" title="GLM 0.9.0.8 and GLM 0.9.1 beta released" image="goodies/logo.png" image-mini="image/logo-mini.png">
|
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.zip/download">GLM 0.9.1.0 (zip)</source>
|
||||||
<paragraph>
|
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.0/glm-0.9.1.0.7z/download">GLM 0.9.1.0 (7z)</source>
|
||||||
The stable version, GLM 0.9.0.8, adds the operator * for quaternion products and deprecated the cross function previously used for the same purpose.
|
<source type="Link" href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM 0.9.1 manual</source>
|
||||||
Also, it clarifies that GLM is a header only library when a user try to build it. Once more, there is nothing to build.
|
<source type="Link" href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</source>
|
||||||
</paragraph>
|
</news>
|
||||||
<paragraph>
|
|
||||||
The development version, GLM 0.9.1 beta, provides an improved <link href="http://glm.g-truc.net/html-0.9.1/index.html">API documentation</link> by
|
|
||||||
<link href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showprofile&User=23530">Alfonse Reinheart</link>,
|
|
||||||
author of <link href="http://www.arcsynthesis.org/gltut/">a great OpenGL tutorial</link> which uses GLM.
|
|
||||||
This version also improves the SIMD extensions and it fixes many bugs.
|
|
||||||
</paragraph>
|
|
||||||
|
|
||||||
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.B/glm-0.9.1.B.zip/download">GLM 0.9.1.B (zip)</source>
|
<news index="0060" date="13/02/2011" title="GLM 0.9.0.8 and GLM 0.9.1 beta released" image="goodies/logo.png" image-mini="image/logo-mini.png">
|
||||||
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.B/glm-0.9.1.B.7z/download">GLM 0.9.1.B (7z)</source>
|
<paragraph>
|
||||||
<source type="Link" href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM 0.9.1 manual</source>
|
The stable version, GLM 0.9.0.8, adds the operator * for quaternion products and deprecated the cross function previously used for the same purpose.
|
||||||
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.zip/download">GLM 0.9.0.8 (zip)</source>
|
Also, it clarifies that GLM is a header only library when a user try to build it. Once more, there is nothing to build.
|
||||||
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.7z/download">GLM 0.9.0.8 (7z)</source>
|
</paragraph>
|
||||||
<source type="Link" href="http://glm.g-truc.net/glm-0.9.0.pdf">GLM 0.9.0 manual</source>
|
<paragraph>
|
||||||
<source type="Link" href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</source>
|
The development version, GLM 0.9.1 beta, provides an improved <link href="http://glm.g-truc.net/html-0.9.1/index.html">API documentation</link> by
|
||||||
</news>
|
<link href="http://www.opengl.org/discussion_boards/ubbthreads.php?ubb=showprofile&User=23530">Alfonse Reinheart</link>,
|
||||||
|
author of <link href="http://www.arcsynthesis.org/gltut/">a great OpenGL tutorial</link> which uses GLM.
|
||||||
|
This version also improves the SIMD extensions and it fixes many bugs.
|
||||||
|
</paragraph>
|
||||||
|
|
||||||
|
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.B/glm-0.9.1.B.zip/download">GLM 0.9.1.B (zip)</source>
|
||||||
|
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.1.B/glm-0.9.1.B.7z/download">GLM 0.9.1.B (7z)</source>
|
||||||
|
<source type="Link" href="http://glm.g-truc.net/glm-0.9.1.pdf">GLM 0.9.1 manual</source>
|
||||||
|
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.zip/download">GLM 0.9.0.8 (zip)</source>
|
||||||
|
<source type="Download" href="https://sourceforge.net/projects/ogl-math/files/glm-0.9.0.8/glm-0.9.0.8.7z/download">GLM 0.9.0.8 (7z)</source>
|
||||||
|
<source type="Link" href="http://glm.g-truc.net/glm-0.9.0.pdf">GLM 0.9.0 manual</source>
|
||||||
|
<source type="Link" href="https://sourceforge.net/apps/trac/ogl-math/newticket">Submit a bug report</source>
|
||||||
|
</news>
|
||||||
|
|
||||||
<news index="0059" date="31/01/2011" title="GLM 0.9.1 alpha released" image="goodies/logo.png" image-mini="image/logo-mini.png">
|
<news index="0059" date="31/01/2011" title="GLM 0.9.1 alpha released" image="goodies/logo.png" image-mini="image/logo-mini.png">
|
||||||
<paragraph>
|
<paragraph>
|
||||||
|
@ -466,8 +466,8 @@ namespace glm
|
|||||||
|
|
||||||
detail::tmat2x2<T> Inverse(
|
detail::tmat2x2<T> Inverse(
|
||||||
+ m[1][1] / Determinant,
|
+ m[1][1] / Determinant,
|
||||||
- m[1][0] / Determinant,
|
|
||||||
- m[0][1] / Determinant,
|
- m[0][1] / Determinant,
|
||||||
|
- m[1][0] / Determinant,
|
||||||
+ m[0][0] / Determinant);
|
+ m[0][0] / Determinant);
|
||||||
|
|
||||||
return Inverse;
|
return Inverse;
|
||||||
|
@ -275,7 +275,7 @@ namespace glm
|
|||||||
detail::fvec4SIMD const & x
|
detail::fvec4SIMD const & x
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
GLM_ALIGN(4) detail::tvec4<float> Result;
|
GLM_ALIGN(16) detail::tvec4<float> Result;
|
||||||
_mm_store_ps(&Result[0], x.Data);
|
_mm_store_ps(&Result[0], x.Data);
|
||||||
return Result;
|
return Result;
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@ More informations in GLM manual:
|
|||||||
http://glm.g-truc.net/glm-0.9.1.pdf
|
http://glm.g-truc.net/glm-0.9.1.pdf
|
||||||
|
|
||||||
================================================================================
|
================================================================================
|
||||||
GLM 0.9.1.2: 2010-04-12
|
GLM 0.9.1.2: 2010-04-15
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
- Fixed bugs
|
- Fixed bugs
|
||||||
|
|
||||||
|
@ -4,145 +4,79 @@
|
|||||||
// Created : 2011-01-15
|
// Created : 2011-01-15
|
||||||
// Updated : 2011-01-15
|
// Updated : 2011-01-15
|
||||||
// Licence : This source is under MIT licence
|
// Licence : This source is under MIT licence
|
||||||
// File : test/gtx/simd-mat4.cpp
|
// File : test/core/func_matrix.cpp
|
||||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#define GLM_INSTRUCTION_SET GLM_PLATFORM_SSE3 | GLM_PLATFORM_SSE2
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
int test_static_assert()
|
int test_matrixCompMult()
|
||||||
{
|
{
|
||||||
//glm::lessThan(glm::mat4(0), glm::mat4(4));
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_lessThan_vec2()
|
int test_outerProduct()
|
||||||
{
|
{
|
||||||
glm::bvec2 O = glm::bvec2(true, false);
|
|
||||||
|
|
||||||
glm::bvec2 A = glm::lessThan(glm::vec2(0, 6), glm::vec2(4, 2));
|
|
||||||
assert(glm::all(glm::equal(O, A)));
|
|
||||||
|
|
||||||
glm::bvec2 B = glm::lessThan(glm::ivec2(0, 6), glm::ivec2(4, 2));
|
|
||||||
assert(glm::all(glm::equal(O, B)));
|
|
||||||
|
|
||||||
glm::bvec2 C = glm::lessThan(glm::uvec2(0, 6), glm::uvec2(4, 2));
|
|
||||||
assert(glm::all(glm::equal(O, C)));
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_lessThan_vec3()
|
int test_transpose()
|
||||||
{
|
{
|
||||||
glm::bvec3 O = glm::bvec3(true, true, false);
|
|
||||||
|
|
||||||
glm::bvec3 A = glm::lessThan(glm::vec3(0, 1, 6), glm::vec3(4, 5, 2));
|
|
||||||
assert(glm::all(glm::equal(O, A)));
|
|
||||||
|
|
||||||
glm::bvec3 B = glm::lessThan(glm::ivec3(0, 1, 6), glm::ivec3(4, 5, 2));
|
|
||||||
assert(glm::all(glm::equal(O, B)));
|
|
||||||
|
|
||||||
glm::bvec3 C = glm::lessThan(glm::uvec3(0, 1, 6), glm::uvec3(4, 5, 2));
|
|
||||||
assert(glm::all(glm::equal(O, C)));
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_lessThan_vec4()
|
int test_determinant()
|
||||||
{
|
{
|
||||||
glm::bvec4 O = glm::bvec4(true, true, false, false);
|
|
||||||
|
|
||||||
glm::bvec4 A = glm::lessThan(glm::vec4(0, 1, 6, 7), glm::vec4(4, 5, 2, 3));
|
|
||||||
assert(glm::all(glm::equal(O, A)));
|
|
||||||
|
|
||||||
glm::bvec4 B = glm::lessThan(glm::ivec4(0, 1, 6, 7), glm::ivec4(4, 5, 2, 3));
|
|
||||||
assert(glm::all(glm::equal(O, B)));
|
|
||||||
|
|
||||||
glm::bvec4 C = glm::lessThan(glm::uvec4(0, 1, 6, 7), glm::uvec4(4, 5, 2, 3));
|
|
||||||
assert(glm::all(glm::equal(O, C)));
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_greaterThanEqual_vec2()
|
int test_inverse()
|
||||||
{
|
{
|
||||||
glm::bvec2 O = glm::bvec2(false, true);
|
int Failed(0);
|
||||||
|
|
||||||
glm::bvec2 A = glm::greaterThanEqual(glm::vec2(0, 6), glm::vec2(4, 2));
|
glm::mat4x4 A4x4(
|
||||||
assert(glm::all(glm::equal(O, A)));
|
glm::vec4(1, 0, 1, 0),
|
||||||
|
glm::vec4(0, 1, 0, 0),
|
||||||
|
glm::vec4(0, 0, 1, 0),
|
||||||
|
glm::vec4(0, 0, 0, 1));
|
||||||
|
glm::mat4x4 B4x4 = glm::inverse(A4x4);
|
||||||
|
glm::mat4x4 I4x4 = A4x4 * B4x4;
|
||||||
|
Failed += I4x4 == glm::mat4x4(1) ? 0 : 1;
|
||||||
|
|
||||||
glm::bvec2 B = glm::greaterThanEqual(glm::ivec2(0, 6), glm::ivec2(4, 2));
|
glm::mat3x3 A3x3(
|
||||||
assert(glm::all(glm::equal(O, B)));
|
glm::vec3(1, 0, 1),
|
||||||
|
glm::vec3(0, 1, 0),
|
||||||
|
glm::vec3(0, 0, 1));
|
||||||
|
glm::mat3x3 B3x3 = glm::inverse(A3x3);
|
||||||
|
glm::mat3x3 I3x3 = A3x3 * B3x3;
|
||||||
|
Failed += I3x3 == glm::mat3x3(1) ? 0 : 1;
|
||||||
|
|
||||||
glm::bvec2 C = glm::greaterThanEqual(glm::uvec2(0, 6), glm::uvec2(4, 2));
|
glm::mat2x2 A2x2(
|
||||||
assert(glm::all(glm::equal(O, C)));
|
glm::vec2(1, 1),
|
||||||
|
glm::vec2(0, 1));
|
||||||
|
glm::mat2x2 B2x2 = glm::inverse(A2x2);
|
||||||
|
glm::mat2x2 I2x2 = A2x2 * B2x2;
|
||||||
|
Failed += I2x2 == glm::mat2x2(1) ? 0 : 1;
|
||||||
|
|
||||||
return 0;
|
return Failed;
|
||||||
}
|
|
||||||
|
|
||||||
int test_greaterThanEqual_vec3()
|
|
||||||
{
|
|
||||||
glm::bvec3 O = glm::bvec3(false, false, true);
|
|
||||||
|
|
||||||
glm::bvec3 A = glm::greaterThanEqual(glm::vec3(0, 1, 6), glm::vec3(4, 5, 2));
|
|
||||||
assert(glm::all(glm::equal(O, A)));
|
|
||||||
|
|
||||||
glm::bvec3 B = glm::greaterThanEqual(glm::ivec3(0, 1, 6), glm::ivec3(4, 5, 2));
|
|
||||||
assert(glm::all(glm::equal(O, B)));
|
|
||||||
|
|
||||||
glm::bvec3 C = glm::greaterThanEqual(glm::uvec3(0, 1, 6), glm::uvec3(4, 5, 2));
|
|
||||||
assert(glm::all(glm::equal(O, C)));
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int test_greaterThanEqual_vec4()
|
|
||||||
{
|
|
||||||
glm::bvec4 O = glm::bvec4(false, false, true, true);
|
|
||||||
|
|
||||||
glm::bvec4 A = glm::greaterThanEqual(glm::vec4(0, 1, 6, 7), glm::vec4(4, 5, 2, 3));
|
|
||||||
assert(glm::all(glm::equal(O, A)));
|
|
||||||
|
|
||||||
glm::bvec4 B = glm::greaterThanEqual(glm::ivec4(0, 1, 6, 7), glm::ivec4(4, 5, 2, 3));
|
|
||||||
assert(glm::all(glm::equal(O, B)));
|
|
||||||
|
|
||||||
glm::bvec4 C = glm::greaterThanEqual(glm::uvec4(0, 1, 6, 7), glm::uvec4(4, 5, 2, 3));
|
|
||||||
assert(glm::all(glm::equal(O, C)));
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
int test_all()
|
|
||||||
{
|
|
||||||
assert(glm::all(glm::bvec2(true, true)));
|
|
||||||
assert(!glm::all(glm::bvec2(true, false)));
|
|
||||||
assert(!glm::all(glm::bvec2(false, false)));
|
|
||||||
|
|
||||||
assert(glm::all(glm::bvec3(true, true, true)));
|
|
||||||
assert(!glm::all(glm::bvec3(true, false, true)));
|
|
||||||
assert(!glm::all(glm::bvec3(false, false, false)));
|
|
||||||
|
|
||||||
assert(glm::all(glm::bvec4(true, true, true, true)));
|
|
||||||
assert(!glm::all(glm::bvec4(true, false, true, false)));
|
|
||||||
assert(!glm::all(glm::bvec4(false, false, false, false)));
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
int Failed = 0;
|
int Failed = 0;
|
||||||
Failed += test_static_assert();
|
Failed += test_matrixCompMult();
|
||||||
Failed += test_lessThan_vec2();
|
Failed += test_outerProduct();
|
||||||
Failed += test_lessThan_vec3();
|
Failed += test_transpose();
|
||||||
Failed += test_lessThan_vec4();
|
Failed += test_determinant();
|
||||||
Failed += test_greaterThanEqual_vec2();
|
Failed += test_inverse();
|
||||||
Failed += test_greaterThanEqual_vec3();
|
|
||||||
Failed += test_greaterThanEqual_vec4();
|
|
||||||
Failed += test_all();
|
|
||||||
|
|
||||||
return Failed;
|
return Failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
static bool test_operators()
|
static int test_operators()
|
||||||
{
|
{
|
||||||
glm::mat2x2 m(1.0f);
|
glm::mat2x2 m(1.0f);
|
||||||
glm::vec2 u(1.0f);
|
glm::vec2 u(1.0f);
|
||||||
@ -24,15 +24,14 @@ static bool test_operators()
|
|||||||
bool R = m != q;
|
bool R = m != q;
|
||||||
bool S = m == m;
|
bool S = m == m;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
|
||||||
Result = Result && test_operators();
|
Error += test_operators();
|
||||||
|
|
||||||
assert(Result);
|
return Error;
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
static bool test_operators()
|
static int test_operators()
|
||||||
{
|
{
|
||||||
glm::mat2x3 m(1.0f);
|
glm::mat2x3 m(1.0f);
|
||||||
glm::vec2 u(1.0f);
|
glm::vec2 u(1.0f);
|
||||||
@ -24,15 +24,14 @@ static bool test_operators()
|
|||||||
bool R = m != q;
|
bool R = m != q;
|
||||||
bool S = m == m;
|
bool S = m == m;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
|
||||||
Result = Result && test_operators();
|
Error += test_operators();
|
||||||
|
|
||||||
assert(Result);
|
return Error;
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
static bool test_operators()
|
static int test_operators()
|
||||||
{
|
{
|
||||||
glm::mat2x4 m(1.0f);
|
glm::mat2x4 m(1.0f);
|
||||||
glm::vec2 u(1.0f);
|
glm::vec2 u(1.0f);
|
||||||
@ -24,17 +24,17 @@ static bool test_operators()
|
|||||||
bool R = m != q;
|
bool R = m != q;
|
||||||
bool S = m == m;
|
bool S = m == m;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
|
||||||
Result = Result && test_operators();
|
Error += test_operators();
|
||||||
|
|
||||||
assert(Result);
|
return Error;
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,16 +24,16 @@ static bool test_operators()
|
|||||||
bool R = m != q;
|
bool R = m != q;
|
||||||
bool S = m == m;
|
bool S = m == m;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
|
||||||
Result = Result && test_operators();
|
Error += test_operators();
|
||||||
|
|
||||||
assert(Result);
|
return Error;
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ void print(glm::dmat3 const & Mat0)
|
|||||||
printf("\tvec3(%2.3f, %2.3f, %2.3f))\n\n", Mat0[2][0], Mat0[2][1], Mat0[2][2]);
|
printf("\tvec3(%2.3f, %2.3f, %2.3f))\n\n", Mat0[2][0], Mat0[2][1], Mat0[2][2]);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool test_mat3x3()
|
int test_mat3x3()
|
||||||
{
|
{
|
||||||
glm::dmat3 Mat0(
|
glm::dmat3 Mat0(
|
||||||
glm::dvec3(0.6f, 0.2f, 0.3f),
|
glm::dvec3(0.6f, 0.2f, 0.3f),
|
||||||
@ -31,10 +31,10 @@ bool test_mat3x3()
|
|||||||
print(Inv0);
|
print(Inv0);
|
||||||
print(Res0);
|
print(Res0);
|
||||||
|
|
||||||
return true;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool test_operators()
|
static int test_operators()
|
||||||
{
|
{
|
||||||
glm::mat3x3 m(1.0f);
|
glm::mat3x3 m(1.0f);
|
||||||
glm::vec3 u(1.0f);
|
glm::vec3 u(1.0f);
|
||||||
@ -49,17 +49,16 @@ static bool test_operators()
|
|||||||
bool R = m != q;
|
bool R = m != q;
|
||||||
bool S = m == m;
|
bool S = m == m;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
|
||||||
Result = Result && test_mat3x3();
|
Error += test_mat3x3();
|
||||||
Result = Result && test_operators();
|
Error += test_operators();
|
||||||
|
|
||||||
assert(Result);
|
return Error;
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,16 +24,15 @@ static bool test_operators()
|
|||||||
bool R = m != q;
|
bool R = m != q;
|
||||||
bool S = m == m;
|
bool S = m == m;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
|
||||||
Result = Result && test_operators();
|
Error += test_operators();
|
||||||
|
|
||||||
assert(Result);
|
return Error;
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
static bool test_operators()
|
static int test_operators()
|
||||||
{
|
{
|
||||||
glm::mat4x2 m(1.0f);
|
glm::mat4x2 m(1.0f);
|
||||||
glm::vec4 u(1.0f);
|
glm::vec4 u(1.0f);
|
||||||
@ -24,16 +24,15 @@ static bool test_operators()
|
|||||||
bool R = m != q;
|
bool R = m != q;
|
||||||
bool S = m == m;
|
bool S = m == m;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
|
||||||
Result = Result && test_operators();
|
Error += test_operators();
|
||||||
|
|
||||||
assert(Result);
|
return Error;
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
static bool test_operators()
|
static int test_operators()
|
||||||
{
|
{
|
||||||
glm::mat4x3 m(1.0f);
|
glm::mat4x3 m(1.0f);
|
||||||
glm::vec4 u(1.0f);
|
glm::vec4 u(1.0f);
|
||||||
@ -24,17 +24,16 @@ static bool test_operators()
|
|||||||
bool R = m != q;
|
bool R = m != q;
|
||||||
bool S = m == m;
|
bool S = m == m;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
|
||||||
Result = Result && test_operators();
|
Error += test_operators();
|
||||||
|
|
||||||
assert(Result);
|
return Error;
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ void print(glm::dmat4 const & Mat0)
|
|||||||
printf("\tvec4(%2.3f, %2.3f, %2.3f, %2.3f))\n\n", Mat0[3][0], Mat0[3][1], Mat0[3][2], Mat0[3][3]);
|
printf("\tvec4(%2.3f, %2.3f, %2.3f, %2.3f))\n\n", Mat0[3][0], Mat0[3][1], Mat0[3][2], Mat0[3][3]);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool test_mat4x4()
|
int test_mat4x4()
|
||||||
{
|
{
|
||||||
glm::dmat4 Mat0(
|
glm::dmat4 Mat0(
|
||||||
glm::dvec4(0.6f, 0.2f, 0.3f, 0.4f),
|
glm::dvec4(0.6f, 0.2f, 0.3f, 0.4f),
|
||||||
@ -35,7 +35,7 @@ bool test_mat4x4()
|
|||||||
print(Inv0);
|
print(Inv0);
|
||||||
print(Res0);
|
print(Res0);
|
||||||
|
|
||||||
return true;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool test_operators()
|
static bool test_operators()
|
||||||
@ -53,16 +53,15 @@ static bool test_operators()
|
|||||||
bool R = m != q;
|
bool R = m != q;
|
||||||
bool S = m == m;
|
bool S = m == m;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
|
||||||
Result = Result && test_mat4x4();
|
Error += test_mat4x4();
|
||||||
Result = Result && test_operators();
|
Error += test_operators();
|
||||||
|
|
||||||
assert(Result);
|
return Error;
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
|
@ -9,22 +9,21 @@
|
|||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
static bool test_operators()
|
static int test_operators()
|
||||||
{
|
{
|
||||||
glm::vec4 A(1.0f);
|
glm::vec4 A(1.0f);
|
||||||
glm::vec4 B(1.0f);
|
glm::vec4 B(1.0f);
|
||||||
bool R = A != B;
|
bool R = A != B;
|
||||||
bool S = A == B;
|
bool S = A == B;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
|
||||||
Result = Result && test_operators();
|
Error += test_operators();
|
||||||
|
|
||||||
assert(Result);
|
return Error;
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
|
@ -9,22 +9,21 @@
|
|||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
static bool test_operators()
|
static int test_operators()
|
||||||
{
|
{
|
||||||
glm::vec4 A(1.0f);
|
glm::vec2 A(1.0f);
|
||||||
glm::vec4 B(1.0f);
|
glm::vec2 B(1.0f);
|
||||||
bool R = A != B;
|
bool R = A != B;
|
||||||
bool S = A == B;
|
bool S = A == B;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
|
||||||
Result = Result && test_operators();
|
Error += test_operators();
|
||||||
|
|
||||||
assert(Result);
|
return Error;
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
|
@ -9,22 +9,21 @@
|
|||||||
|
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
static bool test_operators()
|
static int test_operators()
|
||||||
{
|
{
|
||||||
glm::vec4 A(1.0f);
|
glm::vec3 A(1.0f);
|
||||||
glm::vec4 B(1.0f);
|
glm::vec3 B(1.0f);
|
||||||
bool R = A != B;
|
bool R = A != B;
|
||||||
bool S = A == B;
|
bool S = A == B;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
|
||||||
Result = Result && test_operators();
|
Error += test_operators();
|
||||||
|
|
||||||
assert(Result);
|
return Error;
|
||||||
return Result;
|
|
||||||
}
|
}
|
||||||
|
@ -31,41 +31,34 @@ enum comp
|
|||||||
// return _mm_shuffle_ps(Src, Src, mask<(int(W) << 6) | (int(Z) << 4) | (int(Y) << 2) | (int(X) << 0)>::value);
|
// return _mm_shuffle_ps(Src, Src, mask<(int(W) << 6) | (int(Z) << 4) | (int(Y) << 2) | (int(X) << 0)>::value);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
bool test_hvec4()
|
int test_hvec4()
|
||||||
{
|
{
|
||||||
glm::hvec4 const A = glm::hvec4(0, 1, 2, 3);
|
glm::hvec4 const A = glm::hvec4(0, 1, 2, 3);
|
||||||
//glm::hvec4 B = glm::swizzle<glm::X, glm::Y, glm::Z, glm::W>(A);
|
//glm::hvec4 B = glm::swizzle<glm::X, glm::Y, glm::Z, glm::W>(A);
|
||||||
|
|
||||||
//glm::vec4 B = glm::detail::tvec##(glm::vec4::_size)<float>();
|
//glm::vec4 B = glm::detail::tvec##(glm::vec4::_size)<float>();
|
||||||
|
|
||||||
return true;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool test_operators()
|
static int test_operators()
|
||||||
{
|
{
|
||||||
glm::vec4 A(1.0f);
|
glm::vec4 A(1.0f);
|
||||||
glm::vec4 B(1.0f);
|
glm::vec4 B(1.0f);
|
||||||
bool R = A != B;
|
bool R = A != B;
|
||||||
bool S = A == B;
|
bool S = A == B;
|
||||||
|
|
||||||
return true;
|
return (S && !R) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
test_hvec4();
|
|
||||||
|
|
||||||
//__m128 DataA = swizzle<X, Y, Z, W>(glm::vec4(1.0f, 2.0f, 3.0f, 4.0f));
|
//__m128 DataA = swizzle<X, Y, Z, W>(glm::vec4(1.0f, 2.0f, 3.0f, 4.0f));
|
||||||
//__m128 DataB = swizzle<W, Z, Y, X>(glm::vec4(1.0f, 2.0f, 3.0f, 4.0f));
|
//__m128 DataB = swizzle<W, Z, Y, X>(glm::vec4(1.0f, 2.0f, 3.0f, 4.0f));
|
||||||
|
|
||||||
bool Result = true;
|
int Error = 0;
|
||||||
|
Error += test_operators();
|
||||||
Result = Result && test_operators();
|
Error += test_hvec4();
|
||||||
Result = Result && test_hvec4();
|
return Error;
|
||||||
|
|
||||||
assert(Result);
|
|
||||||
return Result;
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
int Failed = 0;
|
int Error = -1;
|
||||||
|
|
||||||
return Failed;
|
return Error;
|
||||||
}
|
}
|
||||||
|
@ -13,114 +13,122 @@
|
|||||||
|
|
||||||
int test_swizzle_vec4_ref_dynamic()
|
int test_swizzle_vec4_ref_dynamic()
|
||||||
{
|
{
|
||||||
|
int Error = 0;
|
||||||
|
|
||||||
{
|
{
|
||||||
glm::ivec4 A(0, 1, 2, 3);
|
glm::ivec4 A(0, 1, 2, 3);
|
||||||
glm::ivec4 B(2, 1, 0, 3);
|
glm::ivec4 B(2, 1, 0, 3);
|
||||||
glm::swizzle(A, glm::Z, glm::Y, glm::X, glm::W) = B;
|
glm::swizzle(A, glm::Z, glm::Y, glm::X, glm::W) = B;
|
||||||
assert(A.x == B.x && A.y == B.y && A.z == B.z && A.w == B.w);
|
Error += (A.z == B.x && A.y == B.y && A.x == B.z && A.w == B.w) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
glm::ivec4 A(0, 1, 2, 3);
|
glm::ivec4 A(0, 1, 2, 3);
|
||||||
glm::ivec3 B(2, 1, 0);
|
glm::ivec3 B(2, 1, 0);
|
||||||
glm::swizzle(A, glm::Z, glm::Y, glm::X) = B;
|
glm::swizzle(A, glm::Z, glm::Y, glm::X) = B;
|
||||||
assert(A.x == B.x && A.y == B.y && A.z == B.z);
|
Error += (A.z == B.x && A.y == B.y && A.x == B.z) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
glm::ivec4 A(0, 1, 2, 3);
|
glm::ivec4 A(0, 1, 2, 3);
|
||||||
glm::ivec2 B(2, 1);
|
glm::ivec2 B(2, 1);
|
||||||
glm::swizzle(A, glm::Z, glm::Y) = B;
|
glm::swizzle(A, glm::Z, glm::Y) = B;
|
||||||
assert(A.x == B.x && A.y == B.y);
|
Error += (A.z == B.x && A.y == B.y) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
glm::ivec4 A(0, 1, 2, 3);
|
glm::ivec4 A(0, 1, 2, 3);
|
||||||
int B(2);
|
int B(2);
|
||||||
glm::swizzle(A, glm::Z) = B;
|
glm::swizzle(A, glm::Z) = B;
|
||||||
assert(A.x == B);
|
Error += (A.z == B) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_swizzle_vec4_ref_static()
|
int test_swizzle_vec4_ref_static()
|
||||||
{
|
{
|
||||||
|
int Error = 0;
|
||||||
|
|
||||||
{
|
{
|
||||||
glm::ivec4 A(0, 1, 2, 3);
|
glm::ivec4 A(0, 1, 2, 3);
|
||||||
glm::ivec4 B(2, 1, 0, 3);
|
glm::ivec4 B(2, 1, 0, 3);
|
||||||
glm::swizzle<glm::Z, glm::Y, glm::X, glm::W>(A) = B;
|
glm::swizzle<glm::Z, glm::Y, glm::X, glm::W>(A) = B;
|
||||||
assert(A.x == B.x && A.y == B.y && A.z == B.z && A.w == B.w);
|
Error += (A.z == B.x && A.y == B.y && A.x == B.z && A.w == B.w) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
glm::ivec4 A(0, 1, 2, 3);
|
glm::ivec4 A(0, 1, 2, 3);
|
||||||
glm::ivec3 B(2, 1, 0);
|
glm::ivec3 B(2, 1, 0);
|
||||||
glm::swizzle<glm::Z, glm::Y, glm::X>(A) = B;
|
glm::swizzle<glm::Z, glm::Y, glm::X>(A) = B;
|
||||||
assert(A.x == B.x && A.y == B.y && A.z == B.z);
|
Error += (A.z == B.x && A.y == B.y && A.x == B.z) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
glm::ivec4 A(0, 1, 2, 3);
|
glm::ivec4 A(0, 1, 2, 3);
|
||||||
glm::ivec2 B(2, 1);
|
glm::ivec2 B(2, 1);
|
||||||
glm::swizzle<glm::Z, glm::Y>(A) = B;
|
glm::swizzle<glm::Z, glm::Y>(A) = B;
|
||||||
assert(A.x == B.x && A.y == B.y);
|
Error += (A.z == B.x && A.y == B.y) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
glm::ivec4 A(0, 1, 2, 3);
|
glm::ivec4 A(0, 1, 2, 3);
|
||||||
int B(2);
|
int B(2);
|
||||||
glm::swizzle<glm::Z>(A) = B;
|
glm::swizzle<glm::Z>(A) = B;
|
||||||
assert(A.x == B);
|
Error += (A.z == B) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_swizzle_vec4_const_dynamic()
|
int test_swizzle_vec4_const_dynamic()
|
||||||
{
|
{
|
||||||
|
int Error = 0;
|
||||||
|
|
||||||
glm::ivec4 A(0, 1, 2, 3);
|
glm::ivec4 A(0, 1, 2, 3);
|
||||||
glm::ivec4 B = glm::swizzle(A, glm::B, glm::G, glm::R, glm::A);
|
glm::ivec4 B = glm::swizzle(A, glm::B, glm::G, glm::R, glm::A);
|
||||||
assert(glm::all(glm::equal(A, B)));
|
Error += (glm::all(glm::equal(glm::ivec4(2, 1, 0, 3), B))) ? 0 : 1;
|
||||||
|
|
||||||
glm::ivec3 C = glm::swizzle(A, glm::W, glm::Y, glm::Z);
|
glm::ivec3 C = glm::swizzle(A, glm::W, glm::Y, glm::Z);
|
||||||
assert(glm::all(glm::equal(glm::ivec3(A), C)));
|
Error += (glm::all(glm::equal(glm::ivec3(3, 1, 2), C))) ? 0 : 1;
|
||||||
|
|
||||||
glm::ivec2 D = glm::swizzle(A, glm::W, glm::X);
|
glm::ivec2 D = glm::swizzle(A, glm::W, glm::X);
|
||||||
assert(glm::all(glm::equal(glm::ivec2(A), D)));
|
Error += (glm::all(glm::equal(glm::ivec2(3, 0), D))) ? 0 : 1;
|
||||||
|
|
||||||
int E = glm::swizzle(A, glm::Q);
|
int E = glm::swizzle(A, glm::Q);
|
||||||
assert(E == A.q);
|
Error += (E == 3) ? 0 : 1;
|
||||||
|
|
||||||
return 0;
|
return Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_swizzle_vec4_const_static()
|
int test_swizzle_vec4_const_static()
|
||||||
{
|
{
|
||||||
|
int Error = 0;
|
||||||
|
|
||||||
glm::ivec4 A(0, 1, 2, 3);
|
glm::ivec4 A(0, 1, 2, 3);
|
||||||
|
|
||||||
glm::ivec4 B = glm::swizzle<glm::B, glm::G, glm::R, glm::A>(A);
|
glm::ivec4 B = glm::swizzle<glm::B, glm::G, glm::R, glm::A>(A);
|
||||||
assert(glm::all(glm::equal(A, B)));
|
Error += (glm::all(glm::equal(glm::ivec4(2, 1, 0, 3), B))) ? 0 : 1;
|
||||||
|
|
||||||
glm::ivec3 C = glm::swizzle<glm::W, glm::Y, glm::Z>(A);
|
glm::ivec3 C = glm::swizzle<glm::W, glm::Y, glm::Z>(A);
|
||||||
assert(glm::all(glm::equal(glm::ivec3(A), C)));
|
Error += (glm::all(glm::equal(glm::ivec3(3, 1, 2), C))) ? 0 : 1;
|
||||||
|
|
||||||
glm::ivec2 D = glm::swizzle<glm::W, glm::X>(A);
|
glm::ivec2 D = glm::swizzle<glm::W, glm::X>(A);
|
||||||
assert(glm::all(glm::equal(glm::ivec2(A), D)));
|
Error += (glm::all(glm::equal(glm::ivec2(3, 0), D))) ? 0 : 1;
|
||||||
|
|
||||||
int E = glm::swizzle<glm::Q>(A);
|
int E = glm::swizzle<glm::Q>(A);
|
||||||
assert(E == A.q);
|
Error += (E == 3) ? 0 : 1;
|
||||||
|
|
||||||
return 0;
|
return Error;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
int Failed = 0;
|
int Error = 0;
|
||||||
Failed += test_swizzle_vec4_ref_dynamic();
|
Error += test_swizzle_vec4_ref_dynamic();
|
||||||
Failed += test_swizzle_vec4_ref_static();
|
Error += test_swizzle_vec4_ref_static();
|
||||||
Failed += test_swizzle_vec4_const_dynamic();
|
Error += test_swizzle_vec4_const_dynamic();
|
||||||
Failed += test_swizzle_vec4_const_static();
|
Error += test_swizzle_vec4_const_static();
|
||||||
|
|
||||||
return Failed;
|
return Error;
|
||||||
}
|
}
|
||||||
|
@ -129,6 +129,8 @@ namespace bitRevert
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
::extractField::test();
|
bool Error = 0;
|
||||||
::bitRevert::test();
|
Error += ::extractField::test();
|
||||||
|
Error += ::bitRevert::test();
|
||||||
|
return Error;
|
||||||
}
|
}
|
||||||
|
@ -224,14 +224,14 @@ int test_compute_gtx()
|
|||||||
std::clock_t TimeEnd = clock();
|
std::clock_t TimeEnd = clock();
|
||||||
printf("test_compute_gtx: %ld\n", TimeEnd - TimeStart);
|
printf("test_compute_gtx: %ld\n", TimeEnd - TimeStart);
|
||||||
|
|
||||||
return Output.size() != 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
int Failed = GLM_COMPILER;
|
int Error = 0;
|
||||||
|
|
||||||
std::vector<glm::mat4> Data(1024 * 1024 * 8);
|
std::vector<glm::mat4> Data(64 * 64 * 1);
|
||||||
for(std::size_t i = 0; i < Data.size(); ++i)
|
for(std::size_t i = 0; i < Data.size(); ++i)
|
||||||
Data[i] = glm::mat4(
|
Data[i] = glm::mat4(
|
||||||
glm::vec4(glm::compRand4(-2.0f, 2.0f)),
|
glm::vec4(glm::compRand4(-2.0f, 2.0f)),
|
||||||
@ -277,13 +277,11 @@ int main()
|
|||||||
glm::simdVec4 B(5.0f, 6.0f, 7.0f, 8.0f);
|
glm::simdVec4 B(5.0f, 6.0f, 7.0f, 8.0f);
|
||||||
__m128 C = _mm_shuffle_ps(A.Data, B.Data, _MM_SHUFFLE(1, 0, 1, 0));
|
__m128 C = _mm_shuffle_ps(A.Data, B.Data, _MM_SHUFFLE(1, 0, 1, 0));
|
||||||
|
|
||||||
Failed += test_compute_glm();
|
Error += test_compute_glm();
|
||||||
Failed += test_compute_gtx();
|
Error += test_compute_gtx();
|
||||||
|
|
||||||
float Det = glm::determinant(glm::simdMat4(1.0));
|
float Det = glm::determinant(glm::simdMat4(1.0));
|
||||||
glm::simdMat4 D = glm::matrixCompMult(glm::simdMat4(1.0), glm::simdMat4(1.0));
|
glm::simdMat4 D = glm::matrixCompMult(glm::simdMat4(1.0), glm::simdMat4(1.0));
|
||||||
|
|
||||||
system("pause");
|
return Error;
|
||||||
|
|
||||||
return Failed;
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user