2018-01-19 11:17:21 -08:00
|
|
|
#ifndef LC_GLOBAL_H
|
|
|
|
#define LC_GLOBAL_H
|
2018-01-19 09:46:38 -08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2013-08-09 04:57:18 +00:00
|
|
|
|
2015-01-31 20:38:53 +00:00
|
|
|
#include <QtGlobal>
|
|
|
|
#include <QWidget>
|
|
|
|
#include <QtOpenGL>
|
|
|
|
#include <QGLWidget>
|
|
|
|
#include <QtGui>
|
2015-02-01 02:33:42 +00:00
|
|
|
#include <QPrinter>
|
2018-04-07 18:45:44 -07:00
|
|
|
#include <array>
|
2015-01-31 20:38:53 +00:00
|
|
|
|
2018-09-24 11:29:05 -07:00
|
|
|
#ifndef Q_FALLTHROUGH
|
2018-09-24 12:07:50 -07:00
|
|
|
#define Q_FALLTHROUGH() (void)0
|
2018-09-24 11:29:05 -07:00
|
|
|
#endif
|
|
|
|
|
2017-12-06 22:08:56 -08:00
|
|
|
#if !defined(EGL_VERSION_1_0) && !defined(GL_ES_VERSION_2_0) && !defined(GL_ES_VERSION_3_0) && !defined(QT_OPENGL_ES)
|
2015-05-09 19:54:29 +00: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 09:46:21 -08:00
|
|
|
#else
|
|
|
|
#define LC_OPENGLES 1
|
|
|
|
#endif
|
2015-05-09 19:54:29 +00:00
|
|
|
|
2015-01-31 20:38:53 +00:00
|
|
|
// Old defines and declarations.
|
|
|
|
#define LC_MAXPATH 1024
|
|
|
|
|
|
|
|
#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 04:57:18 +00:00
|
|
|
|
|
|
|
// Version number.
|
2018-01-01 08:00:39 -08:00
|
|
|
#define LC_VERSION_MAJOR 18
|
2018-02-09 18:19:20 -08:00
|
|
|
#define LC_VERSION_MINOR 02
|
2017-02-11 17:51:57 -08:00
|
|
|
#define LC_VERSION_PATCH 0
|
2018-02-09 18:19:20 -08:00
|
|
|
#define LC_VERSION_TEXT "18.02"
|
2013-08-09 04:57:18 +00:00
|
|
|
|
|
|
|
// Forward declarations.
|
2015-02-22 02:39:15 +00:00
|
|
|
class Project;
|
2014-09-02 03:44:51 +00:00
|
|
|
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;
|
2017-04-15 15:54:17 -07:00
|
|
|
typedef std::map<const PieceInfo*, std::map<int, int>> lcPartsList;
|
2014-12-30 16:30:12 +00:00
|
|
|
struct lcModelPartsEntry;
|
2014-05-01 18:42:11 +00:00
|
|
|
|
2013-08-09 04:57:18 +00:00
|
|
|
class lcVector2;
|
|
|
|
class lcVector3;
|
|
|
|
class lcVector4;
|
2015-01-10 20:30:37 +00:00
|
|
|
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;
|
2015-02-08 18:54:51 +00:00
|
|
|
class lcScene;
|
2013-08-09 04:57:18 +00:00
|
|
|
|
|
|
|
class lcFile;
|
|
|
|
class lcMemFile;
|
|
|
|
class lcDiskFile;
|
|
|
|
|
2018-01-19 09:46:38 -08:00
|
|
|
#endif
|
2018-01-19 11:17:21 -08:00
|
|
|
|
|
|
|
#endif // LC_GLOBAL_H
|