1
0
Fork 0

Initial commit

This commit is contained in:
Henrik Hautakoski 2015-12-22 17:43:51 +01:00
commit edfc5298e1
252 changed files with 93965 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#include <string>
#include "CheckError.h"
void glCheckError(const char *file, unsigned int line, const char *expr) {
GLenum err = glGetError();
if (err != GL_NO_ERROR) {
std::string msg;
}
}

View file

@ -0,0 +1,11 @@
#ifndef SPECTRE_GRAPHICS_GL_CHECKERROR_H
#define SPECTRE_GRAPHICS_GL_CHECKERROR_H
#include <Spectre/Graphics/OpenGL.h>
#define checkGLError(expr) do { expr; glCheckError(__FILE__, __LINE__, #expr); } while(false)
void glCheckError(const char *file, unsigned int line, const char *expr);
#endif /* SPECTRE_GRAPHICS_GL_CHECKERROR_H */