Libraries
Articles

GLM

From Libzter

Share/Save/Bookmark
Jump to: navigation, search


OpenGL Mathematics

Developer(s)
Initial Release2005
Current Version0.8.4
Language(s)C++
Licence(s)MIT
Platform(s)Independet

Contents

[edit] Overview

GLM is a C++ library that emulates the way vector and matrix mathematics works in GLSL. However, it is not limited to the features of GLSL, but also features extensions that can be useful when programming OpenGL.

[edit] Examples

A simple transformation function in GLM

#include <glm/glm.hpp>
using namespace glm;
int foo()
{
vec4 Position = vec4(vec3(0.0), 1.0);
mat4 Model = mat4(1.0);
Model[4] = vec4(1.0, 1.0, 0.0, 1.0);
vec4 Transformed = Model * Position;
return 0;
}

[edit] Download

GLM Download Page

[edit] API reference

Doxygen API reference


Library Navigation

  • Language

  • Category
Google AdSense