worldsim/3rdParts/qglviewer/config.h

00001 /****************************************************************************
00002 
00003  Copyright (C) 2002-2008 Gilles Debunne. All rights reserved.
00004 
00005  This file is part of the QGLViewer library version 2.3.10.
00006 
00007  http://www.libqglviewer.com - contact@libqglviewer.com
00008 
00009  This file may be used under the terms of the GNU General Public License 
00010  versions 2.0 or 3.0 as published by the Free Software Foundation and
00011  appearing in the LICENSE file included in the packaging of this file.
00012  In addition, as a special exception, Gilles Debunne gives you certain 
00013  additional rights, described in the file GPL_EXCEPTION in this package.
00014 
00015  libQGLViewer uses dual licensing. Commercial/proprietary software must
00016  purchase a libQGLViewer Commercial License.
00017 
00018  This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00019  WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00020 
00021 *****************************************************************************/
00022 
00024 //               libQGLViewer configuration file                 //
00025 //  Modify these settings according to your local configuration  //
00027 
00028 #ifndef QGLVIEWER_CONFIG_H
00029 #define QGLVIEWER_CONFIG_H
00030 
00031 #define QGLVIEWER_VERSION 0x02030A
00032 
00033 // Needed for Qt < 4 (?)
00034 #ifndef QT_CLEAN_NAMESPACE
00035 # define QT_CLEAN_NAMESPACE
00036 #endif
00037 
00038 // Get QT_VERSION and other Qt flags
00039 // Cannot use <QtCore/qglobal.h> for backward compatibility
00040 #include <qglobal.h>
00041 
00042 #if QT_VERSION < 0x030000
00043 # ifdef _OS_WIN32_
00044 #  define Q_OS_WIN32
00045 # endif
00046 #endif
00047 
00048 // Win 32 DLL export macros
00049 #ifdef Q_OS_WIN32
00050 # ifndef M_PI
00051 #  define M_PI 3.14159265358979323846f
00052 # endif
00053 # ifndef QGLVIEWER_STATIC
00054 #   ifdef CREATE_QGLVIEWER_DLL
00055 #     if QT_VERSION >= 0x040500
00056 #       define QGLVIEWER_EXPORT Q_DECL_EXPORT
00057 #     else
00058 #       define QGLVIEWER_EXPORT  __declspec(dllexport)
00059 #     endif
00060 #   else
00061 #     if QT_VERSION >= 0x040500
00062 #       define QGLVIEWER_EXPORT Q_DECL_IMPORT
00063 #     else
00064 #       define QGLVIEWER_EXPORT  __declspec(dllimport)
00065 #     endif
00066 #  endif
00067 # endif
00068 # ifndef __MINGW32__
00069 #  pragma warning( disable : 4251 ) // DLL interface, needed with Visual 6
00070 #  pragma warning( disable : 4786 ) // identifier truncated to 255 in browser information (Visual 6).
00071 # endif
00072 #endif // Q_OS_WIN32
00073 
00074 // For other architectures, this macro is empty
00075 #ifndef QGLVIEWER_EXPORT
00076 # define QGLVIEWER_EXPORT
00077 #endif
00078 
00079 // OpenGL includes - Included here and hence shared by all the files that need OpenGL headers.
00080 #if QT_VERSION >= 0x040000
00081 # include <QGLWidget>
00082 #else
00083 # include <qgl.h>
00084 #endif
00085 
00086 // Old Qt versions require GLUT for text rendering
00087 #define QGLVIEWER_QT_VERSION_WITHOUT_GLUT 0x030100
00088 #if QT_VERSION < QGLVIEWER_QT_VERSION_WITHOUT_GLUT
00089 # ifdef Q_OS_MAC
00090 #  include <GLUT/glut.h>
00091 # else
00092 #  ifdef Q_OS_WIN32
00093 #   include <glut.h>
00094 #  else
00095 #   include <GL/glut.h>
00096 #  endif
00097 # endif
00098 #endif
00099 
00100 // Container classes interfaces changed a lot in Qt.
00101 // Compatibility patches are all grouped here.
00102 #if QT_VERSION >= 0x040000
00103 # include <QList>
00104 # include <QVector>
00105 #else
00106 # define qMax(a,b) QMAX(a,b)
00107 # include <qptrlist.h>
00108 # include <qvaluevector.h>
00109 #endif
00110 
00111 // Support for the no_keywords CONFIG option on previous Qt versions
00112 #if QT_VERSION < 0x040400
00113 # define Q_SLOTS slots
00114 # define Q_SIGNALS signals
00115 # define Q_EMIT emit
00116 #endif
00117 
00118 // These instructions are needed sinc QT 4.8 no longer depends on glu, so we
00119 // have to include it here explicitly
00120 # ifdef Q_OS_MAC
00121 #  include <GLUT/glut.h>
00122 # else
00123 #  include <GL/glu.h>
00124 # endif
00125 
00126 // For deprecated methods
00127 // #define __WHERE__ "In file "<<__FILE__<<", line "<<__LINE__<<": "
00128 // #define orientationAxisAngle(x,y,z,a) { std::cout << __WHERE__ << "getOrientationAxisAngle()." << std::endl; exit(0); }
00129 
00130 // Patch for gcc version <= 2.95. Seems to no longer be needed with recent Qt versions.
00131 // Uncomment these lines if you have error message dealing with operator << on QStrings
00132 // #if defined(__GNUC__) && defined(__GNUC_MINOR__) && (__GNUC__ < 3) && (__GNUC_MINOR__ < 96)
00133 // # include <iostream>
00134 // # include <qstring.h>
00135 // std::ostream& operator<<(std::ostream& out, const QString& str)
00136 // { out << str.latin1();  return out; }
00137 // #endif
00138 
00139 #endif // QGLVIEWER_CONFIG_H