print_program_info_log.h 563 B

1234567891011121314151617181920212223242526272829
  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/gl.h>
  11. #else
  12. # define GL_GLEXT_PROTOTYPES
  13. # include <GL/gl.h>
  14. # include <GL/glext.h>
  15. #endif
  16. namespace igl
  17. {
  18. // Inputs:
  19. // obj OpenGL index of program to print info log about
  20. IGL_INLINE void print_program_info_log(const GLuint obj);
  21. }
  22. #ifdef IGL_HEADER_ONLY
  23. # include "print_program_info_log.cpp"
  24. #endif
  25. #endif