Set debug drawer for demo

Fixed issue with toggle of activation in the DemoApplication
added hint/todo for Win32ThreadSupport
This commit is contained in:
ejcoumans
2007-10-23 01:16:31 +00:00
parent ec76f2e0a3
commit 550c500ca7
3 changed files with 8 additions and 1 deletions

View File

@@ -15,7 +15,10 @@ subject to the following restrictions:
#include "CcdPhysicsDemo.h"
#include "GlutStuff.h"
#include "GLDebugDrawer.h"
#include "btBulletDynamicsCommon.h"
GLDebugDrawer gDebugDrawer;
int main(int argc,char** argv)
{
@@ -23,6 +26,7 @@ int main(int argc,char** argv)
CcdPhysicsDemo* ccdDemo = new CcdPhysicsDemo();
ccdDemo->initPhysics();
ccdDemo->getDynamicsWorld()->setDebugDrawer(&gDebugDrawer);
return glutmain(argc, argv,640,480,"Bullet Physics Demo. http://bullet.sf.net",ccdDemo);