2020-10-30 11:24:08 +00:00
|
|
|
# Examples
|
|
|
|
|
|
|
|
This folder contains examples that demonstrate how to use the Rust bindings.
|
|
|
|
Things are structured as follows:
|
|
|
|
|
|
|
|
* [examples-shared](examples-shared/) is a library crate that contains the actual usage
|
|
|
|
examples. It is used in the backend-specific crates.
|
|
|
|
* [implot-glium-examples](implot-glium-examples/) is an example for using `implot-rs` in
|
|
|
|
conjunction with a [Glium](https://github.com/glium/glium) backend.
|
|
|
|
* [implot-wgpu-examples](implot-wgpu-examples/) is an example for using `implot-rs` in
|
2020-10-30 11:51:57 +00:00
|
|
|
conjunction with a [WebGPU](https://github.com/gfx-rs/wgpu) backend (work in progress, this
|
|
|
|
uses wgpu, but does currently not make use of `examples-shared` yet and has not been refactored
|
|
|
|
to look the same as the glium example structurally)
|
2020-10-30 11:24:08 +00:00
|
|
|
|
|
|
|
If you want to just copy-paste code to start with, copy `examples-shared` along with
|
2020-10-30 11:51:57 +00:00
|
|
|
your favourite backend example crate. The glium backend code is largely taken from imgui-rs.
|