PxGeometryHelpers.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PxGeometryHolder
 Geometry holder class. More...
 

Functions

class PxGeometryHolder PX_ALIGN_SUFFIX (4)
 
PX_FORCE_INLINE PxGeometryType::Enum getType () const
 
PX_FORCE_INLINE PxGeometryany ()
 
PX_FORCE_INLINE PxSphereGeometrysphere ()
 
PX_FORCE_INLINE PxPlaneGeometryplane ()
 
PX_FORCE_INLINE PxCapsuleGeometrycapsule ()
 
PX_FORCE_INLINE PxBoxGeometrybox ()
 
PX_FORCE_INLINE PxConvexMeshGeometryconvexMesh ()
 
PX_FORCE_INLINE PxTriangleMeshGeometrytriangleMesh ()
 
PX_FORCE_INLINE PxHeightFieldGeometryheightField ()
 
PX_FORCE_INLINE void storeAny (const PxGeometry &geometry)
 
PX_FORCE_INLINE PxGeometryHolder ()
 
PX_FORCE_INLINE PxGeometryHolder (const PxGeometry &geometry)
 
template<typename T >
void put (const PxGeometry &geometry)
 
template<typename T , PxGeometryType::Enum type>
T & get ()
 

Variables

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
 

Function Documentation

◆ any()

◆ box()

PX_FORCE_INLINE PxBoxGeometry& PX_ALIGN_SUFFIX::box ( )

◆ capsule()

PX_FORCE_INLINE PxCapsuleGeometry& PX_ALIGN_SUFFIX::capsule ( )

◆ convexMesh()

◆ get()

template<typename T , PxGeometryType::Enum type>
T & get ( )
private

◆ getType()

PX_FORCE_INLINE PxGeometryType::Enum PX_ALIGN_SUFFIX::getType ( ) const

Referenced by PxGeometryHolder::get().

◆ heightField()

◆ plane()

PX_FORCE_INLINE PxPlaneGeometry& PX_ALIGN_SUFFIX::plane ( )

◆ put()

template<typename T >
void PX_ALIGN_SUFFIX::put ( const PxGeometry geometry)
private

◆ PxGeometryHolder() [1/2]

PX_FORCE_INLINE PX_ALIGN_SUFFIX::PxGeometryHolder ( )

◆ PxGeometryHolder() [2/2]

PX_FORCE_INLINE PX_ALIGN_SUFFIX::PxGeometryHolder ( const PxGeometry geometry)

◆ sphere()

PX_FORCE_INLINE PxSphereGeometry& PX_ALIGN_SUFFIX::sphere ( )

◆ storeAny()

PX_FORCE_INLINE void PX_ALIGN_SUFFIX::storeAny ( const PxGeometry geometry)

References geometry.

◆ triangleMesh()

Variable Documentation

◆ box

◆ bytes

◆ capsule

◆ convex

PxU8 convex[sizeof(PxConvexMeshGeometry)]

◆ geometry

◆ heightfield

PxU8 heightfield[sizeof(PxHeightFieldGeometry)]

◆ mesh

PxU8 mesh[sizeof(PxTriangleMeshGeometry)]

◆ plane

◆ sphere