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-2012 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 #define OGRE_ASSERT_MODE 0
00049 
00053 #define OGRE_PRETEND_TEXTURE_UNITS 0
00054 
00060 #ifndef OGRE_DOUBLE_PRECISION
00061 #define OGRE_DOUBLE_PRECISION 0
00062 #endif
00063 
00066 #define OGRE_MAX_TEXTURE_COORD_SETS 8
00067 
00070 #define OGRE_MAX_TEXTURE_LAYERS 16
00071 
00074 #define OGRE_MAX_SIMULTANEOUS_LIGHTS 8
00075 
00078 #define OGRE_MAX_BLEND_WEIGHTS 4
00079 
00082 //#define OGRE_STATIC_LIB
00083 
00084 
00085 // define the memory allocator configuration to use
00086 #define OGRE_MEMORY_ALLOCATOR_STD 1
00087 #define OGRE_MEMORY_ALLOCATOR_NED 2
00088 #define OGRE_MEMORY_ALLOCATOR_USER 3
00089 #define OGRE_MEMORY_ALLOCATOR_NEDPOOLING 4
00090 
00091 #ifndef OGRE_MEMORY_ALLOCATOR
00092 #  define OGRE_MEMORY_ALLOCATOR OGRE_MEMORY_ALLOCATOR_NEDPOOLING
00093 #endif
00094 
00095 // Whether to use the custom memory allocator in STL containers
00096 #ifndef OGRE_CONTAINERS_USE_CUSTOM_MEMORY_ALLOCATOR
00097 #  define OGRE_CONTAINERS_USE_CUSTOM_MEMORY_ALLOCATOR 1
00098 #endif
00099 
00100 //if you want to make Ogre::String use the custom memory allocator then set:
00101 //#define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 1
00102 // Doing this will mean Ogre's strings will not be compatible with std::string however
00103 #ifndef OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR
00104 #   define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 0
00105 #endif
00106 
00107 // enable or disable the memory tracker, recording the memory allocations & tracking leaks
00108 // default is to disable since it's expensive, but you can enable if needed per build target
00109 
00110 #ifndef OGRE_MEMORY_TRACKER_DEBUG_MODE
00111 #  define OGRE_MEMORY_TRACKER_DEBUG_MODE 0
00112 #endif
00113 
00114 #ifndef OGRE_MEMORY_TRACKER_RELEASE_MODE
00115 #  define OGRE_MEMORY_TRACKER_RELEASE_MODE 0
00116 #endif
00117 
00119 #define OGRE_MAX_MULTIPLE_RENDER_TARGETS 8
00120 
00140 #ifndef OGRE_THREAD_SUPPORT
00141 #define OGRE_THREAD_SUPPORT 0
00142 #endif
00143 #if OGRE_THREAD_SUPPORT != 0 && OGRE_THREAD_SUPPORT != 1 && OGRE_THREAD_SUPPORT != 2
00144 #define OGRE_THREAD_SUPPORT 0
00145 #endif
00146 
00158 #ifndef OGRE_THREAD_PROVIDER
00159 #define OGRE_THREAD_PROVIDER 0
00160 #endif
00161 
00165 #ifndef OGRE_NO_FREEIMAGE
00166 #define OGRE_NO_FREEIMAGE 0
00167 #endif
00168 
00172 #ifndef OGRE_NO_DDS_CODEC
00173 #define OGRE_NO_DDS_CODEC 0
00174 #endif
00175 
00179 #ifndef OGRE_NO_ZIP_ARCHIVE
00180 #define OGRE_NO_ZIP_ARCHIVE 0
00181 #endif
00182 
00185 #ifndef OGRE_USE_NEW_COMPILERS
00186 #define OGRE_USE_NEW_COMPILERS 1
00187 #endif
00188 
00189 #endif

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Fri May 25 23:36:23 2012