Randering widgets update

Started by CatalinNic, 08 April 2020, 18:11:05


Is there any event system for connecting any widget that renders something in itself eg. tgui::Canvas to render their contents on frame update like for example:
Code (cpp) Select
Canvas->connect("FrameUpdated", drawFunction, std::ref(Canvas));


No, but you decide for yourself when you update the canvas. The canvas only needs to be drawn on when its contents needs to change, but TGUI doesn't know when that is, it just keeps drawing the old content until you update the canvas.