mirror of
https://github.com/bulletphysics/bullet3
synced 2025-01-09 17:10:09 +00:00
7cdda65822
Pre-compile PairBench OpenCL kernel
49 lines
687 B
C++
49 lines
687 B
C++
#ifndef PAIR_BENCH_H
|
|
#define PAIR_BENCH_H
|
|
|
|
#include "../GpuDemo.h"
|
|
|
|
class PairBench : public GpuDemo
|
|
{
|
|
|
|
class GLInstancingRenderer* m_instancingRenderer;
|
|
class b3gWindowInterface* m_window;
|
|
|
|
struct PairBenchInternalData* m_data;
|
|
|
|
|
|
|
|
public:
|
|
|
|
PairBench();
|
|
virtual ~PairBench();
|
|
|
|
virtual void initPhysics(const ConstructionInfo& ci);
|
|
virtual void exitPhysics();
|
|
|
|
|
|
void createBroadphase(int xdim, int ydim, int zdim);
|
|
void deleteBroadphase();
|
|
|
|
virtual const char* getName()
|
|
{
|
|
return "PairBench";
|
|
}
|
|
static GpuDemo* MyCreateFunc()
|
|
{
|
|
GpuDemo* demo = new PairBench;
|
|
return demo;
|
|
}
|
|
|
|
|
|
|
|
virtual void renderScene();
|
|
|
|
virtual void clientMoveAndDisplay();
|
|
|
|
|
|
};
|
|
|
|
#endif
|
|
|