Imported Upstream version 2.81
[platform/upstream/libbullet.git] / Extras / CDTestFramework / Opcode / OPC_Settings.h
1 /*
2  *      OPCODE - Optimized Collision Detection
3  * http://www.codercorner.com/Opcode.htm
4  * 
5  * Copyright (c) 2001-2008 Pierre Terdiman,  pierre@codercorner.com
6
7 This software is provided 'as-is', without any express or implied warranty.
8 In no event will the authors be held liable for any damages arising from the use of this software.
9 Permission is granted to anyone to use this software for any purpose, 
10 including commercial applications, and to alter it and redistribute it freely, 
11 subject to the following restrictions:
12
13 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
14 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
15 3. This notice may not be removed or altered from any source distribution.
16 */
17
18 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
19 /**
20  *      Contains compilation flags.
21  *      \file           OPC_Settings.h
22  *      \author         Pierre Terdiman
23  *      \date           May, 12, 2001
24  */
25 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
26
27 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
28 // Include Guard
29 #ifndef __OPC_SETTINGS_H__
30 #define __OPC_SETTINGS_H__
31
32         //! Use CPU comparisons (comment that line to use standard FPU compares)
33         #define OPC_CPU_COMPARE
34
35         //! Use FCOMI / FCMOV on Pentium-Pro based processors (comment that line to use plain C++)
36         #define OPC_USE_FCOMI
37
38         //! Use epsilon value in tri-tri overlap test
39         #define OPC_TRITRI_EPSILON_TEST
40
41         //! Use tree-coherence or not [not implemented yet]
42 //      #define OPC_USE_TREE_COHERENCE
43
44         //! Use callbacks or direct pointers. Using callbacks might be a bit slower (but probably not much)
45 //      #define OPC_USE_CALLBACKS
46
47         //! Support triangle and vertex strides or not. Using strides might be a bit slower (but probably not much)
48 //      #define OPC_USE_STRIDE
49
50         //! Discard negative pointer in vanilla trees
51         #define OPC_NO_NEG_VANILLA_TREE
52
53         //! Use a callback in the ray collider
54         #define OPC_RAYHIT_CALLBACK
55
56         // NB: no compilation flag to enable/disable stats since they're actually needed in the box/box overlap test
57
58 #endif //__OPC_SETTINGS_H__