Browse Source

Added convertible interface

Vicente Penades 5 years ago
parent
commit
07f7b4cf29
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/SharpGLTF.Core/Schema2/IConvertibleToGltf2.cs

+ 14 - 0
src/SharpGLTF.Core/Schema2/IConvertibleToGltf2.cs

@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace SharpGLTF.Schema2
+{
+    /// <summary>
+    /// Defines a method that converts the implementing reference to a <see cref="ModelRoot"/>
+    /// </summary>
+    public interface IConvertibleToGltf2
+    {
+        ModelRoot ToGltf2();
+    }
+}