RavEngine
Loading...
Searching...
No Matches
physx::Sn::SerializationRegistry Class Reference
Inheritance diagram for physx::Sn::SerializationRegistry:
[legend]
Collaboration diagram for physx::Sn::SerializationRegistry:
[legend]

Public Member Functions

 SerializationRegistry (PxPhysics &physics)
 
virtual void release ()
 Releases PxSerializationRegistry instance.
 
PxPhysics & getPhysics () const
 
void registerSerializer (PxType type, PxSerializer &serializer)
 Register a serializer for a concrete type.
 
PxSerializer * unregisterSerializer (PxType type)
 Unregister a serializer for a concrete type, and retrieves the corresponding serializer object.
 
void registerBinaryMetaDataCallback (PxBinaryMetaDataCallback callback)
 Register binary meta data callback.
 
void getBinaryMetaData (PxOutputStream &stream) const
 
const PxSerializer * getSerializer (PxType type) const
 Returns PxSerializer corresponding to type.
 
const char * getSerializerName (PxU32 index) const
 
PxType getSerializerType (PxU32 index) const
 
PxU32 getNbSerializers () const
 
void registerRepXSerializer (PxType type, PxRepXSerializer &serializer)
 Register a RepX serializer for a concrete type.
 
PxRepXSerializer * getRepXSerializer (const char *typeName) const
 Returns RepX serializer given the corresponding type name.
 
PxRepXSerializer * unregisterRepXSerializer (PxType type)
 Unregister a RepX serializer for a concrete type, and retrieves the corresponding serializer object.
 
- Public Member Functions inherited from physx::PxSerializationRegistry
- Public Member Functions inherited from physx::PxUserAllocated
PX_INLINE void * operator new (size_t, void *address)
 
PX_INLINE void operator delete (void *, void *)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void * operator new[] (size_t size, size_t, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete (void *ptr, Alloc alloc, const char *fileName, int line)
 
template<typename Alloc >
PX_INLINE void operator delete[] (void *ptr, Alloc alloc, const char *fileName, int line)
 
PX_INLINE void operator delete (void *ptr)
 
PX_INLINE void operator delete[] (void *ptr)
 

Protected Member Functions

SerializationRegistry & operator= (const SerializationRegistry &)
 
- Protected Member Functions inherited from physx::PxSerializationRegistry

Member Function Documentation

◆ getRepXSerializer()

PxRepXSerializer * physx::Sn::SerializationRegistry::getRepXSerializer ( const char *  typeName) const
virtual

Returns RepX serializer given the corresponding type name.

Parameters
typeNameName of the type
Returns
Registered PxRepXSerializer object corresponding to type name
See also
PxRepXSerializer, PxTypeInfo, PX_DEFINE_TYPEINFO

Implements physx::PxSerializationRegistry.

◆ getSerializer()

const PxSerializer * physx::Sn::SerializationRegistry::getSerializer ( PxType  type) const
virtual

Returns PxSerializer corresponding to type.

Parameters
typePxConcreteType of the serializer requested.
Returns
Registered PxSerializer object corresponding to type
See also
PxConcreteType

Implements physx::PxSerializationRegistry.

◆ registerBinaryMetaDataCallback()

void physx::Sn::SerializationRegistry::registerBinaryMetaDataCallback ( PxBinaryMetaDataCallback  callback)
virtual

Register binary meta data callback.

Deprecated:
Binary conversion and binary meta data are deprecated.

The callback is executed when calling PxSerialization::dumpBinaryMetaData.

Parameters
callbackPxBinaryMetaDataCallback to be registered.
See also
PxBinaryMetaDataCallback, PxSerialization::dumpBinaryMetaData

Implements physx::PxSerializationRegistry.

◆ registerRepXSerializer()

void physx::Sn::SerializationRegistry::registerRepXSerializer ( PxType  type,
PxRepXSerializer &  serializer 
)
virtual

Register a RepX serializer for a concrete type.

Parameters
typePxConcreteType corresponding to the RepX serializer
serializerThe PxRepXSerializer to be registered
See also
PxConcreteType, PxRepXSerializer

Implements physx::PxSerializationRegistry.

◆ registerSerializer()

void physx::Sn::SerializationRegistry::registerSerializer ( PxType  type,
PxSerializer &  serializer 
)
virtual

Register a serializer for a concrete type.

Parameters
typePxConcreteType corresponding to the serializer
serializerThe PxSerializer to be registered
See also
PxConcreteType, PxSerializer, PxSerializationRegistry::unregisterSerializer

Implements physx::PxSerializationRegistry.

◆ release()

virtual void physx::Sn::SerializationRegistry::release ( )
inlinevirtual

Releases PxSerializationRegistry instance.

This unregisters all PhysX and PhysXExtension serializers. Make sure to unregister all custom type serializers before releasing the PxSerializationRegistry.

See also
PxSerializationRegistry::unregisterSerializer, PxSerializationRegistry::unregisterRepXSerializer

Implements physx::PxSerializationRegistry.

◆ unregisterRepXSerializer()

PxRepXSerializer * physx::Sn::SerializationRegistry::unregisterRepXSerializer ( PxType  type)
virtual

Unregister a RepX serializer for a concrete type, and retrieves the corresponding serializer object.

Parameters
typePxConcreteType for which the RepX serializer should be unregistered
Returns
Unregistered PxRepxSerializer corresponding to type, NULL for types for which no RepX serializer has been registered.
See also
PxConcreteType, PxSerializationRegistry::registerRepXSerializer, PxSerializationRegistry::release

Implements physx::PxSerializationRegistry.

◆ unregisterSerializer()

PxSerializer * physx::Sn::SerializationRegistry::unregisterSerializer ( PxType  type)
virtual

Unregister a serializer for a concrete type, and retrieves the corresponding serializer object.

Parameters
typePxConcreteType for which the serializer should be unregistered
Returns
Unregistered serializer corresponding to type, NULL for types for which no serializer has been registered.
See also
PxConcreteType, PxSerializationRegistry::registerSerializer, PxSerializationRegistry::release

Implements physx::PxSerializationRegistry.


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