print_shader_info_log.h 541 B

12345678910111213141516171819202122232425262728
  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. #elif defined(_WIN32)
  7. # define NOMINMAX
  8. # include <Windows.h>
  9. # undef NOMINMAX
  10. #else
  11. #define GL_GLEXT_PROTOTYPES
  12. # include <GL/gl.h>
  13. # include <GL/glext.h>
  14. #endif
  15. namespace igl
  16. {
  17. // Inputs:
  18. // obj OpenGL index of shader to print info log about
  19. IGL_INLINE void print_shader_info_log(const GLuint obj);
  20. }
  21. #ifdef IGL_HEADER_ONLY
  22. # include "print_shader_info_log.cpp"
  23. #endif
  24. #endif