$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
gl_debug.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void setup_opengl_debug (void)
 Configures OpenGL debug callback. More...
 
void gl_debug_push_group (const char *name)
 Push a named debug group onto the OpenGL debug stack. More...
 
void gl_debug_pop_group (void)
 Pop the current debug group from the OpenGL debug stack. More...
 

Function Documentation

◆ gl_debug_pop_group()

void gl_debug_pop_group ( void  )

Pop the current debug group from the OpenGL debug stack.

Wraps glPopDebugGroup(). Must be paired with gl_debug_push_group().

◆ gl_debug_push_group()

void gl_debug_push_group ( const char *  name)

Push a named debug group onto the OpenGL debug stack.

Wraps glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, name). These groups appear as hierarchical regions in RenderDoc's Event Browser.

Parameters
nameHuman-readable label for the debug region.

◆ setup_opengl_debug()

void setup_opengl_debug ( void  )

Configures OpenGL debug callback.

Enables GL_DEBUG_OUTPUT and GL_DEBUG_OUTPUT_SYNCHRONOUS, then registers a callback that logs messages via log.h.

Here is the call graph for this function: