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
28 lines
432 B
C++
28 lines
432 B
C++
#ifndef GPU_CONVEX_SCENE_H
|
|
#define GPU_CONVEX_SCENE_H
|
|
|
|
#include "GpuRigidBodyDemo.h"
|
|
|
|
class GpuConvexScene : public GpuRigidBodyDemo
|
|
{
|
|
public:
|
|
|
|
GpuConvexScene(){}
|
|
virtual ~GpuConvexScene(){}
|
|
virtual const char* getName()
|
|
{
|
|
return "GRBConvex";
|
|
}
|
|
|
|
static GpuDemo* MyCreateFunc()
|
|
{
|
|
GpuDemo* demo = new GpuConvexScene;
|
|
return demo;
|
|
}
|
|
|
|
virtual void setupScene(const ConstructionInfo& ci);
|
|
|
|
};
|
|
|
|
#endif //GPU_CONVEX_SCENE_H
|