From 78cab22a61786a23f2ee1ad7c5dcbec0024befca Mon Sep 17 00:00:00 2001 From: Sheikh Dawood Abdul Ajees Date: Tue, 27 Nov 2018 13:02:50 -0600 Subject: PhysX 3.4, APEX 1.4 patch release @25256367 --- .../PhysXAPI/files/PxQueryReport_8h-source.html | 225 ++++++++++----------- 1 file changed, 112 insertions(+), 113 deletions(-) (limited to 'PhysX_3.4/Documentation/PhysXAPI/files/PxQueryReport_8h-source.html') diff --git a/PhysX_3.4/Documentation/PhysXAPI/files/PxQueryReport_8h-source.html b/PhysX_3.4/Documentation/PhysXAPI/files/PxQueryReport_8h-source.html index c16f2a8e..3ec9d8dd 100644 --- a/PhysX_3.4/Documentation/PhysXAPI/files/PxQueryReport_8h-source.html +++ b/PhysX_3.4/Documentation/PhysXAPI/files/PxQueryReport_8h-source.html @@ -120,126 +120,125 @@ 00150 // the following fields are set in accordance with the #PxHitFlags 00151 PxHitFlags flags; 00152 PxVec3 position; -00153 -00154 PxVec3 normal; -00155 -00160 PxF32 distance; -00161 }; +00153 PxVec3 normal; +00154 +00159 PxF32 distance; +00160 }; +00161 00162 -00163 -00175 struct PxRaycastHit : public PxLocationHit -00176 { -00177 PX_INLINE PxRaycastHit() : u(0.0f), v(0.0f) {} -00178 -00179 // the following fields are set in accordance with the #PxHitFlags -00180 -00181 PxReal u, v; -00182 #if !PX_P64_FAMILY -00183 PxU32 padTo16Bytes[3]; -00184 #endif -00185 }; +00174 struct PxRaycastHit : public PxLocationHit +00175 { +00176 PX_INLINE PxRaycastHit() : u(0.0f), v(0.0f) {} +00177 +00178 // the following fields are set in accordance with the #PxHitFlags +00179 +00180 PxReal u, v; +00181 #if !PX_P64_FAMILY +00182 PxU32 padTo16Bytes[3]; +00183 #endif +00184 }; +00185 00186 -00187 -00193 struct PxOverlapHit: public PxQueryHit { PxU32 padTo16Bytes; }; +00192 struct PxOverlapHit: public PxQueryHit { PxU32 padTo16Bytes; }; +00193 00194 -00195 -00201 struct PxSweepHit : public PxLocationHit -00202 { -00203 PX_INLINE PxSweepHit() {} -00204 -00205 PxU32 padTo16Bytes; -00206 }; +00200 struct PxSweepHit : public PxLocationHit +00201 { +00202 PX_INLINE PxSweepHit() {} +00203 +00204 PxU32 padTo16Bytes; +00205 }; +00206 00207 -00208 -00217 typedef bool PxAgain; +00216 typedef bool PxAgain; +00217 00218 -00219 -00233 template<typename HitType> -00234 struct PxHitCallback -00235 { -00236 HitType block; -00237 bool hasBlock; -00238 -00239 HitType* touches; -00240 -00245 PxU32 maxNbTouches; -00246 -00250 PxU32 nbTouches; -00251 -00263 PxHitCallback(HitType* aTouches, PxU32 aMaxNbTouches) -00264 : hasBlock(false), touches(aTouches), maxNbTouches(aMaxNbTouches), nbTouches(0) -00265 {} -00266 -00287 virtual PxAgain processTouches(const HitType* buffer, PxU32 nbHits) = 0; -00288 -00289 virtual void finalizeQuery() {} -00290 -00291 virtual ~PxHitCallback() {} -00292 -00294 PX_FORCE_INLINE bool hasAnyHits() { return (hasBlock || (nbTouches > 0)); } -00295 }; +00232 template<typename HitType> +00233 struct PxHitCallback +00234 { +00235 HitType block; +00236 bool hasBlock; +00237 +00238 HitType* touches; +00239 +00244 PxU32 maxNbTouches; +00245 +00249 PxU32 nbTouches; +00250 +00262 PxHitCallback(HitType* aTouches, PxU32 aMaxNbTouches) +00263 : hasBlock(false), touches(aTouches), maxNbTouches(aMaxNbTouches), nbTouches(0) +00264 {} +00265 +00286 virtual PxAgain processTouches(const HitType* buffer, PxU32 nbHits) = 0; +00287 +00288 virtual void finalizeQuery() {} +00289 +00290 virtual ~PxHitCallback() {} +00291 +00293 PX_FORCE_INLINE bool hasAnyHits() { return (hasBlock || (nbTouches > 0)); } +00294 }; +00295 00296 -00297 -00311 template<typename HitType> -00312 struct PxHitBuffer : public PxHitCallback<HitType> -00313 { -00324 PxHitBuffer(HitType* aTouches = NULL, PxU32 aMaxNbTouches = 0) : PxHitCallback<HitType>(aTouches, aMaxNbTouches) {} -00325 -00327 PX_INLINE PxU32 getNbAnyHits() const { return getNbTouches() + PxU32(this->hasBlock); } -00329 PX_INLINE const HitType& getAnyHit(const PxU32 index) const { PX_ASSERT(index < getNbTouches() + PxU32(this->hasBlock)); -00330 return index < getNbTouches() ? getTouches()[index] : this->block; } -00331 -00332 PX_INLINE PxU32 getNbTouches() const { return this->nbTouches; } -00333 PX_INLINE const HitType* getTouches() const { return this->touches; } -00334 PX_INLINE const HitType& getTouch(const PxU32 index) const { PX_ASSERT(index < getNbTouches()); return getTouches()[index]; } -00335 PX_INLINE PxU32 getMaxNbTouches() const { return this->maxNbTouches; } -00336 -00337 virtual ~PxHitBuffer() {} -00338 -00339 protected: -00340 // stops after the first callback -00341 virtual PxAgain processTouches(const HitType* buffer, PxU32 nbHits) { PX_UNUSED(buffer); PX_UNUSED(nbHits); return false; } -00342 }; +00310 template<typename HitType> +00311 struct PxHitBuffer : public PxHitCallback<HitType> +00312 { +00323 PxHitBuffer(HitType* aTouches = NULL, PxU32 aMaxNbTouches = 0) : PxHitCallback<HitType>(aTouches, aMaxNbTouches) {} +00324 +00326 PX_INLINE PxU32 getNbAnyHits() const { return getNbTouches() + PxU32(this->hasBlock); } +00328 PX_INLINE const HitType& getAnyHit(const PxU32 index) const { PX_ASSERT(index < getNbTouches() + PxU32(this->hasBlock)); +00329 return index < getNbTouches() ? getTouches()[index] : this->block; } +00330 +00331 PX_INLINE PxU32 getNbTouches() const { return this->nbTouches; } +00332 PX_INLINE const HitType* getTouches() const { return this->touches; } +00333 PX_INLINE const HitType& getTouch(const PxU32 index) const { PX_ASSERT(index < getNbTouches()); return getTouches()[index]; } +00334 PX_INLINE PxU32 getMaxNbTouches() const { return this->maxNbTouches; } +00335 +00336 virtual ~PxHitBuffer() {} +00337 +00338 protected: +00339 // stops after the first callback +00340 virtual PxAgain processTouches(const HitType* buffer, PxU32 nbHits) { PX_UNUSED(buffer); PX_UNUSED(nbHits); return false; } +00341 }; +00342 00343 -00344 -00346 typedef PxHitCallback<PxRaycastHit> PxRaycastCallback; -00347 -00349 typedef PxHitCallback<PxOverlapHit> PxOverlapCallback; -00350 -00352 typedef PxHitCallback<PxSweepHit> PxSweepCallback; -00353 -00355 typedef PxHitBuffer<PxRaycastHit> PxRaycastBuffer; -00356 -00358 typedef PxHitBuffer<PxOverlapHit> PxOverlapBuffer; -00359 -00361 typedef PxHitBuffer<PxSweepHit> PxSweepBuffer; -00362 -00364 template <int N> -00365 struct PxRaycastBufferN : public PxHitBuffer<PxRaycastHit> -00366 { -00367 PxRaycastHit hits[N]; -00368 PxRaycastBufferN() : PxHitBuffer<PxRaycastHit>(hits, N) {} -00369 }; -00370 -00372 template <int N> -00373 struct PxOverlapBufferN : public PxHitBuffer<PxOverlapHit> -00374 { -00375 PxOverlapHit hits[N]; -00376 PxOverlapBufferN() : PxHitBuffer<PxOverlapHit>(hits, N) {} -00377 }; -00378 -00380 template <int N> -00381 struct PxSweepBufferN : public PxHitBuffer<PxSweepHit> -00382 { -00383 PxSweepHit hits[N]; -00384 PxSweepBufferN() : PxHitBuffer<PxSweepHit>(hits, N) {} -00385 }; -00386 -00387 #if !PX_DOXYGEN -00388 } // namespace physx -00389 #endif -00390 -00392 #endif +00345 typedef PxHitCallback<PxRaycastHit> PxRaycastCallback; +00346 +00348 typedef PxHitCallback<PxOverlapHit> PxOverlapCallback; +00349 +00351 typedef PxHitCallback<PxSweepHit> PxSweepCallback; +00352 +00354 typedef PxHitBuffer<PxRaycastHit> PxRaycastBuffer; +00355 +00357 typedef PxHitBuffer<PxOverlapHit> PxOverlapBuffer; +00358 +00360 typedef PxHitBuffer<PxSweepHit> PxSweepBuffer; +00361 +00363 template <int N> +00364 struct PxRaycastBufferN : public PxHitBuffer<PxRaycastHit> +00365 { +00366 PxRaycastHit hits[N]; +00367 PxRaycastBufferN() : PxHitBuffer<PxRaycastHit>(hits, N) {} +00368 }; +00369 +00371 template <int N> +00372 struct PxOverlapBufferN : public PxHitBuffer<PxOverlapHit> +00373 { +00374 PxOverlapHit hits[N]; +00375 PxOverlapBufferN() : PxHitBuffer<PxOverlapHit>(hits, N) {} +00376 }; +00377 +00379 template <int N> +00380 struct PxSweepBufferN : public PxHitBuffer<PxSweepHit> +00381 { +00382 PxSweepHit hits[N]; +00383 PxSweepBufferN() : PxHitBuffer<PxSweepHit>(hits, N) {} +00384 }; +00385 +00386 #if !PX_DOXYGEN +00387 } // namespace physx +00388 #endif +00389 +00391 #endif

-- cgit v1.2.3