Exemplo n.º 1
0
int main(int argc,char** argv)
{

	CcdPhysicsDemo* ccdDemo = new CcdPhysicsDemo();

#ifdef __DEBUG_FPU_ISSUES
//	feenableexcept (FE_DIVBYZERO);
//	feenableexcept (FE_INEXACT);
//	feenableexcept (FE_INVALID);
//	feenableexcept (FE_OVERFLOW|FE_DIVBYZERO|FE_UNDERFLOW);
//	feenableexcept (FE_UNDERFLOW);
#endif

	ccdDemo->initPhysics();
	ccdDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer);


	glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bulletphysics.com",ccdDemo);

	delete ccdDemo;
	return 0;

}
Exemplo n.º 2
0
int main(int argc,char** argv)
{
	CcdPhysicsDemo* ccdDemo = new CcdPhysicsDemo();

	ccdDemo->initAudio();					// Describe audio objects.

	ccdDemo->initPhysics();					// Also makes body -> audio body links.
	ccdDemo->setCameraDistance(4.0);		// Overide default renderer setting.
	ccdDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer);

	ccdDemo->startAudio();					// Set audio device and start thread.

	glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bullet.sf.net",ccdDemo);

	ccdDemo->exitAudio();					// Kills audio thread nicely, if we get this far.
	delete ccdDemo;
	return 0;

}