예제 #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.");
 }
예제 #2
0
 public static ModelFileFormat DetermineFileFormat(Stream stream)
 {
     if (Collada.IsColladaStream(stream))
     {
         return(ModelFileFormat.Collada);
     }
     throw new InvalidOperationException("Unsupported model file format.");
 }