config-default.h | config-default.h | |||
---|---|---|---|---|
skipping to change at line 20 | skipping to change at line 20 | |||
* dTRIMESH_OPCODE - use the OPCODE trimesh engine | * dTRIMESH_OPCODE - use the OPCODE trimesh engine | |||
* dTRIMESH_GIMPACT - use the GIMPACT trimesh engine | * dTRIMESH_GIMPACT - use the GIMPACT trimesh engine | |||
* Only one trimesh engine should be enabled. | * Only one trimesh engine should be enabled. | |||
* | * | |||
* dTRIMESH_16BIT_INDICES (todo: opcode only) | * dTRIMESH_16BIT_INDICES (todo: opcode only) | |||
* Setup the trimesh engine to use 16 bit | * Setup the trimesh engine to use 16 bit | |||
* triangle indices. The default is to use | * triangle indices. The default is to use | |||
* 32 bit indices. Use the dTriIndex type to | * 32 bit indices. Use the dTriIndex type to | |||
* detect the correct index size. | * detect the correct index size. | |||
* | * | |||
* dUSE_MALLOC_FOR_ALLOCA (experimental)- | ||||
* Use malloc() instead of alloca(). Slower, | ||||
* but allows for larger systems and more | ||||
* graceful out-of-memory handling. | ||||
* | ||||
* dTRIMESH_OPCODE_USE_NEW_TRIMESH_TRIMESH_COLLIDER (experimental)- | * dTRIMESH_OPCODE_USE_NEW_TRIMESH_TRIMESH_COLLIDER (experimental)- | |||
* Use an alternative trimesh-trimesh collider | * Use an alternative trimesh-trimesh collider | |||
* which should yield better results. | * which should yield better results. | |||
* | * | |||
* dOU_ENABLED (experimental) | * dOU_ENABLED (experimental) | |||
* dATOMICS_ENABLED (experimental) | * dATOMICS_ENABLED (experimental) | |||
* dTLS_ENABLED (experimental) | * dTLS_ENABLED (experimental) | |||
* Use generic features of OU library, atomic | * Use generic features of OU library, atomic | |||
* API and TLS API respectively. Using TLS for | * API and TLS API respectively. Using TLS for | |||
* global variables allows calling ODE from | * global variables allows calling ODE from | |||
* multiple threads. | * multiple threads. | |||
* | * | |||
******************************************************************/ | ******************************************************************/ | |||
#define dTRIMESH_ENABLED 1 | #define dTRIMESH_ENABLED 1 | |||
#define dTRIMESH_OPCODE 1 | #define dTRIMESH_OPCODE 1 | |||
#define dTRIMESH_16BIT_INDICES 0 | #define dTRIMESH_16BIT_INDICES 0 | |||
#define dTRIMESH_OPCODE_USE_OLD_TRIMESH_TRIMESH_COLLIDER 0 | #define dTRIMESH_OPCODE_USE_OLD_TRIMESH_TRIMESH_COLLIDER 0 | |||
/* #define dUSE_MALLOC_FOR_ALLOCA */ | ||||
/* #define dOU_ENABLED 1 */ | /* #define dOU_ENABLED 1 */ | |||
/* #define dATOMICS_ENABLED 1 */ | /* #define dATOMICS_ENABLED 1 */ | |||
/* #define dTLS_ENABLED 1 */ | /* #define dTLS_ENABLED 1 */ | |||
/****************************************************************** | /****************************************************************** | |||
* SYSTEM SETTINGS - you shouldn't need to change these. If you | * SYSTEM SETTINGS - you shouldn't need to change these. If you | |||
* run into an issue with these settings, please report it to | * run into an issue with these settings, please report it to | |||
* the ODE bug tracker at: | * the ODE bug tracker at: | |||
* http://sf.net/tracker/?group_id=24884&atid=382799 | * http://sf.net/tracker/?group_id=24884&atid=382799 | |||
******************************************************************/ | ******************************************************************/ | |||
skipping to change at line 96 | skipping to change at line 89 | |||
#endif | #endif | |||
#if !defined(ODE_PLATFORM_OSX) && !defined(ODE_PLATFORM_PS3) | #if !defined(ODE_PLATFORM_OSX) && !defined(ODE_PLATFORM_PS3) | |||
#include <malloc.h> | #include <malloc.h> | |||
#endif | #endif | |||
#if !defined(ODE_PLATFORM_WINDOWS) | #if !defined(ODE_PLATFORM_WINDOWS) | |||
#include <alloca.h> | #include <alloca.h> | |||
#endif | #endif | |||
// Use the error-checking memory allocation system. Because this system us | ||||
es heap | ||||
// (malloc) instead of stack (alloca), it is slower. However, it allows y | ||||
ou to | ||||
// simulate larger scenes, as well as handle out-of-memory errors in a som | ||||
ewhat | ||||
// graceful manner | ||||
#ifdef dUSE_MALLOC_FOR_ALLOCA | ||||
enum { | ||||
d_MEMORY_OK = 0, /* no memory errors */ | ||||
d_MEMORY_OUT_OF_MEMORY /* malloc failed due to out of memory error | ||||
*/ | ||||
}; | ||||
#endif | ||||
#ifdef dSINGLE | #ifdef dSINGLE | |||
#define dEpsilon FLT_EPSILON | #define dEpsilon FLT_EPSILON | |||
#else | #else | |||
#define dEpsilon DBL_EPSILON | #define dEpsilon DBL_EPSILON | |||
#endif | #endif | |||
/* An integer type that can be safely cast to a pointer. This definition | /* An integer type that can be safely cast to a pointer. This definition | |||
* should be safe even on 64-bit systems */ | * should be safe even on 64-bit systems */ | |||
typedef size_t intP; | typedef size_t intP; | |||
End of changes. 3 change blocks. | ||||
23 lines changed or deleted | 0 lines changed or added | |||
This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/ |