src/App.cpp
// raw handler function that can be used with `glDebugMessageCallback`
raw handler function that can be used with `glDebugMessageCallback`
raw handler function that can be used with ` glDebugMessageCallback `
static void OpenGLDebugMessageHandler(
    GLenum source,
    GLenum type,
    unsigned int id,
    GLenum severity,
    GLsizei,
    const char* message,
    void const*)
{
    log::level::LevelEnum lvl = OpenGLDebugSevToLogLvl(severity);
    char const* sourceCStr = OpenGLDebugSrcToCStr(source);
    char const* typeCStr = OpenGLDebugTypeToCStr(type);
    char const* severityCStr = OpenGLDebugSevToCStr(severity);
    log::log(lvl,
R"(OpenGL Debug message:
id = %u
message = %s
source = %s
type = %s
severity = %s
)", id, message, sourceCStr, typeCStr, severityCStr);
}
static void OpenGLDebugMessageHandler ( GLenum source , GLenum type , unsigned int id , GLenum severity , GLsizei , const char * message , void const * ) { log :: level :: LevelEnum lvl = OpenGLDebugSevToLogLvl ( severity ) ; char const * sourceCStr = OpenGLDebugSrcToCStr ( source ) ; char const * typeCStr = OpenGLDebugTypeToCStr ( type ) ; char const * severityCStr = OpenGLDebugSevToCStr ( severity ) ; log :: log ( lvl , R" ( OpenGL Debug message:
id = %u
message = %s
source = %s
type = %s
severity = %s
 ) " , id , message , sourceCStr , typeCStr , severityCStr ) ; }
raw handler function that can be used with `glDebugMessageCallback`
raw handler function that can be used with ` glDebugMessageCallback `