gtx_matrix_decompose.cpp 302 B

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