Tizen 2.1 base
[platform/upstream/libbullet.git] / Extras / PhysicsEffects / src / low_level / collision / pfx_detect_collision_func.h
1 /*\r
2 Physics Effects Copyright(C) 2010 Sony Computer Entertainment Inc.\r
3 All rights reserved.\r
4 \r
5 Physics Effects is open software; you can redistribute it and/or\r
6 modify it under the terms of the BSD License.\r
7 \r
8 Physics Effects is distributed in the hope that it will be useful,\r
9 but WITHOUT ANY WARRANTY; without even the implied warranty of\r
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\r
11 See the BSD License for more details.\r
12 \r
13 A copy of the BSD License is distributed with\r
14 Physics Effects under the filename: physics_effects_license.txt\r
15 */\r
16 \r
17 #ifndef _SCE_PFX_DETECT_COLLISION_FUNC_H\r
18 #define _SCE_PFX_DETECT_COLLISION_FUNC_H\r
19 \r
20 #include "../../base_level/collision/pfx_contact_cache.h"\r
21 \r
22 namespace sce {\r
23 namespace PhysicsEffects {\r
24 \r
25 typedef void (*pfx_detect_collision_func)(\r
26                                 PfxContactCache &contacts,\r
27                                 const PfxShape & shapeA,const PfxTransform3 &offsetTransformA,const PfxTransform3 &worldTransformA,int shapeIdA,\r
28                                 const PfxShape & shapeB,const PfxTransform3 &offsetTransformB,const PfxTransform3 &worldTransformB,int shapeIdB,\r
29                                 float contactThreshold);\r
30 \r
31 pfx_detect_collision_func pfxGetDetectCollisionFunc(PfxUInt8 shapeTypeA,PfxUInt8 shapeTypeB);\r
32 \r
33 int pfxSetDetectCollisionFunc(PfxUInt8 shapeTypeA,PfxUInt8 shapeTypeB,pfx_detect_collision_func func);\r
34 \r
35 } //namespace PhysicsEffects\r
36 } //namespace sce\r
37 #endif // _SCE_PFX_DETECT_COLLISION_FUNC_H\r