allow loading map from cli

This commit is contained in:
Quaternions 2023-10-01 17:18:50 -07:00
parent bf4560193d
commit af750151f7

View File

@ -771,6 +771,11 @@ impl framework::Example for GraphicsData {
graphics.generate_model_physics(&indexed_model_instances); graphics.generate_model_physics(&indexed_model_instances);
graphics.generate_model_graphics(&device,&queue,indexed_model_instances); graphics.generate_model_graphics(&device,&queue,indexed_model_instances);
let args:Vec<String>=std::env::args().collect();
if args.len()==2{
graphics.load_file(std::path::PathBuf::from(&args[1]), device, queue);
}
return graphics; return graphics;
} }