2020-04-17 11:14:09 +10:00
|
|
|
fn main() {
|
2020-04-19 10:04:19 +10:00
|
|
|
let mod_name = std::env::args()
|
|
|
|
.skip(1)
|
|
|
|
.next()
|
|
|
|
.expect("provide a module name");
|
2020-04-17 11:14:09 +10:00
|
|
|
match mod_name.as_str() {
|
|
|
|
"scene" => print!("{}", piet_gpu_types::scene::gen_gpu_scene()),
|
2020-04-21 10:15:36 +10:00
|
|
|
"tilegroup" => print!("{}", piet_gpu_types::tilegroup::gen_gpu_tilegroup()),
|
2020-04-29 04:02:19 +10:00
|
|
|
"segment" => print!("{}", piet_gpu_types::segment::gen_gpu_segment()),
|
2020-04-17 11:14:09 +10:00
|
|
|
"ptcl" => print!("{}", piet_gpu_types::ptcl::gen_gpu_ptcl()),
|
2020-04-19 10:04:19 +10:00
|
|
|
"test" => print!("{}", piet_gpu_types::test::gen_gpu_test()),
|
2020-04-17 11:14:09 +10:00
|
|
|
_ => println!("Oops, unknown module name"),
|
|
|
|
}
|
|
|
|
}
|