print_shader_info_log.h 492 B

123456789101112131415161718192021222324252627
  1. #ifndef IGL_PRINT_SHADER_INFO_LOG_H
  2. #define IGL_PRINT_SHADER_INFO_LOG_H
  3. #include "igl_inline.h"
  4. #ifdef __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. // Inputs:
  17. // obj OpenGL index of shader to print info log about
  18. IGL_INLINE void print_shader_info_log(const GLuint obj);
  19. }
  20. #ifdef IGL_HEADER_ONLY
  21. # include "print_shader_info_log.cpp"
  22. #endif
  23. #endif