]> git.lizzy.rs Git - irrlicht.git/blob - include/IrrCompileConfig.h
5a4f8984ffc64db47b902eb4d4638a49178d9464
[irrlicht.git] / include / IrrCompileConfig.h
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt\r
2 // This file is part of the "Irrlicht Engine".\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h\r
4 \r
5 #ifndef __IRR_COMPILE_CONFIG_H_INCLUDED__\r
6 #define __IRR_COMPILE_CONFIG_H_INCLUDED__\r
7 \r
8 //! Identifies the IrrlichtMt fork customized for the Minetest engine\r
9 #define IRRLICHT_VERSION_MT_REVISION 9\r
10 #define IRRLICHT_VERSION_MT "mt9"\r
11 \r
12 //! Irrlicht SDK Version\r
13 #define IRRLICHT_VERSION_MAJOR 1\r
14 #define IRRLICHT_VERSION_MINOR 9\r
15 #define IRRLICHT_VERSION_REVISION 0\r
16 // This flag will be defined only in SVN, the official release code will have\r
17 // it undefined\r
18 #define IRRLICHT_VERSION_SVN alpha\r
19 #define IRRLICHT_SDK_VERSION "1.9.0" IRRLICHT_VERSION_MT\r
20 \r
21 #include <stdio.h> // TODO: Although included elsewhere this is required at least for mingw\r
22 \r
23 \r
24 //! Maximum number of texture an SMaterial can have, up to 8 are supported by Irrlicht.\r
25 #define _IRR_MATERIAL_MAX_TEXTURES_ 4\r
26 \r
27 \r
28 #ifdef _WIN32\r
29 #define IRRCALLCONV __stdcall\r
30 #else\r
31 #define IRRCALLCONV\r
32 #endif\r
33 \r
34 #ifndef IRRLICHT_API\r
35 #define IRRLICHT_API\r
36 #endif\r
37 \r
38 \r
39 #define _IRR_COMPILE_WITH_GUI_\r
40 #define _IRR_COMPILE_WITH_LIBJPEG_\r
41 #define _IRR_COMPILE_WITH_LIBPNG_\r
42 #define _IRR_COMPILE_WITH_BILLBOARD_SCENENODE_\r
43 #define _IRR_COMPILE_WITH_SKINNED_MESH_SUPPORT_\r
44 #define _IRR_COMPILE_WITH_B3D_LOADER_\r
45 #define _IRR_COMPILE_WITH_X_LOADER_\r
46 #define _IRR_COMPILE_WITH_OBJ_LOADER_\r
47 #define _IRR_COMPILE_WITH_BMP_LOADER_\r
48 #define _IRR_COMPILE_WITH_JPG_LOADER_\r
49 #define _IRR_COMPILE_WITH_PNG_LOADER_\r
50 #define _IRR_COMPILE_WITH_TGA_LOADER_\r
51 #define _IRR_COMPILE_WITH_JPG_WRITER_\r
52 #define _IRR_COMPILE_WITH_PNG_WRITER_\r
53 #define __IRR_COMPILE_WITH_ZIP_ARCHIVE_LOADER_\r
54 #define _IRR_COMPILE_WITH_ZLIB_\r
55 #define __IRR_HAS_S64\r
56 \r
57 \r
58 #ifdef _DEBUG\r
59         //! A few attributes are written in CSceneManager when _IRR_SCENEMANAGER_DEBUG is enabled\r
60         // NOTE: Those attributes were used always until 1.8.0 and became a global define for 1.8.1\r
61         // which is only enabled in debug because it had a large (sometimes >5%) impact on speed.\r
62         // A better solution in the long run is to break the interface and remove _all_ attribute\r
63         // access in functions like CSceneManager::drawAll and instead put that information in some\r
64         // own struct/class or in CSceneManager.\r
65         // See http://irrlicht.sourceforge.net/forum/viewtopic.php?f=2&t=48211 for the discussion.\r
66         #define _IRR_SCENEMANAGER_DEBUG\r
67         #ifdef NO_IRR_SCENEMANAGER_DEBUG\r
68                 #undef _IRR_SCENEMANAGER_DEBUG\r
69         #endif\r
70 #endif\r
71 \r
72 #endif // __IRR_COMPILE_CONFIG_H_INCLUDED__\r