enable Box2dDemo for Win32 app.

This commit is contained in:
erwin.coumans
2010-01-19 23:37:14 +00:00
parent 8da244b443
commit 9bcc19a98f
6 changed files with 87 additions and 17 deletions

View File

@@ -15,7 +15,14 @@ subject to the following restrictions:
#ifndef BOX2D_DEMO_H
#define BOX2D_DEMO_H
#ifdef _WINDOWS
#include "Win32DemoApplication.h"
#define PlatformDemoApplication Win32DemoApplication
#else
#include "GlutDemoApplication.h"
#define PlatformDemoApplication GlutDemoApplication
#endif
#include "LinearMath/btAlignedObjectArray.h"
class btBroadphaseInterface;
@@ -28,7 +35,7 @@ class btDefaultCollisionConfiguration;
class GL_DialogDynamicsWorld;
///Box2dDemo is good starting point for learning the code base and porting.
class Box2dDemo : public GlutDemoApplication
class Box2dDemo : public PlatformDemoApplication
{
//keep the collision shapes, for deletion/cleanup