libigl v2.5.0
Loading...
Searching...
No Matches
report_gl_error.h
Go to the documentation of this file.
1// This file is part of libigl, a simple c++ geometry processing library.
2//
3// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
4//
5// This Source Code Form is subject to the terms of the Mozilla Public License
6// v. 2.0. If a copy of the MPL was not distributed with this file, You can
7// obtain one at http://mozilla.org/MPL/2.0/.
8#ifndef IGL_OPENGL_REPORT_GL_ERROR_H
9#define IGL_OPENGL_REPORT_GL_ERROR_H
10#include "../igl_inline.h"
11
12// Hack to allow both opengl/ and opengl2 to use this (we shouldn't allow this)
13#ifndef __gl_h_
14# include "gl.h"
15#endif
16#include <string>
17
18namespace igl
19{
20 namespace opengl
21 {
25 IGL_INLINE GLenum report_gl_error(const std::string id);
28 }
29}
30
31#ifndef IGL_STATIC_LIBRARY
32# include "report_gl_error.cpp"
33#endif
34
35#endif
#define IGL_INLINE
Definition igl_inline.h:15
GLenum report_gl_error()
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition AABB.h:17