PxPhysicsInsertionCallback Class Reference
[Common]

Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh directly into PxPhysics without the need to store the cooking results into a stream. More...

#include <PxPhysicsInsertionCallback.h>

List of all members.

Public Member Functions

 PxPhysicsInsertionCallback ()
virtual PxBasebuildObjectFromData (PxConcreteType::Enum type, void *data)=0
 Builds object (TriangleMesh, HeightfieldMesh or ConvexMesh) from given data in PxPhysics.

Protected Member Functions

virtual ~PxPhysicsInsertionCallback ()


Detailed Description

Callback interface that permits PxCooking to insert a TriangleMesh, HeightfieldMesh or ConvexMesh directly into PxPhysics without the need to store the cooking results into a stream.

Using this is advised only if real-time cooking is required; using "offline" cooking and streams is otherwise preferred.

The default PxPhysicsInsertionCallback implementation must be used. The PxPhysics default callback can be obtained using the PxPhysics::getPhysicsInsertionCallback().

See also:
PxCooking PxPhysics

Constructor & Destructor Documentation

PxPhysicsInsertionCallback::PxPhysicsInsertionCallback (  )  [inline]

virtual PxPhysicsInsertionCallback::~PxPhysicsInsertionCallback (  )  [inline, protected, virtual]


Member Function Documentation

virtual PxBase* PxPhysicsInsertionCallback::buildObjectFromData ( PxConcreteType::Enum  type,
void *  data 
) [pure virtual]

Builds object (TriangleMesh, HeightfieldMesh or ConvexMesh) from given data in PxPhysics.

Parameters:
type Object type to build.
data Object data
Returns:
PxBase Created object in PxPhysics.


The documentation for this class was generated from the following file:


Copyright © 2008-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com