aboutsummaryrefslogtreecommitdiff
path: root/PhysX_3.4/Source/PhysX/src/buffering/ScbActor.cpp
diff options
context:
space:
mode:
authorsschirm <[email protected]>2016-12-23 14:20:36 +0100
committersschirm <[email protected]>2016-12-23 14:56:17 +0100
commitef6937e69e8ee3f409cf9d460d5ad300a65d5924 (patch)
tree710426e8daa605551ce3f34b581897011101c30f /PhysX_3.4/Source/PhysX/src/buffering/ScbActor.cpp
parentInitial commit: (diff)
downloadphysx-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/PhysX/src/buffering/ScbActor.cpp')
-rw-r--r--PhysX_3.4/Source/PhysX/src/buffering/ScbActor.cpp34
1 files changed, 9 insertions, 25 deletions
diff --git a/PhysX_3.4/Source/PhysX/src/buffering/ScbActor.cpp b/PhysX_3.4/Source/PhysX/src/buffering/ScbActor.cpp
index 9c91235a..25f39af3 100644
--- a/PhysX_3.4/Source/PhysX/src/buffering/ScbActor.cpp
+++ b/PhysX_3.4/Source/PhysX/src/buffering/ScbActor.cpp
@@ -27,58 +27,42 @@
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
-
#include "ScbBase.h"
using namespace physx;
using namespace Scb;
-using namespace physx;
-using namespace Scb;
-
#include "ScbActor.h"
#include "ScbRigidStatic.h"
#include "ScbBody.h"
#include "ScbParticleSystem.h"
#include "ScbCloth.h"
-namespace physx
-{
-namespace Scb
-{
-
Actor::Offsets::Offsets()
{
- size_t staticOffset = reinterpret_cast<size_t>(&(reinterpret_cast<Scb::RigidStatic*>(0)->getScStatic()));
- size_t bodyOffset = reinterpret_cast<size_t>(&(reinterpret_cast<Scb::Body*>(0)->getScBody()));
+ const size_t staticOffset = reinterpret_cast<size_t>(&(reinterpret_cast<Scb::RigidStatic*>(0)->getScStatic()));
+ const size_t bodyOffset = reinterpret_cast<size_t>(&(reinterpret_cast<Scb::Body*>(0)->getScBody()));
scToScb[PxActorType::eRIGID_STATIC] = staticOffset;
scToScb[PxActorType::eRIGID_DYNAMIC] = bodyOffset;
scToScb[PxActorType::eARTICULATION_LINK] = bodyOffset;
- scbToSc[ScbType::RIGID_STATIC] = staticOffset;
- scbToSc[ScbType::BODY] = bodyOffset;
- scbToSc[ScbType::BODY_FROM_ARTICULATION_LINK] = bodyOffset;
+ scbToSc[ScbType::eRIGID_STATIC] = staticOffset;
+ scbToSc[ScbType::eBODY] = bodyOffset;
+ scbToSc[ScbType::eBODY_FROM_ARTICULATION_LINK] = bodyOffset;
#if PX_USE_PARTICLE_SYSTEM_API
- size_t particleOffset = reinterpret_cast<size_t>(&(reinterpret_cast<Scb::ParticleSystem*>(0)->getScParticleSystem()));
+ const size_t particleOffset = reinterpret_cast<size_t>(&(reinterpret_cast<Scb::ParticleSystem*>(0)->getScParticleSystem()));
scToScb[PxActorType::ePARTICLE_FLUID] = particleOffset;
scToScb[PxActorType::ePARTICLE_SYSTEM] = particleOffset;
- scbToSc[ScbType::PARTICLE_SYSTEM] = particleOffset;
+ scbToSc[ScbType::ePARTICLE_SYSTEM] = particleOffset;
#endif
#if PX_USE_CLOTH_API
- size_t clothOffset = reinterpret_cast<size_t>(&(reinterpret_cast<Scb::Cloth*>(0)->getScCloth()));
+ const size_t clothOffset = reinterpret_cast<size_t>(&(reinterpret_cast<Scb::Cloth*>(0)->getScCloth()));
scToScb[PxActorType::eCLOTH] = clothOffset;
- scbToSc[ScbType::CLOTH] = clothOffset;
+ scbToSc[ScbType::eCLOTH] = clothOffset;
#endif
-
-
}
-
-
-
const Actor::Offsets Actor::sOffsets;
-}
-}