Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Porting of ShowDemo_RealtimePlots over Java #219

Open
SolsticeSpectrum opened this issue Jan 16, 2024 · 0 comments
Open

Porting of ShowDemo_RealtimePlots over Java #219

SolsticeSpectrum opened this issue Jan 16, 2024 · 0 comments
Labels
missing binding Some of the original library API is missing

Comments

@SolsticeSpectrum
Copy link

SolsticeSpectrum commented Jan 16, 2024

Version

v1.86.11

What part of the binding has gaps?

ImPlot

What is missing?

Hello, I spent several hours on this already but I am failing at porting this real time plot demo. I wanna use it for profiling but both plotLine and plotShaded require arrays instead of floats so I am not entirely sure how to translate this. Also the C++ implementation uses negative infinity for ys which I am not sure how to do that with arrays.

Maybe implement those two functions with floats as alternative? Because clearly the original can do that.

https://github.com/epezent/implot/blob/dea3387cdcc1d6a7ee3607f8a37a9dce8a85224f/implot_demo.cpp#L716C9-L716C9

I tried something like this but it crashes https://pastebin.com/N59YhGWE

Maybe adding all those examples as well so we actually know how to write this in Java would be helpful

@SolsticeSpectrum SolsticeSpectrum added the missing binding Some of the original library API is missing label Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
missing binding Some of the original library API is missing
Projects
None yet
Development

No branches or pull requests

1 participant