Go to the documentation of this file.
38 #include <unordered_map>
39 #include <unordered_set>
45 # define GLEW_STATIC // Must be defined to use static version of glew
52 # include "GL/wglew.h"
58 # define GLEW_STATIC // Must be defined to use static version of glew
65 # include "GL/glxew.h"
91 # define GLEW_STATIC // Must be defined to use static version of glew
99 #elif PLATFORM_ANDROID
101 # include <GLES3/gl3.h>
102 # include <GLES3/gl3ext.h>
108 # include <OpenGLES/ES3/gl.h>
109 # include <OpenGLES/ES3/glext.h>
113 # error Unsupported platform
128 #define CHECK_GL_ERROR(...) \
131 auto err = glGetError(); \
132 if (err != GL_NO_ERROR) \
134 LogError<false>(false, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__, "\nGL Error Code: ", err); \
135 UNEXPECTED("Error"); \
139 #define CHECK_GL_ERROR_AND_THROW(...) \
142 auto err = glGetError(); \
143 if (err != GL_NO_ERROR) \
144 LogError<true>(false, __FUNCTION__, __FILE__, __LINE__, __VA_ARGS__, "\nGL Error Code: ", err); \
147 #ifdef DILIGENT_DEVELOPMENT
148 # define DEV_CHECK_GL_ERROR CHECK_GL_ERROR
150 # define DEV_CHECK_GL_ERROR(...) \