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
#define GLEW_STATIC
14
15
#include <mrpt/config.h>
16
17
#if MRPT_HAS_OPENGL_GLUT
18
#ifdef _WIN32
19
// WINDOWS:
20
#if defined(_MSC_VER)
21
#pragma warning(disable : 4505)
22
#endif
23
#include <
GL/glew.h
>
24
#include <windows.h>
25
#endif // _WIN32
26
27
#ifdef __APPLE__
28
#include <GLUT/glut.h>
29
#include <OpenGL/gl.h>
30
#include <OpenGL/glext.h>
31
#include <OpenGL/glu.h>
32
#else
33
#include <GL/gl.h>
34
#include <GL/glu.h>
35
#include <GL/glut.h>
36
// gl-ext
37
#ifdef _WIN32
38
#include "
glext/glext.h
"
39
#else
40
#include <GL/glext.h>
41
#endif
42
#endif
43
44
/* Jerome Monceaux : bilock@gmail.com
45
* Add inclusion of otherlibs/freeglut/GL/glut.h
46
* because GLUT_INIT_STATE is detected as undefined
47
* under osx
48
*/
49
#ifdef __APPLE__
50
//#include <otherlibs/freeglut/GL/freeglut_std.h>
51
#ifndef GLUT_INIT_STATE
52
#define GLUT_INIT_STATE 0x007C
53
#endif
54
#else
55
#ifdef HAVE_FREEGLUT_EXT_H
56
#include <GL/freeglut_ext.h>
57
#endif
58
#endif
59
60
#endif // MRPT_HAS_OPENGL_GLUT
glext.h
glew.h
Page generated by
Doxygen 1.8.14
for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019