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

#678 in Graphics APIs

Download history 7/week @ 2024-11-13 47/week @ 2024-11-20 74/week @ 2024-11-27 137/week @ 2024-12-04 283/week @ 2024-12-11 59/week @ 2024-12-18 3/week @ 2024-12-25 41/week @ 2025-01-01 47/week @ 2025-01-08 120/week @ 2025-01-15 69/week @ 2025-01-22 95/week @ 2025-01-29 170/week @ 2025-02-05 165/week @ 2025-02-12 51/week @ 2025-02-19 148/week @ 2025-02-26

557 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–18MB
~245K SLoC