ソースを参照

Moving platform-specific defines from buildfiles to code.

enn0x 16 年 前
コミット
e1665c7abb
100 ファイル変更146 行追加278 行削除
  1. 0 5
      makepanda/makepanda.py
  2. 0 2
      panda/metalibs/pandaphysx/Sources.pp
  3. 0 19
      panda/src/physx/NoMinMax.h
  4. 0 2
      panda/src/physx/Sources.pp
  5. 1 3
      panda/src/physx/physxActor.h
  6. 1 2
      panda/src/physx/physxActorDesc.h
  7. 1 3
      panda/src/physx/physxBodyDesc.h
  8. 1 2
      panda/src/physx/physxBounds3.h
  9. 1 0
      panda/src/physx/physxBox.h
  10. 1 2
      panda/src/physx/physxBoxController.h
  11. 1 2
      panda/src/physx/physxBoxControllerDesc.h
  12. 1 3
      panda/src/physx/physxBoxForceFieldShape.h
  13. 1 3
      panda/src/physx/physxBoxForceFieldShapeDesc.h
  14. 1 3
      panda/src/physx/physxBoxShape.h
  15. 1 3
      panda/src/physx/physxBoxShapeDesc.h
  16. 1 2
      panda/src/physx/physxCapsuleController.h
  17. 1 2
      panda/src/physx/physxCapsuleControllerDesc.h
  18. 1 3
      panda/src/physx/physxCapsuleForceFieldShape.h
  19. 1 3
      panda/src/physx/physxCapsuleForceFieldShapeDesc.h
  20. 1 3
      panda/src/physx/physxCapsuleShape.h
  21. 1 3
      panda/src/physx/physxCapsuleShapeDesc.h
  22. 1 3
      panda/src/physx/physxContactReport.h
  23. 1 2
      panda/src/physx/physxController.h
  24. 1 1
      panda/src/physx/physxControllerDesc.h
  25. 1 1
      panda/src/physx/physxControllerReport.h
  26. 1 3
      panda/src/physx/physxConvexForceFieldShape.h
  27. 1 3
      panda/src/physx/physxConvexForceFieldShapeDesc.h
  28. 1 3
      panda/src/physx/physxConvexMesh.h
  29. 1 2
      panda/src/physx/physxConvexMeshDesc.h
  30. 1 3
      panda/src/physx/physxConvexShape.h
  31. 1 3
      panda/src/physx/physxConvexShapeDesc.h
  32. 1 3
      panda/src/physx/physxCylindricalJoint.h
  33. 1 3
      panda/src/physx/physxCylindricalJointDesc.h
  34. 1 3
      panda/src/physx/physxD6Joint.h
  35. 1 3
      panda/src/physx/physxD6JointDesc.h
  36. 1 2
      panda/src/physx/physxDebugGeomNode.h
  37. 1 3
      panda/src/physx/physxDistanceJoint.h
  38. 1 3
      panda/src/physx/physxDistanceJointDesc.h
  39. 1 2
      panda/src/physx/physxEnums.h
  40. 1 2
      panda/src/physx/physxFileStream.h
  41. 1 3
      panda/src/physx/physxFixedJoint.h
  42. 1 3
      panda/src/physx/physxFixedJointDesc.h
  43. 1 3
      panda/src/physx/physxForceField.h
  44. 1 3
      panda/src/physx/physxForceFieldDesc.h
  45. 1 3
      panda/src/physx/physxForceFieldShape.h
  46. 1 2
      panda/src/physx/physxForceFieldShapeDesc.h
  47. 1 2
      panda/src/physx/physxForceFieldShapeGroup.h
  48. 1 3
      panda/src/physx/physxForceFieldShapeGroupDesc.h
  49. 1 2
      panda/src/physx/physxGroupsMask.h
  50. 1 3
      panda/src/physx/physxHeightField.h
  51. 1 2
      panda/src/physx/physxHeightFieldDesc.h
  52. 1 3
      panda/src/physx/physxHeightFieldShape.h
  53. 1 3
      panda/src/physx/physxHeightFieldShapeDesc.h
  54. 1 3
      panda/src/physx/physxJoint.h
  55. 1 3
      panda/src/physx/physxJointDesc.h
  56. 1 3
      panda/src/physx/physxJointDriveDesc.h
  57. 1 2
      panda/src/physx/physxJointLimitDesc.h
  58. 1 2
      panda/src/physx/physxJointLimitSoftDesc.h
  59. 1 3
      panda/src/physx/physxKitchen.h
  60. 1 4
      panda/src/physx/physxManager.h
  61. 1 2
      panda/src/physx/physxMask.h
  62. 1 3
      panda/src/physx/physxMaterial.h
  63. 1 3
      panda/src/physx/physxMaterialDesc.h
  64. 1 2
      panda/src/physx/physxMemoryReadBuffer.h
  65. 1 2
      panda/src/physx/physxMemoryWriteBuffer.h
  66. 1 2
      panda/src/physx/physxMeshPool.h
  67. 1 2
      panda/src/physx/physxMotorDesc.h
  68. 1 0
      panda/src/physx/physxOverlapReport.h
  69. 1 3
      panda/src/physx/physxPlaneShape.h
  70. 1 2
      panda/src/physx/physxPlaneShapeDesc.h
  71. 1 3
      panda/src/physx/physxPointInPlaneJoint.h
  72. 1 3
      panda/src/physx/physxPointInPlaneJointDesc.h
  73. 1 3
      panda/src/physx/physxPointOnLineJoint.h
  74. 1 3
      panda/src/physx/physxPointOnLineJointDesc.h
  75. 1 3
      panda/src/physx/physxPrismaticJoint.h
  76. 1 3
      panda/src/physx/physxPrismaticJointDesc.h
  77. 1 3
      panda/src/physx/physxPulleyJoint.h
  78. 1 3
      panda/src/physx/physxPulleyJointDesc.h
  79. 1 3
      panda/src/physx/physxRevoluteJoint.h
  80. 1 3
      panda/src/physx/physxRevoluteJointDesc.h
  81. 1 4
      panda/src/physx/physxScene.h
  82. 1 3
      panda/src/physx/physxSceneDesc.h
  83. 1 2
      panda/src/physx/physxSceneStats2.h
  84. 1 3
      panda/src/physx/physxShape.h
  85. 1 3
      panda/src/physx/physxShapeDesc.h
  86. 1 3
      panda/src/physx/physxSphereForceFieldShape.h
  87. 1 3
      panda/src/physx/physxSphereForceFieldShapeDesc.h
  88. 1 3
      panda/src/physx/physxSphereShape.h
  89. 1 3
      panda/src/physx/physxSphereShapeDesc.h
  90. 1 3
      panda/src/physx/physxSphericalJoint.h
  91. 1 3
      panda/src/physx/physxSphericalJointDesc.h
  92. 1 2
      panda/src/physx/physxSpringDesc.h
  93. 1 3
      panda/src/physx/physxTriangleMesh.h
  94. 1 2
      panda/src/physx/physxTriangleMeshDesc.h
  95. 1 3
      panda/src/physx/physxTriangleMeshShape.h
  96. 1 3
      panda/src/physx/physxTriangleMeshShapeDesc.h
  97. 1 2
      panda/src/physx/physxTriggerReport.h
  98. 1 3
      panda/src/physx/physxWheelShape.h
  99. 1 3
      panda/src/physx/physxWheelShapeDesc.h
  100. 51 0
      panda/src/physx/physx_includes.h

+ 0 - 5
makepanda/makepanda.py

@@ -413,7 +413,6 @@ if (COMPILER=="MSVC"):
             LibName(pkg, SDK[pkg] +  '/lib/paramblk2.lib')
             LibName(pkg, SDK[pkg] +  '/lib/paramblk2.lib')
     if (PkgSkip("PHYSX")==0):
     if (PkgSkip("PHYSX")==0):
         DefSymbol("PHYSX", SDK["PHYSXVERSION"], "1")
         DefSymbol("PHYSX", SDK["PHYSXVERSION"], "1")
-        DefSymbol("PHYSX", "NX32", "1")
         LibName("PHYSX",      SDK["PHYSX"] + "/lib/Win32/PhysXLoader.lib")
         LibName("PHYSX",      SDK["PHYSX"] + "/lib/Win32/PhysXLoader.lib")
         LibName("PHYSX",      SDK["PHYSX"] + "/lib/Win32/NxCharacter.lib")
         LibName("PHYSX",      SDK["PHYSX"] + "/lib/Win32/NxCharacter.lib")
         IncDirectory("PHYSX", SDK["PHYSX"] + "/Physics/include")
         IncDirectory("PHYSX", SDK["PHYSX"] + "/Physics/include")
@@ -548,10 +547,6 @@ if (COMPILER=="LINUX"):
                 LibName(pkg, "-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
                 LibName(pkg, "-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib")
     if (PkgSkip("PHYSX")==0):
     if (PkgSkip("PHYSX")==0):
         DefSymbol("PHYSX", SDK["PHYSXVERSION"], "1")
         DefSymbol("PHYSX", SDK["PHYSXVERSION"], "1")
-        DefSymbol("PHYSX", "LINUX", "1")
-        DefSymbol("PHYSX", "CORELIB", "1")
-        DefSymbol("PHYSX", "NX_DISABLE_FLUIDS", "1")
-        DefSymbol("PHYSX", "NX32", "1")
         IncDirectory("PHYSX", SDK["PHYSX"] + "/Physics/include")
         IncDirectory("PHYSX", SDK["PHYSX"] + "/Physics/include")
         IncDirectory("PHYSX", SDK["PHYSX"] + "/PhysXLoader/include")
         IncDirectory("PHYSX", SDK["PHYSX"] + "/PhysXLoader/include")
         IncDirectory("PHYSX", SDK["PHYSX"] + "/NxCharacter/include")
         IncDirectory("PHYSX", SDK["PHYSX"] + "/NxCharacter/include")

+ 0 - 2
panda/metalibs/pandaphysx/Sources.pp

@@ -8,8 +8,6 @@
 #define BUILD_DIRECTORY $[HAVE_PHYSX]
 #define BUILD_DIRECTORY $[HAVE_PHYSX]
 #define BUILDING_DLL BUILDING_PANDAPHYSX
 #define BUILDING_DLL BUILDING_PANDAPHYSX
 
 
-#define EXTRA_CDEFS NX32 $[if $[eq $[PLATFORM], Linux], LINUX CORELIB NX_DISABLE_FLUIDS]
-
 #define COMPONENT_LIBS physx
 #define COMPONENT_LIBS physx
 #define LOCAL_LIBS linmath putil express
 #define LOCAL_LIBS linmath putil express
 #define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
 #define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \

+ 0 - 19
panda/src/physx/NoMinMax.h

@@ -1,19 +0,0 @@
-// Filename: NoMinMax.h
-// Created by:  pratt (26Apr2006)
-//
-////////////////////////////////////////////////////////////////////
-//
-// PANDA 3D SOFTWARE
-// Copyright (c) Carnegie Mellon University.  All rights reserved.
-//
-// All use of this software is subject to the terms of the revised BSD
-// license.  You should have received a copy of this license along
-// with this source code in a file named "LICENSE."
-//
-////////////////////////////////////////////////////////////////////
-
-// This file exists explicitly for the purpose of undefining min and max
-// before NxPhysics.h is included in libphysx_igate.cxx
-
-#undef min
-#undef max

+ 0 - 2
panda/src/physx/Sources.pp

@@ -4,8 +4,6 @@
 #define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
 #define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
                    dtoolutil:c dtoolbase:c dtool:m prc:c
                    dtoolutil:c dtoolbase:c dtool:m prc:c
 
 
-#define EXTRA_CDEFS NX32 $[if $[eq $[PLATFORM], Linux], LINUX CORELIB NX_DISABLE_FLUIDS]
-
 #begin lib_target
 #begin lib_target
   #define TARGET physx
   #define TARGET physx
   #define LOCAL_LIBS pgraph linmath grutil
   #define LOCAL_LIBS pgraph linmath grutil

+ 1 - 3
panda/src/physx/physxActor.h

@@ -25,9 +25,7 @@
 #include "physxObject.h"
 #include "physxObject.h"
 #include "physxObjectCollection.h"
 #include "physxObjectCollection.h"
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxController;
 class PhysxController;
 class PhysxScene;
 class PhysxScene;

+ 1 - 2
panda/src/physx/physxActorDesc.h

@@ -19,8 +19,7 @@
 #include "lpoint3.h"
 #include "lpoint3.h"
 #include "lmatrix.h"
 #include "lmatrix.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxBodyDesc;
 class PhysxBodyDesc;
 class PhysxShapeDesc;
 class PhysxShapeDesc;

+ 1 - 3
panda/src/physx/physxBodyDesc.h

@@ -20,9 +20,7 @@
 #include "lmatrix.h"
 #include "lmatrix.h"
 
 
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxBodyDesc
 //       Class : PhysxBodyDesc

+ 1 - 2
panda/src/physx/physxBounds3.h

@@ -19,8 +19,7 @@
 #include "luse.h"
 #include "luse.h"
 
 
 #include "config_physx.h"
 #include "config_physx.h"
-
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxBounds3
 //       Class : PhysxBounds3

+ 1 - 0
panda/src/physx/physxBox.h

@@ -19,6 +19,7 @@
 #include "luse.h"
 #include "luse.h"
 
 
 #include "config_physx.h"
 #include "config_physx.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxBox
 //       Class : PhysxBox

+ 1 - 2
panda/src/physx/physxBoxController.h

@@ -19,8 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxController.h"
 #include "physxController.h"
-
-#include "NxBoxController.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxBoxController
 //       Class : PhysxBoxController

+ 1 - 2
panda/src/physx/physxBoxControllerDesc.h

@@ -19,8 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxControllerDesc.h"
 #include "physxControllerDesc.h"
-
-#include "NxBoxController.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxBoxControllerDesc
 //       Class : PhysxBoxControllerDesc

+ 1 - 3
panda/src/physx/physxBoxForceFieldShape.h

@@ -19,9 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxForceFieldShape.h"
 #include "physxForceFieldShape.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxBoxForceFieldShapeDesc;
 class PhysxBoxForceFieldShapeDesc;
 
 

+ 1 - 3
panda/src/physx/physxBoxForceFieldShapeDesc.h

@@ -19,9 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxForceFieldShapeDesc.h"
 #include "physxForceFieldShapeDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxBoxForceFieldShapeDesc
 //       Class : PhysxBoxForceFieldShapeDesc

+ 1 - 3
panda/src/physx/physxBoxShape.h

@@ -19,9 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxShape.h"
 #include "physxShape.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxBoxShapeDesc;
 class PhysxBoxShapeDesc;
 
 

+ 1 - 3
panda/src/physx/physxBoxShapeDesc.h

@@ -19,9 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxShapeDesc.h"
 #include "physxShapeDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxBoxShapeDesc
 //       Class : PhysxBoxShapeDesc

+ 1 - 2
panda/src/physx/physxCapsuleController.h

@@ -19,8 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxController.h"
 #include "physxController.h"
-
-#include "NxCapsuleController.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxCapsuleController
 //       Class : PhysxCapsuleController

+ 1 - 2
panda/src/physx/physxCapsuleControllerDesc.h

@@ -18,8 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxControllerDesc.h"
 #include "physxControllerDesc.h"
-
-#include "NxCapsuleController.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxCapsuleControllerDesc
 //       Class : PhysxCapsuleControllerDesc

+ 1 - 3
panda/src/physx/physxCapsuleForceFieldShape.h

@@ -19,9 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxForceFieldShape.h"
 #include "physxForceFieldShape.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxCapsuleForceFieldShapeDesc;
 class PhysxCapsuleForceFieldShapeDesc;
 
 

+ 1 - 3
panda/src/physx/physxCapsuleForceFieldShapeDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxForceFieldShapeDesc.h"
 #include "physxForceFieldShapeDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxCapsuleForceFieldShapeDesc
 //       Class : PhysxCapsuleForceFieldShapeDesc

+ 1 - 3
panda/src/physx/physxCapsuleShape.h

@@ -19,9 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxShape.h"
 #include "physxShape.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxCapsuleShapeDesc;
 class PhysxCapsuleShapeDesc;
 
 

+ 1 - 3
panda/src/physx/physxCapsuleShapeDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxShapeDesc.h"
 #include "physxShapeDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxCapsuleShapeDesc
 //       Class : PhysxCapsuleShapeDesc

+ 1 - 3
panda/src/physx/physxContactReport.h

@@ -17,9 +17,7 @@
 
 
 #include "pandabase.h"
 #include "pandabase.h"
 #include "pStatCollector.h"
 #include "pStatCollector.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxContactReport
 //       Class : PhysxContactReport

+ 1 - 2
panda/src/physx/physxController.h

@@ -23,8 +23,7 @@
 
 
 #include "physxObject.h"
 #include "physxObject.h"
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NxController.h"
+#include "physx_includes.h"
 
 
 class PhysxActor;
 class PhysxActor;
 
 

+ 1 - 1
panda/src/physx/physxControllerDesc.h

@@ -18,7 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 #include "lpoint3.h"
 #include "lpoint3.h"
 
 
-#include "NxController.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxControllerDesc
 //       Class : PhysxControllerDesc

+ 1 - 1
panda/src/physx/physxControllerReport.h

@@ -18,7 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 #include "pStatCollector.h"
 #include "pStatCollector.h"
 
 
-#include "NxController.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxControllerReport
 //       Class : PhysxControllerReport

+ 1 - 3
panda/src/physx/physxConvexForceFieldShape.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxForceFieldShape.h"
 #include "physxForceFieldShape.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxConvexForceFieldShapeDesc;
 class PhysxConvexForceFieldShapeDesc;
 
 

+ 1 - 3
panda/src/physx/physxConvexForceFieldShapeDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxForceFieldShapeDesc.h"
 #include "physxForceFieldShapeDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxConvexMesh;
 class PhysxConvexMesh;
 
 

+ 1 - 3
panda/src/physx/physxConvexMesh.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxObject.h"
 #include "physxObject.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxConvexMesh
 //       Class : PhysxConvexMesh

+ 1 - 2
panda/src/physx/physxConvexMeshDesc.h

@@ -19,8 +19,7 @@
 #include "lpoint3.h"
 #include "lpoint3.h"
 #include "nodePath.h"
 #include "nodePath.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxConvexMeshDesc
 //       Class : PhysxConvexMeshDesc

+ 1 - 3
panda/src/physx/physxConvexShape.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxShape.h"
 #include "physxShape.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxConvexShapeDesc;
 class PhysxConvexShapeDesc;
 
 

+ 1 - 3
panda/src/physx/physxConvexShapeDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxShapeDesc.h"
 #include "physxShapeDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxConvexMesh;
 class PhysxConvexMesh;
 
 

+ 1 - 3
panda/src/physx/physxCylindricalJoint.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJoint.h"
 #include "physxJoint.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxCylindricalJointDesc;
 class PhysxCylindricalJointDesc;
 
 

+ 1 - 3
panda/src/physx/physxCylindricalJointDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJointDesc.h"
 #include "physxJointDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxCylindricalJointDesc
 //       Class : PhysxCylindricalJointDesc

+ 1 - 3
panda/src/physx/physxD6Joint.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJoint.h"
 #include "physxJoint.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxD6JointDesc;
 class PhysxD6JointDesc;
 
 

+ 1 - 3
panda/src/physx/physxD6JointDesc.h

@@ -21,9 +21,7 @@
 #include "lquaternion.h"
 #include "lquaternion.h"
 
 
 #include "physxJointDesc.h"
 #include "physxJointDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxJointDriveDesc;
 class PhysxJointDriveDesc;
 class PhysxJointLimitSoftDesc;
 class PhysxJointLimitSoftDesc;

+ 1 - 2
panda/src/physx/physxDebugGeomNode.h

@@ -21,8 +21,7 @@
 #include "transformState.h"
 #include "transformState.h"
 #include "lineSegs.h"
 #include "lineSegs.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxScene;
 class PhysxScene;
 
 

+ 1 - 3
panda/src/physx/physxDistanceJoint.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJoint.h"
 #include "physxJoint.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxDistanceJointDesc;
 class PhysxDistanceJointDesc;
 
 

+ 1 - 3
panda/src/physx/physxDistanceJointDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJointDesc.h"
 #include "physxJointDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxSpringDesc;
 class PhysxSpringDesc;
 
 

+ 1 - 2
panda/src/physx/physxEnums.h

@@ -17,8 +17,7 @@
 
 
 #include "pandabase.h"
 #include "pandabase.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 #ifdef CPPPARSER
 #ifdef CPPPARSER
 
 

+ 1 - 2
panda/src/physx/physxFileStream.h

@@ -17,8 +17,7 @@
 
 
 #include "pandabase.h"
 #include "pandabase.h"
 
 
-#include "NoMinMax.h"
-#include "NxStream.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxFileStream
 //       Class : PhysxFileStream

+ 1 - 3
panda/src/physx/physxFixedJoint.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJoint.h"
 #include "physxJoint.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxFixedJointDesc;
 class PhysxFixedJointDesc;
 
 

+ 1 - 3
panda/src/physx/physxFixedJointDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJointDesc.h"
 #include "physxJointDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxFixedJointDesc
 //       Class : PhysxFixedJointDesc

+ 1 - 3
panda/src/physx/physxForceField.h

@@ -19,9 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxObject.h"
 #include "physxObject.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxScene;
 class PhysxScene;
 class PhysxForceFieldDesc;
 class PhysxForceFieldDesc;

+ 1 - 3
panda/src/physx/physxForceFieldDesc.h

@@ -21,9 +21,7 @@
 #include "lmatrix.h"
 #include "lmatrix.h"
 
 
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxActor;
 class PhysxActor;
 class PhysxForceFieldShapeDesc;
 class PhysxForceFieldShapeDesc;

+ 1 - 3
panda/src/physx/physxForceFieldShape.h

@@ -23,9 +23,7 @@
 
 
 #include "physxObject.h"
 #include "physxObject.h"
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxForceField;
 class PhysxForceField;
 class PhysxForceFieldShapeGroup;
 class PhysxForceFieldShapeGroup;

+ 1 - 2
panda/src/physx/physxForceFieldShapeDesc.h

@@ -19,8 +19,7 @@
 #include "lpoint3.h"
 #include "lpoint3.h"
 #include "lmatrix.h"
 #include "lmatrix.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxForceFieldShapeDesc
 //       Class : PhysxForceFieldShapeDesc

+ 1 - 2
panda/src/physx/physxForceFieldShapeGroup.h

@@ -20,8 +20,7 @@
 #include "physxObject.h"
 #include "physxObject.h"
 #include "physxEnums.h"
 #include "physxEnums.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxScene;
 class PhysxScene;
 class PhysxForceField;
 class PhysxForceField;

+ 1 - 3
panda/src/physx/physxForceFieldShapeGroupDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxForceFieldShapeDesc;
 class PhysxForceFieldShapeDesc;
 
 

+ 1 - 2
panda/src/physx/physxGroupsMask.h

@@ -17,8 +17,7 @@
 
 
 #include "pandabase.h"
 #include "pandabase.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxGroupsMask
 //       Class : PhysxGroupsMask

+ 1 - 3
panda/src/physx/physxHeightField.h

@@ -22,9 +22,7 @@
 #include "physxContactReport.h"
 #include "physxContactReport.h"
 #include "physxControllerReport.h"
 #include "physxControllerReport.h"
 #include "physxTriggerReport.h"
 #include "physxTriggerReport.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxHeightField
 //       Class : PhysxHeightField

+ 1 - 2
panda/src/physx/physxHeightFieldDesc.h

@@ -18,8 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 #include "pnmImage.h"
 #include "pnmImage.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxHeightFieldDesc
 //       Class : PhysxHeightFieldDesc

+ 1 - 3
panda/src/physx/physxHeightFieldShape.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxShape.h"
 #include "physxShape.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxHeightFieldShapeDesc;
 class PhysxHeightFieldShapeDesc;
 
 

+ 1 - 3
panda/src/physx/physxHeightFieldShapeDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxShapeDesc.h"
 #include "physxShapeDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxHeightField;
 class PhysxHeightField;
 
 

+ 1 - 3
panda/src/physx/physxJoint.h

@@ -22,9 +22,7 @@
 
 
 #include "physxObject.h"
 #include "physxObject.h"
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxActor;
 class PhysxActor;
 class PhysxScene;
 class PhysxScene;

+ 1 - 3
panda/src/physx/physxJointDesc.h

@@ -20,9 +20,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxActor;
 class PhysxActor;
 
 

+ 1 - 3
panda/src/physx/physxJointDriveDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxJointDriveDesc
 //       Class : PhysxJointDriveDesc

+ 1 - 2
panda/src/physx/physxJointLimitDesc.h

@@ -17,8 +17,7 @@
 
 
 #include "pandabase.h"
 #include "pandabase.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxJointLimitDesc
 //       Class : PhysxJointLimitDesc

+ 1 - 2
panda/src/physx/physxJointLimitSoftDesc.h

@@ -17,8 +17,7 @@
 
 
 #include "pandabase.h"
 #include "pandabase.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxJointLimitSoftDesc
 //       Class : PhysxJointLimitSoftDesc

+ 1 - 3
panda/src/physx/physxKitchen.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 #include "filename.h"
 #include "filename.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
-#include "NxCooking.h"
+#include "physx_includes.h"
 
 
 class PhysxConvexMesh;
 class PhysxConvexMesh;
 class PhysxConvexMeshDesc;
 class PhysxConvexMeshDesc;

+ 1 - 4
panda/src/physx/physxManager.h

@@ -21,10 +21,7 @@
 
 
 #include "physxEnums.h"
 #include "physxEnums.h"
 #include "physxObjectCollection.h"
 #include "physxObjectCollection.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
-#include "NxExtended.h"
+#include "physx_includes.h"
 
 
 class PhysxScene;
 class PhysxScene;
 class PhysxSceneDesc;
 class PhysxSceneDesc;

+ 1 - 2
panda/src/physx/physxMask.h

@@ -17,8 +17,7 @@
 
 
 #include "pandabase.h"
 #include "pandabase.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxMask
 //       Class : PhysxMask

+ 1 - 3
panda/src/physx/physxMaterial.h

@@ -20,9 +20,7 @@
 
 
 #include "physxObject.h"
 #include "physxObject.h"
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxScene;
 class PhysxScene;
 class PhysxMaterialDesc;
 class PhysxMaterialDesc;

+ 1 - 3
panda/src/physx/physxMaterialDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxMaterialDesc
 //       Class : PhysxMaterialDesc

+ 1 - 2
panda/src/physx/physxMemoryReadBuffer.h

@@ -17,8 +17,7 @@
 
 
 #include "pandabase.h"
 #include "pandabase.h"
 
 
-#include "NoMinMax.h"
-#include "NxStream.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxMemoryReadBuffer
 //       Class : PhysxMemoryReadBuffer

+ 1 - 2
panda/src/physx/physxMemoryWriteBuffer.h

@@ -17,8 +17,7 @@
 
 
 #include "pandabase.h"
 #include "pandabase.h"
 
 
-#include "NoMinMax.h"
-#include "NxStream.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxMemoryWriteBuffer
 //       Class : PhysxMemoryWriteBuffer

+ 1 - 2
panda/src/physx/physxMeshPool.h

@@ -21,8 +21,7 @@
 #include "pmap.h"
 #include "pmap.h"
 #include "filename.h"
 #include "filename.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxConvexMesh;
 class PhysxConvexMesh;
 class PhysxTriangleMesh;
 class PhysxTriangleMesh;

+ 1 - 2
panda/src/physx/physxMotorDesc.h

@@ -17,8 +17,7 @@
 
 
 #include "pandabase.h"
 #include "pandabase.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxMotorDesc
 //       Class : PhysxMotorDesc

+ 1 - 0
panda/src/physx/physxOverlapReport.h

@@ -20,6 +20,7 @@
 #include "pointerTo.h"
 #include "pointerTo.h"
 
 
 #include "config_physx.h"
 #include "config_physx.h"
+#include "physx_includes.h"
 
 
 class PhysxShape;
 class PhysxShape;
 
 

+ 1 - 3
panda/src/physx/physxPlaneShape.h

@@ -19,9 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxShape.h"
 #include "physxShape.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxPlaneShapeDesc;
 class PhysxPlaneShapeDesc;
 
 

+ 1 - 2
panda/src/physx/physxPlaneShapeDesc.h

@@ -20,8 +20,7 @@
 
 
 #include "lvector3.h"
 #include "lvector3.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxPlaneShapeDesc
 //       Class : PhysxPlaneShapeDesc

+ 1 - 3
panda/src/physx/physxPointInPlaneJoint.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJoint.h"
 #include "physxJoint.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxPointInPlaneJointDesc;
 class PhysxPointInPlaneJointDesc;
 
 

+ 1 - 3
panda/src/physx/physxPointInPlaneJointDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJointDesc.h"
 #include "physxJointDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxPointInPlaneJointDesc
 //       Class : PhysxPointInPlaneJointDesc

+ 1 - 3
panda/src/physx/physxPointOnLineJoint.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJoint.h"
 #include "physxJoint.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxPointOnLineJointDesc;
 class PhysxPointOnLineJointDesc;
 
 

+ 1 - 3
panda/src/physx/physxPointOnLineJointDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJointDesc.h"
 #include "physxJointDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxPointOnLineJointDesc
 //       Class : PhysxPointOnLineJointDesc

+ 1 - 3
panda/src/physx/physxPrismaticJoint.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJoint.h"
 #include "physxJoint.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxPrismaticJointDesc;
 class PhysxPrismaticJointDesc;
 
 

+ 1 - 3
panda/src/physx/physxPrismaticJointDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJointDesc.h"
 #include "physxJointDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxPrismaticJointDesc
 //       Class : PhysxPrismaticJointDesc

+ 1 - 3
panda/src/physx/physxPulleyJoint.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJoint.h"
 #include "physxJoint.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxMotorDesc;
 class PhysxMotorDesc;
 class PhysxPulleyJointDesc;
 class PhysxPulleyJointDesc;

+ 1 - 3
panda/src/physx/physxPulleyJointDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJointDesc.h"
 #include "physxJointDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxMotorDesc;
 class PhysxMotorDesc;
 
 

+ 1 - 3
panda/src/physx/physxRevoluteJoint.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJoint.h"
 #include "physxJoint.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxRevoluteJointDesc;
 class PhysxRevoluteJointDesc;
 class PhysxSpringDesc;
 class PhysxSpringDesc;

+ 1 - 3
panda/src/physx/physxRevoluteJointDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJointDesc.h"
 #include "physxJointDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxSpringDesc;
 class PhysxSpringDesc;
 class PhysxMotorDesc;
 class PhysxMotorDesc;

+ 1 - 4
panda/src/physx/physxScene.h

@@ -27,10 +27,7 @@
 #include "physxOverlapReport.h"
 #include "physxOverlapReport.h"
 #include "physxMask.h"
 #include "physxMask.h"
 #include "physxGroupsMask.h"
 #include "physxGroupsMask.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
-#include "NxControllerManager.h"
+#include "physx_includes.h"
 
 
 class PhysxActor;
 class PhysxActor;
 class PhysxActorDesc;
 class PhysxActorDesc;

+ 1 - 3
panda/src/physx/physxSceneDesc.h

@@ -19,9 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxBounds3;
 class PhysxBounds3;
 
 

+ 1 - 2
panda/src/physx/physxSceneStats2.h

@@ -17,8 +17,7 @@
 
 
 #include "pandabase.h"
 #include "pandabase.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxSceneStats2
 //       Class : PhysxSceneStats2

+ 1 - 3
panda/src/physx/physxShape.h

@@ -23,9 +23,7 @@
 
 
 #include "physxObject.h"
 #include "physxObject.h"
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxActor;
 class PhysxActor;
 class PhysxMaterial;
 class PhysxMaterial;

+ 1 - 3
panda/src/physx/physxShapeDesc.h

@@ -20,9 +20,7 @@
 #include "lmatrix.h"
 #include "lmatrix.h"
 
 
 #include "physxEnums.h"
 #include "physxEnums.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxMaterial;
 class PhysxMaterial;
 
 

+ 1 - 3
panda/src/physx/physxSphereForceFieldShape.h

@@ -19,9 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxForceFieldShape.h"
 #include "physxForceFieldShape.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxSphereForceFieldShapeDesc;
 class PhysxSphereForceFieldShapeDesc;
 
 

+ 1 - 3
panda/src/physx/physxSphereForceFieldShapeDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxForceFieldShapeDesc.h"
 #include "physxForceFieldShapeDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxSphereForceFieldShapeDesc
 //       Class : PhysxSphereForceFieldShapeDesc

+ 1 - 3
panda/src/physx/physxSphereShape.h

@@ -19,9 +19,7 @@
 #include "lvector3.h"
 #include "lvector3.h"
 
 
 #include "physxShape.h"
 #include "physxShape.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxSphereShapeDesc;
 class PhysxSphereShapeDesc;
 
 

+ 1 - 3
panda/src/physx/physxSphereShapeDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxShapeDesc.h"
 #include "physxShapeDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxSphereShapeDesc
 //       Class : PhysxSphereShapeDesc

+ 1 - 3
panda/src/physx/physxSphericalJoint.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJoint.h"
 #include "physxJoint.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxSphericalJointDesc;
 class PhysxSphericalJointDesc;
 
 

+ 1 - 3
panda/src/physx/physxSphericalJointDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxJointDesc.h"
 #include "physxJointDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxSpringDesc;
 class PhysxSpringDesc;
 class PhysxJointLimitDesc;
 class PhysxJointLimitDesc;

+ 1 - 2
panda/src/physx/physxSpringDesc.h

@@ -17,8 +17,7 @@
 
 
 #include "pandabase.h"
 #include "pandabase.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxSpringDesc
 //       Class : PhysxSpringDesc

+ 1 - 3
panda/src/physx/physxTriangleMesh.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxObject.h"
 #include "physxObject.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxTriangleMesh
 //       Class : PhysxTriangleMesh

+ 1 - 2
panda/src/physx/physxTriangleMeshDesc.h

@@ -19,8 +19,7 @@
 #include "lpoint3.h"
 #include "lpoint3.h"
 #include "nodePath.h"
 #include "nodePath.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxTriangleMeshDesc
 //       Class : PhysxTriangleMeshDesc

+ 1 - 3
panda/src/physx/physxTriangleMeshShape.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxShape.h"
 #include "physxShape.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxTriangleMeshShapeDesc;
 class PhysxTriangleMeshShapeDesc;
 
 

+ 1 - 3
panda/src/physx/physxTriangleMeshShapeDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxShapeDesc.h"
 #include "physxShapeDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxTriangleMesh;
 class PhysxTriangleMesh;
 
 

+ 1 - 2
panda/src/physx/physxTriggerReport.h

@@ -18,8 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 #include "pStatCollector.h"
 #include "pStatCollector.h"
 
 
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : PhysxTriggerReport
 //       Class : PhysxTriggerReport

+ 1 - 3
panda/src/physx/physxWheelShape.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxShape.h"
 #include "physxShape.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxWheelShapeDesc;
 class PhysxWheelShapeDesc;
 
 

+ 1 - 3
panda/src/physx/physxWheelShapeDesc.h

@@ -18,9 +18,7 @@
 #include "pandabase.h"
 #include "pandabase.h"
 
 
 #include "physxShapeDesc.h"
 #include "physxShapeDesc.h"
-
-#include "NoMinMax.h"
-#include "NxPhysics.h"
+#include "physx_includes.h"
 
 
 class PhysxSpringDesc;
 class PhysxSpringDesc;
 
 

+ 51 - 0
panda/src/physx/physx_includes.h

@@ -0,0 +1,51 @@
+// Filename: ode_includes.h
+// Created by:  joswilso (30Jan07)
+//
+////////////////////////////////////////////////////////////////////
+//
+// PANDA 3D SOFTWARE
+// Copyright (c) Carnegie Mellon University.  All rights reserved.
+//
+// All use of this software is subject to the terms of the revised BSD
+// license.  You should have received a copy of this license along
+// with this source code in a file named "LICENSE."
+//
+////////////////////////////////////////////////////////////////////
+
+#ifndef PHYSX_INCLUDES_H
+#define PHYSX_INCLUDES_H
+
+
+// Platform-specific defines
+#ifdef WIN32
+#define NX32
+#endif
+
+#ifdef IS_LINUX
+#define LINUX
+#define NX32
+#define CORELIB
+#define NX_DISABLE_FLUIDS
+#endif
+
+#ifdef IS_OSX
+#endif
+
+
+// Undefine min and max before ay PhysX headers get included
+#undef min
+#undef max
+
+
+// PhysX headers
+#include "NxPhysics.h"
+#include "NxExtended.h"
+#include "NxStream.h"
+#include "NxCooking.h"
+#include "NxController.h"
+#include "NxControllerManager.h"
+#include "NxBoxController.h"
+#include "NxCapsuleController.h"
+
+
+#endif // PHYSX_INCLUDES_H