MRPT  1.9.9
opengl_internals.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #pragma once
11 
12 #define GL_GLEXT_PROTOTYPES 1
13 #if !defined(GLEW_STATIC)
14 #define GLEW_STATIC
15 #endif
16 
17 #include <mrpt/config.h>
18 
19 #if MRPT_HAS_OPENGL_GLUT
20 #ifdef _WIN32
21 // WINDOWS:
22 #if defined(_MSC_VER)
23 #pragma warning(disable : 4505)
24 #endif
25 #include <GL/glew.h>
26 #include <windows.h>
27 #endif // _WIN32
28 
29 #ifdef __APPLE__
30 #include <GLUT/glut.h>
31 #include <OpenGL/gl.h>
32 #include <OpenGL/glext.h>
33 #include <OpenGL/glu.h>
34 #else
35 #include <GL/gl.h>
36 #include <GL/glu.h>
37 #include <GL/glut.h>
38 // gl-ext
39 #ifdef _WIN32
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 3rdparty/freeglut/GL/glut.h
48  * because GLUT_INIT_STATE is detected as undefined
49  * under osx
50  */
51 #ifdef __APPLE__
52 //#include <3rdparty/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



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7b6197759 Thu Mar 12 15:23:53 2020 +0100 at jue mar 12 15:30:11 CET 2020