| globjects 1.0.0.000000000000 Strict OpenGL objects wrapper.

Error.h
Go to the documentation of this file.
1
2 #pragma once
3
4 #include <string>
5
6 #include <glbinding/gl/types.h>
7
8 #include <globjects/globjects_api.h>
9
10
11 namespace globjects
12 {
13
14
20 class GLOBJECTS_API Error
21 {
22 public:
23 Error();
24 Error(gl::GLenum errorCode);
25
26 static Error get();
27
28 static void clear();
29
30 gl::GLenum code() const;
31 std::string name() const;
32
33 bool isError() const;
34 operator bool() const;
35
36 protected:
37 gl::GLenum m_errorCode;
38 };
39
40
41 } // 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