Commit graph

10 commits

Author SHA1 Message Date
4bb4
9e44b63fa3 Attempts at fixing wgpu example for imgui-rs 0.7.0 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
5779f7e6d6 Automated the work from #16 2021-03-17 19:17:14 +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
d11ea4a0f5 Bumped winit in wgpu demo 2021-01-13 21:33:47 +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
fa6412d20c Moved around some paths 2020-10-30 12:54:18 +01:00