add broadphase demo (empty skeleton)
This commit is contained in:
23
demo/gpudemo/broadphase/PairBench.cpp
Normal file
23
demo/gpudemo/broadphase/PairBench.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "PairBench.h"
|
||||
#include "BulletCommon/btQuickprof.h"
|
||||
|
||||
void PairBench::initPhysics(const ConstructionInfo& ci)
|
||||
{
|
||||
CProfileManager::CleanupMemory();
|
||||
}
|
||||
|
||||
void PairBench::exitPhysics()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
void PairBench::renderScene()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void PairBench::clientMoveAndDisplay()
|
||||
{
|
||||
|
||||
}
|
||||
34
demo/gpudemo/broadphase/PairBench.h
Normal file
34
demo/gpudemo/broadphase/PairBench.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#ifndef PAIR_BENCH_H
|
||||
#define PAIR_BENCH_H
|
||||
|
||||
#include "../GpuDemo.h"
|
||||
|
||||
class PairBench : public GpuDemo
|
||||
{
|
||||
public:
|
||||
|
||||
virtual void initPhysics(const ConstructionInfo& ci);
|
||||
|
||||
virtual void exitPhysics();
|
||||
|
||||
virtual const char* getName()
|
||||
{
|
||||
return "PairBench";
|
||||
}
|
||||
static GpuDemo* MyCreateFunc()
|
||||
{
|
||||
GpuDemo* demo = new PairBench;
|
||||
return demo;
|
||||
}
|
||||
|
||||
|
||||
|
||||
virtual void renderScene();
|
||||
|
||||
virtual void clientMoveAndDisplay();
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user