summaryrefslogtreecommitdiff
path: root/Runtime/Graphics/OpenGL.h
blob: 69755e1a55c2c7ecf5b9197606fcc86ccea4fb9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef OPENGL_H
#define OPENGL_H

#include "glad/glad.h"
#include <string>
#include <exception>

//http://docs.gl/gl3/glClear

#define CheckGLError(action)\
if(true){									   \
	GLenum error;									   \
	while ((error = glGetError()) != GL_NO_ERROR) {  \
		action						           \
	}											   \
}

class GLException : std::exception
{
};

extern std::string g_sharedGLErrorMsg;

#endif