MPMA Framework 0.4
|
00001 00002 //Luke Lenhart, 2008 00003 //See /docs/License.txt for details on how this code may be used. 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 //For whatever reason, msvc's gl.h tries to use a bunch of stuff it does not define. 00014 //Since we don't want to pull windows.h in to the whole world, we'll just define those things here. 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