OpenGL (3+) rendering for imgui-rs
- 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 _);
- Call
render
to draw the UI.renderer.render(ui);
Take a look at the example app to see it all in context.