Main MRPT website > C++ reference for MRPT 1.5.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-2017, 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 MRPT_OS_WINDOWS
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 // MRPT_OS_WINDOWS
27 
28 
29  #ifdef MRPT_OS_APPLE
30  #include <OpenGL/gl.h>
31  #include <OpenGL/glu.h>
32  #include <GLUT/glut.h>
33  #include <OpenGL/glext.h>
34  #else
35  #include <GL/gl.h>
36  #include <GL/glu.h>
37  #include <GL/glut.h>
38  // gl-ext
39  #ifdef MRPT_OS_WINDOWS
40  #include "glext/glext.h"
41  #else
42  #include <GL/glext.h>
43  #endif
44  #endif
45 
46  /* Jerome Monceaux : bilock@gmail.com
47  * Add inclusion of otherlibs/freeglut/GL/glut.h
48  * because GLUT_INIT_STATE is detected as undefined
49  * under osx
50  */
51  #ifdef __APPLE__
52  //#include <otherlibs/freeglut/GL/freeglut_std.h>
53  #ifndef GLUT_INIT_STATE
54  #define GLUT_INIT_STATE 0x007C
55  #endif
56  #else
57  #ifdef HAVE_FREEGLUT_EXT_H
58  #include <GL/freeglut_ext.h>
59  #endif
60  #endif
61 
62 #endif // MRPT_HAS_OPENGL_GLUT
63 
64 #endif



Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020