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.

30 lines
447 B

5 years ago
  1. #include <glm/gtc/constants.hpp>
  2. int test_epsilon()
  3. {
  4. int Error = 0;
  5. {
  6. float Test = glm::epsilon<float>();
  7. Error += Test > 0.0f ? 0 : 1;
  8. }
  9. {
  10. double Test = glm::epsilon<double>();
  11. Error += Test > 0.0 ? 0 : 1;
  12. }
  13. return Error;
  14. }
  15. int main()
  16. {
  17. int Error(0);
  18. //float MinHalf = 0.0f;
  19. //while (glm::half(MinHalf) == glm::half(0.0f))
  20. // MinHalf += std::numeric_limits<float>::epsilon();
  21. Error += test_epsilon();
  22. return Error;
  23. }