OGLplus (0.52.0) a C++ wrapper for OpenGL

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...
 

Detailed Description

Wrapper for the GL debug output functionality.

Member Function Documentation

static void oglplus::Debug::InsertMessage ( DebugOutputSource  source,
DebugOutputType  type,
GLuint  id,
DebugOutputSeverity  severity,
const GLchar *  buffer,
GLint  length = -1 
)
static

Inserts a new message into the debug output.

Related OpenGL symbols:
glDebugMessageInsert
static void oglplus::Debug::InsertMessage ( DebugOutputSource  source,
DebugOutputType  type,
GLuint  id,
DebugOutputSeverity  severity,
StrCRef  message 
)
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.

Related OpenGL symbols:
glDebugMessageInsert

References oglplus::StrCRefTpl< Char >::c_str(), and oglplus::StrCRefTpl< Char >::size().

static void oglplus::Debug::InsertMessage ( DebugOutputSource  source,
DebugOutputType  type,
GLuint  id,
DebugOutputSeverity  severity,
const String message 
)
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.

Related OpenGL symbols:
glDebugMessageInsert
static void oglplus::Debug::MessageControl ( DebugOutputSource  source,
DebugOutputType  type,
DebugOutputSeverity  severity,
bool  enable 
)
static

Enables/disables messages with specific parameters.

Related OpenGL symbols:
glDebugMessageControl
template<typename ObjTag >
static void oglplus::Debug::ObjectLabel ( const ObjectName< ObjTag > &  object,
StrCRef  label 
)
static

Annotate object with the label with the specified length.

Related OpenGL symbols:
glObjectLabel

References oglplus::StrCRefTpl< Char >::c_str(), oglplus::GetGLName(), and oglplus::StrCRefTpl< Char >::size().

static void oglplus::Debug::Synchronous ( bool  enable)
static

Enables or disables synchronous debug output.

Related OpenGL symbols:
glEnable glDisable GL_DEBUG_OUTPUT_SYNCHRONOUS

References oglplus::Enable.


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).