Tizen 2.1 base
[platform/upstream/libbullet.git] / Demos / GenericJointDemo / GenericJointDemo.h
1 /*
2 Bullet Continuous Collision Detection and Physics Library
3 GenericJointDemo
4 Copyright (c) 2007 Starbreeze Studios
5
6 This software is provided 'as-is', without any express or implied warranty.
7 In no event will the authors be held liable for any damages arising from the use of this software.
8 Permission is granted to anyone to use this software for any purpose,
9 including commercial applications, and to alter it and redistribute it freely,
10 subject to the following restrictions:
11
12 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.
13 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
14 3. This notice may not be removed or altered from any source distribution.
15
16 Written by: Marten Svanfeldt
17 */
18
19 #ifndef GENERIGJOINTDEMO_H
20 #define GENERIGJOINTDEMO_H
21
22 #ifdef _WINDOWS
23 #include "Win32DemoApplication.h"
24 #define PlatformDemoApplication Win32DemoApplication
25 #else
26 #include "GlutDemoApplication.h"
27 #define PlatformDemoApplication GlutDemoApplication
28 #endif
29
30 #include "LinearMath/btAlignedObjectArray.h"
31 #include "Ragdoll.h"
32
33 class GenericJointDemo : public PlatformDemoApplication
34 {
35
36         btAlignedObjectArray<class RagDoll*> m_ragdolls;
37
38 public:
39         void initPhysics();
40
41         void spawnRagdoll(bool random = false);
42
43         virtual void clientMoveAndDisplay();
44
45         virtual void displayCallback();
46
47         virtual void keyboardCallback(unsigned char key, int x, int y);
48 };
49
50
51 #endif