globjects  1.0.0.ae1b474792ef
Strict OpenGL objects wrapper.

Wrapper for OpenGL errors. More...

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

Public Member Functions

 Error ()
 
 Error (gl::GLenum errorCode)
 
gl::GLenum code () const
 
std::string name () const
 
bool isError () const
 
 operator bool () const
 

Static Public Member Functions

static Error get ()
 
static void clear ()
 

Protected Attributes

gl::GLenum m_errorCode
 

Detailed Description

Wrapper for OpenGL errors.

To access the current Error (which can be none), call get(). To discard any current error, call clear().

Constructor & Destructor Documentation

globjects::Error::Error ( )
globjects::Error::Error ( gl::GLenum  errorCode)

Member Function Documentation

static Error globjects::Error::get ( )
static
static void globjects::Error::clear ( )
static
gl::GLenum globjects::Error::code ( ) const
std::string globjects::Error::name ( ) const
bool globjects::Error::isError ( ) const
globjects::Error::operator bool ( ) const

Member Data Documentation

gl::GLenum globjects::Error::m_errorCode
protected

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