src/App.cpp
// maps an OpenGL debug message severity level to a log level
maps an OpenGL debug message severity level to a log level
maps an OpenGL debug message severity level to a log level
static constexpr log::level::LevelEnum OpenGLDebugSevToLogLvl(GLenum sev) noexcept
{
    switch (sev) {
    case GL_DEBUG_SEVERITY_HIGH: return log::level::err;
    case GL_DEBUG_SEVERITY_MEDIUM: return log::level::warn;
    case GL_DEBUG_SEVERITY_LOW: return log::level::debug;
    case GL_DEBUG_SEVERITY_NOTIFICATION: return log::level::trace;
    default: return log::level::info;
    }
}
static constexpr log :: level :: LevelEnum OpenGLDebugSevToLogLvl ( GLenum sev ) noexcept { switch ( sev ) { case GL_DEBUG_SEVERITY_HIGH : return log :: level :: err ; case GL_DEBUG_SEVERITY_MEDIUM : return log :: level :: warn ; case GL_DEBUG_SEVERITY_LOW : return log :: level :: debug ; case GL_DEBUG_SEVERITY_NOTIFICATION : return log :: level :: trace ; default : return log :: level :: info ; } }
maps an OpenGL debug message severity level to a log level
maps an OpenGL debug message severity level to a log level