print_program_info_log.h 586 B

123456789101112131415161718192021222324252627282930
  1. #ifndef IGL_PRINT_PROGRAM_INFO_LOG_H
  2. #define IGL_PRINT_PROGRAM_INFO_LOG_H
  3. #include "igl_inline.h"
  4. #ifdef __APPLE__
  5. # include <OpenGL/gl.h>
  6. #elif defined(_WIN32)
  7. # define NOMINMAX
  8. # include <Windows.h>
  9. # undef NOMINMAX
  10. # include <GL/glew.h>
  11. # include <GL/gl.h>
  12. #else
  13. # define GL_GLEXT_PROTOTYPES
  14. # include <GL/gl.h>
  15. # include <GL/glext.h>
  16. #endif
  17. namespace igl
  18. {
  19. // Inputs:
  20. // obj OpenGL index of program to print info log about
  21. IGL_INLINE void print_program_info_log(const GLuint obj);
  22. }
  23. #ifdef IGL_HEADER_ONLY
  24. # include "print_program_info_log.cpp"
  25. #endif
  26. #endif