minor cleanup of btgui/demo3 stuff, much more demo cleanup is needed
moved some files in btgui/Bullet3AppSupport
This commit is contained in:
66
btgui/Bullet3AppSupport/BulletDemoInterface.h
Normal file
66
btgui/Bullet3AppSupport/BulletDemoInterface.h
Normal file
@@ -0,0 +1,66 @@
|
||||
#ifndef DEMO_INTERFACE_H
|
||||
#define DEMO_INTERFACE_H
|
||||
|
||||
struct SimpleOpenGL3App;
|
||||
|
||||
class BulletDemoInterface
|
||||
{
|
||||
public:
|
||||
|
||||
typedef class BulletDemoInterface* (CreateFunc)(SimpleOpenGL3App* app);
|
||||
|
||||
virtual ~BulletDemoInterface()
|
||||
{
|
||||
}
|
||||
|
||||
virtual void initPhysics()=0;
|
||||
virtual void exitPhysics()=0;
|
||||
virtual void stepSimulation(float deltaTime)=0;
|
||||
virtual void renderScene()=0;
|
||||
virtual void physicsDebugDraw()=0;
|
||||
virtual bool mouseMoveCallback(float x,float y)=0;
|
||||
virtual bool mouseButtonCallback(int button, int state, float x, float y)=0;
|
||||
virtual bool keyboardCallback(int key, int state)=0;
|
||||
|
||||
};
|
||||
|
||||
class EmptyBulletDemo : public BulletDemoInterface
|
||||
{
|
||||
public:
|
||||
static BulletDemoInterface* MyCreateFunc(SimpleOpenGL3App* app)
|
||||
{
|
||||
return new EmptyBulletDemo();
|
||||
}
|
||||
|
||||
virtual void initPhysics()
|
||||
{
|
||||
}
|
||||
virtual void exitPhysics()
|
||||
{
|
||||
}
|
||||
virtual void stepSimulation(float deltaTime)
|
||||
{
|
||||
}
|
||||
virtual void renderScene()
|
||||
{
|
||||
}
|
||||
virtual void physicsDebugDraw()
|
||||
{
|
||||
}
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif //DEMO_INTERFACE_H
|
||||
|
||||
Reference in New Issue
Block a user