mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
23 lines
463 B
Rust
23 lines
463 B
Rust
extern crate glium;
|
|
extern crate imgui;
|
|
extern crate imgui_glium_renderer;
|
|
|
|
use self::support::Support;
|
|
|
|
mod support;
|
|
|
|
const CLEAR_COLOR: (f32, f32, f32, f32) = (0.2, 0.2, 0.2, 1.0);
|
|
|
|
fn main() {
|
|
let mut support = Support::init();
|
|
|
|
loop {
|
|
let mut open = true;
|
|
support.render(CLEAR_COLOR, |ui| ui.show_test_window(&mut open));
|
|
let active = support.update_events();
|
|
if !active || !open {
|
|
break;
|
|
}
|
|
}
|
|
}
|