Set debug drawer for demo
Fixed issue with toggle of activation in the DemoApplication added hint/todo for Win32ThreadSupport
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user