2016-11-12 13:19:22 +00:00
|
|
|
#define GLM_ENABLE_EXPERIMENTAL
|
2014-08-31 22:12:38 +00:00
|
|
|
#include <glm/gtx/matrix_decompose.hpp>
|
|
|
|
|
|
|
|
int main()
|
|
|
|
{
|
|
|
|
int Error(0);
|
|
|
|
|
2015-08-01 09:35:57 +00:00
|
|
|
glm::mat4 Matrix(1);
|
|
|
|
|
|
|
|
glm::vec3 Scale;
|
|
|
|
glm::quat Orientation;
|
|
|
|
glm::vec3 Translation;
|
|
|
|
glm::vec3 Skew(1);
|
|
|
|
glm::vec4 Perspective(1);
|
|
|
|
|
|
|
|
glm::decompose(Matrix, Scale, Orientation, Translation, Skew, Perspective);
|
|
|
|
|
2014-08-31 22:12:38 +00:00
|
|
|
return Error;
|
|
|
|
}
|