make OpenGL2 version work (still very rudimentary, no filled rendering, only debug wireframe)

This commit is contained in:
erwincoumans
2015-04-16 23:46:01 -07:00
parent 438cb00abd
commit 60593f41ed
5 changed files with 76 additions and 14 deletions

View File

@@ -18,7 +18,7 @@ subject to the following restrictions:
#include "btBulletDynamicsCommon.h"
#include "LinearMath/btQuickprof.h"
#include "LinearMath/btIDebugDraw.h"
@@ -161,7 +161,7 @@ void BspDemo::initPhysics(const char* bspfilename)
m_solver = new btSequentialImpulseConstraintSolver();
//ConstraintSolver* solver = new OdeConstraintSolver;
m_dynamicsWorld = new btDiscreteDynamicsWorld(m_dispatcher,m_broadphase,m_solver,m_collisionConfiguration);
m_guiHelper->createPhysicsDebugDrawer(m_dynamicsWorld);
m_dynamicsWorld->setGravity(grav);