Tulip 5.7.1
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(_MSC_VER)
24#include <windows.h>
25#endif
26
27#if defined(__APPLE__)
28#include <OpenGL/gl.h>
29#else
30#include <GL/gl.h>
31#endif
32
33/*Taken from
34 * https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/commit/3d708a5bfa8961cc37671bc3226976dfc9ba50ad*/
35/* The glext.h guard was renamed in 2018, but some software which
36 * includes their own copy of the GL headers (such as qt (at least version 5.11.3)) might have
37 * older version which use the old guard. This would result in the
38 * header being included again (and symbols redefined).
39 *
40 * To avoid this, we define the "old" guard if the "new" guard is
41 * defined.*/
42#ifdef __gl_glext_h_
43#ifndef __glext_h_
44#define __glext_h_ 1
45#endif
46#endif
47
48#endif // Tulip_OPENGL_INCLUDES_H