* Used if controls require computations before rendering. * Any operations other than graphical. */
| 407 | * Any operations other than graphical. |
| 408 | */ |
| 409 | void Control::preRender() |
| 410 | { |
| 411 | for (auto ctrlidx = Controls.begin(); ctrlidx != Controls.end(); ctrlidx++) |
| 412 | { |
| 413 | auto c = *ctrlidx; |
| 414 | if (c->Visible) |
| 415 | { |
| 416 | c->preRender(); |
| 417 | } |
| 418 | } |
| 419 | |
| 420 | if (funcPreRender) |
| 421 | { |
| 422 | funcPreRender(shared_from_this()); |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | void Control::onRender() { fw().renderer->clear(BackgroundColour); } |
| 427 |