00001
00016 #ifndef __APPLICATION_H_INCLUDED__
00017 #define __APPLICATION_H_INCLUDED__
00018
00019
00020
00021
00022
00023
00024 #include "config.h"
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #if ( CONFIG_USE_QTGUI != 0 )
00038
00039
00040 #include <QtGui/QtGui>
00041
00042 #else
00043
00044
00045 #include <QtCore/QMetaType>
00046 #include <QtCore/QDataStream>
00047 #include <QtCore/QString>
00048 #include <QtGui/QTextEdit>
00049 #include <QtGui/QComboBox>
00050 #include <QtGui/QMainWindow>
00051 #include <QtGui/QApplication>
00052 #endif
00053
00054
00055
00056
00057
00058
00059
00060
00061 #include "glee/GLee.h"
00062
00063
00064
00065
00066
00067
00073 class VertexAttribLocations
00074 {
00075 public:
00081 VertexAttribLocations( int Tangent=-1, int Bitangent=-1 )
00082 : tangent(Tangent), bitangent(Bitangent)
00083 {
00084 }
00085
00088 inline int operator==( const VertexAttribLocations & other ) const
00089 {
00090 return ( this->tangent == other.tangent ) &&
00091 ( this->bitangent == other.bitangent );
00092 }
00093
00096 inline int operator!=( const VertexAttribLocations & other ) const
00097 {
00098 return !( *this == other );
00099 }
00100
00101
00102 int tangent;
00103 int bitangent;
00104 };
00105
00106
00107
00108
00109
00110
00114 #define SAFE_DELETE(p) do{ if( (p) != NULL ) { delete (p); (p)=NULL; } } while(0)
00115
00119 #define SAFE_DELETE_ARRAY(p) do{ if( (p) != NULL ) { delete [] (p); (p)=NULL; } } while(0)
00120
00121
00122
00123
00124
00125
00135 extern QString extractFileNameFromPath( const QString & path );
00136
00137
00138
00139 #endif // __APPLICATION_H_INCLUDED__
00140