00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00024
00025
00027
00028 #ifndef QGLVIEWER_CONFIG_H
00029 #define QGLVIEWER_CONFIG_H
00030
00031 #define QGLVIEWER_VERSION 0x02030A
00032
00033
00034 #ifndef QT_CLEAN_NAMESPACE
00035 # define QT_CLEAN_NAMESPACE
00036 #endif
00037
00038
00039
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
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
00075 #ifndef QGLVIEWER_EXPORT
00076 # define QGLVIEWER_EXPORT
00077 #endif
00078
00079
00080 #if QT_VERSION >= 0x040000
00081 # include <QGLWidget>
00082 #else
00083 # include <qgl.h>
00084 #endif
00085
00086
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
00101
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
00112 #if QT_VERSION < 0x040400
00113 # define Q_SLOTS slots
00114 # define Q_SIGNALS signals
00115 # define Q_EMIT emit
00116 #endif
00117
00118
00119
00120 # ifdef Q_OS_MAC
00121 # include <GLUT/glut.h>
00122 # else
00123 # include <GL/glu.h>
00124 # endif
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139 #endif // QGLVIEWER_CONFIG_H