00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00026
00027
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
00040 #include <qglobal.h>
00041
00042
00043 #ifdef WIN32
00044 # include <windows.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
00056 #ifndef QGLVIEWER_EXPORT
00057 # define QGLVIEWER_EXPORT
00058 #endif
00059
00060
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
00070 #define QT_VERSION_WITHOUT_GLUT 0x030100
00071
00072
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
00088 #if QT_VERSION < 300
00089 # include <vector>
00090 # define QValueVector std::vector
00091 # include <qlist.h>
00092 # define QPtrList QList
00093 # define QPtrListIterator QListIterator
00094 # ifndef DOXYGEN
00095
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