Initialize libbullet git in 2.0_beta.
[platform/upstream/libbullet.git] / Extras / CDTestFramework / Opcode / Opcode.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  *      Main file for Opcode.dll.
21  *      \file           Opcode.h
22  *      \author         Pierre Terdiman
23  *      \date           March, 20, 2001
24  */
25 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
26
27 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
28 // Include Guard
29 #ifndef __OPCODE_H__
30 #define __OPCODE_H__
31
32 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
33 // Compilation messages
34 #if defined(OPCODE_EXPORTS)
35         #pragma message("Compiling OPCODE")
36 #elif !defined(OPCODE_EXPORTS)
37         #pragma message("Using OPCODE")
38         ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
39         // Automatic linking
40         #ifndef BAN_OPCODE_AUTOLINK
41                 #ifdef _DEBUG
42                         #pragma comment(lib, "Opcode_D.lib")
43                 #else
44                         #pragma comment(lib, "Opcode.lib")
45                 #endif
46         #endif
47 #endif
48
49 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
50 // Preprocessor
51 #ifndef ICE_NO_DLL
52         #ifdef OPCODE_EXPORTS
53                 #define OPCODE_API __declspec(dllexport)
54         #else
55                 #define OPCODE_API __declspec(dllimport)
56         #endif
57 #else
58                 #define OPCODE_API
59 #endif
60
61         #include "OPC_IceHook.h"
62
63         namespace Opcode
64         {
65                 // Bulk-of-the-work
66                 #include "OPC_Settings.h"
67                 #include "OPC_Common.h"
68                 #include "OPC_MeshInterface.h"
69                 // Builders
70                 #include "OPC_TreeBuilders.h"
71                 // Trees
72                 #include "OPC_AABBTree.h"
73                 #include "OPC_OptimizedTree.h"
74                 // Models
75                 #include "OPC_BaseModel.h"
76                 #include "OPC_Model.h"
77                 #include "OPC_HybridModel.h"
78                 // Colliders
79                 #include "OPC_Collider.h"
80                 #include "OPC_VolumeCollider.h"
81                 #include "OPC_TreeCollider.h"
82                 #include "OPC_RayCollider.h"
83                 #include "OPC_SphereCollider.h"
84                 #include "OPC_OBBCollider.h"
85                 #include "OPC_AABBCollider.h"
86                 #include "OPC_LSSCollider.h"
87                 #include "OPC_PlanesCollider.h"
88                 // Usages
89                 #include "OPC_Picking.h"
90                 // Sweep-and-prune
91                 #include "OPC_BoxPruning.h"
92                 #include "OPC_SweepAndPrune.h"
93                 #include "OPC_ArraySAP.h"
94
95                 FUNCTION OPCODE_API bool InitOpcode();
96                 FUNCTION OPCODE_API bool CloseOpcode();
97         }
98
99 #endif // __OPCODE_H__