more work towards CPU version
This commit is contained in:
47
Demos3/CpuDemos/rigidbody/RigidBodyDemo.h
Normal file
47
Demos3/CpuDemos/rigidbody/RigidBodyDemo.h
Normal file
@@ -0,0 +1,47 @@
|
||||
#ifndef B3_RIGID_BODY_DEMO_H
|
||||
#define B3_RIGID_BODY_DEMO_H
|
||||
|
||||
#include "../CpuDemo.h"
|
||||
|
||||
struct RigidBodyDemo : public CpuDemo
|
||||
{
|
||||
|
||||
struct b3DynamicBvhBroadphase* m_bp;
|
||||
struct b3CpuNarrowPhase* m_np;
|
||||
class b3CpuCollisionWorld* m_cd;
|
||||
|
||||
struct b3CpuRigidBodyPipeline* m_rb;
|
||||
|
||||
GLInstancingRenderer* m_instancingRenderer;
|
||||
|
||||
virtual void initPhysics(const ConstructionInfo& ci);
|
||||
|
||||
virtual void exitPhysics();
|
||||
|
||||
virtual void renderScene();
|
||||
|
||||
virtual void clientMoveAndDisplay();
|
||||
virtual const char* getName() {
|
||||
return "RigidBodyDemo";
|
||||
}
|
||||
virtual bool mouseMoveCallback(float x,float y)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
virtual bool mouseButtonCallback(int button, int state, float x, float y)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
virtual bool keyboardCallback(int key, int state)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
static CpuDemo* MyCreateFunc()
|
||||
{
|
||||
CpuDemo* demo = new RigidBodyDemo;
|
||||
return demo;
|
||||
}
|
||||
};
|
||||
#endif //B3_RIGID_BODY_DEMO_H
|
||||
|
||||
Reference in New Issue
Block a user