2013-08-09 06:57:18 +02:00
|
|
|
#ifndef _LC_GLOBAL_H_
|
|
|
|
#define _LC_GLOBAL_H_
|
|
|
|
|
2015-01-31 21:38:53 +01:00
|
|
|
#include <QtGlobal>
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QtOpenGL>
|
|
|
|
#include <QGLWidget>
|
|
|
|
#include <QtGui>
|
2015-02-01 03:33:42 +01:00
|
|
|
#include <QPrinter>
|
2015-01-31 21:38:53 +01:00
|
|
|
|
2017-02-11 18:46:21 +01:00
|
|
|
#if !defined(EGL_VERSION_1_0) && !defined(GL_ES_VERSION_2_0) && !defined(GL_ES_VERSION_3_0)
|
2015-05-09 21:54:29 +02:00
|
|
|
#undef GL_LINES_ADJACENCY_EXT
|
|
|
|
#undef GL_LINE_STRIP_ADJACENCY_EXT
|
|
|
|
#undef GL_TRIANGLES_ADJACENCY_EXT
|
|
|
|
#undef GL_TRIANGLE_STRIP_ADJACENCY_EXT
|
|
|
|
#include "lc_glext.h"
|
2017-02-11 18:46:21 +01:00
|
|
|
#else
|
|
|
|
#define LC_OPENGLES 1
|
|
|
|
#endif
|
2015-05-09 21:54:29 +02:00
|
|
|
|
2015-01-31 21:38:53 +01:00
|
|
|
// 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
|
|
|
|
char* strcasestr(const char *s, const char *find);
|
|
|
|
#else
|
|
|
|
char* strupr(char* string);
|
|
|
|
char* strlwr(char* string);
|
|
|
|
#endif
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
// Version number.
|
2017-02-12 02:51:57 +01:00
|
|
|
#define LC_VERSION_MAJOR 17
|
|
|
|
#define LC_VERSION_MINOR 02
|
|
|
|
#define LC_VERSION_PATCH 0
|
|
|
|
#define LC_VERSION_TEXT "17.02"
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
// Forward declarations.
|
2015-02-22 03:39:15 +01:00
|
|
|
class Project;
|
2014-09-02 05:44:51 +02:00
|
|
|
class lcModel;
|
2014-05-01 20:42:11 +02:00
|
|
|
class lcObject;
|
|
|
|
class lcPiece;
|
|
|
|
class lcCamera;
|
|
|
|
class lcLight;
|
2014-05-25 03:45:19 +02:00
|
|
|
class lcGroup;
|
2014-10-11 01:53:08 +02:00
|
|
|
class PieceInfo;
|
2016-11-16 23:53:41 +01:00
|
|
|
typedef QMap<const PieceInfo*, QMap<int, int>> lcPartsList;
|
2014-12-30 17:30:12 +01:00
|
|
|
struct lcModelPartsEntry;
|
2014-05-01 20:42:11 +02:00
|
|
|
|
2013-08-09 06:57:18 +02:00
|
|
|
class lcVector2;
|
|
|
|
class lcVector3;
|
|
|
|
class lcVector4;
|
2015-01-10 21:30:37 +01:00
|
|
|
class lcMatrix33;
|
2013-08-09 06:57:18 +02:00
|
|
|
class lcMatrix44;
|
|
|
|
|
2014-04-14 05:20:16 +02:00
|
|
|
class lcContext;
|
2013-08-09 06:57:18 +02:00
|
|
|
class lcMesh;
|
2014-04-14 05:20:16 +02:00
|
|
|
struct lcMeshSection;
|
2014-04-20 03:50:41 +02:00
|
|
|
struct lcRenderMesh;
|
2013-08-09 06:57:18 +02:00
|
|
|
class lcTexture;
|
2015-02-08 19:54:51 +01:00
|
|
|
class lcScene;
|
2013-08-09 06:57:18 +02:00
|
|
|
|
|
|
|
class lcFile;
|
|
|
|
class lcMemFile;
|
|
|
|
class lcDiskFile;
|
|
|
|
|
|
|
|
#endif // _LC_GLOBAL_H_
|