OGLplus (0.52.0) a C++ wrapper for OpenGL

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.
 

Detailed Description

Wrapper for the KHR_debug extension.

Related OpenGL symbols:
GL_KHR_debug

Member Typedef Documentation

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:

See Also
KHR_debug_Unique
KHR_debug_Tree
KHR_debug_ToXML

The documentation for this class was generated from the following file:

Copyright © 2010-2014 Matúš Chochlík, University of Žilina, Žilina, Slovakia.
<matus.chochlik -at- fri.uniza.sk>
<chochlik -at -gmail.com>
Documentation generated on Mon Sep 22 2014 by Doxygen (version 1.8.6).