diff options
| author | Anton Novoselov <[email protected]> | 2017-08-01 12:53:38 +0300 |
|---|---|---|
| committer | Anton Novoselov <[email protected]> | 2017-08-01 12:53:38 +0300 |
| commit | 236f03c0b9a4982328ed1201978f7f69d192d9b2 (patch) | |
| tree | e486f2fa39dba203563895541e92c60ed3e25759 /docs/api_docs/files/pageextpxserialization.html | |
| parent | Added screens to welcome page (diff) | |
| download | blast-236f03c0b9a4982328ed1201978f7f69d192d9b2.tar.xz blast-236f03c0b9a4982328ed1201978f7f69d192d9b2.zip | |
Blast 1.1 release (windows / linux)
see docs/release_notes.txt for details
Diffstat (limited to 'docs/api_docs/files/pageextpxserialization.html')
| -rw-r--r-- | docs/api_docs/files/pageextpxserialization.html | 54 |
1 files changed, 54 insertions, 0 deletions
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 @@ +<html> + <head> + <title>NVIDIA(R) Blast(R) SDK 1.1 API Reference: ExtPhysX Serialization (NvBlastExtPxSerialization)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> + <LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css"> + </head> + + <body bgcolor="#FFFFFF"> + <div id="header"> + <hr class="first"> + <img alt="" src="blast_logo.png"> + <br> + <center> + <a class="qindex" href="main.html">Main Page</a> + <!-- <a class="qindex" href="hierarchy.html">Class Hierarchy</a> //--> + <a class="qindex" href="annotated.html">Class List</a> + <a class="qindex" href="functions.html">Class Members</a> + </center> + <hr class="second"> + </div> +<!-- Generated by Doxygen 1.5.8 --> +<div class="contents"> +<h1><a class="anchor" name="pageextpxserialization">ExtPhysX Serialization (NvBlastExtPxSerialization) </a></h1>This extension contains serializers which can be loaded into the ExtSerialization manager defined in <a class="el" href="pageextserialization.html">Serialization (NvBlastExtSerialization)</a>.<p> +To use this extension, you must also load the ExtSerialization extension and create a serialization manager as described in <a class="el" href="pageextserialization.html">Serialization (NvBlastExtSerialization)</a>.<p> +We repeat this here (again, assuming we're in the <a class="el" href="namespace_nv_1_1_blast.html">Nv::Blast</a> namespace):<p> +<div class="fragment"><pre class="fragment">ExtSerialization* ser = <a class="code" href="_nv_blast_ext_serialization_8h.html#9dad7f69d7a72d402c99238ed3c34bfc">NvBlastExtSerializationCreate</a>(); +</pre></div><p> +Then, call the function NvBlastExtPxSerializerLoadSet, declared in <b><a class="el" href="_nv_blast_ext_px_serialization_8h.html">NvBlastExtPxSerialization.h</a></b>, passing in your TkFramework (required by ExtPhysX), along with your physx::PxPhysics and physx::PxCooking pointers:<p> +<div class="fragment"><pre class="fragment">TkFramework* framework = ... <span class="comment">// We must have created a TkFramework</span> +physx::PxPhysics* physics = ... <span class="comment">// and PxPhysics</span> +physx::PxCooking* cooking = ... <span class="comment">// and PxCooking</span> + +<a class="code" href="_nv_blast_ext_px_serialization_8h.html#8c896467357e07261de122d4006c9bef">NvBlastExtPxSerializerLoadSet</a>(*framework, *physics, *cooking *ser); +</pre></div><p> +Now your serialization manager will have the serializers provided by this extension. Currently only ExtPxAsset serializers exist, with object type ID given by<p> +<br> + <b>ExtPxObjectTypeID::Asset</b> <br> +<p> +As with low-level assets, you can serialize using the serialization manager directly:<p> +<div class="fragment"><pre class="fragment"><span class="keyword">const</span> ExtPxAsset* asset = ... <span class="comment">// Given pointer to an Nv::Blast::ExtPxAsset</span> + +<span class="keywordtype">void</span>* buffer; +uint64_t size = ser->serializeIntoBuffer(buffer, asset, ExtPxObjectTypeID::Asset); +</pre></div><p> +or use the wrapper function defined in <b><a class="el" href="_nv_blast_ext_px_serialization_8h.html">NvBlastExtPxSerialization.h</a></b>:<p> +/code void* buffer; uint64_t size = NvBlastExtSerializationSerializeExtPxAssetIntoBuffer(buffer, *ser, asset); /endcode<p> +<br> + </div> +<!-- start footer part --> +<div class="footer"> +Copyright © 2015-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a> +</div> +</body> +</html> |