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