You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
squid233 edited this page Aug 9, 2025
·
4 revisions
Functions
The OpenGL module does not use static but instance methods to invoke functions. An instance is required to be constructed before the methods could be invoked.
OverrunGL provides a convenient method to create debug callback with GLUtil::setupDebugMessageCallback.
GLLoadFuncloadFunc = ...;
GLgl = ...;
varglFlags = newGLFlags(loadFunc);
debugCallbackArena = Arena.ofConfined();
// or global arenadebugCallbackArena = Arena.global();
GLUtil.setupDebugMessageCallback(debugCallbackArena, gl, glFlags, loadFunc);
// you may close the arena after destroying window if you are not using global arenaglfwDestroyWindow(window);
debugCallbackArena.close();