add initial examples, replacing the 'Demos/Demos3'. Will make it work cross-platform, OpenGL3/OpenGL2 and add more examples to it.
This commit is contained in:
28
examples/CommonInterfaces/ExampleInterface.h
Normal file
28
examples/CommonInterfaces/ExampleInterface.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef EXAMPLE_INTERFACE_H
|
||||
#define EXAMPLE_INTERFACE_H
|
||||
|
||||
|
||||
class ExampleInterface
|
||||
{
|
||||
public:
|
||||
|
||||
typedef class ExampleInterface* (CreateFunc)(struct PhysicsInterface* pint, struct GUIHelperInterface* helper, int option);
|
||||
|
||||
virtual ~ExampleInterface()
|
||||
{
|
||||
}
|
||||
|
||||
virtual void initPhysics()=0;
|
||||
virtual void exitPhysics()=0;
|
||||
virtual void stepSimulation(float deltaTime)=0;
|
||||
virtual void renderScene()=0;
|
||||
virtual void physicsDebugDraw(int debugFlags)=0;//for now we reuse the flags in Bullet/src/LinearMath/btIDebugDraw.h
|
||||
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;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif //EXAMPLE_INTERFACE_H
|
||||
Reference in New Issue
Block a user