Example #1
0
 /// <summary>
 /// Export data asynchronously to a destination file.
 /// </summary>
 /// <param name="scene">The scene representation to export.</param>
 /// <param name="filename">The file to export to.</param>
 /// <param name="return_callback">The calback used to notify the caller when the export is completed.</param>
 /// <param name="progress_callback">The callback to regularly notify the caller of the export progress.</param>
 /// <returns>An iterator to use inside a coroutine.</returns>
 public IEnumerator ExportToFile(Scene scene, string filename, ExporterSuccessCallback return_callback, ProgressCallback progress_callback)
 {
     return(Import.Binary.serializer.Serialize(scene, filename, s => return_callback(s), p => progress_callback(p)));
 }
Example #2
0
 /// <summary>
 /// Export data asynchronously to a destination file.
 /// </summary>
 /// <param name="scene">The scene representation to export.</param>
 /// <param name="filename">The file to export to.</param>
 /// <param name="return_callback">The calback used to notify the caller when the export is completed.</param>
 /// <param name="progress_callback">The callback to regularly notify the caller of the export progress.</param>
 /// <returns>An iterator to use inside a coroutine.</returns>
 public IEnumerator ExportToFile(Scene scene, string filename, ExporterSuccessCallback return_callback, ProgressCallback progress_callback)
 {
     return(scene.ToAssimp(context, filename, UsedSteps(postProcessSteps), return_callback, progress_callback));
 }