diff options
| author | Marijn Tamis <[email protected]> | 2019-04-29 16:21:42 +0200 |
|---|---|---|
| committer | Marijn Tamis <[email protected]> | 2019-04-29 16:21:42 +0200 |
| commit | 90963f4c0a38c705fe85101f2be5fdd09911b10f (patch) | |
| tree | 34ca6c9e642ce4998612e3ee5bf3264a57c21277 /NvCloth/extensions/src/ClothFabricCooker.cpp | |
| parent | 1.1.6 Release. (diff) | |
| download | nvcloth-90963f4c0a38c705fe85101f2be5fdd09911b10f.tar.xz nvcloth-90963f4c0a38c705fe85101f2be5fdd09911b10f.zip | |
Fix potential namespace issues when using NvCloth together with PhysX.
Diffstat (limited to 'NvCloth/extensions/src/ClothFabricCooker.cpp')
| -rw-r--r-- | NvCloth/extensions/src/ClothFabricCooker.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/NvCloth/extensions/src/ClothFabricCooker.cpp b/NvCloth/extensions/src/ClothFabricCooker.cpp index eda73de..c10098f 100644 --- a/NvCloth/extensions/src/ClothFabricCooker.cpp +++ b/NvCloth/extensions/src/ClothFabricCooker.cpp @@ -208,13 +208,13 @@ namespace mBending += PxMax(0.0f, 0.1f - ratio) * 3; } - PxReal mStretching; - PxReal mBending; - PxReal mShearing; + physx::PxReal mStretching; + physx::PxReal mBending; + physx::PxReal mShearing; }; - typedef shdfnd::Pair<PxU32, PxU32> Pair; - typedef shdfnd::Pair<Pair, ClothFabricPhaseType::Enum> Entry; + typedef ps::Pair<PxU32, physx::PxU32> Pair; + typedef ps::Pair<Pair, ClothFabricPhaseType::Enum> Entry; // maintain heap status after elements have been pushed (heapify) template<typename T> @@ -234,7 +234,7 @@ namespace if (!(begin[parent] < begin[current])) break; - shdfnd::swap(begin[parent], begin[current]); + ps::swap(begin[parent], begin[current]); current = parent; } } @@ -246,7 +246,7 @@ namespace T* begin = heap.begin(); T* end = heap.end(); - shdfnd::swap(begin[0], end[-1]); // exchange elements + ps::swap(begin[0], end[-1]); // exchange elements // shift down end--; @@ -261,7 +261,7 @@ namespace if (!(begin[current] < begin[child])) break; - shdfnd::swap(begin[current], begin[child]); + ps::swap(begin[current], begin[child]); current = child; } @@ -546,7 +546,7 @@ bool FabricCookerImpl::cook(const ClothMeshDesc& desc, PxVec3 gravity, bool useG const PxU32 restOffset = mSets[i]; ConstraintSorter predicate(&mIndices[indicesOffset]); - shdfnd::sort(&reorder[0], reorder.size(), predicate, nv::cloth::NonTrackingAllocator()); + ps::sort(&reorder[0], reorder.size(), predicate, nv::cloth::ps::NonTrackingAllocator()); for (PxU32 r=0; r < reorder.size(); ++r) { |