moGL
travis-test-3
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ core spec
|
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 #ifndef MOGL_DEBUG_INCLUDED 00012 #define MOGL_DEBUG_INCLUDED 00013 00014 #include <sstream> 00015 #include <stdexcept> 00016 00017 namespace mogl 00018 { 00019 namespace Debug 00020 { 00021 std::string getErrorString(GLenum error); 00022 std::string getGLSLTypeString(GLenum type); 00023 void assertGLState(const char* file, const char* func, int line); 00024 }; 00025 } 00026 00027 #define MOGL_ASSERT_GLSTATE() mogl::Debug::assertGLState(__FILE__, __FUNCTION__, __LINE__) 00028 00029 #include "debug.inl" 00030 00031 #endif // MOGL_DEBUG_INCLUDED