Go to the documentation of this file.00001
00002
00003
00004
00005 #pragma once
00006
00007 #include "../base/Setup.h"
00008
00009 #ifdef MPMA_COMPILE_GFXSETUP
00010
00011 #if defined(_WIN32) || defined(_WIN64) //windows - msvc
00012
00013
00014
00015 #include "../base/win32/alt_windows.h"
00016
00017 #include <GL/gl.h>
00018
00019 #else //linux
00020
00021 #include <GL/gl.h>
00022
00023 #endif
00024
00025 namespace GFX
00026 {
00028 inline void ClearGLErrors() { glGetError(); }
00029
00030 static_assert(GL_NO_ERROR==0, "GL_NO_ERROR should evaluate to 0");
00031
00033 GLenum GetGLError();
00034
00036 extern bool VerboseGLErrorsOnGet;
00037 }
00038
00039 #endif //#ifdef MPMA_COMPILE_GFXSETUP