Example #1
0
 public static ModelData Load(Stream stream, ModelFileFormat format)
 {
     if (format == ModelFileFormat.Collada)
     {
         return(Collada.Load(stream));
     }
     throw new InvalidOperationException("Unsupported model file format.");
 }
Example #2
0
 public static ModelFileFormat DetermineFileFormat(Stream stream)
 {
     if (Collada.IsColladaStream(stream))
     {
         return(ModelFileFormat.Collada);
     }
     throw new InvalidOperationException("Unsupported model file format.");
 }