X11OpenGLWindow: create stencil buffer for shadows in OpenGL2 mode (OpenGL3 uses shadow maps)
Add 'createCollisionObjectGraphicsObject' API for CommonPhysicsSetup Add 'pthread' dependency as workaround for NVIDIA graphics driver issue (see //See https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-319/+bug/1248642 )
This commit is contained in:
@@ -18,6 +18,14 @@
|
||||
#include "../ImportURDFDemo/ImportURDFSetup.h"
|
||||
#include "../ImportObjDemo/ImportObjSetup.h"
|
||||
#include "../ImportSTLDemo/ImportSTLSetup.h"
|
||||
#include "../../Demos/SerializeDemo/SerializeSetup.h"
|
||||
#include "../bullet2/MultiBodyDemo/TestJointTorqueSetup.h"
|
||||
|
||||
static BulletDemoInterface* TestJointTorqueCreateFunc(SimpleOpenGL3App* app)
|
||||
{
|
||||
CommonPhysicsSetup* physicsSetup = new TestJointTorqueSetup();
|
||||
return new BasicDemo(app, physicsSetup);
|
||||
}
|
||||
|
||||
static BulletDemoInterface* LuaDemoCreateFunc(SimpleOpenGL3App* app)
|
||||
{
|
||||
@@ -36,7 +44,11 @@ static BulletDemoInterface* MyKinematicObjectCreateFunc(SimpleOpenGL3App* app)
|
||||
CommonPhysicsSetup* physicsSetup = new KinematicObjectSetup();
|
||||
return new BasicDemo(app, physicsSetup);
|
||||
}
|
||||
|
||||
static BulletDemoInterface* MySerializeCreateFunc(SimpleOpenGL3App* app)
|
||||
{
|
||||
CommonPhysicsSetup* physicsSetup = new SerializeSetup();
|
||||
return new BasicDemo(app, physicsSetup);
|
||||
}
|
||||
static BulletDemoInterface* MyConstraintCreateFunc(SimpleOpenGL3App* app)
|
||||
{
|
||||
CommonPhysicsSetup* physicsSetup = new ConstraintPhysicsSetup();
|
||||
@@ -70,7 +82,7 @@ struct BulletDemoEntry
|
||||
|
||||
static BulletDemoEntry allDemos[]=
|
||||
{
|
||||
|
||||
|
||||
//{"emptydemo",EmptyBulletDemo::MyCreateFunc},
|
||||
{0,"API Demos", 0},
|
||||
|
||||
@@ -82,10 +94,11 @@ static BulletDemoEntry allDemos[]=
|
||||
|
||||
{0,"File Formats", 0},
|
||||
//@todo(erwincoumans) { 1, "bullet", MyImportSTLCreateFunc},
|
||||
{ 1, ".bullet",MySerializeCreateFunc},
|
||||
{ 1, "Wavefront Obj", MyImportObjCreateFunc},
|
||||
{ 1, "URDF", MyImportUrdfCreateFunc },
|
||||
{ 1, "STL", MyImportSTLCreateFunc},
|
||||
|
||||
|
||||
/* {1,"ChainDemo",ChainDemo::MyCreateFunc},
|
||||
// {0, "Stress tests", 0 },
|
||||
|
||||
@@ -95,13 +108,15 @@ static BulletDemoEntry allDemos[]=
|
||||
{1,"LemkeHingeDemo",HingeDemo::LemkeCreateFunc},
|
||||
{1,"InertiaHingeDemo",HingeDemo::InertiaCreateFunc},
|
||||
{1,"ABMHingeDemo",HingeDemo::FeatherstoneCreateFunc},
|
||||
|
||||
|
||||
{1,"Ragdoll",RagDollDemo::MyCreateFunc},
|
||||
*/
|
||||
{ 0, "Multibody" ,0},
|
||||
{1,"MultiBody1",FeatherstoneDemo1::MyCreateFunc},
|
||||
// {"MultiBody2",FeatherstoneDemo2::MyCreateFunc},
|
||||
{1,"MultiDofDemo",MultiDofDemo::MyCreateFunc},
|
||||
{1,"TestJointTorque",TestJointTorqueCreateFunc},
|
||||
|
||||
|
||||
};
|
||||
|
||||
|
||||
@@ -44,12 +44,21 @@
|
||||
"../bullet2/BasicDemo/Bullet2RigidBodyDemo.h",
|
||||
"../bullet2/LuaDemo/LuaPhysicsSetup.cpp",
|
||||
"../bullet2/LuaDemo/LuaPhysicsSetup.h",
|
||||
"../bullet2/MultiBodyDemo/TestJointTorqueSetup.cpp",
|
||||
"../bullet2/MultiBodyDemo/TestJointTorqueSetup.h",
|
||||
-- "../DifferentialGearDemo/DifferentialGearSetup.cpp",
|
||||
-- "../DifferentialGearDemo/DifferentialGearSetup.h",
|
||||
"../../Demos/BasicDemo/BasicDemoPhysicsSetup.cpp",
|
||||
"../../Demos/BasicDemo/BasicDemoPhysicsSetup.h",
|
||||
"../../Demos/CcdPhysicsDemo/CcdPhysicsSetup.cpp",
|
||||
"../../Demos/CcdPhysicsDemo/CcdPhysicsSetup.h",
|
||||
"../../Demos/SerializeDemo/SerializeSetup.cpp",
|
||||
"../../Extras/Serialize/BulletFileLoader/bChunk.cpp",
|
||||
"../../Extras/Serialize/BulletFileLoader/bDNA.cpp",
|
||||
"../../Extras/Serialize/BulletFileLoader/bFile.cpp",
|
||||
"../../Extras/Serialize/BulletFileLoader/btBulletFile.cpp",
|
||||
"../../Extras/Serialize/BulletWorldImporter/btBulletWorldImporter.cpp",
|
||||
"../../Extras/Serialize/BulletWorldImporter/btWorldImporter.cpp",
|
||||
"../bullet2/ConstraintDemo/ConstraintPhysicsSetup.cpp",
|
||||
"../bullet2/ConstraintDemo/ConstraintPhysicsSetup.h",
|
||||
"../ImportURDFDemo/ImportURDFSetup.cpp",
|
||||
|
||||
Reference in New Issue
Block a user