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.
I merged
SetHeatmapData()
,RenderHeatmap()
andSetAxisLog()
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.