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.

22 lines
299 B

5 years ago
  1. #define GLM_ENABLE_EXPERIMENTAL
  2. #include <glm/vec2.hpp>
  3. #include <glm/gtx/texture.hpp>
  4. int test_levels()
  5. {
  6. int Error = 0;
  7. int const Levels = glm::levels(glm::ivec2(3, 2));
  8. Error += Levels == 2 ? 0 : 1;
  9. return Error;
  10. }
  11. int main()
  12. {
  13. int Error = 0;
  14. Error += test_levels();
  15. return Error;
  16. }