COVISE Core
opengl.h
Go to the documentation of this file.
1/* This file is part of COVISE.
2
3 You can use it under the terms of the GNU Lesser General Public License
4 version 2.1 or later, see lgpl-2.1.txt.
5
6 * License: LGPL 2+ */
7
8#ifndef SYSDEP_OPENGL_H
9#define SYSDEP_OPENGL_H
10
11#if defined(__linux__) || defined(LINUX) || defined(__APPLE__)
12#define GL_GLEXT_PROTOTYPES 1
13#define GL_GLEXT_LEGACY 1
14#endif
15
16#if defined(_WIN32)
17#ifndef WIN32_LEAN_AND_MEAN
18#define WIN32_LEAN_AND_MEAN
19#include <windows.h>
20#undef WIN32_LEAN_AND_MEAN
21#else
22#include <windows.h>
23#endif
24#endif
25
26#if defined(__APPLE__)
27#include <OpenGL/gl.h>
28#include <OpenGL/glu.h>
29#else
30#include <GL/gl.h>
31#include <GL/glu.h>
32#endif
33
34#ifndef GL_GLEXT_VERSION
35#include "khronos-glext.h"
36#endif
37
38#endif