Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/veykril/imgui-dx9-renderer
A directx9 renderer for imgui-rs
https://github.com/veykril/imgui-dx9-renderer
directx directx9 dx9 gui imgui rust
Last synced: 2 months ago
JSON representation
A directx9 renderer for imgui-rs
- Host: GitHub
- URL: https://github.com/veykril/imgui-dx9-renderer
- Owner: Veykril
- License: mit
- Created: 2019-05-31T19:53:25.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-06-17T20:53:37.000Z (over 1 year ago)
- Last Synced: 2024-10-19T14:03:37.478Z (3 months ago)
- Topics: directx, directx9, dx9, gui, imgui, rust
- Language: Rust
- Size: 52.7 KB
- Stars: 20
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# imgui-dx9-renderer
[![Documentation](https://docs.rs/imgui-dx9-renderer/badge.svg)](https://docs.rs/imgui-dx9-renderer)
[![Version](https://img.shields.io/crates/v/imgui-dx9-renderer.svg)](https://crates.io/crates/imgui-dx9-renderer)DirectX 9 renderer for [imgui-rs](https://github.com/Gekkio/imgui-rs).
## Usage
This crate makes use of the ComPtr wrapper of the [wio](https://crates.io/crates/wio) crate.
You have to either wrap your device pointer in one to pass it to the renderer `new` constructor or pass it to `new_raw` which will increment the ref count for you.```rust
let device: *mut IDirect3DDevice9 = /* */;let mut renderer = unsafe {
imgui_dx9_renderer::Renderer::new(&mut imgui, wio::com::ComPtr::from_raw(device)).unwrap()
};
// or
let mut renderer = unsafe {
imgui_dx9_renderer::Renderer::new_raw(&mut imgui, device).unwrap()
};
```
Then in your rendering loop it's as easy as calling `renderer.render(ui.render())`.## 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](LICENSE-MIT) or http://opensource.org/licenses/MIT)