Error.h
Go to the documentation of this file.
#pragma once
#include <string>
#include <glbinding/gl/types.h>
#include <globjects/globjects_api.h>
namespace globjects
{
class GLOBJECTS_API Error
{
public:
Error();
Error(gl::GLenum errorCode);
static Error get();
static void clear();
gl::GLenum code() const;
std::string name() const;
bool isError() const;
operator bool() const;
protected:
gl::GLenum m_errorCode;
};
} // namespace globjects
globjects
Contains all the classes that wrap OpenGL functionality.
globjects::Error
Wrapper for OpenGL errors.
Definition: Error.h:20
globjects::Error::m_errorCode
gl::GLenum m_errorCode
Definition: Error.h:37