opengl_internals.h
Go to the documentation of this file.
00001 /* +---------------------------------------------------------------------------+
00002    |          The Mobile Robot Programming Toolkit (MRPT) C++ library          |
00003    |                                                                           |
00004    |                       http://www.mrpt.org/                                |
00005    |                                                                           |
00006    |   Copyright (C) 2005-2011  University of Malaga                           |
00007    |                                                                           |
00008    |    This software was written by the Machine Perception and Intelligent    |
00009    |      Robotics Lab, University of Malaga (Spain).                          |
00010    |    Contact: Jose-Luis Blanco  <jlblanco@ctima.uma.es>                     |
00011    |                                                                           |
00012    |  This file is part of the MRPT project.                                   |
00013    |                                                                           |
00014    |     MRPT is free software: you can redistribute it and/or modify          |
00015    |     it under the terms of the GNU General Public License as published by  |
00016    |     the Free Software Foundation, either version 3 of the License, or     |
00017    |     (at your option) any later version.                                   |
00018    |                                                                           |
00019    |   MRPT is distributed in the hope that it will be useful,                 |
00020    |     but WITHOUT ANY WARRANTY; without even the implied warranty of        |
00021    |     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         |
00022    |     GNU General Public License for more details.                          |
00023    |                                                                           |
00024    |     You should have received a copy of the GNU General Public License     |
00025    |     along with MRPT.  If not, see <http://www.gnu.org/licenses/>.         |
00026    |                                                                           |
00027    +---------------------------------------------------------------------------+ */
00028 
00029 #ifndef opengl_internals_H
00030 #define opengl_internals_H
00031 
00032 #define GL_GLEXT_PROTOTYPES 1
00033 #define GLEW_STATIC
00034 
00035 #include <mrpt/config.h>
00036 #include <mrpt/utils/utils_defs.h>
00037 
00038 #if MRPT_HAS_OPENGL_GLUT
00039         #ifdef MRPT_OS_WINDOWS
00040                 // WINDOWS:
00041                 #if defined(_MSC_VER)
00042                         #pragma warning(disable:4505)
00043                 #endif
00044                 #include <windows.h>
00045 
00046                 #include <GL/glew.h>
00047         #endif  // MRPT_OS_WINDOWS
00048 
00049         #include <GL/glut.h>
00050 
00051         /* Jerome Monceaux : bilock@gmail.com
00052          * Add inclusion of otherlibs/freeglut/GL/glut.h
00053          * because GLUT_INIT_STATE is detected as undefined 
00054          * under osx
00055          */
00056         #ifdef __APPLE__
00057                 #include <otherlibs/freeglut/GL/freeglut_std.h>
00058         #endif
00059 
00060         #ifdef HAVE_FREEGLUT_EXT_H
00061                 #include <GL/freeglut_ext.h>
00062         #endif
00063 
00064 
00065         // gl-ext
00066         #ifdef MRPT_OS_WINDOWS
00067                 #include "glext/glext.h"
00068         #else
00069                 #include <GL/glext.h>
00070         #endif
00071 
00072 #endif // MRPT_HAS_OPENGL_GLUT
00073 
00074 #endif


ndt_mcl
Author(s): jari
autogenerated on Mon Jan 6 2014 11:32:07