epezent / implot

Immediate Mode Plotting
MIT License
4.79k stars 531 forks source link

Backends: Implement heatmap rendering in a single function #263

Closed marcizhu closed 3 years ago

marcizhu commented 3 years ago

I merged SetHeatmapData(), RenderHeatmap() and SetAxisLog() in a single function as requested. I also took this opportunity to do a bit of a cleanup and do some small optimizations which I think give something like a 1% improvement in FPS. I deviated a bit from the template proposed in here in order to reduce the number of parameters where possible.

epezent commented 3 years ago

Nice! I went ahead and removed the obsolete functions from implot_backends.h, and made a few other nitpicky changes.

marcizhu commented 3 years ago

Woops! I forgot about implot_backends.h. My bad!