imgui-rs/examples/test_window.rs
Will Usher 8520d0e245 Starting to work on keyboard input
Update examples to use keyboard input
2015-10-17 13:51:21 -06:00

25 lines
476 B
Rust

#[macro_use]
extern crate glium;
#[macro_use]
extern crate imgui;
extern crate time;
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 }
}
}