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.

31 lines
411 B

5 years ago
  1. #include <glm/glm.hpp>
  2. #if GLM_CONFIG_ANONYMOUS_STRUCT == GLM_ENABLE
  3. struct vec2;
  4. struct _swizzle
  5. {
  6. char _buffer[1];
  7. };
  8. struct vec2
  9. {
  10. GLM_CONSTEXPR vec2() :
  11. x(0), y(0)
  12. {}
  13. union
  14. {
  15. struct { float x, y; };
  16. struct { _swizzle xx; };
  17. };
  18. };
  19. #endif
  20. // Visual C++ has a bug generating the error: fatal error C1001: An internal error has occurred in the compiler.
  21. // vec2 Bar;
  22. int main()
  23. {
  24. return 0;
  25. }