MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ set_error_callback()

void MayaFlux::Core::GLFWSingleton::set_error_callback ( std::function< void(int, const char *)>  callback)
static

Sets a custom error callback for GLFW errors.

Parameters
callbackA function to be called on GLFW errors, receiving an error code and description

Overrides the default GLFW error callback with the provided function. The callback will be invoked whenever a GLFW error occurs.

Definition at line 194 of file GlfwSingleton.cpp.

195{
196 s_error_callback = std::move(callback);
197}
static std::function< void(int, const char *)> s_error_callback
Internal GLFW error callback that forwards to the user-defined callback if set.

References s_error_callback.