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-2006 Torus Knot Software Ltd |
---|
8 | Also see acknowledgements in Readme.html |
---|
9 | |
---|
10 | This program is free software; you can redistribute it and/or modify it under |
---|
11 | the terms of the GNU Lesser General Public License as published by the Free Software |
---|
12 | Foundation; either version 2 of the License, or (at your option) any later |
---|
13 | version. |
---|
14 | |
---|
15 | This program is distributed in the hope that it will be useful, but WITHOUT |
---|
16 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
---|
17 | FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. |
---|
18 | |
---|
19 | You should have received a copy of the GNU Lesser General Public License along with |
---|
20 | this program; if not, write to the Free Software Foundation, Inc., 59 Temple |
---|
21 | Place - Suite 330, Boston, MA 02111-1307, USA, or go to |
---|
22 | http://www.gnu.org/copyleft/lesser.txt. |
---|
23 | |
---|
24 | You may alternatively use this source under the terms of a specific version of |
---|
25 | the OGRE Unrestricted License provided you have obtained such a license from |
---|
26 | Torus Knot Software Ltd. |
---|
27 | ----------------------------------------------------------------------------- |
---|
28 | */ |
---|
29 | #ifndef __Config_H_ |
---|
30 | #define __Config_H_ |
---|
31 | |
---|
32 | // Read configuration options; some systems use an auto-generated config.h, |
---|
33 | // other use a manually generated config.h; in any case just define |
---|
34 | // HAVE_CONFIG_H to include the custom config.h file. |
---|
35 | #ifdef HAVE_CONFIG_H |
---|
36 | #include "config.h" |
---|
37 | #endif |
---|
38 | |
---|
39 | /** If set to 1, profiling code will be included in the application. When you |
---|
40 | are deploying your application you will probably want to set this to 0 */ |
---|
41 | #define OGRE_PROFILING 0 |
---|
42 | |
---|
43 | /** There are three modes for handling asserts in OGRE: |
---|
44 | 0 - STANDARD - Standard asserts in debug builds, nothing in release builds |
---|
45 | 1 - RELEASE_EXCEPTIONS - Standard asserts in debug builds, exceptions in release builds |
---|
46 | 2 - EXCEPTIONS - Exceptions in debug builds, exceptions in release builds |
---|
47 | */ |
---|
48 | #define OGRE_ASSERT_MODE 0 |
---|
49 | |
---|
50 | /** If set to >0, OGRE will always 'think' that the graphics card only has the |
---|
51 | number of texture units specified. Very useful for testing multipass fallback. |
---|
52 | */ |
---|
53 | #define OGRE_PRETEND_TEXTURE_UNITS 0 |
---|
54 | |
---|
55 | /** If set to 1, Real is typedef'ed to double. Otherwise, Real is typedef'ed |
---|
56 | to float. Setting this allows you to perform mathematical operations in the |
---|
57 | CPU (Quaternion, Vector3 etc) with more precision, but bear in mind that the |
---|
58 | GPU still operates in single-precision mode. |
---|
59 | */ |
---|
60 | #ifndef OGRE_DOUBLE_PRECISION |
---|
61 | #define OGRE_DOUBLE_PRECISION 0 |
---|
62 | #endif |
---|
63 | |
---|
64 | /** Define number of texture coordinate sets allowed per vertex. |
---|
65 | */ |
---|
66 | #define OGRE_MAX_TEXTURE_COORD_SETS 6 |
---|
67 | |
---|
68 | /** Define max number of texture layers allowed per pass on any card. |
---|
69 | */ |
---|
70 | #define OGRE_MAX_TEXTURE_LAYERS 16 |
---|
71 | |
---|
72 | /** Define max number of lights allowed per pass. |
---|
73 | */ |
---|
74 | #define OGRE_MAX_SIMULTANEOUS_LIGHTS 8 |
---|
75 | |
---|
76 | /** Define max number of blending weights allowed per vertex. |
---|
77 | */ |
---|
78 | #define OGRE_MAX_BLEND_WEIGHTS 4 |
---|
79 | |
---|
80 | /** Define this if you want to link OGRE as a static lib (preferably as a project file) |
---|
81 | */ |
---|
82 | //#define OGRE_STATIC_LIB |
---|
83 | |
---|
84 | |
---|
85 | /** Set this to 0 if you want to use the standard memory manager in Debug builds |
---|
86 | Release builds always use the standard memory manager |
---|
87 | */ |
---|
88 | #ifndef OGRE_DEBUG_MEMORY_MANAGER |
---|
89 | #define OGRE_DEBUG_MEMORY_MANAGER 0 |
---|
90 | #endif |
---|
91 | /** Define max number of multiple render targets (MRTs) to render to at once. |
---|
92 | */ |
---|
93 | #define OGRE_MAX_MULTIPLE_RENDER_TARGETS 8 |
---|
94 | |
---|
95 | /** Indicate general support for multithreading. |
---|
96 | This will enable threading support in certain parts of the |
---|
97 | engine, mainly resource loading and SharedPtr handling. |
---|
98 | The places where threading is available are clearly |
---|
99 | marked, you should assume state is NOT thread safe unless otherwise |
---|
100 | stated in relation to this flag. |
---|
101 | */ |
---|
102 | #ifndef OGRE_THREAD_SUPPORT |
---|
103 | #define OGRE_THREAD_SUPPORT 0 |
---|
104 | #endif |
---|
105 | |
---|
106 | /** Disables use of the FreeImage image library for loading images. |
---|
107 | WARNING: Use only when you want to provide your own image loading code via codecs. |
---|
108 | */ |
---|
109 | #ifndef OGRE_NO_FREEIMAGE |
---|
110 | #define OGRE_NO_FREEIMAGE 0 |
---|
111 | #endif |
---|
112 | |
---|
113 | /** Disables use of the DevIL image library for loading images. |
---|
114 | By default DevIL is disabled in Eihort in favour of FreeImage, but you may re-enable |
---|
115 | it if you choose |
---|
116 | */ |
---|
117 | #ifndef OGRE_NO_DEVIL |
---|
118 | #define OGRE_NO_DEVIL 1 |
---|
119 | #endif |
---|
120 | |
---|
121 | /** Disables use of the internal image codec for loading DDS files. |
---|
122 | WARNING: Use only when you want to provide your own image loading code via codecs. |
---|
123 | */ |
---|
124 | #ifndef OGRE_NO_DDS_CODEC |
---|
125 | #define OGRE_NO_DDS_CODEC 0 |
---|
126 | #endif |
---|
127 | |
---|
128 | #endif |
---|