Imported Upstream version 2.81
[platform/upstream/libbullet.git] / Demos / ParticlesOpenCL / btParticlesSharedTypes.h
1 /*\r
2 Bullet Continuous Collision Detection and Physics Library, http://bulletphysics.org\r
3 Copyright (C) 2006 - 2009 Sony Computer Entertainment Inc. \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 #ifndef BT_SPHERES_GRID_DEMO_SHARED_TYPES\r
16 #define BT_SPHERES_GRID_DEMO_SHARED_TYPES\r
17 \r
18 struct btSimParams\r
19 {\r
20         float m_gravity[4];\r
21         float m_worldMin[4];\r
22         float m_worldMax[4];\r
23         float m_cellSize[4];\r
24         int   m_gridSize[4];\r
25 \r
26         float m_particleRad;\r
27         float m_globalDamping;\r
28         float m_boundaryDamping;\r
29         float m_collisionDamping;\r
30 \r
31         float m_spring;\r
32         float m_shear;\r
33         float m_attraction;\r
34         float m_dummy;\r
35 };\r
36 \r
37 struct btInt2\r
38 {\r
39         int x;\r
40         int y;\r
41 };\r
42 \r
43 struct btInt4\r
44 {\r
45         int x;\r
46         int y;\r
47         int z;\r
48         int w;\r
49 };\r
50 \r
51 \r
52 \r
53 #endif\r
54 \r