$darkmode
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... | |
| 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().
| 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.
| name | Human-readable label for the debug region. |
| 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.