Commit graph

4 commits

Author SHA1 Message Date
4bb4
a747fa2d91 Added both the build() and the begin()+end() options for Plot
- 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.
2020-08-08 15:40:04 +02:00
4bb4
b832924fad Refactored Plot building, various example updates 2020-08-08 14:42:22 +02:00
4bb4
ee910152b7 Added main crate and some initial code for idiomatic bindings 2020-08-04 22:05:04 +02:00
4bb4
c1ccb4eb6f Got initial unsafe bindings working. See comments.
- 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.
2020-08-01 18:28:17 +02:00