moved demo files
This commit is contained in:
11
Demos/AllBulletDemos/Jamfile
Normal file
11
Demos/AllBulletDemos/Jamfile
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
SubDir TOP Demos AllBulletDemos ;
|
||||||
|
|
||||||
|
FrameWorkDemo AllBulletDemos :
|
||||||
|
[ Wildcard *.h *.cpp ]
|
||||||
|
../CcdPhysicsDemo/CcdPhysicsDemo.cpp
|
||||||
|
../BasicDemo/BasicDemo.cpp
|
||||||
|
../BspDemo/BspDemo.cpp
|
||||||
|
../BspDemo/BspConverter.cpp
|
||||||
|
../BspDemo/BspLoader.cpp
|
||||||
|
|
||||||
|
;
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "../FrameWork/Test.h"
|
#include "Test.h"
|
||||||
|
|
||||||
#include "../../../Demos/CcdPhysicsDemo/CcdPhysicsDemo.h"
|
#include "../CcdPhysicsDemo/CcdPhysicsDemo.h"
|
||||||
|
|
||||||
class CcdPhysicsTest : public Test
|
class CcdPhysicsTest : public Test
|
||||||
{
|
{
|
||||||
@@ -27,7 +27,7 @@ public:
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "../../../Demos/BspDemo/BspDemo.h"
|
#include "../BspDemo/BspDemo.h"
|
||||||
|
|
||||||
class BspDemoTest : public Test
|
class BspDemoTest : public Test
|
||||||
{
|
{
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
SubDir TOP Examples ;
|
|
||||||
|
|
||||||
SubInclude TOP Examples TestBed ;
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
SubDir TOP Examples TestBed FrameWork ;
|
|
||||||
|
|
||||||
FrameWorkDemo AllBulletDemos :
|
|
||||||
[ Wildcard *.h *.cpp ]
|
|
||||||
../../../Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp
|
|
||||||
../../../Demos/BasicDemo/BasicDemo.cpp
|
|
||||||
../../../Demos/BspDemo/BspDemo.cpp
|
|
||||||
../../../Demos/BspDemo/BspConverter.cpp
|
|
||||||
../../../Demos/BspDemo/BspLoader.cpp
|
|
||||||
|
|
||||||
;
|
|
||||||
@@ -1,63 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
#include "../FrameWork/Test.h"
|
|
||||||
|
|
||||||
#include "../../../Demos/CcdPhysicsDemo/CcdPhysicsDemo.h"
|
|
||||||
|
|
||||||
class CcdPhysicsTest : public Test
|
|
||||||
{
|
|
||||||
CcdPhysicsDemo* m_demo;
|
|
||||||
CcdPhysicsTest()
|
|
||||||
{
|
|
||||||
m_demo = new CcdPhysicsDemo();
|
|
||||||
m_demo->initPhysics();
|
|
||||||
}
|
|
||||||
virtual ~CcdPhysicsTest()
|
|
||||||
{
|
|
||||||
delete m_demo;
|
|
||||||
}
|
|
||||||
public:
|
|
||||||
void Step(const Settings* settings)
|
|
||||||
{
|
|
||||||
m_demo->clientMoveAndDisplay();
|
|
||||||
}
|
|
||||||
static Test* Create()
|
|
||||||
{
|
|
||||||
return new CcdPhysicsTest;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
#include "../../../Demos/BspDemo/BspDemo.h"
|
|
||||||
|
|
||||||
class BspDemoTest : public Test
|
|
||||||
{
|
|
||||||
BspDemo* m_demo;
|
|
||||||
|
|
||||||
BspDemoTest()
|
|
||||||
{
|
|
||||||
m_demo = new BspDemo();
|
|
||||||
m_demo->initPhysics("BspDemo.bsp");
|
|
||||||
}
|
|
||||||
virtual ~BspDemoTest()
|
|
||||||
{
|
|
||||||
delete m_demo;
|
|
||||||
}
|
|
||||||
public:
|
|
||||||
void Step(const Settings* settings)
|
|
||||||
{
|
|
||||||
m_demo->clientMoveAndDisplay();
|
|
||||||
}
|
|
||||||
static Test* Create()
|
|
||||||
{
|
|
||||||
return new BspDemoTest;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
TestEntry g_testEntries[] =
|
|
||||||
{
|
|
||||||
{"CcdPhysics Test", CcdPhysicsTest::Create},
|
|
||||||
{"BspDemo Test", BspDemoTest::Create},
|
|
||||||
{0, 0}
|
|
||||||
};
|
|
||||||
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
SubDir TOP Examples TestBed ;
|
|
||||||
|
|
||||||
if $(GLUT.AVAILABLE) = "yes"
|
|
||||||
{
|
|
||||||
# All demo apps have a lot in common, so use this rule to simply things
|
|
||||||
rule FrameWorkDemo
|
|
||||||
{
|
|
||||||
Application $(<) : $(>) : noinstall console nomanifest ;
|
|
||||||
LinkWith $(<) : bulletopenglsupport bulletdynamics bulletcollision bulletmath glui ;
|
|
||||||
CFlags $(<) :
|
|
||||||
[ FIncludes $(TOP)/Extras ]
|
|
||||||
[ FIncludes $(TOP)/Demos/OpenGL ]
|
|
||||||
;
|
|
||||||
MsvcIncDirs $(<) :
|
|
||||||
"../../Extras"
|
|
||||||
"../../src"
|
|
||||||
"../../Demos/OpenGL"
|
|
||||||
;
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
SubInclude TOP Examples TestBed FrameWork ;
|
|
||||||
@@ -1,25 +0,0 @@
|
|||||||
SubDir TOP Examples TestBed Tests ;
|
|
||||||
|
|
||||||
if $(GLUT.AVAILABLE) = "yes"
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
Description Tests : "Bullet Tests" ;
|
|
||||||
Library Tests :
|
|
||||||
../../../Demos/CcdPhysicsDemo/CcdPhysicsDemo.cpp
|
|
||||||
../../../Demos/BasicDemo/BasicDemo.cpp
|
|
||||||
../../../Demos/BspDemo/BspDemo.cpp
|
|
||||||
../../../Demos/BspDemo/BspConverter.cpp
|
|
||||||
../../../Demos/BspDemo/BspLoader.cpp
|
|
||||||
[ Wildcard *.h *.cpp ]
|
|
||||||
: noinstall
|
|
||||||
;
|
|
||||||
|
|
||||||
CFlags Tests :
|
|
||||||
[ FIncludes $(TOP)/Demos/OpenGL ]
|
|
||||||
;
|
|
||||||
|
|
||||||
LibDepends Tests : bulletdynamics ;
|
|
||||||
|
|
||||||
ExternalLibs Tests : GLUT ;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user