Blender  V2.93
glew-mx.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  *
16  * The Original Code is Copyright (C) 2014 Blender Foundation.
17  * All rights reserved.
18  */
19 
41 #ifndef __GLEW_MX_H__
42 #define __GLEW_MX_H__
43 
44 #include <GL/glew.h>
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 #include "intern/symbol-binding.h"
51 
52 /* If compiling only for OpenGL 3.2 Core Profile then we should make sure
53  * no legacy API entries or symbolic constants are used.
54  */
55 #if (!defined(WITH_LEGACY_OPENGL)) || defined(WITH_GL_PROFILE_CORE) && \
56  !defined(WITH_GL_PROFILE_COMPAT) && \
57  !defined(WITH_GL_PROFILE_ES20)
58 # include "intern/gl-deprecated.h"
59 #endif
60 
61 GLenum glew_chk(GLenum error, const char *file, int line, const char *text);
62 
63 #ifndef NDEBUG
64 # define GLEW_CHK(x) glew_chk((x), __FILE__, __LINE__, # x)
65 #else
66 # define GLEW_CHK(x) glew_chk((x), NULL, 0, NULL)
67 #endif
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* __GLEW_MX_H__ */
FILE * file
GLenum glew_chk(GLenum error, const char *file, int line, const char *text)
Definition: glew-mx.c:51
static void error(const char *str)
Definition: meshlaplacian.c:65