mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-16 06:30:05 +00:00
Added a set of empty, classless 'extern "C"' probe functions to allow '.so' loaders and application domain 'autotools' to easily and unambiguously check for the correct installation of the various bullet libraries.
eg: bulletmath_suffix="-lbulletmath" bulletcollision_suffix="-lbulletcollision" bulletdynamics_suffix="-lbulletdynamics" dnl Check bulletmath library AC_CHECK_LIB(bulletmath, btBulletMathProbe, true, AC_MSG_ERROR([there seems to be a problem with the bulletmath library])) LIBS="$bulletmath_suffix $LIBS" dnl Check bulletcollision library AC_CHECK_LIB(bulletcollision, btBulletCollisionProbe, true, AC_MSG_ERROR([there seems to be a problem with the bulletcollision library])) LIBS="$bulletcollision_suffix $LIBS" dnl Check bulletdynamics library AC_CHECK_LIB(bulletdynamics, btBulletDynamicsProbe, true, AC_MSG_ERROR([there seems to be a problem with the bulletdynamics library])) LIBS="$bulletdynamics_suffix $LIBS"
This commit is contained in:
parent
24691e8eb8
commit
208bbe7594
@ -15,6 +15,16 @@ subject to the following restrictions:
|
||||
|
||||
#include "BulletCollision/CollisionShapes/btCollisionShape.h"
|
||||
|
||||
|
||||
/*
|
||||
Make sure this dummy function never changes so that it
|
||||
can be used by probes that are checking whether the
|
||||
library is actually installed.
|
||||
*/
|
||||
extern "C" void btBulletCollisionProbe () {}
|
||||
|
||||
|
||||
|
||||
void btCollisionShape::getBoundingSphere(btVector3& center,btScalar& radius) const
|
||||
{
|
||||
btTransform tr;
|
||||
|
@ -22,6 +22,14 @@ subject to the following restrictions:
|
||||
#include "BulletDynamics/ConstraintSolver/btContactSolverInfo.h"
|
||||
|
||||
|
||||
/*
|
||||
Make sure this dummy function never changes so that it
|
||||
can be used by probes that are checking whether the
|
||||
library is actually installed.
|
||||
*/
|
||||
extern "C" void btBulletDynamicsProbe () {}
|
||||
|
||||
|
||||
|
||||
|
||||
btSimpleDynamicsWorld::btSimpleDynamicsWorld(btDispatcher* dispatcher,btOverlappingPairCache* pairCache,btConstraintSolver* constraintSolver)
|
||||
|
@ -16,6 +16,15 @@ subject to the following restrictions:
|
||||
|
||||
#include "btGeometryUtil.h"
|
||||
|
||||
|
||||
/*
|
||||
Make sure this dummy function never changes so that it
|
||||
can be used by probes that are checking whether the
|
||||
library is actually installed.
|
||||
*/
|
||||
extern "C" void btBulletMathProbe () {}
|
||||
|
||||
|
||||
bool btGeometryUtil::isPointInsidePlanes(const btAlignedObjectArray<btVector3>& planeEquations, const btVector3& point, btScalar margin)
|
||||
{
|
||||
int numbrushes = planeEquations.size();
|
||||
|
Loading…
Reference in New Issue
Block a user