Wrapper for the GL debug output functionality. More...
#include </home/chochlik/devel/oglplus/include/oglplus/opt/debug_output.hpp>
Classes | |
| struct | CallbackData |
| Structure containing data passed to Callback functor. More... | |
| class | Group |
| Pushes a group when constructed, pops in when destroyed. More... | |
| class | LogSink |
| Installs a custom callback processing the debug output. More... | |
Public Types | |
| typedef DebugOutputSeverity | Severity |
| Debug output severity. | |
| typedef DebugOutputSource | Source |
| Debug output source. | |
| typedef DebugOutputType | Type |
| Debug output type. | |
|
typedef std::function< void(const CallbackData &)> | Callback |
| Type of a callback functor processing debug output. | |
Static Public Member Functions | |
| static void | MessageControl (DebugOutputSource source, DebugOutputType type, DebugOutputSeverity severity, bool enable) |
| Enables/disables messages with specific parameters. More... | |
| template<typename ObjTag > | |
| static void | ObjectLabel (const ObjectName< ObjTag > &object, StrCRef label) |
Annotate object with the label with the specified length. More... | |
| static void | Synchronous (bool enable) |
| Enables or disables synchronous debug output. More... | |
| static void | InsertMessage (DebugOutputSource source, DebugOutputType type, GLuint id, DebugOutputSeverity severity, const GLchar *buffer, GLint length=-1) |
| Inserts a new message into the debug output. More... | |
| static void | InsertMessage (DebugOutputSource source, DebugOutputType type, GLuint id, DebugOutputSeverity severity, StrCRef message) |
| Inserts a new message into the debug output. More... | |
| static void | InsertMessage (DebugOutputSource source, DebugOutputType type, GLuint id, DebugOutputSeverity severity, const String &message) |
| Inserts a new message into the debug output. More... | |
Wrapper for the GL debug output functionality.
|
static |
Inserts a new message into the debug output.
|
static |
Inserts a new message into the debug output.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().
|
static |
Inserts a new message into the debug output.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
static |
Enables/disables messages with specific parameters.
|
static |
Annotate object with the label with the specified length.
References oglplus::StrCRefTpl< Char >::c_str(), oglplus::GetGLName(), and oglplus::StrCRefTpl< Char >::size().
|
static |
Enables or disables synchronous debug output.
References oglplus::Enable.