From 236f03c0b9a4982328ed1201978f7f69d192d9b2 Mon Sep 17 00:00:00 2001 From: Anton Novoselov Date: Tue, 1 Aug 2017 12:53:38 +0300 Subject: Blast 1.1 release (windows / linux) see docs/release_notes.txt for details --- docs/api_docs/files/pageextpxserialization.html | 54 +++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 docs/api_docs/files/pageextpxserialization.html (limited to 'docs/api_docs/files/pageextpxserialization.html') diff --git a/docs/api_docs/files/pageextpxserialization.html b/docs/api_docs/files/pageextpxserialization.html new file mode 100644 index 0000000..92e056f --- /dev/null +++ b/docs/api_docs/files/pageextpxserialization.html @@ -0,0 +1,54 @@ + + + NVIDIA(R) Blast(R) SDK 1.1 API Reference: ExtPhysX Serialization (NvBlastExtPxSerialization) + + + + + + + +
+

ExtPhysX Serialization (NvBlastExtPxSerialization)

This extension contains serializers which can be loaded into the ExtSerialization manager defined in Serialization (NvBlastExtSerialization).

+To use this extension, you must also load the ExtSerialization extension and create a serialization manager as described in Serialization (NvBlastExtSerialization).

+We repeat this here (again, assuming we're in the Nv::Blast namespace):

+

ExtSerialization* ser = NvBlastExtSerializationCreate();
+

+Then, call the function NvBlastExtPxSerializerLoadSet, declared in NvBlastExtPxSerialization.h, passing in your TkFramework (required by ExtPhysX), along with your physx::PxPhysics and physx::PxCooking pointers:

+

TkFramework* framework = ... // We must have created a TkFramework
+physx::PxPhysics* physics = ... // and PxPhysics
+physx::PxCooking* cooking = ... // and PxCooking
+
+NvBlastExtPxSerializerLoadSet(*framework, *physics, *cooking *ser);
+

+Now your serialization manager will have the serializers provided by this extension. Currently only ExtPxAsset serializers exist, with object type ID given by

+
+ ExtPxObjectTypeID::Asset
+

+As with low-level assets, you can serialize using the serialization manager directly:

+

const ExtPxAsset* asset = ... // Given pointer to an Nv::Blast::ExtPxAsset
+
+void* buffer;
+uint64_t size = ser->serializeIntoBuffer(buffer, asset, ExtPxObjectTypeID::Asset);
+

+or use the wrapper function defined in NvBlastExtPxSerialization.h:

+/code void* buffer; uint64_t size = NvBlastExtSerializationSerializeExtPxAssetIntoBuffer(buffer, *ser, asset); /endcode

+
+

+ + + + -- cgit v1.2.3