#imgui #opengl #renderer #3

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

#67 in Graphics APIs

Download history 22/week @ 2018-10-27 31/week @ 2018-11-03 29/week @ 2018-11-10 10/week @ 2018-11-17 76/week @ 2018-11-24 30/week @ 2018-12-01 23/week @ 2018-12-08 32/week @ 2018-12-15 74/week @ 2018-12-22 54/week @ 2018-12-29 50/week @ 2019-01-05 101/week @ 2019-01-12 36/week @ 2019-01-19 219/week @ 2019-01-26 49/week @ 2019-02-02

262 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