globjects  1.1.0.2f0c753c8647
Strict OpenGL objects wrapper.

#include <globjects/include/globjects/DebugMessage.h>

Public Types

enum  Implementation { Implementation::DebugKHR, Implementation::Legacy }
 
using Callback = std::function< void(const DebugMessage &)>
 

Public Member Functions

 DebugMessage (gl::GLenum source, gl::GLenum type, gl::GLuint id, gl::GLenum severity, const std::string &message)
 
gl::GLenum source () const
 
gl::GLenum type () const
 
gl::GLuint id () const
 
gl::GLenum severity () const
 
const std::string & message () const
 
virtual std::string toString () const
 

Static Public Member Functions

static void hintImplementation (Implementation impl)
 
static void enable (bool synchronous=true)
 
static void disable ()
 
static void setCallback (Callback callback)
 
static void setSynchronous (bool synchronous)
 
static void insertMessage (gl::GLenum source, gl::GLenum type, gl::GLuint id, gl::GLenum severity, gl::GLsizei length, const char *message)
 
static void insertMessage (gl::GLenum source, gl::GLenum type, gl::GLuint id, gl::GLenum severity, const std::string &message)
 
static void insertMessage (const DebugMessage &message)
 
static void enableMessage (gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLuint id)
 
static void enableMessages (gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLsizei count, const gl::GLuint *ids)
 
static void enableMessages (gl::GLenum source, gl::GLenum type, gl::GLenum severity, const std::vector< gl::GLuint > &ids)
 
static void disableMessage (gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLuint id)
 
static void disableMessages (gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLsizei count, const gl::GLuint *ids)
 
static void disableMessages (gl::GLenum source, gl::GLenum type, gl::GLenum severity, const std::vector< gl::GLuint > &ids)
 
static void controlMessages (gl::GLenum source, gl::GLenum type, gl::GLenum severity, gl::GLsizei count, const gl::GLuint *ids, gl::GLboolean enabled)
 
static bool isFallbackImplementation ()
 

Protected Member Functions

std::string severityString () const
 
std::string sourceString () const
 
std::string typeString () const
 

Protected Attributes

gl::GLenum m_source
 
gl::GLenum m_type
 
gl::GLuint m_id
 
gl::GLenum m_severity
 
std::string m_message
 

Member Typedef Documentation

using globjects::DebugMessage::Callback = std::function<void(const DebugMessage &)>

Member Enumeration Documentation

Enumerator
DebugKHR 
Legacy 

Constructor & Destructor Documentation

globjects::DebugMessage::DebugMessage ( gl::GLenum  source,
gl::GLenum  type,
gl::GLuint  id,
gl::GLenum  severity,
const std::string &  message 
)

Member Function Documentation

static void globjects::DebugMessage::hintImplementation ( Implementation  impl)
static
gl::GLenum globjects::DebugMessage::source ( ) const
gl::GLenum globjects::DebugMessage::type ( ) const
gl::GLuint globjects::DebugMessage::id ( ) const
gl::GLenum globjects::DebugMessage::severity ( ) const
const std::string& globjects::DebugMessage::message ( ) const
virtual std::string globjects::DebugMessage::toString ( ) const
virtual
std::string globjects::DebugMessage::severityString ( ) const
protected
std::string globjects::DebugMessage::sourceString ( ) const
protected
std::string globjects::DebugMessage::typeString ( ) const
protected
static void globjects::DebugMessage::enable ( bool  synchronous = true)
static
static void globjects::DebugMessage::disable ( )
static
static void globjects::DebugMessage::setCallback ( Callback  callback)
static
static void globjects::DebugMessage::setSynchronous ( bool  synchronous)
static
static void globjects::DebugMessage::insertMessage ( gl::GLenum  source,
gl::GLenum  type,
gl::GLuint  id,
gl::GLenum  severity,
gl::GLsizei  length,
const char *  message 
)
static
static void globjects::DebugMessage::insertMessage ( gl::GLenum  source,
gl::GLenum  type,
gl::GLuint  id,
gl::GLenum  severity,
const std::string &  message 
)
static
static void globjects::DebugMessage::insertMessage ( const DebugMessage message)
static
static void globjects::DebugMessage::enableMessage ( gl::GLenum  source,
gl::GLenum  type,
gl::GLenum  severity,
gl::GLuint  id 
)
static
static void globjects::DebugMessage::enableMessages ( gl::GLenum  source,
gl::GLenum  type,
gl::GLenum  severity,
gl::GLsizei  count,
const gl::GLuint *  ids 
)
static
static void globjects::DebugMessage::enableMessages ( gl::GLenum  source,
gl::GLenum  type,
gl::GLenum  severity,
const std::vector< gl::GLuint > &  ids 
)
static
static void globjects::DebugMessage::disableMessage ( gl::GLenum  source,
gl::GLenum  type,
gl::GLenum  severity,
gl::GLuint  id 
)
static
static void globjects::DebugMessage::disableMessages ( gl::GLenum  source,
gl::GLenum  type,
gl::GLenum  severity,
gl::GLsizei  count,
const gl::GLuint *  ids 
)
static
static void globjects::DebugMessage::disableMessages ( gl::GLenum  source,
gl::GLenum  type,
gl::GLenum  severity,
const std::vector< gl::GLuint > &  ids 
)
static
static void globjects::DebugMessage::controlMessages ( gl::GLenum  source,
gl::GLenum  type,
gl::GLenum  severity,
gl::GLsizei  count,
const gl::GLuint *  ids,
gl::GLboolean  enabled 
)
static
static bool globjects::DebugMessage::isFallbackImplementation ( )
static

Member Data Documentation

gl::GLenum globjects::DebugMessage::m_source
protected
gl::GLenum globjects::DebugMessage::m_type
protected
gl::GLuint globjects::DebugMessage::m_id
protected
gl::GLenum globjects::DebugMessage::m_severity
protected
std::string globjects::DebugMessage::m_message
protected

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