added a -texturepath option to drawstuff
[ode.git] / build / config-default.h
blob4e350b1643b3e927cb00e0a96eec490fa8ae7338
1 /* This file was autogenerated by Premake */
2 #ifndef _ODE_CONFIG_H_
3 #define _ODE_CONFIG_H_
6 /******************************************************************
7 * CONFIGURATON SETTINGS - you can change these, and then rebuild
8 * ODE to modify the behavior of the library.
10 * dTRIMESH_ENABLED - enable/disable trimesh support
11 * dTRIMESH_OPCODE - use the OPCODE trimesh engine
12 * dTRIMESH_GIMPACT - use the GIMPACT trimesh engine
13 * Only one trimesh engine should be enabled.
15 * dTRIMESH_16BIT_INDICES (todo: opcode only)
16 * Setup the trimesh engine to use 16 bit
17 * triangle indices. The default is to use
18 * 32 bit indices. Use the dTriIndex type to
19 * detect the correct index size.
21 * dUSE_MALLOC_FOR_ALLOCA (experimental)-
22 * Use malloc() instead of alloca(). Slower,
23 * but allows for larger systems and more
24 * graceful out-of-memory handling.
26 * dTRIMESH_OPCODE_USE_NEW_TRIMESH_TRIMESH_COLLIDER (experimental)-
27 * Use an alternative trimesh-trimesh collider
28 * which should yield better results.
30 * dOU_ENABLED (experimental)
31 * dATOMICS_ENABLED (experimental)
32 * dTLS_ENABLED (experimental)
33 * Use generic features of OU library, atomic
34 * API and TLS API respectively. Using TLS for
35 * global variables allows calling ODE from
36 * multiple threads.
38 ******************************************************************/
40 #define dTRIMESH_ENABLED 1
41 #define dTRIMESH_OPCODE 1
42 #define dTRIMESH_16BIT_INDICES 0
44 #define dTRIMESH_OPCODE_USE_OLD_TRIMESH_TRIMESH_COLLIDER 0
46 /* #define dUSE_MALLOC_FOR_ALLOCA */
48 /* #define dOU_ENABLED 1 */
49 /* #define dATOMICS_ENABLED 1 */
50 /* #define dTLS_ENABLED 1 */
53 /******************************************************************
54 * SYSTEM SETTINGS - you shouldn't need to change these. If you
55 * run into an issue with these settings, please report it to
56 * the ODE bug tracker at:
57 * http://sf.net/tracker/?group_id=24884&atid=382799
58 ******************************************************************/
60 /* Try to identify the platform */
61 #if defined(_XENON)
62 #define ODE_PLATFORM_XBOX360
63 #elif defined(SN_TARGET_PSP_HW)
64 #define ODE_PLATFORM_PSP
65 #elif defined(SN_TARGET_PS3)
66 #define ODE_PLATFORM_PS3
67 #elif defined(_MSC_VER) || defined(__CYGWIN32__) || defined(__MINGW32__)
68 #define ODE_PLATFORM_WINDOWS
69 #elif defined(__linux__)
70 #define ODE_PLATFORM_LINUX
71 #elif defined(__APPLE__) && defined(__MACH__)
72 #define ODE_PLATFORM_OSX
73 #else
74 #error "Need some help identifying the platform!"
75 #endif
77 /* Additional platform defines used in the code */
78 #if defined(ODE_PLATFORM_WINDOWS) && !defined(WIN32)
79 #define WIN32
80 #endif
82 #if defined(__CYGWIN32__) || defined(__MINGW32__)
83 #define CYGWIN
84 #endif
86 #if defined(ODE_PLATFORM_OSX)
87 #define macintosh
88 #endif
90 #if !defined(ODE_PLATFORM_OSX) && !defined(ODE_PLATFORM_PS3)
91 #include <malloc.h>
92 #endif
94 #if !defined(ODE_PLATFORM_WINDOWS)
95 #include <alloca.h>
96 #endif
98 // Use the error-checking memory allocation system. Because this system uses heap
99 // (malloc) instead of stack (alloca), it is slower. However, it allows you to
100 // simulate larger scenes, as well as handle out-of-memory errors in a somewhat
101 // graceful manner
103 #ifdef dUSE_MALLOC_FOR_ALLOCA
104 enum {
105 d_MEMORY_OK = 0, /* no memory errors */
106 d_MEMORY_OUT_OF_MEMORY /* malloc failed due to out of memory error */
108 #endif
110 #ifdef dSINGLE
111 #define dEpsilon FLT_EPSILON
112 #else
113 #define dEpsilon DBL_EPSILON
114 #endif
116 /* An integer type that can be safely cast to a pointer. This definition
117 * should be safe even on 64-bit systems */
118 typedef size_t intP;
120 /* The efficient alignment. most platforms align data structures to some
121 * number of bytes, but this is not always the most efficient alignment.
122 * for example, many x86 compilers align to 4 bytes, but on a pentium it is
123 * important to align doubles to 8 byte boundaries (for speed), and the 4
124 * floats in a SIMD register to 16 byte boundaries. many other platforms have
125 * similar behavior. setting a larger alignment can waste a (very) small
126 * amount of memory. NOTE: this number must be a power of two. */
127 #define EFFICIENT_ALIGNMENT 16
129 /* Basic OU functionality is required if either atomic API or TLS support
130 * is enabled. */
131 #if dATOMICS_ENABLED || dTLS_ENABLED
132 #undef dOU_ENABLED
133 #define dOU_ENABLED 1
134 #endif
137 #endif