Tulip 6.1.0
Large graphs analysis and drawing
Loading...
Searching...
No Matches
OpenGlIncludes.h
1/*
2 *
3 * This file is part of Tulip (https://tulip.labri.fr)
4 *
5 * Authors: David Auber and the Tulip development Team
6 * from LaBRI, University of Bordeaux
7 *
8 * Tulip is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation, either version 3
11 * of the License, or (at your option) any later version.
12 *
13 * Tulip is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the GNU General Public License for more details.
17 *
18 */
19
20#ifndef Tulip_OPENGL_INCLUDES_H
21#define Tulip_OPENGL_INCLUDES_H
22
23#if defined(__APPLE__)
24#include <OpenGL/gl.h>
25#else
26#include <GL/gl.h>
27#endif
28
29/*Taken from
30 * https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/commit/3d708a5bfa8961cc37671bc3226976dfc9ba50ad*/
31/* The glext.h guard was renamed in 2018, but some software which
32 * includes their own copy of the GL headers (such as qt (at least version 5.11.3)) might have
33 * older version which use the old guard. This would result in the
34 * header being included again (and symbols redefined).
35 *
36 * To avoid this, we define the "old" guard if the "new" guard is
37 * defined.*/
38#ifdef __gl_glext_h_
39#ifndef __glext_h_
40#define __glext_h_ 1
41#endif
42#endif
43
44#endif // Tulip_OPENGL_INCLUDES_H