Commit graph

68 commits

Author SHA1 Message Date
4bb4
42ae2779bb Added a safeguard against empty vector plotting, this would segfault 2020-08-09 13:56:09 +02:00
4bb4
411086483e Added x and y limit setting API 2020-08-09 13:16:48 +02:00
4bb4
70eff2e3bf Updated readme, renamed example 2020-08-08 16:01:51 +02:00
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
7d09c30892 Found linguist-generated, using that instead 2020-08-04 22:15:41 +02:00
4bb4
8805819d22 Treat generated bindings as binary file 2020-08-04 22:13:34 +02:00
4bb4
ee910152b7 Added main crate and some initial code for idiomatic bindings 2020-08-04 22:05:04 +02:00
4bb4
db4d307b85 Updated readme with current state and next steps 2020-08-03 21:52:45 +02:00
4bb4
0f11df5989 Added a separate bindgen building crate and pre-generated bindings 2020-08-03 21:50:03 +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
4bb4
5d293f8f79 Addressed some feedback in build script 2020-07-12 22:25:27 +02:00
4bb4
d1ce31d8cf Got include to work, but bindgen still errors out 2020-07-12 14:29:02 +02:00
4bb4
42adfb57fb Added submodule for cimplot and some build code
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.
2020-07-02 21:15:22 +02:00
4bb4
2d83f4f4b0
Update README.md 2020-07-01 21:50:14 +02:00
4bb4
f3e24283d1 Added initial skeleton files 2020-07-01 21:46:33 +02:00
4bb4
895e4e6366
Create README.md 2020-07-01 19:41:31 +02:00
4bb4
6c7d54d944
Initial commit 2020-07-01 19:40:18 +02:00