globjects  2.0.0.630135941c42
Strict OpenGL objects wrapper.
Loading...
Searching...
No Matches
Error.h
Go to the documentation of this file.
1
2#pragma once
3
4
5#include <string>
6
7#include <glbinding/gl/types.h>
8
9#include <globjects/globjects_api.h>
10
11
12namespace globjects
13{
14
15
21class GLOBJECTS_API Error
22{
23public:
25 Error(gl::GLenum errorCode);
26
27 static Error get();
28
29 static void clear();
30
31 gl::GLenum code() const;
32 std::string name() const;
33
34 bool isError() const;
35 operator bool() const;
36
37
38protected:
39 gl::GLenum m_errorCode;
40};
41
42
43} // namespace globjects
Wrapper for OpenGL errors.
Definition Error.h:22
gl::GLenum m_errorCode
Definition Error.h:39
static void clear()
std::string name() const
Error(gl::GLenum errorCode)
gl::GLenum code() const
bool isError() const
static Error get()
Contains all the classes that wrap OpenGL functionality.