Installs a custom callback processing the debug output. More...
#include </home/chochlik/devel/oglplus/include/oglplus/opt/debug_output.hpp>
Public Member Functions | |
LogSink (Callback callback) | |
Installs the callback and remembers the previous. More... | |
LogSink (const LogSink &)=delete | |
LogSinks are not copyable. | |
~LogSink (void) | |
Restores the previous callback and its context. More... | |
Installs a custom callback processing the debug output.
Instances of this class install a new Callback function processing the debug output messages in the constructor and restoring the previous callback when destroyed.
GL_DEBUG_CALLBACK_FUNCTION
GL_DEBUG_CALLBACK_USER_PARAM
oglplus::Debug::LogSink::LogSink | ( | Callback | callback | ) |
Installs the callback
and remembers the previous.
oglplus::Debug::LogSink::~LogSink | ( | void | ) |
Restores the previous callback and its context.