added btGetVersion(), return integer without the fraction: for example 2.64 returns 264.
moved more demos into AllBulletDemos
This commit is contained in:
@@ -22,6 +22,10 @@ subject to the following restrictions:
|
||||
#include "../ConvexDecompositionDemo/ConvexDecompositionDemo.h"
|
||||
#include "../RagdollDemo/RagdollDemo.h"
|
||||
#include "../GimpactTestDemo/GimpactTestDemo.h"
|
||||
#include "../Raytracer/Raytracer.h"
|
||||
#include "../GjkConvexCastDemo/LinearConvexCastDemo.h"
|
||||
#include "../VehicleDemo/VehicleDemo.h"
|
||||
#include "../ConstraintDemo/ConstraintDemo.h"
|
||||
|
||||
|
||||
btDemoEntry g_demoEntries[] =
|
||||
@@ -33,6 +37,12 @@ btDemoEntry g_demoEntries[] =
|
||||
{"BspDemo", BspDemo::Create},
|
||||
{"ConcaveDemo",ConcaveDemo::Create},
|
||||
{"Gimpact Test", GimpactConcaveDemo::Create},
|
||||
{"Raytracer Test",Raytracer::Create},
|
||||
{"GjkConvexCast",LinearConvexCastDemo::Create},
|
||||
{"VehicleDemo",VehicleDemo::Create},
|
||||
{"ConstraintDemo",ConstraintDemo::Create},
|
||||
{0, 0}
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -11,4 +11,8 @@ FrameWorkDemo AllBulletDemos :
|
||||
../ConvexDecompositionDemo/ConvexDecompositionDemo.cpp
|
||||
../RagdollDemo/RagdollDemo.cpp
|
||||
../GimpactTestDemo/GimpactTestDemo.cpp
|
||||
../Raytracer/Raytracer.cpp
|
||||
../GjkConvexCastDemo/LinearConvexCastDemo.cpp
|
||||
../VehicleDemo/VehicleDemo.cpp
|
||||
../ConstraintDemo/ConstraintDemo.cpp
|
||||
;
|
||||
|
||||
@@ -160,6 +160,8 @@ void MouseMotion(int x, int y)
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
|
||||
int bulletVersion = btGetVersion();
|
||||
printf("Bullet version %d\n",bulletVersion);
|
||||
|
||||
glutInit(&argc, argv);
|
||||
glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE |GLUT_DEPTH);
|
||||
|
||||
Reference in New Issue
Block a user