COVISE Core
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
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 #include "khronos-glext.h"
35 
36 #endif