add broadphase demo (empty skeleton)

This commit is contained in:
Erwin Coumans
2013-03-13 15:03:08 -07:00
parent 3ad76286e6
commit 9e623f6b0f
9 changed files with 267 additions and 124 deletions

View File

@@ -24,6 +24,8 @@
#include "OpenGLTrueTypeFont/opengl_fontstashcallbacks.h"
#include "gwenUserInterface.h"
#include "ParticleDemo.h"
#include "broadphase/PairBench.h"
//#include "BroadphaseBenchmark.h"
int g_OpenGLWidth=1024;
@@ -56,11 +58,12 @@ enum
btAlignedObjectArray<const char*> demoNames;
int selectedDemo = 0;
ParticleDemo::CreateFunc* allDemos[]=
GpuDemo::CreateFunc* allDemos[]=
{
//BroadphaseBenchmark::CreateFunc,
//GpuBoxDemo::CreateFunc,
ParticleDemo::MyCreateFunc,
PairBench::MyCreateFunc,
//SpheresDemo::CreateFunc,
//GpuCompoundDemo::CreateFunc,
//EmptyDemo::CreateFunc,
@@ -434,7 +437,7 @@ int main(int argc, char* argv[])
demoNames.clear();
for (int i=0;i<numItems;i++)
{
ParticleDemo* demo = allDemos[i]();
GpuDemo* demo = allDemos[i]();
demoNames.push_back(demo->getName());
delete demo;
}
@@ -526,7 +529,7 @@ int main(int argc, char* argv[])
{
ParticleDemo* demo = allDemos[selectedDemo]();
GpuDemo* demo = allDemos[selectedDemo]();
// demo->myinit();
bool useGpu = false;