gtc_quaternion.cpp 1012 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ///////////////////////////////////////////////////////////////////////////////////////////////////
  2. // OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
  3. ///////////////////////////////////////////////////////////////////////////////////////////////////
  4. // Created : 2010-09-16
  5. // Updated : 2011-05-25
  6. // Licence : This source is under MIT licence
  7. // File : test/gtc/quaternion.cpp
  8. ///////////////////////////////////////////////////////////////////////////////////////////////////
  9. #include <glm/glm.hpp>
  10. #include <glm/gtc/quaternion.hpp>
  11. #include <glm/gtx/epsilon.hpp>
  12. int test_quat_precision()
  13. {
  14. int Error = 0;
  15. Error += sizeof(glm::lowp_quat) <= sizeof(glm::mediump_quat) ? 0 : 1;
  16. Error += sizeof(glm::mediump_quat) <= sizeof(glm::highp_quat) ? 0 : 1;
  17. return Error;
  18. }
  19. int test_quat_type()
  20. {
  21. glm::quat A;
  22. glm::dquat B;
  23. return 0;
  24. }
  25. int main()
  26. {
  27. int Error = 0;
  28. Error += test_quat_precision();
  29. Error += test_quat_type();
  30. return Error;
  31. }