imgui-glfw-rs: GLFW Input handling for ImGui

EXPERIMENTAL!
crates.io Documentation on docs.rs Dependencies

GLFW input handling for imgui

How to use

```rust use imguiglfwrs::glfw as glfw; // avoid version conflicts use imguiglfwrs::ImguiGLFW; // ImGui uses { ... }

fn main() { // Initialize imgui and glfw and imgui renderer. // { ... }

let mut imgui_glfw = ImguiGLFW::new(&mut imgui);

while !window.should_close() {
    let ui = imgui_glfw.frame(&mut window, &mut imgui);

    // Draw your ui.
    // { ... }

    window.swap_buffers();

    // Handle imgui events
    glfw.poll_events();
    for (_, event) in glfw::flush_messages(&events) {
        imgui_glfw.handle_event(&mut imgui, &event);
    }
}

} ```

Current implemented things

Unimplemented things and known issues

Compiling and running the example

sh git clone https://github.com/K4ugummi/imgui-glfw-rs.git cd imgui-glfw-rs cargo run --example helloworld

Contributing

  1. Make some changes
  2. Run rustfmt for code style conformance
    cargo fmt
  3. Open a pull request

Thanks to