20 releases (11 breaking)

Uses old Rust 2015

0.12.1 Aug 26, 2023
0.12.0 Jan 14, 2023
0.11.1 Feb 28, 2022
0.11.0 Feb 14, 2021
0.2.2 Jun 6, 2018

#101 in Graphics APIs

Download history 25/week @ 2024-01-08 13/week @ 2024-01-15 6/week @ 2024-01-22 10/week @ 2024-02-05 19/week @ 2024-02-12 56/week @ 2024-02-19 189/week @ 2024-02-26 223/week @ 2024-03-04 185/week @ 2024-03-11 167/week @ 2024-03-18 145/week @ 2024-03-25 351/week @ 2024-04-01 50/week @ 2024-04-08 61/week @ 2024-04-15

614 downloads per month
Used in 6 crates

MIT/Apache

15KB
268 lines

imgui-opengl-renderer

Build Status Documentation Version

OpenGL (3+) rendering for imgui-rs

Integration guide

  1. Construct it (passing in an OpenGL function loader from SDL2 or glutin or somesuch).
    let renderer = imgui_opengl_renderer::Renderer::new(&mut imgui, |s| video.gl_get_proc_address(s) as _);
    
  2. Call render to draw the UI.
    renderer.render(ui);
    

Take a look at the example app to see it all in context.

Dependencies

~12–19MB
~241K SLoC