Serializers


Classes

class  PxRepXSerializer
 Serializer interface for RepX (Xml) serialization. More...

Defines

#define PX_NEW_REPX_SERIALIZER(T)   *PX_PLACEMENT_NEW(PxGetFoundation().getAllocatorCallback().allocate(sizeof(T), "PxRepXSerializer", __FILE__, __LINE__ ), T)(PxGetFoundation().getAllocatorCallback())
 Preprocessor macro for RepX serializer creation.
#define PX_DELETE_REPX_SERIALIZER(x)   { PxRepXSerializer* s = x; if (s) { PxGetFoundation().getAllocatorCallback().deallocate(s); } }
 Preprocessor Macro to simplify RepX serializer delete.

Functions

template<typename TDataType >
PX_INLINE physx::PxRepXObject PxCreateRepXObject (const TDataType *inType, const physx::PxSerialObjectId inId)
 Inline helper template function to create PxRepXObject from TDataType type supporting PxTypeInfo<TDataType>::name.
PX_INLINE physx::PxRepXObject PxCreateRepXObject (const physx::PxBase *inType, const physx::PxSerialObjectId inId)
 Inline helper function to create PxRepXObject from a PxBase instance.
template<typename TDataType >
PX_INLINE physx::PxRepXObject PxCreateRepXObject (const TDataType *inType)
 Inline helper template function to create PxRepXObject form TDataType type using inType pointer as a PxSerialObjectId id.

Define Documentation

#define PX_DELETE_REPX_SERIALIZER (  )     { PxRepXSerializer* s = x; if (s) { PxGetFoundation().getAllocatorCallback().deallocate(s); } }

Preprocessor Macro to simplify RepX serializer delete.

#define PX_NEW_REPX_SERIALIZER (  )     *PX_PLACEMENT_NEW(PxGetFoundation().getAllocatorCallback().allocate(sizeof(T), "PxRepXSerializer", __FILE__, __LINE__ ), T)(PxGetFoundation().getAllocatorCallback())

Preprocessor macro for RepX serializer creation.


Function Documentation

template<typename TDataType >
PX_INLINE physx::PxRepXObject PxCreateRepXObject ( const TDataType *  inType  )  [inline]

Inline helper template function to create PxRepXObject form TDataType type using inType pointer as a PxSerialObjectId id.

References PxCreateRepXObject().

PX_INLINE physx::PxRepXObject PxCreateRepXObject ( const physx::PxBase *  inType,
const physx::PxSerialObjectId  inId 
)

Inline helper function to create PxRepXObject from a PxBase instance.

References PX_ASSERT.

template<typename TDataType >
PX_INLINE physx::PxRepXObject PxCreateRepXObject ( const TDataType *  inType,
const physx::PxSerialObjectId  inId 
) [inline]

Inline helper template function to create PxRepXObject from TDataType type supporting PxTypeInfo<TDataType>::name.

Referenced by PxCreateRepXObject().



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