rust
.with_pass(amethyst_imgui::DrawUi::default())
GameDataBuilder
:
rust
GameDataBuilder::default()
.with(amethyst_imgui::BeginFrame::default(), "imgui_begin", &[])
.with_barrier()
// --- everything else ---
.with_barrier()
.with(amethyst_imgui::EndFrame::default(), "imgui_end", &["imgui_begin"]);
System
:
rust
amethyst_imgui::with(|ui| {
ui.show_demo_window(&mut true);
});
Add an ImguiIni
resource.
rust
world.add_resource(amethyst_imgui::ImguiIni::new("imgui.ini"));
cargo run --example demo_window