start adding various scenes to test gpu rigid body pipeline reserve more memory for shapes (concave triangle mesh can be huge) in GLInstancingRenderer fix a few crashes when 0 objects
46 lines
769 B
C++
46 lines
769 B
C++
#ifndef GPU_RIGID_BODY_DEMO_H
|
|
#define GPU_RIGID_BODY_DEMO_H
|
|
|
|
#include "../GpuDemo.h"
|
|
|
|
class GpuRigidBodyDemo : public GpuDemo
|
|
{
|
|
protected:
|
|
class GLInstancingRenderer* m_instancingRenderer;
|
|
class btgWindowInterface* m_window;
|
|
|
|
struct GpuRigidBodyDemoInternalData* m_data;
|
|
|
|
public:
|
|
|
|
GpuRigidBodyDemo();
|
|
virtual ~GpuRigidBodyDemo();
|
|
|
|
virtual void initPhysics(const ConstructionInfo& ci);
|
|
|
|
virtual void setupScene(const ConstructionInfo& ci);
|
|
|
|
virtual void destroyScene(){};
|
|
|
|
virtual void exitPhysics();
|
|
|
|
virtual const char* getName()
|
|
{
|
|
return "GRBD";
|
|
}
|
|
static GpuDemo* MyCreateFunc()
|
|
{
|
|
GpuDemo* demo = new GpuRigidBodyDemo;
|
|
return demo;
|
|
}
|
|
|
|
virtual void renderScene();
|
|
|
|
virtual void clientMoveAndDisplay();
|
|
|
|
|
|
};
|
|
|
|
#endif //GPU_RIGID_BODY_DEMO_H
|
|
|