opengl.h 456 B

12345678910111213141516171819202122
  1. // shim to deal with OpenGL headers being at a different path on macOS
  2. #pragma once
  3. // OpenGL headers on Windows use the `WINGDIAPI` macro
  4. #ifdef _WIN32
  5. #include <windows.h>
  6. #endif
  7. #ifdef __APPLE__
  8. #include <OpenGL/gl.h>
  9. #include <OpenGL/glu.h>
  10. // Apple considers OpenGL deprecated. So silence Clang’s warnings about our
  11. // use of it.
  12. #pragma clang diagnostic ignored "-Wdeprecated-declarations"
  13. #else
  14. #include <GL/gl.h>
  15. #include <GL/glu.h>
  16. #endif