int main(int argc,char** argv) { BspDemo* bspDemo = new BspDemo(); const char* bspfilename = "BspDemo.bsp"; printf("argc=%i\n",argc); { for (int i=0;i<argc;i++) { printf("argv[%i]=%s\n",i,argv[i]); } bspfilename = makeExeToBspFilename(argv[0]); printf("new name=%s\n",bspfilename); } if (argc>1) { bspfilename = argv[1]; } GLDebugDrawer gDebugDrawer; // Enrico: TODO: Should change parameter type of initPhysics() to std::string or at least const char * bspDemo->initPhysics((char*)bspfilename); bspDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer); return glutmain(argc, argv,640,480,"Bullet Quake BSP Physics Viewer http://bullet.sourceforge.net",bspDemo); }
int main(int argc,char** argv) { BspDemo* bspDemo = new BspDemo(); char* bspfilename = "BspDemo.bsp"; printf("argc=%i\n",argc); { for (int i=0; i<argc; i++) { printf("argv[%i]=%s\n",i,argv[i]); } bspfilename = makeExeToBspFilename(argv[0]); printf("new name=%s\n",bspfilename); } if (argc>1) { bspfilename = argv[1]; } bspDemo->initPhysics(bspfilename); bspDemo->setCameraDistance(22.f); return glutmain(argc, argv,640,480,"Bullet Quake BSP Physics Viewer http://bullet.sourceforge.net",bspDemo); }