[148] | 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-2013 Torus Knot Software Ltd |
---|
| 8 | |
---|
| 9 | Permission is hereby granted, free of charge, to any person obtaining a copy |
---|
| 10 | of this software and associated documentation files (the "Software"), to deal |
---|
| 11 | in the Software without restriction, including without limitation the rights |
---|
| 12 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
---|
| 13 | copies of the Software, and to permit persons to whom the Software is |
---|
| 14 | furnished to do so, subject to the following conditions: |
---|
| 15 | |
---|
| 16 | The above copyright notice and this permission notice shall be included in |
---|
| 17 | all copies or substantial portions of the Software. |
---|
| 18 | |
---|
| 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
---|
| 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
---|
| 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
---|
| 22 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
---|
| 23 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
---|
| 24 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
---|
| 25 | THE SOFTWARE. |
---|
| 26 | ----------------------------------------------------------------------------- |
---|
| 27 | */ |
---|
| 28 | #ifndef __Config_H_ |
---|
| 29 | #define __Config_H_ |
---|
| 30 | |
---|
| 31 | // Include the CMake-generated build settings. |
---|
| 32 | // If you get complaints that this file is missing, then you're probably |
---|
| 33 | // trying to link directly against your source dir. You must then add |
---|
| 34 | // %BUILD_DIR%/include to your include search path to find OgreBuildSettings.h. |
---|
| 35 | #include "OgreBuildSettings.h" |
---|
| 36 | |
---|
| 37 | /** If set to 1, profiling code will be included in the application. When you |
---|
| 38 | are deploying your application you will probably want to set this to 0 */ |
---|
| 39 | #ifndef OGRE_PROFILING |
---|
| 40 | #define OGRE_PROFILING 0 |
---|
| 41 | #endif |
---|
| 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 | #ifndef OGRE_ASSERT_MODE |
---|
| 49 | #define OGRE_ASSERT_MODE 0 |
---|
| 50 | #endif |
---|
| 51 | |
---|
| 52 | /** If set to >0, OGRE will always 'think' that the graphics card only has the |
---|
| 53 | number of texture units specified. Very useful for testing multipass fallback. |
---|
| 54 | */ |
---|
| 55 | #define OGRE_PRETEND_TEXTURE_UNITS 0 |
---|
| 56 | |
---|
| 57 | /** If set to 1, Real is typedef'ed to double. Otherwise, Real is typedef'ed |
---|
| 58 | to float. Setting this allows you to perform mathematical operations in the |
---|
| 59 | CPU (Quaternion, Vector3 etc) with more precision, but bear in mind that the |
---|
| 60 | GPU still operates in single-precision mode. |
---|
| 61 | */ |
---|
| 62 | #ifndef OGRE_DOUBLE_PRECISION |
---|
| 63 | #define OGRE_DOUBLE_PRECISION 0 |
---|
| 64 | #endif |
---|
| 65 | |
---|
| 66 | /** Define number of texture coordinate sets allowed per vertex. |
---|
| 67 | */ |
---|
| 68 | #define OGRE_MAX_TEXTURE_COORD_SETS 8 |
---|
| 69 | |
---|
| 70 | /** Define max number of texture layers allowed per pass on any card. |
---|
| 71 | */ |
---|
| 72 | #define OGRE_MAX_TEXTURE_LAYERS 16 |
---|
| 73 | |
---|
| 74 | /** Define max number of lights allowed per pass. |
---|
| 75 | */ |
---|
| 76 | #define OGRE_MAX_SIMULTANEOUS_LIGHTS 8 |
---|
| 77 | |
---|
| 78 | /** Define max number of blending weights allowed per vertex. |
---|
| 79 | */ |
---|
| 80 | #define OGRE_MAX_BLEND_WEIGHTS 4 |
---|
| 81 | |
---|
| 82 | // define the memory allocator configuration to use |
---|
| 83 | #define OGRE_MEMORY_ALLOCATOR_STD 1 |
---|
| 84 | #define OGRE_MEMORY_ALLOCATOR_NED 2 |
---|
| 85 | #define OGRE_MEMORY_ALLOCATOR_USER 3 |
---|
| 86 | #define OGRE_MEMORY_ALLOCATOR_NEDPOOLING 4 |
---|
| 87 | |
---|
| 88 | #ifndef OGRE_MEMORY_ALLOCATOR |
---|
| 89 | # define OGRE_MEMORY_ALLOCATOR OGRE_MEMORY_ALLOCATOR_NEDPOOLING |
---|
| 90 | #endif |
---|
| 91 | |
---|
| 92 | // Whether to use the custom memory allocator in STL containers |
---|
| 93 | #ifndef OGRE_CONTAINERS_USE_CUSTOM_MEMORY_ALLOCATOR |
---|
| 94 | # define OGRE_CONTAINERS_USE_CUSTOM_MEMORY_ALLOCATOR 1 |
---|
| 95 | #endif |
---|
| 96 | |
---|
| 97 | //if you want to make Ogre::String use the custom memory allocator then set: |
---|
| 98 | //#define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 1 |
---|
| 99 | // Doing this will mean Ogre's strings will not be compatible with std::string however |
---|
| 100 | #ifndef OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR |
---|
| 101 | # define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 0 |
---|
| 102 | #endif |
---|
| 103 | |
---|
| 104 | // enable or disable the memory tracker, recording the memory allocations & tracking leaks |
---|
| 105 | // default is to disable since it's expensive, but you can enable if needed per build target |
---|
| 106 | |
---|
| 107 | #ifndef OGRE_MEMORY_TRACKER_DEBUG_MODE |
---|
| 108 | # define OGRE_MEMORY_TRACKER_DEBUG_MODE 0 |
---|
| 109 | #endif |
---|
| 110 | |
---|
| 111 | #ifndef OGRE_MEMORY_TRACKER_RELEASE_MODE |
---|
| 112 | # define OGRE_MEMORY_TRACKER_RELEASE_MODE 0 |
---|
| 113 | #endif |
---|
| 114 | /** Define max number of multiple render targets (MRTs) to render to at once. |
---|
| 115 | */ |
---|
| 116 | #define OGRE_MAX_MULTIPLE_RENDER_TARGETS 8 |
---|
| 117 | |
---|
| 118 | /** Support for multithreading, there are 3 options |
---|
| 119 | |
---|
| 120 | OGRE_THREAD_SUPPORT = 0 |
---|
| 121 | No support for threading. |
---|
| 122 | OGRE_THREAD_SUPPORT = 1 |
---|
| 123 | Thread support for background loading, by both loading and constructing resources |
---|
| 124 | in a background thread. Resource management and SharedPtr handling becomes |
---|
| 125 | thread-safe, and resources may be completely loaded in the background. |
---|
| 126 | The places where threading is available are clearly |
---|
| 127 | marked, you should assume state is NOT thread safe unless otherwise |
---|
| 128 | stated in relation to this flag. |
---|
| 129 | OGRE_THREAD_SUPPORT = 2 |
---|
| 130 | Thread support for background resource preparation. This means that resource |
---|
| 131 | data can streamed into memory in the background, but the final resource |
---|
| 132 | construction (including RenderSystem dependencies) is still done in the primary |
---|
| 133 | thread. Has a lower synchronisation primitive overhead than full threading |
---|
| 134 | while still allowing the major blocking aspects of resource management (I/O) |
---|
| 135 | to be done in the background. |
---|
| 136 | */ |
---|
| 137 | #ifndef OGRE_THREAD_SUPPORT |
---|
| 138 | #define OGRE_THREAD_SUPPORT 0 |
---|
| 139 | #endif |
---|
| 140 | #if OGRE_THREAD_SUPPORT != 0 && OGRE_THREAD_SUPPORT != 1 && OGRE_THREAD_SUPPORT != 2 |
---|
| 141 | #define OGRE_THREAD_SUPPORT 0 |
---|
| 142 | #endif |
---|
| 143 | |
---|
| 144 | /** Provider for threading functionality, there are 4 options. |
---|
| 145 | |
---|
| 146 | OGRE_THREAD_PROVIDER = 0 |
---|
| 147 | No support for threading. |
---|
| 148 | OGRE_THREAD_PROVIDER = 1 |
---|
| 149 | Boost libraries provide threading functionality. |
---|
| 150 | OGRE_THREAD_PROVIDER = 2 |
---|
| 151 | Poco libraries provide threading functionality. |
---|
| 152 | OGRE_THREAD_PROVIDER = 3 |
---|
| 153 | TBB library provides threading functionality. |
---|
| 154 | */ |
---|
| 155 | #ifndef OGRE_THREAD_PROVIDER |
---|
| 156 | #define OGRE_THREAD_PROVIDER 0 |
---|
| 157 | #endif |
---|
| 158 | |
---|
| 159 | /** Disables use of the FreeImage image library for loading images. |
---|
| 160 | WARNING: Use only when you want to provide your own image loading code via codecs. |
---|
| 161 | */ |
---|
| 162 | #ifndef OGRE_NO_FREEIMAGE |
---|
| 163 | #define OGRE_NO_FREEIMAGE 0 |
---|
| 164 | #endif |
---|
| 165 | |
---|
| 166 | /** Disables use of the internal image codec for loading DDS files. |
---|
| 167 | WARNING: Use only when you want to provide your own image loading code via codecs. |
---|
| 168 | */ |
---|
| 169 | #ifndef OGRE_NO_DDS_CODEC |
---|
| 170 | #define OGRE_NO_DDS_CODEC 0 |
---|
| 171 | #endif |
---|
| 172 | |
---|
| 173 | /** Disables use of the internal image codec for loading ETC files. |
---|
| 174 | WARNING: Use only when you want to provide your own image loading code via codecs. |
---|
| 175 | */ |
---|
| 176 | #ifndef OGRE_NO_ETC_CODEC |
---|
| 177 | #define OGRE_NO_ETC_CODEC 1 |
---|
| 178 | #endif |
---|
| 179 | |
---|
| 180 | /** Disables use of the ZIP archive support. |
---|
| 181 | WARNING: Disabling this will make the samples unusable. |
---|
| 182 | */ |
---|
| 183 | #ifndef OGRE_NO_ZIP_ARCHIVE |
---|
| 184 | #define OGRE_NO_ZIP_ARCHIVE 0 |
---|
| 185 | #endif |
---|
| 186 | |
---|
| 187 | #endif |
---|