Browse Source

bullet: Add missing includes and declarations for non-composite build

Sam Edwards 7 years ago
parent
commit
8c09477e37
49 changed files with 128 additions and 4 deletions
  1. 9 1
      panda/src/bullet/bulletBodyNode.cxx
  2. 2 2
      panda/src/bullet/bulletBodyNode.h
  3. 3 0
      panda/src/bullet/bulletBoxShape.cxx
  4. 2 0
      panda/src/bullet/bulletCapsuleShape.cxx
  5. 4 0
      panda/src/bullet/bulletCharacterControllerNode.cxx
  6. 4 0
      panda/src/bullet/bulletConeShape.cxx
  7. 2 0
      panda/src/bullet/bulletConeTwistConstraint.cxx
  8. 2 0
      panda/src/bullet/bulletConstraint.cxx
  9. 2 0
      panda/src/bullet/bulletConvexHullShape.cxx
  10. 1 0
      panda/src/bullet/bulletConvexHullShape.h
  11. 4 0
      panda/src/bullet/bulletConvexPointCloudShape.cxx
  12. 2 0
      panda/src/bullet/bulletCylinderShape.cxx
  13. 4 0
      panda/src/bullet/bulletDebugNode.cxx
  14. 5 0
      panda/src/bullet/bulletDebugNode.h
  15. 2 0
      panda/src/bullet/bulletGenericConstraint.cxx
  16. 2 0
      panda/src/bullet/bulletGhostNode.cxx
  17. 4 0
      panda/src/bullet/bulletHeightfieldShape.cxx
  18. 4 0
      panda/src/bullet/bulletHelper.cxx
  19. 2 0
      panda/src/bullet/bulletHelper.h
  20. 2 0
      panda/src/bullet/bulletHingeConstraint.cxx
  21. 2 0
      panda/src/bullet/bulletManifoldPoint.cxx
  22. 2 0
      panda/src/bullet/bulletMinkowskiSumShape.cxx
  23. 2 0
      panda/src/bullet/bulletMultiSphereShape.cxx
  24. 1 0
      panda/src/bullet/bulletMultiSphereShape.h
  25. 2 0
      panda/src/bullet/bulletPersistentManifold.cxx
  26. 2 0
      panda/src/bullet/bulletPlaneShape.cxx
  27. 4 0
      panda/src/bullet/bulletRigidBodyNode.cxx
  28. 2 0
      panda/src/bullet/bulletRotationalLimitMotor.cxx
  29. 3 0
      panda/src/bullet/bulletShape.cxx
  30. 1 1
      panda/src/bullet/bulletShape.h
  31. 2 0
      panda/src/bullet/bulletSliderConstraint.cxx
  32. 4 0
      panda/src/bullet/bulletSoftBodyConfig.cxx
  33. 2 0
      panda/src/bullet/bulletSoftBodyConfig.h
  34. 2 0
      panda/src/bullet/bulletSoftBodyMaterial.cxx
  35. 2 0
      panda/src/bullet/bulletSoftBodyMaterial.h
  36. 2 0
      panda/src/bullet/bulletSoftBodyNode.cxx
  37. 1 0
      panda/src/bullet/bulletSoftBodyNode.h
  38. 2 0
      panda/src/bullet/bulletSoftBodyShape.cxx
  39. 2 0
      panda/src/bullet/bulletSoftBodyWorldInfo.cxx
  40. 2 0
      panda/src/bullet/bulletSphereShape.cxx
  41. 2 0
      panda/src/bullet/bulletSphericalConstraint.cxx
  42. 2 0
      panda/src/bullet/bulletTranslationalLimitMotor.cxx
  43. 3 0
      panda/src/bullet/bulletTriangleMesh.cxx
  44. 4 0
      panda/src/bullet/bulletTriangleMeshShape.cxx
  45. 1 0
      panda/src/bullet/bulletTriangleMeshShape.h
  46. 3 0
      panda/src/bullet/bulletVehicle.cxx
  47. 2 0
      panda/src/bullet/bulletWheel.cxx
  48. 5 0
      panda/src/bullet/bulletWorld.cxx
  49. 2 0
      panda/src/bullet/bullet_utils.h

+ 9 - 1
panda/src/bullet/bulletBodyNode.cxx

@@ -12,9 +12,17 @@
  */
 
 #include "bulletBodyNode.h"
+
+#include "config_bullet.h"
+
 #include "bulletShape.h"
-#include "bulletWorld.h"
+#include "bulletBoxShape.h"
+#include "bulletCapsuleShape.h"
+#include "bulletPlaneShape.h"
+#include "bulletSphereShape.h"
+#include "bulletTriangleMeshShape.h"
 #include "bulletTriangleMesh.h"
+#include "bulletWorld.h"
 
 #include "collisionBox.h"
 #include "collisionPlane.h"

+ 2 - 2
panda/src/bullet/bulletBodyNode.h

@@ -16,6 +16,8 @@
 
 #include "pandabase.h"
 
+#include "bulletShape.h"
+
 #include "bullet_includes.h"
 #include "bullet_utils.h"
 
@@ -25,8 +27,6 @@
 #include "transformState.h"
 #include "boundingSphere.h"
 
-class BulletShape;
-
 /**
  *
  */

+ 3 - 0
panda/src/bullet/bulletBoxShape.cxx

@@ -12,6 +12,9 @@
  */
 
 #include "bulletBoxShape.h"
+
+#include "bulletWorld.h"
+
 #include "bullet_utils.h"
 
 TypeHandle BulletBoxShape::_type_handle;

+ 2 - 0
panda/src/bullet/bulletCapsuleShape.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletCapsuleShape.h"
 
+#include "config_bullet.h"
+
 TypeHandle BulletCapsuleShape::_type_handle;
 
 /**

+ 4 - 0
panda/src/bullet/bulletCharacterControllerNode.cxx

@@ -13,6 +13,10 @@
 
 #include "bulletCharacterControllerNode.h"
 
+#include "config_bullet.h"
+
+#include "bulletWorld.h"
+
 #if BT_BULLET_VERSION >= 285
 static const btVector3 up_vectors[3] = {btVector3(1.0f, 0.0f, 0.0f), btVector3(0.0f, 1.0f, 0.0f), btVector3(0.0f, 0.0f, 1.0f)};
 #endif

+ 4 - 0
panda/src/bullet/bulletConeShape.cxx

@@ -13,6 +13,10 @@
 
 #include "bulletConeShape.h"
 
+#include "config_bullet.h"
+
+#include "bulletWorld.h"
+
 TypeHandle BulletConeShape::_type_handle;
 
 /**

+ 2 - 0
panda/src/bullet/bulletConeTwistConstraint.cxx

@@ -12,7 +12,9 @@
  */
 
 #include "bulletConeTwistConstraint.h"
+
 #include "bulletRigidBodyNode.h"
+#include "bulletWorld.h"
 
 #include "deg_2_rad.h"
 

+ 2 - 0
panda/src/bullet/bulletConstraint.cxx

@@ -12,7 +12,9 @@
  */
 
 #include "bulletConstraint.h"
+
 #include "bulletRigidBodyNode.h"
+#include "bulletShape.h"
 
 TypeHandle BulletConstraint::_type_handle;
 

+ 2 - 0
panda/src/bullet/bulletConvexHullShape.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletConvexHullShape.h"
 
+#include "bulletWorld.h"
+
 #include "nodePathCollection.h"
 #include "geomNode.h"
 #include "geomVertexReader.h"

+ 1 - 0
panda/src/bullet/bulletConvexHullShape.h

@@ -22,6 +22,7 @@
 #include "luse.h"
 #include "geom.h"
 #include "pta_LVecBase3.h"
+#include "transformState.h"
 
 /**
  *

+ 4 - 0
panda/src/bullet/bulletConvexPointCloudShape.cxx

@@ -13,6 +13,10 @@
 
 #include "bulletConvexPointCloudShape.h"
 
+#include "bulletWorld.h"
+
+#include "bullet_utils.h"
+
 #include "geomVertexReader.h"
 
 TypeHandle BulletConvexPointCloudShape::_type_handle;

+ 2 - 0
panda/src/bullet/bulletCylinderShape.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletCylinderShape.h"
 
+#include "config_bullet.h"
+
 using std::endl;
 
 TypeHandle BulletCylinderShape::_type_handle;

+ 4 - 0
panda/src/bullet/bulletDebugNode.cxx

@@ -13,6 +13,10 @@
 
 #include "bulletDebugNode.h"
 
+#include "config_bullet.h"
+
+#include "bulletWorld.h"
+
 #include "cullHandler.h"
 #include "cullTraverser.h"
 #include "cullableObject.h"

+ 5 - 0
panda/src/bullet/bulletDebugNode.h

@@ -16,8 +16,13 @@
 
 #include "pandabase.h"
 
+#include "pandaNode.h"
+
 #include "bullet_includes.h"
 
+class CullTraverser;
+class CullTraverserData;
+
 /**
  *
  */

+ 2 - 0
panda/src/bullet/bulletGenericConstraint.cxx

@@ -12,7 +12,9 @@
  */
 
 #include "bulletGenericConstraint.h"
+
 #include "bulletRigidBodyNode.h"
+#include "bulletWorld.h"
 
 TypeHandle BulletGenericConstraint::_type_handle;
 

+ 2 - 0
panda/src/bullet/bulletGhostNode.cxx

@@ -12,7 +12,9 @@
  */
 
 #include "bulletGhostNode.h"
+
 #include "bulletShape.h"
+#include "bulletWorld.h"
 
 TypeHandle BulletGhostNode::_type_handle;
 

+ 4 - 0
panda/src/bullet/bulletHeightfieldShape.cxx

@@ -13,6 +13,10 @@
 
 #include "bulletHeightfieldShape.h"
 
+#include "config_bullet.h"
+
+#include "bulletWorld.h"
+
 TypeHandle BulletHeightfieldShape::_type_handle;
 
 /**

+ 4 - 0
panda/src/bullet/bulletHelper.cxx

@@ -12,13 +12,17 @@
  */
 
 #include "bulletHelper.h"
+
 #include "bulletRigidBodyNode.h"
+#include "bulletSoftBodyNode.h"
 #include "bulletGhostNode.h"
 
 #include "geomLines.h"
 #include "geomTriangles.h"
 #include "geomVertexRewriter.h"
 
+#include "bullet_utils.h"
+
 PT(InternalName) BulletHelper::_sb_index;
 PT(InternalName) BulletHelper::_sb_flip;
 

+ 2 - 0
panda/src/bullet/bulletHelper.h

@@ -23,6 +23,8 @@
 #include "nodePath.h"
 #include "nodePathCollection.h"
 
+class BulletSoftBodyNode;
+
 /**
  *
  */

+ 2 - 0
panda/src/bullet/bulletHingeConstraint.cxx

@@ -12,7 +12,9 @@
  */
 
 #include "bulletHingeConstraint.h"
+
 #include "bulletRigidBodyNode.h"
+#include "bulletWorld.h"
 
 #include "deg_2_rad.h"
 

+ 2 - 0
panda/src/bullet/bulletManifoldPoint.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletManifoldPoint.h"
 
+#include "bulletWorld.h"
+
 /**
  *
  */

+ 2 - 0
panda/src/bullet/bulletMinkowskiSumShape.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletMinkowskiSumShape.h"
 
+#include "bulletWorld.h"
+
 TypeHandle BulletMinkowskiSumShape::_type_handle;
 
 /**

+ 2 - 0
panda/src/bullet/bulletMultiSphereShape.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletMultiSphereShape.h"
 
+#include "bulletWorld.h"
+
 #include "geomVertexReader.h"
 
 TypeHandle BulletMultiSphereShape::_type_handle;

+ 1 - 0
panda/src/bullet/bulletMultiSphereShape.h

@@ -19,6 +19,7 @@
 #include "bullet_includes.h"
 #include "bulletShape.h"
 
+#include "factoryParams.h"
 #include "pta_LVecBase3.h"
 #include "pta_stdfloat.h"
 

+ 2 - 0
panda/src/bullet/bulletPersistentManifold.cxx

@@ -12,7 +12,9 @@
  */
 
 #include "bulletPersistentManifold.h"
+
 #include "bulletManifoldPoint.h"
+#include "bulletWorld.h"
 
 /**
  *

+ 2 - 0
panda/src/bullet/bulletPlaneShape.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletPlaneShape.h"
 
+#include "bulletWorld.h"
+
 TypeHandle BulletPlaneShape::_type_handle;
 
 /**

+ 4 - 0
panda/src/bullet/bulletRigidBodyNode.cxx

@@ -12,7 +12,11 @@
  */
 
 #include "bulletRigidBodyNode.h"
+
+#include "config_bullet.h"
+
 #include "bulletShape.h"
+#include "bulletWorld.h"
 
 TypeHandle BulletRigidBodyNode::_type_handle;
 

+ 2 - 0
panda/src/bullet/bulletRotationalLimitMotor.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletRotationalLimitMotor.h"
 
+#include "bulletWorld.h"
+
 /**
  *
  */

+ 3 - 0
panda/src/bullet/bulletShape.cxx

@@ -12,6 +12,9 @@
  */
 
 #include "bulletShape.h"
+
+#include "bulletWorld.h"
+
 #include "bullet_utils.h"
 
 TypeHandle BulletShape::_type_handle;

+ 1 - 1
panda/src/bullet/bulletShape.h

@@ -18,7 +18,7 @@
 
 #include "bullet_includes.h"
 
-#include "typedReferenceCount.h"
+#include "typedWritableReferenceCount.h"
 #include "boundingSphere.h"
 
 /**

+ 2 - 0
panda/src/bullet/bulletSliderConstraint.cxx

@@ -12,7 +12,9 @@
  */
 
 #include "bulletSliderConstraint.h"
+
 #include "bulletRigidBodyNode.h"
+#include "bulletWorld.h"
 
 #include "deg_2_rad.h"
 

+ 4 - 0
panda/src/bullet/bulletSoftBodyConfig.cxx

@@ -13,6 +13,10 @@
 
 #include "bulletSoftBodyConfig.h"
 
+#include "bulletWorld.h"
+
+#include "lightMutexHolder.h"
+
 /**
  *
  */

+ 2 - 0
panda/src/bullet/bulletSoftBodyConfig.h

@@ -18,6 +18,8 @@
 
 #include "bullet_includes.h"
 
+#include "numeric_types.h"
+
 /**
  *
  */

+ 2 - 0
panda/src/bullet/bulletSoftBodyMaterial.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletSoftBodyMaterial.h"
 
+#include "bulletWorld.h"
+
 /**
  *
  */

+ 2 - 0
panda/src/bullet/bulletSoftBodyMaterial.h

@@ -18,6 +18,8 @@
 
 #include "bullet_includes.h"
 
+#include "numeric_types.h"
+
 /**
  *
  */

+ 2 - 0
panda/src/bullet/bulletSoftBodyNode.cxx

@@ -12,12 +12,14 @@
  */
 
 #include "bulletSoftBodyNode.h"
+
 #include "bulletSoftBodyConfig.h"
 #include "bulletSoftBodyControl.h"
 #include "bulletSoftBodyMaterial.h"
 #include "bulletSoftBodyShape.h"
 #include "bulletSoftBodyWorldInfo.h"
 #include "bulletHelper.h"
+#include "bulletWorld.h"
 
 #include "geomVertexRewriter.h"
 #include "geomVertexReader.h"

+ 1 - 0
panda/src/bullet/bulletSoftBodyNode.h

@@ -29,6 +29,7 @@
 #include "nurbsSurfaceEvaluator.h"
 #include "pta_LVecBase3.h"
 
+class BulletRigidBodyNode;
 class BulletSoftBodyConfig;
 class BulletSoftBodyControl;
 class BulletSoftBodyMaterial;

+ 2 - 0
panda/src/bullet/bulletSoftBodyShape.cxx

@@ -12,7 +12,9 @@
  */
 
 #include "bulletSoftBodyShape.h"
+
 #include "bulletSoftBodyNode.h"
+#include "bulletWorld.h"
 
 TypeHandle BulletSoftBodyShape::_type_handle;
 

+ 2 - 0
panda/src/bullet/bulletSoftBodyWorldInfo.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletSoftBodyWorldInfo.h"
 
+#include "bulletWorld.h"
+
 /**
  *
  */

+ 2 - 0
panda/src/bullet/bulletSphereShape.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletSphereShape.h"
 
+#include "bulletWorld.h"
+
 TypeHandle BulletSphereShape::_type_handle;
 
 /**

+ 2 - 0
panda/src/bullet/bulletSphericalConstraint.cxx

@@ -12,7 +12,9 @@
  */
 
 #include "bulletSphericalConstraint.h"
+
 #include "bulletRigidBodyNode.h"
+#include "bulletWorld.h"
 
 TypeHandle BulletSphericalConstraint::_type_handle;
 

+ 2 - 0
panda/src/bullet/bulletTranslationalLimitMotor.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletTranslationalLimitMotor.h"
 
+#include "bulletWorld.h"
+
 /**
  *
  */

+ 3 - 0
panda/src/bullet/bulletTriangleMesh.cxx

@@ -13,7 +13,10 @@
 
 #include "bulletTriangleMesh.h"
 
+#include "bulletWorld.h"
+
 #include "pvector.h"
+#include "geomTriangles.h"
 #include "geomVertexData.h"
 #include "geomVertexReader.h"
 

+ 4 - 0
panda/src/bullet/bulletTriangleMeshShape.cxx

@@ -12,7 +12,11 @@
  */
 
 #include "bulletTriangleMeshShape.h"
+
+#include "config_bullet.h"
+
 #include "bulletTriangleMesh.h"
+#include "bulletWorld.h"
 
 #include "nodePathCollection.h"
 #include "geomNode.h"

+ 1 - 0
panda/src/bullet/bulletTriangleMeshShape.h

@@ -19,6 +19,7 @@
 #include "bullet_includes.h"
 #include "bulletShape.h"
 
+#include "factoryParams.h"
 #include "luse.h"
 
 class BulletTriangleMesh;

+ 3 - 0
panda/src/bullet/bulletVehicle.cxx

@@ -12,6 +12,9 @@
  */
 
 #include "bulletVehicle.h"
+
+#include "config_bullet.h"
+
 #include "bulletWorld.h"
 #include "bulletRigidBodyNode.h"
 #include "bulletWheel.h"

+ 2 - 0
panda/src/bullet/bulletWheel.cxx

@@ -13,6 +13,8 @@
 
 #include "bulletWheel.h"
 
+#include "bulletWorld.h"
+
 /**
  *
  */

+ 5 - 0
panda/src/bullet/bulletWorld.cxx

@@ -12,9 +12,14 @@
  */
 
 #include "bulletWorld.h"
+
+#include "config_bullet.h"
+
+#include "bulletFilterCallbackData.h"
 #include "bulletPersistentManifold.h"
 #include "bulletShape.h"
 #include "bulletSoftBodyWorldInfo.h"
+#include "bulletTickCallbackData.h"
 
 #include "collideMask.h"
 #include "lightMutexHolder.h"

+ 2 - 0
panda/src/bullet/bullet_utils.h

@@ -44,6 +44,8 @@ EXPCL_PANDABULLET CPT(TransformState) btTrans_to_TransformState(
 EXPCL_PANDABULLET btTransform TransformState_to_btTrans(
   CPT(TransformState) ts);
 
+EXPCL_PANDABULLET void get_node_transform(btTransform &trans, PandaNode *node);
+
 // UpAxis
 BEGIN_PUBLISH