Wrapper for the KHR_debug extension. More...
#include </home/chochlik/devel/oglplus/include/oglplus/ext/KHR_debug.hpp>
Classes | |
| struct | CallbackData |
| Structure containing data passed to Callback functor. More... | |
| class | LogSink |
| Installs a custom callback processing the debug output. More... | |
Public Types | |
| typedef std::function< void(const CallbackData &)> | Callback |
| Type of a callback functor processing debug output. More... | |
Static Public Member Functions | |
| static void | Control (DebugSource source, DebugType type, DebugSeverity severity, GLsizei count, const GLuint *ids, bool enable) |
| Enables/disables messages with specific parameters. | |
| static void | Control (DebugSource source, DebugType type, DebugSeverity severity, bool enable) |
| Enables/disables messages with specific parameters. | |
| template<std::size_t N> | |
| static void | Control (DebugSource source, DebugType type, DebugSeverity severity, const GLuint(&ids)[N], bool enable) |
| Enables/disables messages with specific parameters. | |
| static void | InsertMessage (DebugSource source, DebugType type, GLuint id, DebugSeverity severity, GLint length, const GLchar *buffer) |
| Inserts a new message into the debug output. | |
| static void | InsertMessage (DebugSource source, DebugType type, GLuint id, DebugSeverity severity, StrCRef message) |
| Inserts a new message into the debug output. | |
| template<std::size_t N> | |
| static void | InsertMessage (DebugSource source, DebugType type, GLuint id, DebugSeverity severity, const GLchar(&message)[N]) |
| Inserts a new message into the debug output. | |
| static void | PushGroup (DebugSource source, GLuint id, GLsizei length, const GLchar *message) |
| Pushes a debug group. | |
| static void | PushGroup (DebugSource source, GLuint id, StrCRef message) |
| Pushes a debug group. | |
| template<std::size_t N> | |
| static void | PushGroup (DebugSource source, GLuint id, const GLchar(&message)[N]) |
| Pushes a debug group. | |
| static void | PopGroup (void) |
| Pops a debug group. | |
| static void | Synchronous (bool enable=true) |
| Enables or disables synchronous debug output. | |
| static void | Asynchronous (bool enable=true) |
| Enables or disables asynchronous debug output. | |
Wrapper for the KHR_debug extension.
| typedef std::function<void (const CallbackData&)> oglplus::KHR_debug::Callback |
Type of a callback functor processing debug output.
OGLplus implements several callbacks that can be used with this extension: