00001 /* 00002 ----------------------------------------------------------------------------- 00003 This source file is part of OGRE 00004 (Object-oriented Graphics Rendering Engine) 00005 For the latest info, see http://www.ogre3d.org/ 00006 00007 Copyright (c) 2000-2013 Torus Knot Software Ltd 00008 00009 Permission is hereby granted, free of charge, to any person obtaining a copy 00010 of this software and associated documentation files (the "Software"), to deal 00011 in the Software without restriction, including without limitation the rights 00012 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00013 copies of the Software, and to permit persons to whom the Software is 00014 furnished to do so, subject to the following conditions: 00015 00016 The above copyright notice and this permission notice shall be included in 00017 all copies or substantial portions of the Software. 00018 00019 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00020 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00021 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00022 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00023 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00024 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00025 THE SOFTWARE. 00026 ----------------------------------------------------------------------------- 00027 */ 00028 #ifndef __Config_H_ 00029 #define __Config_H_ 00030 00031 // Include the CMake-generated build settings. 00032 // If you get complaints that this file is missing, then you're probably 00033 // trying to link directly against your source dir. You must then add 00034 // %BUILD_DIR%/include to your include search path to find OgreBuildSettings.h. 00035 #include "OgreBuildSettings.h" 00036 00039 #ifndef OGRE_PROFILING 00040 #define OGRE_PROFILING 0 00041 #endif 00042 00048 #ifndef OGRE_ASSERT_MODE 00049 #define OGRE_ASSERT_MODE 0 00050 #endif 00051 00055 #define OGRE_PRETEND_TEXTURE_UNITS 0 00056 00062 #ifndef OGRE_DOUBLE_PRECISION 00063 #define OGRE_DOUBLE_PRECISION 0 00064 #endif 00065 00068 #define OGRE_MAX_TEXTURE_COORD_SETS 8 00069 00072 #define OGRE_MAX_TEXTURE_LAYERS 16 00073 00076 #define OGRE_MAX_SIMULTANEOUS_LIGHTS 8 00077 00080 #define OGRE_MAX_BLEND_WEIGHTS 4 00081 00082 // define the memory allocator configuration to use 00083 #define OGRE_MEMORY_ALLOCATOR_STD 1 00084 #define OGRE_MEMORY_ALLOCATOR_NED 2 00085 #define OGRE_MEMORY_ALLOCATOR_USER 3 00086 #define OGRE_MEMORY_ALLOCATOR_NEDPOOLING 4 00087 00088 #ifndef OGRE_MEMORY_ALLOCATOR 00089 # define OGRE_MEMORY_ALLOCATOR OGRE_MEMORY_ALLOCATOR_NEDPOOLING 00090 #endif 00091 00092 // Whether to use the custom memory allocator in STL containers 00093 #ifndef OGRE_CONTAINERS_USE_CUSTOM_MEMORY_ALLOCATOR 00094 # define OGRE_CONTAINERS_USE_CUSTOM_MEMORY_ALLOCATOR 1 00095 #endif 00096 00097 //if you want to make Ogre::String use the custom memory allocator then set: 00098 //#define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 1 00099 // Doing this will mean Ogre's strings will not be compatible with std::string however 00100 #ifndef OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 00101 # define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 0 00102 #endif 00103 00104 // enable or disable the memory tracker, recording the memory allocations & tracking leaks 00105 // default is to disable since it's expensive, but you can enable if needed per build target 00106 00107 #ifndef OGRE_MEMORY_TRACKER_DEBUG_MODE 00108 # define OGRE_MEMORY_TRACKER_DEBUG_MODE 0 00109 #endif 00110 00111 #ifndef OGRE_MEMORY_TRACKER_RELEASE_MODE 00112 # define OGRE_MEMORY_TRACKER_RELEASE_MODE 0 00113 #endif 00114 00116 #define OGRE_MAX_MULTIPLE_RENDER_TARGETS 8 00117 00137 #ifndef OGRE_THREAD_SUPPORT 00138 #define OGRE_THREAD_SUPPORT 0 00139 #endif 00140 #if OGRE_THREAD_SUPPORT != 0 && OGRE_THREAD_SUPPORT != 1 && OGRE_THREAD_SUPPORT != 2 00141 #define OGRE_THREAD_SUPPORT 0 00142 #endif 00143 00155 #ifndef OGRE_THREAD_PROVIDER 00156 #define OGRE_THREAD_PROVIDER 0 00157 #endif 00158 00162 #ifndef OGRE_NO_FREEIMAGE 00163 #define OGRE_NO_FREEIMAGE 0 00164 #endif 00165 00169 #ifndef OGRE_NO_DDS_CODEC 00170 #define OGRE_NO_DDS_CODEC 0 00171 #endif 00172 00176 #ifndef OGRE_NO_ETC_CODEC 00177 #define OGRE_NO_ETC_CODEC 1 00178 #endif 00179 00183 #ifndef OGRE_NO_ZIP_ARCHIVE 00184 #define OGRE_NO_ZIP_ARCHIVE 0 00185 #endif 00186 00187 #endif
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Mon Jul 27 2020 13:40:41