OGRE  1.7
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OgreConfig.h
Go to the documentation of this file.
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-2011 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 
39 #ifndef OGRE_PROFILING
40 #define OGRE_PROFILING 0
41 #endif
42 
48 #define OGRE_ASSERT_MODE 0
49 
53 #define OGRE_PRETEND_TEXTURE_UNITS 0
54 
60 #ifndef OGRE_DOUBLE_PRECISION
61 #define OGRE_DOUBLE_PRECISION 0
62 #endif
63 
66 #define OGRE_MAX_TEXTURE_COORD_SETS 6
67 
70 #define OGRE_MAX_TEXTURE_LAYERS 16
71 
74 #define OGRE_MAX_SIMULTANEOUS_LIGHTS 8
75 
78 #define OGRE_MAX_BLEND_WEIGHTS 4
79 
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
88 #define OGRE_MEMORY_ALLOCATOR_USER 3
89 #define OGRE_MEMORY_ALLOCATOR_NEDPOOLING 4
90 
91 #ifndef OGRE_MEMORY_ALLOCATOR
92 # define OGRE_MEMORY_ALLOCATOR OGRE_MEMORY_ALLOCATOR_NEDPOOLING
93 #endif
94 
95 // Whether to use the custom memory allocator in STL containers
96 #ifndef OGRE_CONTAINERS_USE_CUSTOM_MEMORY_ALLOCATOR
97 # define OGRE_CONTAINERS_USE_CUSTOM_MEMORY_ALLOCATOR 1
98 #endif
99 
100 //if you want to make Ogre::String use the custom memory allocator then set:
101 //#define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 1
102 // Doing this will mean Ogre's strings will not be compatible with std::string however
103 #ifndef OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR
104 # define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 0
105 #endif
106 
107 // enable or disable the memory tracker, recording the memory allocations & tracking leaks
108 // default is to disable since it's expensive, but you can enable if needed per build target
109 
110 #ifndef OGRE_MEMORY_TRACKER_DEBUG_MODE
111 # define OGRE_MEMORY_TRACKER_DEBUG_MODE 0
112 #endif
113 
114 #ifndef OGRE_MEMORY_TRACKER_RELEASE_MODE
115 # define OGRE_MEMORY_TRACKER_RELEASE_MODE 0
116 #endif
117 
119 #define OGRE_MAX_MULTIPLE_RENDER_TARGETS 8
120 
140 #ifndef OGRE_THREAD_SUPPORT
141 #define OGRE_THREAD_SUPPORT 0
142 #endif
143 #if OGRE_THREAD_SUPPORT != 0 && OGRE_THREAD_SUPPORT != 1 && OGRE_THREAD_SUPPORT != 2
144 #define OGRE_THREAD_SUPPORT 0
145 #endif
146 
158 #ifndef OGRE_THREAD_PROVIDER
159 #define OGRE_THREAD_PROVIDER 0
160 #endif
161 
165 #ifndef OGRE_NO_FREEIMAGE
166 #define OGRE_NO_FREEIMAGE 0
167 #endif
168 
173 #ifndef OGRE_NO_DEVIL
174 #define OGRE_NO_DEVIL 1
175 #endif
176 
180 #ifndef OGRE_NO_DDS_CODEC
181 #define OGRE_NO_DDS_CODEC 0
182 #endif
183 
187 #ifndef OGRE_NO_ZIP_ARCHIVE
188 #define OGRE_NO_ZIP_ARCHIVE 0
189 #endif
190 
193 #ifndef OGRE_USE_NEW_COMPILERS
194 #define OGRE_USE_NEW_COMPILERS 1
195 #endif
196 
197 #endif