MVE - Multi-View Environment
mve-devel
Loading...
Searching...
No Matches
libs
ogl
check_gl_error.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2015, Simon Fuhrmann
3
* TU Darmstadt - Graphics, Capture and Massively Parallel Computing
4
* All rights reserved.
5
*
6
* This software may be modified and distributed under the terms
7
* of the BSD 3-Clause license. See the LICENSE.txt file for details.
8
*/
9
10
#ifndef OGL_CHECK_GL_ERROR_HEADER
11
#define OGL_CHECK_GL_ERROR_HEADER
12
13
#include <stdexcept>
14
15
#include "
ogl/defines.h
"
16
#include "
ogl/opengl.h
"
17
#include "
util/strings.h
"
18
19
OGL_NAMESPACE_BEGIN
20
21
inline
void
22
check_gl_error
()
23
{
24
GLenum err = glGetError();
25
if
(err != GL_NO_ERROR)
26
throw
std::runtime_error(
"GL error: "
+
util::string::get
(err));
27
}
28
29
OGL_NAMESPACE_END
30
31
#endif
ogl::check_gl_error
void check_gl_error()
Definition
check_gl_error.h:22
util::string::get
std::string get(T const &value)
From arbitrary types to string conversion.
Definition
strings.h:108
defines.h
OGL_NAMESPACE_END
#define OGL_NAMESPACE_END
Definition
defines.h:14
OGL_NAMESPACE_BEGIN
#define OGL_NAMESPACE_BEGIN
Definition
defines.h:13
opengl.h
strings.h
Generated on Thu Dec 21 2023 01:53:38 for MVE - Multi-View Environment by
1.9.8