globjects
1.0.0.000000000000
Strict OpenGL objects wrapper.
globjects
include
globjects
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::Error
Wrapper for OpenGL errors.
Definition:
Error.h:21
globjects::Error::m_errorCode
gl::GLenum m_errorCode
Definition:
Error.h:37
globjects::Error::clear
static void clear()
globjects::Error::name
std::string name() const
globjects::Error::Error
Error(gl::GLenum errorCode)
globjects::Error::code
gl::GLenum code() const
globjects::Error::isError
bool isError() const
globjects::Error::get
static Error get()
globjects::Error::Error
Error()
globjects
Contains all the classes that wrap OpenGL functionality.
Generated on Tue Mar 24 2020 14:04:20 for globjects by
1.9.4