Platformer in OpenGL
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
334 B

5 years ago
  1. #define GLM_ENABLE_EXPERIMENTAL
  2. #include <glm/gtx/matrix_decompose.hpp>
  3. int main()
  4. {
  5. int Error(0);
  6. glm::mat4 Matrix(1);
  7. glm::vec3 Scale;
  8. glm::quat Orientation;
  9. glm::vec3 Translation;
  10. glm::vec3 Skew(1);
  11. glm::vec4 Perspective(1);
  12. glm::decompose(Matrix, Scale, Orientation, Translation, Skew, Perspective);
  13. return Error;
  14. }