source: GTP/trunk/App/Demos/Geom/OgreStuff/include/OgreConfig.h @ 1812

Revision 1812, 4.2 KB checked in by gumbau, 18 years ago (diff)
Line 
1/*
2-----------------------------------------------------------------------------
3This source file is part of OGRE
4(Object-oriented Graphics Rendering Engine)
5For the latest info, see http://www.ogre3d.org/
6
7Copyright (c) 2000-2005 The OGRE Team
8Also see acknowledgements in Readme.html
9
10This program is free software; you can redistribute it and/or modify it under
11the terms of the GNU Lesser General Public License as published by the Free Software
12Foundation; either version 2 of the License, or (at your option) any later
13version.
14
15This program is distributed in the hope that it will be useful, but WITHOUT
16ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
17FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
18
19You should have received a copy of the GNU Lesser General Public License along with
20this program; if not, write to the Free Software Foundation, Inc., 59 Temple
21Place - Suite 330, Boston, MA 02111-1307, USA, or go to
22http://www.gnu.org/copyleft/lesser.txt.
23-----------------------------------------------------------------------------
24*/
25#ifndef __Config_H_
26#define __Config_H_
27
28// configure options
29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
32
33/** If set to 1, profiling code will be included in the application. When you
34        are deploying your application you will probably want to set this to 0 */
35#define OGRE_PROFILING 0
36
37/** If set to 1, stack unwinding code is compiled into the library and called
38    in case an exception is thrown in order to show the call stack.
39*/
40#define OGRE_STACK_UNWINDING 0
41
42/** There are three modes for handling asserts in OGRE:
430 - STANDARD - Standard asserts in debug builds, nothing in release builds
441 - RELEASE_EXCEPTIONS - Standard asserts in debug builds, exceptions in release builds
452 - EXCEPTIONS - Exceptions in debug builds, exceptions in release builds
46*/
47#define OGRE_ASSERT_MODE 0
48
49/** If set to >0, OGRE will always 'think' that the graphics card only has the
50    number of texture units specified. Very useful for testing multipass fallback.
51*/
52#define OGRE_PRETEND_TEXTURE_UNITS 0
53
54/** If set to 1, Real is typedef'ed to double. Otherwise, Real is typedef'ed
55    to float. Setting this allows you to perform mathematical operations in the
56        CPU (Quaternion, Vector3 etc) with more precision, but bear in mind that the
57        GPU still operates in single-precision mode.
58*/
59#ifndef OGRE_DOUBLE_PRECISION
60#define OGRE_DOUBLE_PRECISION 0
61#endif
62
63/** If set to 1, the strings are transforned to Unicode, and char is replaced
64    with wchar_t when having to do with strings of any kind.
65*/
66#define OGRE_WCHAR_T_STRINGS 0
67
68/** Define number of texture coordinate sets allowed per vertex.
69*/
70#define OGRE_MAX_TEXTURE_COORD_SETS 6
71
72/** Define max number of texture layers allowed per pass on any card.
73*/
74#define OGRE_MAX_TEXTURE_LAYERS 16
75
76/** Define max number of lights allowed per pass.
77*/
78#define OGRE_MAX_SIMULTANEOUS_LIGHTS 8
79
80/** Define max number of blending weights allowed per vertex.
81*/
82#define OGRE_MAX_BLEND_WEIGHTS 4
83
84/** Set this to zero if you want to link OGRE as a static lib.
85*/
86#define OGRE_DYNAMIC_LINKAGE 1
87
88
89/** Set this to 0 if you want to use the standard memory manager in Debug builds
90    Release builds always use the standard memory manager
91*/
92#ifndef OGRE_DEBUG_MEMORY_MANAGER
93#define OGRE_DEBUG_MEMORY_MANAGER 1
94#endif
95/** Define max number of multiple render targets (MRTs) to render to at once.
96*/
97#define OGRE_MAX_MULTIPLE_RENDER_TARGETS 8
98
99/** Indicate general support for multithreading.
100        This will enable threading support in certain parts of the
101        engine, mainly resource loading and SharedPtr handling.
102        The places where threading is available are clearly
103        marked, you should assume state is NOT thread safe unless otherwise
104        stated in relation to this flag.
105    WARNING: highly experimental, use with caution
106*/
107#ifndef OGRE_THREAD_SUPPORT
108#define OGRE_THREAD_SUPPORT 0
109#endif
110
111/** Disables use of the DevIL image library for loading images.
112    WARNING: Use only when you want to provide your own image loading code via codecs.
113*/
114#ifndef OGRE_NO_DEVIL
115#define OGRE_NO_DEVIL 0
116#endif
117
118
119#endif
Note: See TracBrowser for help on using the repository browser.