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

#302 in Graphics APIs

Download history 56/week @ 2024-07-21 67/week @ 2024-07-28 47/week @ 2024-08-04 89/week @ 2024-08-11 52/week @ 2024-08-18 63/week @ 2024-08-25 63/week @ 2024-09-01 130/week @ 2024-09-08 50/week @ 2024-09-15 203/week @ 2024-09-22 108/week @ 2024-09-29 19/week @ 2024-10-06 59/week @ 2024-10-13 42/week @ 2024-10-20 67/week @ 2024-10-27 64/week @ 2024-11-03

235 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–17MB
~245K SLoC