src/App.cpp
// returns a string representation of an OpenGL debug message type
returns a string representation of an OpenGL debug message type
returns a string representation of an OpenGL debug message type
static constexpr char const* OpenGLDebugTypeToCStr(GLenum type) noexcept
{
    switch (type) {
    case GL_DEBUG_TYPE_ERROR: return "GL_DEBUG_TYPE_ERROR";
    case GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR: return "GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR";
    case GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR: return "GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR";
    case GL_DEBUG_TYPE_PORTABILITY: return "GL_DEBUG_TYPE_PORTABILITY";
    case GL_DEBUG_TYPE_PERFORMANCE: return "GL_DEBUG_TYPE_PERFORMANCE";
    case GL_DEBUG_TYPE_MARKER: return "GL_DEBUG_TYPE_MARKER";
    case GL_DEBUG_TYPE_PUSH_GROUP: return "GL_DEBUG_TYPE_PUSH_GROUP";
    case GL_DEBUG_TYPE_POP_GROUP: return "GL_DEBUG_TYPE_POP_GROUP";
    case GL_DEBUG_TYPE_OTHER: return "GL_DEBUG_TYPE_OTHER";
    default: return "GL_DEBUG_TYPE_UNKNOWN";
    }
}
static constexpr char const * OpenGLDebugTypeToCStr ( GLenum type ) noexcept { switch ( type ) { case GL_DEBUG_TYPE_ERROR : return " " ; case GL_DEBUG_TYPE_DEPRECATED_BEHAVIOR : return " " ; case GL_DEBUG_TYPE_UNDEFINED_BEHAVIOR : return " " ; case GL_DEBUG_TYPE_PORTABILITY : return " " ; case GL_DEBUG_TYPE_PERFORMANCE : return " " ; case GL_DEBUG_TYPE_MARKER : return " " ; case GL_DEBUG_TYPE_PUSH_GROUP : return " " ; case GL_DEBUG_TYPE_POP_GROUP : return " " ; case GL_DEBUG_TYPE_OTHER : return " " ; default : return " " ; } }
returns a string representation of an OpenGL debug message type
returns a string representation of an OpenGL debug message type