Odd Issue when switching between Implot.AddText / Implot.Image
- Dominant language
- C++
- Stars
- 6.2k
- Forks
- 693
- PR merge metrics
- No merged PRs in 30d
Description
Hi
I get this issue, probably something wrong am doing/got wrong understanding. I have a check where it only loads images when texture is available, if not available then show some text.
The issue is when this switch happens from showing text to image, the image does gets loaded but on canvas all I see if black screen and the bottom right coordinates doesn't referesh at all the way they usually show current x,y coordinates when moving mouse around. If i double click on canvas then my image shows up.
`if (image_texture != nullptr)
ImPlot::PlotImage("", (void*)my_texture, ImVec2(0, 0), ImVec2(1920, 1080.000000), ImVec2(0, 0), ImVec2(1, 1), ColorEdit4);
else
ImPlot::PlotText("Image Not Found.", ImPlot::GetPlotSize().x / 2, ImPlot::GetPlotSize().y / 2);`
Also is there a way to focus on certain coordinates on canvas say if i click on x-text in legend then it move focus to that individual object?
Thanks
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.