OgreConfig.h

Go to the documentation of this file.
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-2009 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 #define OGRE_PROFILING 0
00040 
00046 #define OGRE_ASSERT_MODE 0
00047 
00051 #define OGRE_PRETEND_TEXTURE_UNITS 0
00052 
00058 #ifndef OGRE_DOUBLE_PRECISION
00059 #define OGRE_DOUBLE_PRECISION 0
00060 #endif
00061 
00064 #define OGRE_MAX_TEXTURE_COORD_SETS 6
00065 
00068 #define OGRE_MAX_TEXTURE_LAYERS 16
00069 
00072 #define OGRE_MAX_SIMULTANEOUS_LIGHTS 8
00073 
00076 #define OGRE_MAX_BLEND_WEIGHTS 4
00077 
00080 //#define OGRE_STATIC_LIB
00081 
00082 
00083 // define the memory allocator configuration to use
00084 #define OGRE_MEMORY_ALLOCATOR_STD 1
00085 #define OGRE_MEMORY_ALLOCATOR_NED 2
00086 #define OGRE_MEMORY_ALLOCATOR_USER 3
00087 #define OGRE_MEMORY_ALLOCATOR_NEDPOOLING 4
00088 
00089 #ifndef OGRE_MEMORY_ALLOCATOR
00090 #  define OGRE_MEMORY_ALLOCATOR OGRE_MEMORY_ALLOCATOR_NEDPOOLING
00091 #endif
00092 
00093 // Whether to use the custom memory allocator in STL containers
00094 #ifndef OGRE_CONTAINERS_USE_CUSTOM_MEMORY_ALLOCATOR
00095 #  define OGRE_CONTAINERS_USE_CUSTOM_MEMORY_ALLOCATOR 1
00096 #endif
00097 
00098 //if you want to make Ogre::String use the custom memory allocator then set:
00099 //#define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 1
00100 // Doing this will mean Ogre's strings will not be compatible with std::string however
00101 #ifndef OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR
00102 #   define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 0
00103 #endif
00104 
00105 // enable or disable the memory tracker, recording the memory allocations & tracking leaks
00106 // default is to disable since it's expensive, but you can enable if needed per build target
00107 
00108 #ifndef OGRE_MEMORY_TRACKER_DEBUG_MODE
00109 #  define OGRE_MEMORY_TRACKER_DEBUG_MODE 0
00110 #endif
00111 
00112 #ifndef OGRE_MEMORY_TRACKER_RELEASE_MODE
00113 #  define OGRE_MEMORY_TRACKER_RELEASE_MODE 0
00114 #endif
00115 
00117 #define OGRE_MAX_MULTIPLE_RENDER_TARGETS 8
00118 
00138 #ifndef OGRE_THREAD_SUPPORT
00139 #define OGRE_THREAD_SUPPORT 0
00140 #endif
00141 #if OGRE_THREAD_SUPPORT != 0 && OGRE_THREAD_SUPPORT != 1 && OGRE_THREAD_SUPPORT != 2
00142 #define OGRE_THREAD_SUPPORT 0
00143 #endif
00144 
00156 #ifndef OGRE_THREAD_PROVIDER
00157 #define OGRE_THREAD_PROVIDER 0
00158 #endif
00159 
00163 #ifndef OGRE_NO_FREEIMAGE
00164 #define OGRE_NO_FREEIMAGE 0
00165 #endif
00166 
00171 #ifndef OGRE_NO_DEVIL
00172 #define OGRE_NO_DEVIL 1
00173 #endif
00174 
00178 #ifndef OGRE_NO_DDS_CODEC
00179 #define OGRE_NO_DDS_CODEC 0
00180 #endif
00181 
00185 #ifndef OGRE_NO_ZIP_ARCHIVE
00186 #define OGRE_NO_ZIP_ARCHIVE 0
00187 #endif
00188 
00191 #ifndef OGRE_USE_NEW_COMPILERS
00192 #define OGRE_USE_NEW_COMPILERS 1
00193 #endif
00194 
00195 #endif

Copyright © 2008 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Thu Dec 31 16:27:08 2009