leocad/common/lc_global.h

72 lines
1.3 KiB
C
Raw Normal View History

2013-08-09 04:57:18 +00:00
#ifndef _LC_GLOBAL_H_
#define _LC_GLOBAL_H_
2015-01-31 20:38:53 +00:00
#include <QtGlobal>
#include <QWidget>
#include <QtOpenGL>
#include <QGLWidget>
#include <QtGui>
// Old defines and declarations.
#define LC_MAXPATH 1024
#define LC_POINTER_TO_INT(p) ((lcint32) (quintptr) (p))
typedef qint8 lcint8;
typedef quint8 lcuint8;
typedef qint16 lcint16;
typedef quint16 lcuint16;
typedef qint32 lcint32;
typedef quint32 lcuint32;
typedef qint64 lcint64;
typedef quint64 lcuint64;
typedef quintptr lcuintptr;
#ifdef Q_OS_WIN
#define snprintf _snprintf
#define isnan _isnan
#define strcasecmp stricmp
#define strncasecmp strnicmp
char* strcasestr(const char *s, const char *find);
#else
char* strupr(char* string);
char* strlwr(char* string);
int stricmp(const char* str1, const char* str2);
#endif
2013-08-09 04:57:18 +00:00
// Version number.
#define LC_VERSION_MAJOR 0
2015-01-12 05:02:50 +00:00
#define LC_VERSION_MINOR 81
#define LC_VERSION_PATCH 0
#define LC_VERSION_TEXT "0.81.0"
2013-08-09 04:57:18 +00:00
// Forward declarations.
class lcModel;
2014-05-01 18:42:11 +00:00
class lcObject;
class lcPiece;
class lcCamera;
class lcLight;
2014-05-25 01:45:19 +00:00
class lcGroup;
2014-10-10 23:53:08 +00:00
class PieceInfo;
2014-12-30 16:30:12 +00:00
struct lcPartsListEntry;
struct lcModelPartsEntry;
2014-05-01 18:42:11 +00:00
2013-08-09 04:57:18 +00:00
class lcVector2;
class lcVector3;
class lcVector4;
class lcMatrix33;
2013-08-09 04:57:18 +00:00
class lcMatrix44;
2014-04-14 03:20:16 +00:00
class lcContext;
2013-08-09 04:57:18 +00:00
class lcMesh;
2014-04-14 03:20:16 +00:00
struct lcMeshSection;
2014-04-20 01:50:41 +00:00
struct lcRenderMesh;
2013-08-09 04:57:18 +00:00
class lcTexture;
2014-11-23 23:48:56 +00:00
struct lcScene;
2013-08-09 04:57:18 +00:00
class lcFile;
class lcMemFile;
class lcDiskFile;
#endif // _LC_GLOBAL_H_