globjects
2.0.0.4363356ae2ef
Strict OpenGL objects wrapper.
Loading...
Searching...
No Matches
globjects
include
globjects
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
12
namespace
globjects
13
{
14
15
21
class
GLOBJECTS_API
Error
22
{
23
public
:
24
Error
();
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
38
protected
:
39
gl::GLenum
m_errorCode
;
40
};
41
42
43
}
// namespace globjects
globjects::Error
Wrapper for OpenGL errors.
Definition:
Error.h:22
globjects::Error::m_errorCode
gl::GLenum m_errorCode
Definition:
Error.h:39
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 Thu Oct 6 2022 20:11:15 for globjects by
1.9.5