MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / repaint

Method repaint

Engine/source/gui/core/guiCanvas.cpp:1669–1683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1667}
1668
1669void GuiCanvas::repaint(U32 elapsedMS)
1670{
1671 // Make sure we have a window.
1672 if ( !mPlatformWindow )
1673 return;
1674
1675 // Has enough time elapsed?
1676 U32 elapsed = Platform::getRealMilliseconds() - mLastRenderMs;
1677 if (elapsed < elapsedMS)
1678 return;
1679
1680 // Do the render.
1681 resetUpdateRegions();
1682 handlePaintEvent(mPlatformWindow->getWindowId());
1683}
1684
1685void GuiCanvas::maintainSizing()
1686{

Callers 1

guiCanvas.cppFile · 0.80

Calls 1

getWindowIdMethod · 0.45

Tested by

no test coverage detected