Imported Upstream version 2.81
[platform/upstream/libbullet.git] / Demos / ConvexDecompositionDemo / main.cpp
1
2
3 #include "ConvexDecompositionDemo.h"
4 #include "GlutStuff.h"
5 #include "GLDebugDrawer.h"
6 #include "btBulletDynamicsCommon.h"
7
8
9 GLDebugDrawer   gDebugDrawer;
10
11 int main(int argc,char** argv)
12 {
13         const char* filename = "file.obj";
14
15
16         ConvexDecompositionDemo* convexDecompDemo = new ConvexDecompositionDemo();
17
18         convexDecompDemo->initPhysics(filename);
19
20                 convexDecompDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer);
21
22
23         convexDecompDemo->clientResetScene();
24
25        
26
27         glutmain(argc, argv,640,480,"Bullet Physics Demo. http://www.continuousphysics.com/Bullet/phpBB2/",convexDecompDemo);
28
29         delete convexDecompDemo;
30
31         return 0;
32 }