Commit graph

12 commits

Author SHA1 Message Date
Kyle Cesare
3231f488e3 examples: update to imgui-wgpu 0.17/wgpu 0.10 2021-09-12 11:44:04 +02:00
4bb4
5177415a25 Upgraded to imgui-rs 0.7, see comments.
- The glium example was upgraded as well and works.
- The wgpu example was not yet touched in this commit, it will
  require a version of imgui-wgpu that points to imgui-rs 0.7.0
  as well to work.
2021-09-12 11:44:04 +02:00
4bb4
06cc3061c1 Added support for linked axes. See comments.
This commit adds support for linked axes between plots. One can specify
such linked limits using the new `linked_x_axis()` function (and the
variants for the Y axes) by specifying an `Rc<RefCell<ImPlotRange>>`
value, and passing clones of the same `Rc` to other plots.

The values within those `Rc` need to be kept persistent between frames,
hence the way to use this functionality is to keep a clone of the `Rc`
outside the frame-drawing function as part of the application state.

The regular limit setting API is unaffected.
2021-05-30 11:56:14 +02:00
4bb4
3c30e3f919 Fixed conversions 2021-03-14 20:53:07 +01:00
4bb4
6179cf1f8d Locked imgui versions down more. See comments.
Due to the yanking of imgui-winit-support 0.6.1, builds that did
not have a lock file started failing in places. I've now locked
the versions of imgui and friends to exactly 0.6.0 to avert those
issues for the time being, with the longer-term fix being the
upgrade of all those to 0.7.0 in #13.
2021-02-06 10:02:58 +01:00
4bb4
ca0e273c9d Bumped Glium version in Glium demo 2021-01-13 21:24:57 +01:00
4bb4
af760648b6 Added some simple colorscheme setters
These don't properly expose the implot style yet in a way that is
consistent with imgui-rs' handling of styles. This is to be added
later.
2020-11-29 19:21:12 +01:00
Benedikt Mandelkow
d02f25fb32 apply some automatic clippy hints 2020-11-29 12:49:26 +01:00
Benedikt Mandelkow
c5ec153488 update imgui 0.6 2020-11-29 12:49:26 +01:00
4bb4
6233ef3f45 Restructured example code 2020-11-22 15:55:48 +01:00
4bb4
b6a7cae830 Brought WebGPU demo into same structure as Glium demo 2020-10-30 14:37:08 +01:00
4bb4
40f0cc8564 Reworked glium demo to use the shared example code 2020-10-30 12:42:14 +01:00