globjects  1.0.0.000000000000
Strict OpenGL objects wrapper.
Loading...
Searching...
No Matches
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
11namespace globjects
12{
13
14
20class GLOBJECTS_API Error
21{
22public:
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
36protected:
37 gl::GLenum m_errorCode;
38};
39
40
41} // namespace globjects
Wrapper for OpenGL errors.
Definition Error.h:21
gl::GLenum m_errorCode
Definition Error.h:37
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.