3 #include "ConvexDecompositionDemo.h"
5 #include "GLDebugDrawer.h"
6 #include "btBulletDynamicsCommon.h"
9 GLDebugDrawer gDebugDrawer;
11 int main(int argc,char** argv)
13 const char* filename = "file.obj";
16 ConvexDecompositionDemo* convexDecompDemo = new ConvexDecompositionDemo();
18 convexDecompDemo->initPhysics(filename);
20 convexDecompDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer);
23 convexDecompDemo->clientResetScene();
27 glutmain(argc, argv,640,480,"Bullet Physics Demo. http://www.continuousphysics.com/Bullet/phpBB2/",convexDecompDemo);
29 delete convexDecompDemo;