]> git.lizzy.rs Git - irrlicht.git/blobdiff - include/IrrCompileConfig.h
Bump revision
[irrlicht.git] / include / IrrCompileConfig.h
index a01c1eafae20ad65a4ad95a7fa4068d1a43363ee..2e70f7c4080283f31768c01297c775d42398ba92 100644 (file)
@@ -6,8 +6,8 @@
 #define __IRR_COMPILE_CONFIG_H_INCLUDED__\r
 \r
 //! Identifies the IrrlichtMt fork customized for the Minetest engine\r
-#define IRRLICHT_VERSION_MT_REVISION 3\r
-#define IRRLICHT_VERSION_MT "mt3"\r
+#define IRRLICHT_VERSION_MT_REVISION 8\r
+#define IRRLICHT_VERSION_MT "mt8"\r
 \r
 //! Irrlicht SDK Version\r
 #define IRRLICHT_VERSION_MAJOR 1\r
@@ -37,8 +37,6 @@
 //! _IRR_COMPILE_WITH_OSX_DEVICE_ for Cocoa native windowing on OSX\r
 //! _IRR_COMPILE_WITH_X11_DEVICE_ for Linux X11 based device\r
 //! _IRR_COMPILE_WITH_SDL_DEVICE_ for platform independent SDL framework\r
-//! _IRR_COMPILE_WITH_CONSOLE_DEVICE_ for no windowing system, used as a fallback\r
-//! _IRR_COMPILE_WITH_FB_DEVICE_ for framebuffer systems\r
 \r
 //! Passing defines to the compiler which have NO in front of the _IRR definename is an alternative\r
 //! way which can be used to disable defines (instead of outcommenting them in this header).\r
 #undef _IRR_COMPILE_WITH_SDL_DEVICE_\r
 #endif\r
 \r
-//! Comment this line to compile without the fallback console device.\r
-#define _IRR_COMPILE_WITH_CONSOLE_DEVICE_\r
-#ifdef NO_IRR_COMPILE_WITH_CONSOLE_DEVICE_\r
-#undef _IRR_COMPILE_WITH_CONSOLE_DEVICE_\r
-#endif\r
-\r
 //! WIN32 for Windows32\r
 //! WIN64 for Windows64\r
 // The windows platform and API support SDL and WINDOW device\r
-#if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64)\r
+#if defined(_WIN32) || defined(_WIN64)\r
 #define _IRR_WINDOWS_\r
 #define _IRR_WINDOWS_API_\r
+#ifndef _IRR_COMPILE_WITH_SDL_DEVICE_\r
 #define _IRR_COMPILE_WITH_WINDOWS_DEVICE_\r
 #endif\r
-\r
-#if defined(_MSC_VER) && (_MSC_VER < 1500)\r
-#  error "Only Microsoft Visual Studio 9.0 and later are supported."\r
-#endif\r
-\r
-// XBox is deprecated (as DX8 is removed). Use Irrlicht 1.8 if you still want to work on this.\r
-#if defined(_XBOX)\r
-       #undef _IRR_WINDOWS_\r
-       #define _IRR_XBOX_PLATFORM_     // deprecated\r
-       #define _IRR_WINDOWS_API_\r
-       //#define _IRR_COMPILE_WITH_WINDOWS_DEVICE_\r
-       #undef _IRR_COMPILE_WITH_WINDOWS_DEVICE_\r
-       //#define _IRR_COMPILE_WITH_SDL_DEVICE_\r
-\r
-       #include <xtl.h>\r
 #endif\r
 \r
-#if defined(__APPLE__) || defined(MACOSX)\r
-#if !defined(MACOSX)\r
-#define MACOSX // legacy support\r
-#endif\r
+#if defined(__APPLE__)\r
 #if defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) || defined(__IPHONE_OS_VERSION_MIN_REQUIRED)\r
 #define _IRR_IOS_PLATFORM_\r
 #define _IRR_COMPILE_WITH_IOS_DEVICE_\r
@@ -98,7 +73,9 @@
 #define _IRR_COMPILE_WITH_IOS_BUILTIN_MAIN_\r
 #else\r
 #define _IRR_OSX_PLATFORM_\r
+#ifndef _IRR_COMPILE_WITH_SDL_DEVICE_\r
 #define _IRR_COMPILE_WITH_OSX_DEVICE_\r
+#endif\r
 #define NO_IRR_COMPILE_WITH_OGLES1_\r
 #define NO_IRR_COMPILE_WITH_OGLES2_\r
 #define NO_IRR_COMPILE_WITH_WEBGL1_\r
 #define _IRR_LINUX_PLATFORM_\r
 #endif\r
 #define _IRR_POSIX_API_\r
+#ifndef _IRR_COMPILE_WITH_SDL_DEVICE_\r
 #define _IRR_COMPILE_WITH_X11_DEVICE_\r
 #endif\r
+#endif\r
 \r
 \r
 //! Define _IRR_COMPILE_WITH_JOYSTICK_SUPPORT_ if you want joystick events.\r
+#if !(defined(__FreeBSD__) || defined(__OpenBSD__))\r
 #define _IRR_COMPILE_WITH_JOYSTICK_EVENTS_\r
+#endif\r
 #ifdef NO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_\r
 #undef _IRR_COMPILE_WITH_JOYSTICK_EVENTS_\r
 #endif\r
 \r
 \r
 //! Maximum number of texture an SMaterial can have, up to 8 are supported by Irrlicht.\r
-#define _IRR_MATERIAL_MAX_TEXTURES_ 8\r
+#define _IRR_MATERIAL_MAX_TEXTURES_ 4\r
 \r
 //! Add a leak-hunter to Irrlicht which helps finding unreleased reference counted objects.\r
 //! NOTE: This is slow and should only be used for debugging\r
@@ -185,10 +166,6 @@ If not defined, Windows Multimedia library is used, which offers also broad supp
 #ifdef NO_IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_\r
 #undef _IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_\r
 #endif\r
-// can't get this to compile currently under borland, can be removed if someone has a better solution\r
-#if defined(__BORLANDC__)\r
-#undef _IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_\r
-#endif\r
 \r
 #endif\r
 \r
@@ -295,19 +272,9 @@ define out. */
 #undef _IRR_COMPILE_WITH_X11_\r
 #endif\r
 \r
-//! On some Linux systems the XF86 vidmode extension, X11 RandR, or XInput2 are missing.\r
-//! Use these defines to add/remove support for those dependencies as needed.\r
-//! XInput2 (library called Xi) is currently only used to support touch-input.\r
 #if defined(_IRR_LINUX_PLATFORM_) && defined(_IRR_COMPILE_WITH_X11_)\r
-#define _IRR_LINUX_X11_VIDMODE_\r
-//#define _IRR_LINUX_X11_RANDR_\r
-//#define _IRR_LINUX_X11_XINPUT2_\r
-#ifdef NO_IRR_LINUX_X11_VIDMODE_\r
-#undef _IRR_LINUX_X11_VIDMODE_\r
-#endif\r
-#ifdef NO_IRR_LINUX_X11_RANDR_\r
-#undef _IRR_LINUX_X11_RANDR_\r
-#endif\r
+//! XInput2 (library called Xi) is currently only used to support touch-input.\r
+#define _IRR_LINUX_X11_XINPUT2_\r
 #ifdef NO_IRR_LINUX_X11_XINPUT2_\r
 #undef _IRR_LINUX_X11_XINPUT2_\r
 #endif\r
@@ -330,17 +297,7 @@ you will not be able to use anything provided by the GUI Environment, including
 #undef _IRR_COMPILE_WITH_GUI_\r
 #endif\r
 \r
-//! Define _IRR_WCHAR_FILESYSTEM to enable unicode filesystem support for the engine.\r
-/** This enables the engine to read/write from unicode filesystem. If you\r
-disable this feature, the engine behave as before (ansi). This is currently only supported\r
-for Windows based systems. You also have to set #define UNICODE for this to compile.\r
-*/\r
-//#define _IRR_WCHAR_FILESYSTEM\r
-#ifdef NO_IRR_WCHAR_FILESYSTEM\r
-#undef _IRR_WCHAR_FILESYSTEM\r
-#endif\r
-\r
-//! Define _IRR_COMPILE_WITH_JPEGLIB_ to enable compiling the engine using libjpeg.\r
+//! Define _IRR_COMPILE_WITH_LIBJPEG_ to enable compiling the engine using libjpeg.\r
 /** This enables the engine to read jpeg images. If you comment this out,\r
 the engine will no longer read .jpeg images. */\r
 #define _IRR_COMPILE_WITH_LIBJPEG_\r
@@ -356,54 +313,6 @@ the engine will no longer read .png images. */
 #undef _IRR_COMPILE_WITH_LIBPNG_\r
 #endif\r
 \r
-//! Define _IRR_D3D_NO_SHADER_DEBUGGING to disable shader debugging in D3D9\r
-/** If _IRR_D3D_NO_SHADER_DEBUGGING is undefined in IrrCompileConfig.h,\r
-it is possible to debug all D3D9 shaders in VisualStudio. All shaders\r
-(which have been generated in memory or read from archives for example) will be emitted\r
-into a temporary file at runtime for this purpose. To debug your shaders, choose\r
-Debug->Direct3D->StartWithDirect3DDebugging in Visual Studio, and for every shader a\r
-file named 'irr_dbg_shader_%%.vsh' or 'irr_dbg_shader_%%.psh' will be created. Drag'n'drop\r
-the file you want to debug into visual studio. That's it. You can now set breakpoints and\r
-watch registers, variables etc. This works with ASM, HLSL, and both with pixel and vertex shaders.\r
-Note that the engine will run in D3D REF for this, which is a lot slower than HAL. */\r
-#define _IRR_D3D_NO_SHADER_DEBUGGING\r
-#ifdef NO_IRR_D3D_NO_SHADER_DEBUGGING\r
-#undef _IRR_D3D_NO_SHADER_DEBUGGING\r
-#endif\r
-\r
-//! Define _IRR_D3D_USE_LEGACY_HLSL_COMPILER to enable the old HLSL compiler in recent DX SDKs\r
-/** This enables support for ps_1_x shaders for recent DX SDKs. Otherwise, support\r
-for this shader model is not available anymore in SDKs after Oct2006. You need to\r
-distribute the OCT2006_d3dx9_31_x86.cab or OCT2006_d3dx9_31_x64.cab though, in order\r
-to provide the user with the proper DLL. That's why it's disabled by default. */\r
-//#define _IRR_D3D_USE_LEGACY_HLSL_COMPILER\r
-#ifdef NO_IRR_D3D_USE_LEGACY_HLSL_COMPILER\r
-#undef _IRR_D3D_USE_LEGACY_HLSL_COMPILER\r
-#endif\r
-\r
-//! Define _IRR_USE_NVIDIA_PERFHUD_ to opt-in to using the nVidia PerHUD tool\r
-/** Enable, by opting-in, to use the nVidia PerfHUD performance analysis driver\r
-tool <http://developer.nvidia.com/object/nvperfhud_home.html>. */\r
-#undef _IRR_USE_NVIDIA_PERFHUD_\r
-\r
-//! Define one of the three setting for Burning's Video Software Rasterizer\r
-/** So if we were marketing guys we could say Irrlicht has 4 Software-Rasterizers.\r
-       In a Nutshell:\r
-               All Burnings Rasterizers use 32 Bit Backbuffer, 32Bit Texture & 32 Bit Z or WBuffer,\r
-               16 Bit/32 Bit can be adjusted on a global flag.\r
-\r
-               BURNINGVIDEO_RENDERER_BEAUTIFUL\r
-                       32 Bit + Vertexcolor + Lighting + Per Pixel Perspective Correct + SubPixel/SubTexel Correct +\r
-                       Bilinear Texturefiltering + WBuffer\r
-\r
-               BURNINGVIDEO_RENDERER_FAST\r
-                       32 Bit + Per Pixel Perspective Correct + SubPixel/SubTexel Correct + WBuffer +\r
-                       Bilinear Dithering TextureFiltering + WBuffer\r
-\r
-               BURNINGVIDEO_RENDERER_ULTRA_FAST\r
-                       16Bit + SubPixel/SubTexel Correct + ZBuffer\r
-*/\r
-\r
 //! Uncomment the following line if you want to ignore the deprecated warnings\r
 //#define IGNORE_DEPRECATED_WARNING\r
 \r
@@ -456,6 +365,11 @@ B3D, MS3D or X meshes */
 #ifdef NO_IRR_COMPILE_WITH_PNG_LOADER_\r
 #undef _IRR_COMPILE_WITH_PNG_LOADER_\r
 #endif\r
+//! Define _IRR_COMPILE_WITH_TGA_LOADER_ if you want to load .tga files\r
+#define _IRR_COMPILE_WITH_TGA_LOADER_\r
+#ifdef NO_IRR_COMPILE_WITH_TGA_LOADER_\r
+#undef _IRR_COMPILE_WITH_TGA_LOADER_\r
+#endif\r
 \r
 //! Define _IRR_COMPILE_WITH_JPG_WRITER_ if you want to write .jpg files\r
 #define _IRR_COMPILE_WITH_JPG_WRITER_\r
@@ -517,7 +431,7 @@ ones. */
 #else // _IRR_WINDOWS_API_\r
 \r
 // Force symbol export in shared libraries built with gcc.\r
-#if (__GNUC__ >= 4) && !defined(_IRR_STATIC_LIB_) && defined(IRRLICHT_EXPORTS)\r
+#if defined(__GNUC__) && !defined(_IRR_STATIC_LIB_) && defined(IRRLICHT_EXPORTS)\r
 #define IRRLICHT_API __attribute__ ((visibility("default")))\r
 #else\r
 #define IRRLICHT_API\r
@@ -527,10 +441,6 @@ ones. */
 \r
 #endif // _IRR_WINDOWS_API_\r
 \r
-#ifndef _IRR_WINDOWS_API_\r
-       #undef _IRR_WCHAR_FILESYSTEM\r
-#endif\r
-\r
 #if defined(_IRR_SOLARIS_PLATFORM_)\r
        #undef _IRR_COMPILE_WITH_JOYSTICK_EVENTS_\r
 #endif\r
@@ -541,22 +451,6 @@ ones. */
 #undef __IRR_HAS_S64\r
 #endif\r
 \r
-#if defined(__BORLANDC__)\r
-       #include <tchar.h>\r
-\r
-       // Borland 5.5.1\r
-       #if __BORLANDC__ == 0x551\r
-               #undef _tfinddata_t\r
-               #undef _tfindfirst\r
-               #undef _tfindnext\r
-\r
-               #define _tfinddata_t __tfinddata_t\r
-               #define _tfindfirst  __tfindfirst\r
-               #define _tfindnext   __tfindnext\r
-               typedef long intptr_t;\r
-       #endif\r
-#endif\r
-\r
 #ifndef __has_feature\r
   #define __has_feature(x) 0  // Compatibility with non-clang compilers.\r
 #endif\r