Start re-organizing demos so the physics setup can be shared easier (explicit create graphics objects, init/exit physics etc)
Add B3G_RETURN key code, only implemented in Windows so far (todo: Mac, Linux) Fix Windows key management (use WM_CHAR event instead of WM_KEYUP Add Return (OnKeyReturn) key support TreeNode, so we can select an item using the return key.
This commit is contained in:
@@ -2,21 +2,24 @@
|
||||
#define RAGDOLL_DEMO_H
|
||||
|
||||
|
||||
#include "../../Demos/CommonRigidBodySetup.h"
|
||||
#include "../BasicDemo/BasicDemo.h"
|
||||
|
||||
class RagDollDemo : public BasicDemo
|
||||
struct BulletDemoInterface;
|
||||
struct SimpleOpenGL3App;
|
||||
|
||||
class RagDollSetup : public CommonRigidBodySetup
|
||||
{
|
||||
public:
|
||||
|
||||
RagDollDemo(SimpleOpenGL3App* app);
|
||||
virtual ~RagDollDemo();
|
||||
|
||||
static BulletDemoInterface* MyCreateFunc(SimpleOpenGL3App* app)
|
||||
{
|
||||
return new RagDollDemo(app);
|
||||
CommonPhysicsSetup* physicsSetup = new RagDollSetup();
|
||||
return new BasicDemo(app, physicsSetup);
|
||||
|
||||
}
|
||||
|
||||
void initPhysics();
|
||||
void initPhysics(GraphicsPhysicsBridge& gfxBridge);
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user