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/pageexttkserialization.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/pageexttkserialization.html')
| -rw-r--r-- | docs/api_docs/files/pageexttkserialization.html | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/docs/api_docs/files/pageexttkserialization.html b/docs/api_docs/files/pageexttkserialization.html new file mode 100644 index 0000000..ef75639 --- /dev/null +++ b/docs/api_docs/files/pageexttkserialization.html @@ -0,0 +1,52 @@ +<html> + <head> + <title>NVIDIA(R) Blast(R) SDK 1.1 API Reference: BlastTk Serialization (NvBlastExtTkSerialization)</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="pageexttkserialization">BlastTk Serialization (NvBlastExtTkSerialization) </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 NvBlastExtTkSerializerLoadSet, declared in <b><a class="el" href="_nv_blast_ext_tk_serialization_8h.html">NvBlastExtTkSerialization.h</a></b>, passing in your TkFramework:<p> +<div class="fragment"><pre class="fragment">TkFramework* framework = ... <span class="comment">// We must have created a TkFramework</span> + +<a class="code" href="_nv_blast_ext_tk_serialization_8h.html#3b56ccefec36904aed01309194c012c0">NvBlastExtTkSerializerLoadSet</a>(*framework, *ser); +</pre></div><p> +Now your serialization manager will have the serializers provided by this extension. Currently only TkAsset serializers exist, with object type ID given by<p> +<br> + <b>TkObjectTypeID::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> TkAsset* asset = ... <span class="comment">// Given pointer to an Nv::Blast::TkAsset</span> + +<span class="keywordtype">void</span>* buffer; +uint64_t size = ser->serializeIntoBuffer(buffer, asset, TkObjectTypeID::Asset); +</pre></div><p> +or use the wrapper function defined in <b><a class="el" href="_nv_blast_ext_tk_serialization_8h.html">NvBlastExtTkSerialization.h</a></b>:<p> +/code void* buffer; uint64_t size = NvBlastExtSerializationSerializeTkAssetIntoBuffer(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> |