diff options
| author | sschirm <[email protected]> | 2016-12-23 14:20:36 +0100 |
|---|---|---|
| committer | sschirm <[email protected]> | 2016-12-23 14:56:17 +0100 |
| commit | ef6937e69e8ee3f409cf9d460d5ad300a65d5924 (patch) | |
| tree | 710426e8daa605551ce3f34b581897011101c30f /PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.h | |
| parent | Initial commit: (diff) | |
| download | physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.tar.xz physx-3.4-ef6937e69e8ee3f409cf9d460d5ad300a65d5924.zip | |
PhysX 3.4 / APEX 1.4 release candidate @21506124
Diffstat (limited to 'PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.h')
| -rw-r--r-- | PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.h b/PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.h index cf75ec31..46088706 100644 --- a/PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.h +++ b/PhysX_3.4/Source/GeomUtils/src/convex/GuConvexMesh.h @@ -155,6 +155,8 @@ namespace Gu PX_FORCE_INLINE void setMeshFactory(GuMeshFactory* f) { mMeshFactory = f; } + PX_FORCE_INLINE void setNb(PxU32 nb) { mNb = nb; } + protected: ConvexHullData mHullData; PxBitAndDword mNb; // ### PT: added for serialization. Try to remove later? @@ -166,20 +168,7 @@ private: GuMeshFactory* mMeshFactory; // PT: changed to pointer for serialization PX_FORCE_INLINE PxU32 getNb() const { return mNb; } - PX_FORCE_INLINE PxU32 ownsMemory() const { return PxU32(!mNb.isBitSet()); } - -#if PX_ENABLE_DEBUG_VISUALIZATION -public: - /** - \brief Perform convex mesh geometry debug visualization - - \param out Debug renderer. - \param pose World position. - \param scale Scale to apply. - */ - void debugVisualize( Cm::RenderOutput& out, const PxTransform& pose, const PxMeshScale& scale) const; - -#endif + PX_FORCE_INLINE PxU32 ownsMemory() const { return PxU32(!mNb.isBitSet()); } }; } // namespace Gu |