Main Page | Namespace List | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

config.h

Go to the documentation of this file.
00001 /****************************************************************************
00002 
00003  This file is part of the QGLViewer library
00004  Copyright (C) 2002-2004  Gilles Debunne (Gilles.Debunne@imag.fr)
00005  Version 1.3.5 Release 8. Packaged on Monday December 22, 2003.
00006 
00007  http://www-imagis.imag.fr/Membres/Gilles.Debunne/CODE/QGLViewer
00008 
00009  libQGLViewer is free software; you can redistribute it and/or modify
00010  it under the terms of the GNU General Public License as published by
00011  the Free Software Foundation; either version 2 of the License, or
00012  (at your option) any later version.
00013 
00014  libQGLViewer is distributed in the hope that it will be useful,
00015  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  GNU General Public License for more details.
00018 
00019  You should have received a copy of the GNU General Public License
00020  along with libQGLViewer; if not, write to the Free Software
00021  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00022 
00023 *****************************************************************************/
00024 
00026     //               libQGLViewer configuration file                 //
00027     //  Modify these settings according to your local configuration  //
00029 
00030 #ifndef QGLVIEWER_CONFIG_H
00031 #define QGLVIEWER_CONFIG_H
00032 
00033 #define QGLVIEWER_VERSION 0x010305
00034 
00035 #ifndef QT_CLEAN_NAMESPACE
00036 # define QT_CLEAN_NAMESPACE
00037 #endif
00038 
00039 // Get QT_VERSION and other QT flags
00040 #include <qglobal.h>
00041 
00042 // Win 32 DLL export macros
00043 #ifdef WIN32
00044 # include <windows.h> // Warning : windows.h must be included BEFORE gl.h
00045 # ifndef M_PI
00046 #  define M_PI 3.14159265358979323846
00047 # endif
00048 # ifdef MAKE_QGLVIEWER_DLL
00049 #  define QGLVIEWER_EXPORT  __declspec(dllexport)
00050 # else
00051 #  define QGLVIEWER_EXPORT  __declspec(dllimport)
00052 # endif
00053 #endif // WIN32
00054 
00055 // For other architectures, this macro is empty
00056 #ifndef QGLVIEWER_EXPORT
00057 # define QGLVIEWER_EXPORT
00058 #endif
00059 
00060 // Patch for gcc version <= 2.95
00061 #if defined(__GNUC__) && (__GNUC__ < 3)
00062 # include <iostream>
00063 # include <qstring.h>
00064 
00065   std::ostream& operator<<(std::ostream& out, const QString& str)
00066   { out << str.latin1();  return out; }
00067 #endif
00068 
00069 // Minimal required QT version that does not need GLUT
00070 #define QT_VERSION_WITHOUT_GLUT 0x030100
00071 
00072 // OpenGL includes (see windows.h warning above)
00073 #ifndef __APPLE__
00074 # include <GL/gl.h>
00075 # include <GL/glu.h>
00076 # if QT_VERSION < QT_VERSION_WITHOUT_GLUT
00077 #  include <GL/glut.h>
00078 # endif
00079 #else
00080 # include <OpenGL/gl.h>
00081 # include <OpenGL/glu.h>
00082 # if QT_VERSION < QT_VERSION_WITHOUT_GLUT
00083 #  include <GLUT/glut.h>
00084 # endif
00085 #endif
00086 
00087 // Qt 2.3 compatibility patches
00088 #if QT_VERSION < 300
00089 # include <vector> // also defines std::max and std::abs
00090 # define QValueVector std::vector
00091 # include <qlist.h>
00092 # define QPtrList QList
00093 # define QPtrListIterator QListIterator
00094 # ifndef DOXYGEN
00095   // Used only to detect a Reality Center configuration for stereo mode.
00096   class QDesktopWidget
00097   {
00098   public:
00099     int width()  const { return 1280; };
00100     int height() const { return 1024; };
00101   };
00102 # endif
00103 #else
00104 # include <qptrlist.h>
00105 # include <qvaluevector.h>
00106 #endif
00107 
00108 #endif // QGLVIEWER_CONFIG_H

Generated on Fri Feb 27 12:01:39 2004 for Glitch by doxygen 1.3.2