Last change
on this file since 167 was
167,
checked in by (none), 14 years ago
|
Simeo: added final project and also older proof of concept code.
We used Git for version control, so look at the Git repo
in SIMEO/Simeo/ for more info.
|
File size:
1.1 KB
|
Rev | Line | |
---|
[167] | 1 | #ifndef SIMPLEDEMO_H |
---|
| 2 | #define SIMPLEDEMO_H |
---|
| 3 | |
---|
| 4 | #include "GLDebugDrawer.h" |
---|
| 5 | #include "GlutDemoApplication.h" |
---|
| 6 | #include <LinearMath/btAlignedObjectArray.h> |
---|
| 7 | #include <utility> |
---|
| 8 | |
---|
| 9 | using namespace std; |
---|
| 10 | |
---|
| 11 | class btBroadphaseInterface; |
---|
| 12 | class btCollisionShape; |
---|
| 13 | class btOverlappingPairCache; |
---|
| 14 | class btCollisionDispatcher; |
---|
| 15 | class btConstraintSolver; |
---|
| 16 | struct btCollisionAlgorithmCreateFunc; |
---|
| 17 | class btDefaultCollisionConfiguration; |
---|
| 18 | |
---|
| 19 | ///BasicDemo is good starting point for learning the code base and porting. |
---|
| 20 | class SimpleDemo : public GlutDemoApplication |
---|
| 21 | { |
---|
| 22 | //keep the collision shapes, for deletion/cleanup |
---|
| 23 | btAlignedObjectArray<btCollisionShape*> m_collisionShapes; |
---|
| 24 | btBroadphaseInterface* m_broadphase; |
---|
| 25 | btCollisionDispatcher* m_dispatcher; |
---|
| 26 | btConstraintSolver* m_solver; |
---|
| 27 | btDefaultCollisionConfiguration* m_collisionConfiguration; |
---|
| 28 | |
---|
| 29 | public: |
---|
| 30 | |
---|
| 31 | SimpleDemo() |
---|
| 32 | { |
---|
| 33 | } |
---|
| 34 | virtual ~SimpleDemo() |
---|
| 35 | { |
---|
| 36 | exitPhysics(); |
---|
| 37 | } |
---|
| 38 | |
---|
| 39 | void initPhysics(); |
---|
| 40 | void exitPhysics(); |
---|
| 41 | |
---|
| 42 | void debug(); |
---|
| 43 | virtual void clientMoveAndDisplay(); |
---|
| 44 | virtual void displayCallback(); |
---|
| 45 | |
---|
| 46 | static LocalGui* Create() |
---|
| 47 | { |
---|
| 48 | SimpleDemo* demo = new SimpleDemo; |
---|
| 49 | demo->myinit(); |
---|
| 50 | demo->initPhysics(); |
---|
| 51 | return demo; |
---|
| 52 | } |
---|
| 53 | }; |
---|
| 54 | |
---|
| 55 | #endif //SIMPLEDEMO_H |
---|
| 56 | |
---|
Note: See
TracBrowser
for help on using the repository browser.