Geometry holder class. More...
#include <PxGeometryHelpers.h>
Private Member Functions | |
template<typename T > | |
void | put (const PxGeometry &geometry) |
template<typename T , PxGeometryType::Enum type> | |
T & | get () |
template<typename T , PxGeometryType::Enum type> | |
T & | get () const |
Private Attributes | |
union { | |
PxU8 geometry [sizeof(PxGeometry)] | |
PxU8 box [sizeof(PxBoxGeometry)] | |
PxU8 sphere [sizeof(PxSphereGeometry)] | |
PxU8 capsule [sizeof(PxCapsuleGeometry)] | |
PxU8 plane [sizeof(PxPlaneGeometry)] | |
PxU8 convex [sizeof(PxConvexMeshGeometry)] | |
PxU8 mesh [sizeof(PxTriangleMeshGeometry)] | |
PxU8 heightfield [sizeof(PxHeightFieldGeometry)] | |
} | bytes |
Geometry holder class.
This class contains enough space to hold a value of any PxGeometry subtype.
Its principal use is as a convenience class to allow geometries to be returned polymorphically from functions. See PxShape::getGeometry();
|
inline |
|
inline |
|
inline |
References bytes.
Referenced by PxShapeExt::getWorldBounds(), PxShapeExt::overlap(), PxShapeExt::raycast(), and PxShapeExt::sweep().
|
inline |
References bytes.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
References any(), and PxGeometry::getType().
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
PxU8 PxGeometryHolder::box[sizeof(PxBoxGeometry)] |
union { ... } PxGeometryHolder::bytes |
PxU8 PxGeometryHolder::capsule[sizeof(PxCapsuleGeometry)] |
PxU8 PxGeometryHolder::convex[sizeof(PxConvexMeshGeometry)] |
PxU8 PxGeometryHolder::geometry[sizeof(PxGeometry)] |
PxU8 PxGeometryHolder::heightfield[sizeof(PxHeightFieldGeometry)] |
PxU8 PxGeometryHolder::mesh[sizeof(PxTriangleMeshGeometry)] |
PxU8 PxGeometryHolder::plane[sizeof(PxPlaneGeometry)] |
PxU8 PxGeometryHolder::sphere[sizeof(PxSphereGeometry)] |