Move Bullet 2.x demos in a single demo 'AllBullet2Demos', for now only BasicDemo and FeatherstoneDemo is implemented.
This commit is contained in:
29
Demos3/bullet2/BasicDemo/BasicDemo.h
Normal file
29
Demos3/bullet2/BasicDemo/BasicDemo.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#ifndef BASIC_DEMO_H
|
||||
#define BASIC_DEMO_H
|
||||
|
||||
#include "LinearMath/btVector3.h"
|
||||
#include "Bullet2RigidBodyDemo.h"
|
||||
|
||||
|
||||
|
||||
class BasicDemo : public Bullet2RigidBodyDemo
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
static BulletDemoInterface* MyCreateFunc(SimpleOpenGL3App* app)
|
||||
{
|
||||
return new BasicDemo(app);
|
||||
}
|
||||
|
||||
BasicDemo(SimpleOpenGL3App* app);
|
||||
virtual ~BasicDemo();
|
||||
|
||||
void initPhysics();
|
||||
void exitPhysics();
|
||||
void renderScene();
|
||||
void stepSimulation(float dt);
|
||||
};
|
||||
|
||||
|
||||
#endif //BASIC_DEMO_H
|
||||
Reference in New Issue
Block a user