add broadphase demo (empty skeleton)
This commit is contained in:
64
demo/gpudemo/GpuDemo.h
Normal file
64
demo/gpudemo/GpuDemo.h
Normal file
@@ -0,0 +1,64 @@
|
||||
#ifndef GPU_DEMO_H
|
||||
#define GPU_DEMO_H
|
||||
class GLInstancingRenderer;
|
||||
|
||||
class GpuDemo
|
||||
{
|
||||
protected:
|
||||
|
||||
struct GpuDemoInternalData* m_clData;
|
||||
|
||||
|
||||
virtual void initCL(int preferredDeviceIndex, int preferredPlatformIndex);
|
||||
virtual void exitCL();
|
||||
public:
|
||||
|
||||
typedef class GpuDemo* (CreateFunc)();
|
||||
|
||||
struct ConstructionInfo
|
||||
{
|
||||
bool useOpenCL;
|
||||
int preferredOpenCLPlatformIndex;
|
||||
int preferredOpenCLDeviceIndex;
|
||||
int arraySizeX;
|
||||
int arraySizeY;
|
||||
int arraySizeZ;
|
||||
bool m_useConcaveMesh;
|
||||
float gapX;
|
||||
float gapY;
|
||||
float gapZ;
|
||||
GLInstancingRenderer* m_instancingRenderer;
|
||||
ConstructionInfo()
|
||||
:useOpenCL(false),//true),
|
||||
preferredOpenCLPlatformIndex(-1),
|
||||
preferredOpenCLDeviceIndex(-1),
|
||||
arraySizeX(10),
|
||||
arraySizeY(10 ),
|
||||
arraySizeZ(10),
|
||||
m_useConcaveMesh(false),
|
||||
gapX(4.3),
|
||||
gapY(4.0),
|
||||
gapZ(4.3),
|
||||
m_instancingRenderer(0)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
GpuDemo();
|
||||
virtual ~GpuDemo();
|
||||
|
||||
virtual const char* getName()=0;
|
||||
|
||||
virtual void initPhysics(const ConstructionInfo& ci)=0;
|
||||
|
||||
virtual void exitPhysics()=0;
|
||||
|
||||
virtual void renderScene()=0;
|
||||
|
||||
virtual void clientMoveAndDisplay()=0;
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user