2015-05-02 04:34:27 +00:00
|
|
|
#ifndef GPU_COMPOUND_SCENE_H
|
|
|
|
#define GPU_COMPOUND_SCENE_H
|
|
|
|
|
|
|
|
#include "GpuRigidBodyDemo.h"
|
|
|
|
|
|
|
|
class GpuCompoundScene : public GpuRigidBodyDemo
|
|
|
|
{
|
|
|
|
public:
|
2018-09-23 21:17:31 +00:00
|
|
|
GpuCompoundScene() {}
|
|
|
|
virtual ~GpuCompoundScene() {}
|
2015-05-02 04:34:27 +00:00
|
|
|
virtual const char* getName()
|
|
|
|
{
|
|
|
|
return "CompoundOnSphere";
|
|
|
|
}
|
|
|
|
|
|
|
|
static GpuDemo* MyCreateFunc()
|
|
|
|
{
|
|
|
|
GpuDemo* demo = new GpuCompoundScene;
|
|
|
|
return demo;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void setupScene(const ConstructionInfo& ci);
|
|
|
|
|
|
|
|
virtual void createStaticEnvironment(const ConstructionInfo& ci);
|
|
|
|
};
|
|
|
|
|
|
|
|
class GpuCompoundPlaneScene : public GpuCompoundScene
|
|
|
|
{
|
|
|
|
public:
|
2018-09-23 21:17:31 +00:00
|
|
|
GpuCompoundPlaneScene() {}
|
|
|
|
virtual ~GpuCompoundPlaneScene() {}
|
2015-05-02 04:34:27 +00:00
|
|
|
virtual const char* getName()
|
|
|
|
{
|
|
|
|
return "CompoundOnPlane";
|
|
|
|
}
|
|
|
|
|
|
|
|
static GpuDemo* MyCreateFunc()
|
|
|
|
{
|
|
|
|
GpuDemo* demo = new GpuCompoundPlaneScene;
|
|
|
|
return demo;
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void createStaticEnvironment(const ConstructionInfo& ci);
|
|
|
|
};
|
2018-09-23 21:17:31 +00:00
|
|
|
#endif //GPU_COMPOUND_SCENE_H
|