| <<< Vector and Matrix Constructors | Index | Identity Matrix >>> |
Matrix transformation is an extension of GLM. Example from GLM manual:
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
int foo()
{
glm::vec4 Position = glm::vec4( glm::vec3( 0.0f ), 1.0f );
glm::mat4 Model = glm::translate( glm::mat4( 1.0f ), glm::vec3( 1.0f ) );
glm::vec4 Transformed = Model * Position;
return 0;
}
| <<< Vector and Matrix Constructors | Index | Identity Matrix >>> |