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:
@@ -33,19 +33,14 @@ class btConstraintSolver;
|
||||
struct btCollisionAlgorithmCreateFunc;
|
||||
class btDefaultCollisionConfiguration;
|
||||
|
||||
#include "CcdPhysicsSetup.h"
|
||||
|
||||
///CcdPhysicsDemo is good starting point for learning the code base and porting.
|
||||
|
||||
class CcdPhysicsDemo : public PlatformDemoApplication
|
||||
{
|
||||
|
||||
//keep the collision shapes, for deletion/cleanup
|
||||
btAlignedObjectArray<btCollisionShape*> m_collisionShapes;
|
||||
|
||||
btBroadphaseInterface* m_broadphase;
|
||||
|
||||
btCollisionDispatcher* m_dispatcher;
|
||||
|
||||
btConstraintSolver* m_solver;
|
||||
CcdPhysicsSetup m_physicsSetup;
|
||||
|
||||
enum
|
||||
{
|
||||
@@ -54,7 +49,6 @@ class CcdPhysicsDemo : public PlatformDemoApplication
|
||||
};
|
||||
int m_ccdMode;
|
||||
|
||||
btDefaultCollisionConfiguration* m_collisionConfiguration;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user