#imgui #opengl #renderer

imgui-opengl-renderer

An OpenGL renderer for imgui-rs

9 unstable releases (3 breaking)

0.4.0 Feb 9, 2019
0.3.2 Jan 12, 2019
0.3.1 Nov 28, 2018
0.2.3 Aug 19, 2018
0.1.0 May 3, 2018
Download history 98/week @ 2018-12-18 30/week @ 2018-12-25 41/week @ 2019-01-01 59/week @ 2019-01-08 94/week @ 2019-01-15 55/week @ 2019-01-22 196/week @ 2019-01-29 75/week @ 2019-02-05 179/week @ 2019-02-12 70/week @ 2019-02-19 69/week @ 2019-02-26 41/week @ 2019-03-05 34/week @ 2019-03-12 27/week @ 2019-03-19 81/week @ 2019-03-26

333 downloads per month
Used in 2 crates

MIT/Apache

15KB
253 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

~4.5MB
~63K SLoC