OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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-2014 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 #ifndef OGRE_ASSERT_MODE
49 #define OGRE_ASSERT_MODE 0
50 #endif
51 
55 #define OGRE_PRETEND_TEXTURE_UNITS 0
56 
62 #ifndef OGRE_DOUBLE_PRECISION
63 #define OGRE_DOUBLE_PRECISION 0
64 #endif
65 
68 #define OGRE_MAX_TEXTURE_COORD_SETS 8
69 
72 #define OGRE_MAX_TEXTURE_LAYERS 16
73 
76 #define OGRE_MAX_SIMULTANEOUS_LIGHTS 8
77 
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 #define OGRE_MEMORY_ALLOCATOR_TRACK 5
88 
89 #ifndef OGRE_MEMORY_ALLOCATOR
90 # define OGRE_MEMORY_ALLOCATOR OGRE_MEMORY_ALLOCATOR_NEDPOOLING
91 #endif
92 
93 // Whether to use the custom memory allocator in STL containers
94 #ifndef OGRE_CONTAINERS_USE_CUSTOM_MEMORY_ALLOCATOR
95 # define OGRE_CONTAINERS_USE_CUSTOM_MEMORY_ALLOCATOR 1
96 #endif
97 
98 //if you want to make Ogre::String use the custom memory allocator then set:
99 //#define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 1
100 // Doing this will mean Ogre's strings will not be compatible with std::string however
101 #ifndef OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR
102 # define OGRE_STRING_USE_CUSTOM_MEMORY_ALLOCATOR 0
103 #endif
104 
105 // enable or disable the memory tracker, recording the memory allocations & tracking leaks
106 // default is to disable since it's expensive, but you can enable if needed per build target
107 
108 #ifndef OGRE_MEMORY_TRACKER_DEBUG_MODE
109 # define OGRE_MEMORY_TRACKER_DEBUG_MODE 0
110 #endif
111 
112 #ifndef OGRE_MEMORY_TRACKER_RELEASE_MODE
113 # define OGRE_MEMORY_TRACKER_RELEASE_MODE 0
114 #endif
115 
117 #define OGRE_MAX_MULTIPLE_RENDER_TARGETS 8
118 
138 #ifndef OGRE_THREAD_SUPPORT
139 #define OGRE_THREAD_SUPPORT 0
140 #endif
141 #if OGRE_THREAD_SUPPORT != 0 && OGRE_THREAD_SUPPORT != 1 && OGRE_THREAD_SUPPORT != 2
142 #define OGRE_THREAD_SUPPORT 0
143 #endif
144 
156 #ifndef OGRE_THREAD_PROVIDER
157 #define OGRE_THREAD_PROVIDER 0
158 #endif
159 
163 #ifndef OGRE_NO_FREEIMAGE
164 #define OGRE_NO_FREEIMAGE 0
165 #endif
166 
170 #ifndef OGRE_NO_DDS_CODEC
171 #define OGRE_NO_DDS_CODEC 0
172 #endif
173 
177 #ifndef OGRE_NO_ETC_CODEC
178 #define OGRE_NO_ETC_CODEC 1
179 #endif
180 
184 #ifndef OGRE_NO_ZIP_ARCHIVE
185 #define OGRE_NO_ZIP_ARCHIVE 0
186 #endif
187 
188 #endif