MRPT
1.9.9
opengl_internals.h
Go to the documentation of this file.
1
/* +------------------------------------------------------------------------+
2
| Mobile Robot Programming Toolkit (MRPT) |
3
| http://www.mrpt.org/ |
4
| |
5
| Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6
| See: http://www.mrpt.org/Authors - All rights reserved. |
7
| Released under BSD License. See details in http://www.mrpt.org/License |
8
+------------------------------------------------------------------------+ */
9
10
#ifndef opengl_internals_H
11
#define opengl_internals_H
12
13
#define GL_GLEXT_PROTOTYPES 1
14
#define GLEW_STATIC
15
16
#include <mrpt/config.h>
17
18
#if MRPT_HAS_OPENGL_GLUT
19
#ifdef _WIN32
20
// WINDOWS:
21
#if defined(_MSC_VER)
22
#pragma warning(disable : 4505)
23
#endif
24
#include <windows.h>
25
#include <
GL/glew.h
>
26
#endif // _WIN32
27
28
#ifdef __APPLE__
29
#include <OpenGL/gl.h>
30
#include <OpenGL/glu.h>
31
#include <GLUT/glut.h>
32
#include <OpenGL/glext.h>
33
#else
34
#include <GL/gl.h>
35
#include <GL/glu.h>
36
#include <GL/glut.h>
37
// gl-ext
38
#ifdef _WIN32
39
#include "
glext/glext.h
"
40
#else
41
#include <GL/glext.h>
42
#endif
43
#endif
44
45
/* Jerome Monceaux : bilock@gmail.com
46
* Add inclusion of otherlibs/freeglut/GL/glut.h
47
* because GLUT_INIT_STATE is detected as undefined
48
* under osx
49
*/
50
#ifdef __APPLE__
51
//#include <otherlibs/freeglut/GL/freeglut_std.h>
52
#ifndef GLUT_INIT_STATE
53
#define GLUT_INIT_STATE 0x007C
54
#endif
55
#else
56
#ifdef HAVE_FREEGLUT_EXT_H
57
#include <GL/freeglut_ext.h>
58
#endif
59
#endif
60
61
#endif // MRPT_HAS_OPENGL_GLUT
62
63
#endif
glext.h
glew.h
Page generated by
Doxygen 1.8.14
for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020