Randering widgets update

  • 1 Replies
  • 217 Views
Randering widgets update
« on: 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:
Canvas->connect("FrameUpdated", drawFunction, std::ref(Canvas));

*

texus

  • *****
  • 1584
    • View Profile
    • Texus's Blog
Re: Randering widgets update
« Reply #1 on: 08 April 2020, 18:13:07 »
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.