28 #ifndef QGLVIEWER_CONFIG_H
29 #define QGLVIEWER_CONFIG_H
31 #define QGLVIEWER_VERSION 0x02030A
34 #ifndef QT_CLEAN_NAMESPACE
35 # define QT_CLEAN_NAMESPACE
42 #if QT_VERSION < 0x030000
51 # define M_PI 3.14159265358979323846f
53 # ifndef QGLVIEWER_STATIC
54 # ifdef CREATE_QGLVIEWER_DLL
55 # if QT_VERSION >= 0x040500
56 # define QGLVIEWER_EXPORT Q_DECL_EXPORT
58 # define QGLVIEWER_EXPORT __declspec(dllexport)
61 # if QT_VERSION >= 0x040500
62 # define QGLVIEWER_EXPORT Q_DECL_IMPORT
64 # define QGLVIEWER_EXPORT __declspec(dllimport)
69 # pragma warning( disable : 4251 ) // DLL interface, needed with Visual 6
70 # pragma warning( disable : 4786 ) // identifier truncated to 255 in browser information (Visual 6).
75 #ifndef QGLVIEWER_EXPORT
76 # define QGLVIEWER_EXPORT
80 #if QT_VERSION >= 0x040000
87 #define QGLVIEWER_QT_VERSION_WITHOUT_GLUT 0x030100
88 #if QT_VERSION < QGLVIEWER_QT_VERSION_WITHOUT_GLUT
90 # include <GLUT/glut.h>
102 #if QT_VERSION >= 0x040000
106 # define qMax(a,b) QMAX(a,b)
107 # include <qptrlist.h>
108 # include <qvaluevector.h>
112 #if QT_VERSION < 0x040400
113 # define Q_SLOTS slots
114 # define Q_SIGNALS signals
121 # include <GLUT/glut.h>
139 #endif // QGLVIEWER_CONFIG_H