OGLplus (0.52.0) a C++ wrapper for OpenGL

oglplus::Debug::LogSink Class Reference

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

Detailed Description

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.

Related OpenGL symbols:
glDebugMessageCallback glGetPointerv GL_DEBUG_CALLBACK_FUNCTION GL_DEBUG_CALLBACK_USER_PARAM

Constructor & Destructor Documentation

oglplus::Debug::LogSink::LogSink ( Callback  callback)

Installs the callback and remembers the previous.

Related OpenGL symbols:
glDebugMessageCallback
oglplus::Debug::LogSink::~LogSink ( void  )

Restores the previous callback and its context.

Related OpenGL symbols:
glDebugMessageCallback

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