imgui-dx11-renderer

Crates.ioimgui-dx11-renderer
lib.rsimgui-dx11-renderer
version0.8.0
sourcesrc
created_at2020-07-19 21:43:02.794144
updated_at2022-05-07 10:35:21.172681
descriptionDirectX 11 renderer for the imgui crate
homepagehttps://github.com/Veykril/imgui-dx11-renderer
repositoryhttps://github.com/Veykril/imgui-dx11-renderer
max_upload_size
id267017
size74,663
Lukas Wirth (Veykril)

documentation

README

imgui-dx11-renderer

Documentation Version

DirectX 11 renderer for imgui-rs.

Usage

let device: ID3D11Device = ...;
let imgui: imgui::Context = ...;
let mut renderer = imgui_dx11_renderer::Renderer::new(&mut imgui, &device).expect("imgui dx11 renderer creation failed");

// rendering loop

let ui = imgui.frame();

// build your window via ui here
...

// then to render call
renderer.render(ui.render()).expect("imgui rendering failed");

The renderer backs up and reapplies the majority of the d3d11 rendering state when invoked.

Documentation

The crate is documented but imgui-rs doesn't currently build on docs.rs for the windows target. Due to this one has to either build it themselves or look into the source itself.

License

Licensed under the MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

Commit count: 27

cargo fmt