OpenGL_convenience.h 588 B

1234567891011121314151617181920212223242526272829
  1. #ifndef OPENGL_CONVENIENCE_H
  2. #define OPENGL_CONVENIENCE_H
  3. #ifndef IGL_NO_OPENGL
  4. // Always use this:
  5. // #include "OpenGL_convenience.h"
  6. // Convenience includer for opengl.
  7. // For now this includes glu, glew and glext (perhaps these should be
  8. // separated)
  9. #if __APPLE__
  10. # include <OpenGL/gl.h>
  11. # include <OpenGL/glu.h>
  12. #elif defined(_WIN32)
  13. # define NOMINMAX
  14. # include <Windows.h>
  15. # undef NOMINMAX
  16. # include <GL/glew.h>
  17. # include <GL/gl.h>
  18. #else
  19. # define GL_GLEXT_PROTOTYPES
  20. # include <GL/gl.h>
  21. # include <GL/glext.h>
  22. # include <GL/glu.h>
  23. #endif
  24. #endif
  25. #endif