mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 13:38:35 +00:00
To avoid conflicts in dependency version, this commit put examples using different renderers in different crates. Especially, glium and gfx do not necessarily depend on the same version of glutin. We have two examples: - imgui-examples (main examples, use gfx renderer here) - imgui-glium-examples (basic hello_glium example + maybe some texture stuff) Once vulcano support lands, we may add: imgui-vulkano-examples. This commit currently only moves files around. We plan to use gfx as a "main2 renderer for now on as gfx is more actively maintained that glium. Subsequent commits will migrate some glium examples to gfx.
16 lines
313 B
Rust
16 lines
313 B
Rust
extern crate glium;
|
|
extern crate imgui;
|
|
extern crate imgui_glium_renderer;
|
|
|
|
mod support;
|
|
|
|
const CLEAR_COLOR: [f32; 4] = [0.2, 0.2, 0.2, 1.0];
|
|
|
|
fn main() {
|
|
support::run("test_window.rs".to_owned(), CLEAR_COLOR, |ui| {
|
|
let mut open = true;
|
|
ui.show_demo_window(&mut open);
|
|
open
|
|
});
|
|
}
|