- Copied the trick from imgui-rs to notice if a begin() is left
unmatched
- Changed plot_line to be a struct, but might go away from that
again. Initial idea was to add things like setting markers and
colors to this as struct methods, but it seems this will lead
to lots of code overhead compared to the pushing and popping
stylevars approach taken in the C++ implementation.
- This now builds the bindings (still with cbindgen in build.rs,
will change that in a bit) and links to them successfully. Everything
currently points to the master branch at Gekkio/imgui-rs, because
there has not been a release yet with the PR merged that exposes
the defines in the sys crate.
- I have now included a little demo crate that calls into the unsafe
generated bindings as a proof of concept. Next there will need to
be safe and more Rust-y bindings written around this, just like
imgui-rs has them.
This points to aloucks' fork instead of imgui-rs directly
so I can try out the PR. Doesn't seem to work as expected
yet though, trying to read the env var doesn't show anything.
I'm probably doing it wrong.