]> git.lizzy.rs Git - irrlicht.git/blob - include/IrrCompileConfig.h
7536a849ea1e5593047a5a66504f182a00bdea74
[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 #define _IRR_COMPILE_WITH_GUI_\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 #ifdef _DEBUG\r
40         //! A few attributes are written in CSceneManager when _IRR_SCENEMANAGER_DEBUG is enabled\r
41         // NOTE: Those attributes were used always until 1.8.0 and became a global define for 1.8.1\r
42         // which is only enabled in debug because it had a large (sometimes >5%) impact on speed.\r
43         // A better solution in the long run is to break the interface and remove _all_ attribute\r
44         // access in functions like CSceneManager::drawAll and instead put that information in some\r
45         // own struct/class or in CSceneManager.\r
46         // See http://irrlicht.sourceforge.net/forum/viewtopic.php?f=2&t=48211 for the discussion.\r
47         #define _IRR_SCENEMANAGER_DEBUG\r
48         #ifdef NO_IRR_SCENEMANAGER_DEBUG\r
49                 #undef _IRR_SCENEMANAGER_DEBUG\r
50         #endif\r
51 #endif\r
52 \r
53 #endif // __IRR_COMPILE_CONFIG_H_INCLUDED__\r