bullet3/Demos3/GpuDemos/ParticleDemo.h

50 lines
792 B
C
Raw Normal View History

2013-03-13 15:55:39 +00:00
#ifndef PARTICLE_DEMO_H
#define PARTICLE_DEMO_H
2013-03-13 22:03:08 +00:00
#include "GpuDemo.h"
2013-03-13 20:22:56 +00:00
struct GLInstancingRenderer;
2013-03-13 15:55:39 +00:00
2013-03-13 22:03:08 +00:00
class ParticleDemo : public GpuDemo
2013-03-13 15:55:39 +00:00
{
2013-03-13 20:22:56 +00:00
public:
protected:
2013-03-13 15:55:39 +00:00
struct ParticleInternalData* m_data;
GLInstancingRenderer* m_instancingRenderer;
2013-03-13 22:03:08 +00:00
virtual void initCL(int preferredDeviceIndex, int preferredPlatformIndex);
virtual void exitCL();
2013-03-13 15:55:39 +00:00
public:
ParticleDemo();
virtual ~ParticleDemo();
virtual void setupScene(const ConstructionInfo& ci);
virtual void initPhysics(const ConstructionInfo& ci);
virtual void exitPhysics();
virtual const char* getName()
{
return "ParticleDemo";
}
2013-03-13 22:03:08 +00:00
static GpuDemo* MyCreateFunc()
2013-03-13 15:55:39 +00:00
{
2013-03-13 22:03:08 +00:00
GpuDemo* demo = new ParticleDemo;
2013-03-13 15:55:39 +00:00
return demo;
}
2013-03-13 20:22:56 +00:00
2013-03-13 15:55:39 +00:00
virtual void renderScene();
virtual void clientMoveAndDisplay();
};
#endif //PARTICLE_DEMO_H