Tizen 2.1 base
[platform/upstream/libbullet.git] / Extras / PhysicsEffects / include / BulletPhysicsEffects / btLowLevelConstraintSolver2.h
1 /*\r
2    Copyright (C) 2010 Sony Computer Entertainment Inc.\r
3    All rights reserved.\r
4 \r
5 This software is provided 'as-is', without any express or implied warranty.\r
6 In no event will the authors be held liable for any damages arising from the use of this software.\r
7 Permission is granted to anyone to use this software for any purpose, \r
8 including commercial applications, and to alter it and redistribute it freely, \r
9 subject to the following restrictions:\r
10 \r
11 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.\r
12 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.\r
13 3. This notice may not be removed or altered from any source distribution.\r
14 \r
15 */\r
16 \r
17 #ifndef __BT_LOW_LEVEL_CONSTRAINT_SOLVER2_H\r
18 #define __BT_LOW_LEVEL_CONSTRAINT_SOLVER2_H\r
19 \r
20 #include "BulletDynamics/ConstraintSolver/btSequentialImpulseConstraintSolver.h"\r
21 \r
22 \r
23 \r
24 \r
25 #include "LinearMath/btScalar.h"\r
26 #include "BulletMultiThreaded/PlatformDefinitions.h"\r
27 #include "physics_effects/low_level/pfx_low_level_include.h"\r
28 #include "../src/low_level/solver/pfx_parallel_group.h"\r
29 \r
30 using namespace sce::PhysicsEffects;\r
31 \r
32 \r
33 class btPersistentManifold;\r
34 struct btLowLevelData;\r
35 \r
36 class btLowLevelConstraintSolver2 : public btSequentialImpulseConstraintSolver\r
37 {\r
38         \r
39 protected:\r
40 \r
41         btLowLevelData*         m_lowLevelData;\r
42 \r
43 public:\r
44 \r
45         btLowLevelConstraintSolver2(btLowLevelData* lowLevelData);\r
46         \r
47         virtual ~btLowLevelConstraintSolver2();\r
48 \r
49         virtual btScalar solveGroup(btCollisionObject** bodies,int numBodies,btPersistentManifold** manifold,int numManifolds,btTypedConstraint** constraints,int numConstraints,const btContactSolverInfo& info, btIDebugDraw* debugDrawer, btStackAlloc* stackAlloc,btDispatcher* dispatcher);\r
50 \r
51 };\r
52 \r
53 \r
54 \r
55 #endif //__BT_LOW_LEVEL_CONSTRAINT_SOLVER2_H