[7908] | 1 | /* |
---|
| 2 | ----------------------------------------------------------------------------- |
---|
| 3 | This source file is part of OGRE |
---|
| 4 | (Object-oriented Graphics Rendering Engine) |
---|
| 5 | For the latest info, see http://www.ogre3d.org/ |
---|
| 6 | |
---|
| 7 | Copyright (c) 2000-2006 Torus Knot Software Ltd |
---|
| 8 | Also see acknowledgements in Readme.html |
---|
| 9 | |
---|
| 10 | This program is free software; you can redistribute it and/or modify it under |
---|
| 11 | the terms of the GNU Lesser General Public License as published by the Free Software |
---|
| 12 | Foundation; either version 2 of the License, or (at your option) any later |
---|
| 13 | version. |
---|
| 14 | |
---|
| 15 | This program is distributed in the hope that it will be useful, but WITHOUT |
---|
| 16 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
---|
| 17 | FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
---|
| 18 | |
---|
| 19 | You should have received a copy of the GNU Lesser General Public License along with |
---|
| 20 | this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
---|
| 21 | Place - Suite 330, Boston, MA 02111-1307, USA, or go to |
---|
| 22 | http://www.gnu.org/copyleft/lesser.txt. |
---|
| 23 | |
---|
| 24 | You may alternatively use this source under the terms of a specific version of |
---|
| 25 | the OGRE Unrestricted License provided you have obtained such a license from |
---|
| 26 | Torus Knot Software Ltd. |
---|
| 27 | ----------------------------------------------------------------------------- |
---|
| 28 | */ |
---|
| 29 | #ifndef __Config_H_ |
---|
| 30 | #define __Config_H_ |
---|
| 31 | |
---|
| 32 | // Read configuration options; some systems use an auto-generated config.h, |
---|
| 33 | // other use a manually generated config.h; in any case just define |
---|
| 34 | // HAVE_CONFIG_H to include the custom config.h file. |
---|
| 35 | #ifdef HAVE_CONFIG_H |
---|
| 36 | #include "config.h" |
---|
| 37 | #endif |
---|
| 38 | |
---|
| 39 | /** If set to 1, profiling code will be included in the application. When you |
---|
| 40 | are deploying your application you will probably want to set this to 0 */ |
---|
| 41 | #define OGRE_PROFILING 0 |
---|
| 42 | |
---|
| 43 | /** There are three modes for handling asserts in OGRE: |
---|
| 44 | 0 - STANDARD - Standard asserts in debug builds, nothing in release builds |
---|
| 45 | 1 - RELEASE_EXCEPTIONS - Standard asserts in debug builds, exceptions in release builds |
---|
| 46 | 2 - EXCEPTIONS - Exceptions in debug builds, exceptions in release builds |
---|
| 47 | */ |
---|
| 48 | #define OGRE_ASSERT_MODE 0 |
---|
| 49 | |
---|
| 50 | /** If set to >0, OGRE will always 'think' that the graphics card only has the |
---|
| 51 | number of texture units specified. Very useful for testing multipass fallback. |
---|
| 52 | */ |
---|
| 53 | #define OGRE_PRETEND_TEXTURE_UNITS 0 |
---|
| 54 | |
---|
| 55 | /** If set to 1, Real is typedef'ed to double. Otherwise, Real is typedef'ed |
---|
| 56 | to float. Setting this allows you to perform mathematical operations in the |
---|
| 57 | CPU (Quaternion, Vector3 etc) with more precision, but bear in mind that the |
---|
| 58 | GPU still operates in single-precision mode. |
---|
| 59 | */ |
---|
| 60 | #ifndef OGRE_DOUBLE_PRECISION |
---|
| 61 | #define OGRE_DOUBLE_PRECISION 0 |
---|
| 62 | #endif |
---|
| 63 | |
---|
| 64 | /** Define number of texture coordinate sets allowed per vertex. |
---|
| 65 | */ |
---|
| 66 | #define OGRE_MAX_TEXTURE_COORD_SETS 6 |
---|
| 67 | |
---|
| 68 | /** Define max number of texture layers allowed per pass on any card. |
---|
| 69 | */ |
---|
| 70 | #define OGRE_MAX_TEXTURE_LAYERS 16 |
---|
| 71 | |
---|
| 72 | /** Define max number of lights allowed per pass. |
---|
| 73 | */ |
---|
| 74 | #define OGRE_MAX_SIMULTANEOUS_LIGHTS 8 |
---|
| 75 | |
---|
| 76 | /** Define max number of blending weights allowed per vertex. |
---|
| 77 | */ |
---|
| 78 | #define OGRE_MAX_BLEND_WEIGHTS 4 |
---|
| 79 | |
---|
| 80 | /** Define this if you want to link OGRE as a static lib (preferably as a project file) |
---|
| 81 | */ |
---|
| 82 | //#define OGRE_STATIC_LIB |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | // define the memory allocator configuration to use |
---|
| 86 | #define OGRE_MEMORY_ALLOCATOR_STD 1 |
---|
| 87 | #define OGRE_MEMORY_ALLOCATOR_NED 2 // you need to have nedmalloc on your path for this |
---|
| 88 | #define OGRE_MEMORY_ALLOCATOR_USER 3 |
---|
| 89 | |
---|
| 90 | #ifndef OGRE_MEMORY_ALLOCATOR |
---|
| 91 | # define OGRE_MEMORY_ALLOCATOR OGRE_MEMORY_ALLOCATOR_NED |
---|
| 92 | #endif |
---|
| 93 | |
---|
| 94 | // enable or disable the memory tracker, recording the memory allocations & tracking leaks |
---|
| 95 | // default is to disable since it's expensive, but you can enable if needed per build target |
---|
| 96 | |
---|
| 97 | #ifndef OGRE_MEMORY_TRACKER_DEBUG_MODE |
---|
| 98 | # define OGRE_MEMORY_TRACKER_DEBUG_MODE 0 |
---|
| 99 | #endif |
---|
| 100 | |
---|
| 101 | #ifndef OGRE_MEMORY_TRACKER_RELEASE_MODE |
---|
| 102 | # define OGRE_MEMORY_TRACKER_RELEASE_MODE 0 |
---|
| 103 | #endif |
---|
| 104 | /** Define max number of multiple render targets (MRTs) to render to at once. |
---|
| 105 | */ |
---|
| 106 | #define OGRE_MAX_MULTIPLE_RENDER_TARGETS 8 |
---|
| 107 | |
---|
| 108 | /** Support for multithreading, there are 3 options |
---|
| 109 | |
---|
| 110 | OGRE_THREAD_SUPPORT = 0 |
---|
| 111 | No support for threading. |
---|
| 112 | OGRE_THREAD_SUPPORT = 1 |
---|
| 113 | Thread support for background loading, by both loading and constructing resources |
---|
| 114 | in a background thread. Resource management and SharedPtr handling becomes |
---|
| 115 | thread-safe, and resources may be completely loaded in the background. |
---|
| 116 | The places where threading is available are clearly |
---|
| 117 | marked, you should assume state is NOT thread safe unless otherwise |
---|
| 118 | stated in relation to this flag. |
---|
| 119 | OGRE_THREAD_SUPPORT = 2 |
---|
| 120 | Thread support for background resource preparation. This means that resource |
---|
| 121 | data can streamed into memory in the background, but the final resource |
---|
| 122 | construction (including RenderSystem dependencies) is still done in the primary |
---|
| 123 | thread. Has a lower synchronisation primitive overhead than full threading |
---|
| 124 | while still allowing the major blocking aspects of resource management (I/O) |
---|
| 125 | to be done in the background. |
---|
| 126 | */ |
---|
| 127 | #ifndef OGRE_THREAD_SUPPORT |
---|
| 128 | #define OGRE_THREAD_SUPPORT 0 |
---|
| 129 | #endif |
---|
| 130 | #if OGRE_THREAD_SUPPORT != 0 && OGRE_THREAD_SUPPORT != 1 && OGRE_THREAD_SUPPORT != 2 |
---|
| 131 | #define OGRE_THREAD_SUPPORT 1 |
---|
| 132 | #endif |
---|
| 133 | |
---|
| 134 | /** Disables use of the FreeImage image library for loading images. |
---|
| 135 | WARNING: Use only when you want to provide your own image loading code via codecs. |
---|
| 136 | */ |
---|
| 137 | #ifndef OGRE_NO_FREEIMAGE |
---|
| 138 | #define OGRE_NO_FREEIMAGE 0 |
---|
| 139 | #endif |
---|
| 140 | |
---|
| 141 | /** Disables use of the DevIL image library for loading images. |
---|
| 142 | By default DevIL is disabled in Eihort in favour of FreeImage, but you may re-enable |
---|
| 143 | it if you choose |
---|
| 144 | */ |
---|
| 145 | #ifndef OGRE_NO_DEVIL |
---|
| 146 | #define OGRE_NO_DEVIL 1 |
---|
| 147 | #endif |
---|
| 148 | |
---|
| 149 | /** Disables use of the internal image codec for loading DDS files. |
---|
| 150 | WARNING: Use only when you want to provide your own image loading code via codecs. |
---|
| 151 | */ |
---|
| 152 | #ifndef OGRE_NO_DDS_CODEC |
---|
| 153 | #define OGRE_NO_DDS_CODEC 0 |
---|
| 154 | #endif |
---|
| 155 | |
---|
| 156 | /** Enables the use of the new script compilers when Ogre compiles resource scripts. |
---|
| 157 | */ |
---|
| 158 | #ifndef OGRE_USE_NEW_COMPILERS |
---|
| 159 | #define OGRE_USE_NEW_COMPILERS 1 |
---|
| 160 | #endif |
---|
| 161 | |
---|
| 162 | #endif |
---|