liballofw
opengl_utils.h
Go to the documentation of this file.
1 #ifndef ALLOFW_OPENGL_UTILS_H
2 #define ALLOFW_OPENGL_UTILS_H
3 
4 #include "opengl.h"
5 #include "logger.h"
6 
7 namespace allofw {
8  namespace glutils {
12  void checkGLErrors(const char* info, Logger* logger = Logger::Default());
13 
19  GLuint compileShaderProgram(const char* source_vertex, const char* source_fragment, Logger* logger = Logger::Default());
20 
27  GLuint compileShaderProgram(const char* source_vertex, const char* source_geometry, const char* source_fragment, Logger* logger = Logger::Default());
28  }
29 }
30 
31 #endif
Definition: allofw.h:12
Definition: logger.h:25
static Logger * Default()
Definition: logger.h:49
GLuint compileShaderProgram(const char *source_vertex, const char *source_fragment, Logger *logger=Logger::Default())
void checkGLErrors(const char *info, Logger *logger=Logger::Default())