print_gl_get.h 493 B

12345678910111213141516171819202122232425262728
  1. #ifndef IGL_PRINT_GL_GET_H
  2. #define IGL_PRINT_GL_GET_H
  3. #include "igl_inline.h"
  4. #if __APPLE__
  5. # include <OpenGL/gl.h>
  6. #else
  7. # ifdef _WIN32
  8. # define NOMINMAX
  9. # include <Windows.h>
  10. # undef NOMINMAX
  11. # endif
  12. # include <GL/gl.h>
  13. #endif
  14. namespace igl
  15. {
  16. // Prints the value of pname found by issuing glGet*(pname,*)
  17. // Inputs:
  18. // pname enum key to gl parameter
  19. IGL_INLINE void print_gl_get(GLenum pname);
  20. }
  21. #ifdef IGL_HEADER_ONLY
  22. # include "print_gl_get.cpp"
  23. #endif
  24. #endif