MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / render

Method render

src/OpenLoco/src/Graphics/SoftwareDrawingEngine.cpp:244–261  ·  view source on GitHub ↗

0x004C5CFA

Source from the content-addressed store, hash-verified

242
243 // 0x004C5CFA
244 void SoftwareDrawingEngine::render()
245 {
246 // Need to first render the current dirty regions before updating the viewports.
247 // This is needed to ensure it will copy the correct pixels when the viewport will be moved.
248 renderDirtyRegions();
249
250 // Updating the viewports will potentially move pixels and mark previously invisible regions as dirty.
251 WindowManager::updateViewports();
252
253 // Render the uncovered regions.
254 renderDirtyRegions();
255
256 // Draw FPS counter.
257 if (Config::get().showFPS)
258 {
259 Gfx::drawFPS(_ctx);
260 }
261 }
262
263 void SoftwareDrawingEngine::renderDirtyRegions()
264 {

Callers 6

renderDirtyRegionsMethod · 0.95
saveGiantScreenshotFunction · 0.45
drawViewportsFunction · 0.45
renderFunction · 0.45
renderAndUpdateFunction · 0.45
drawSavePreviewImageFunction · 0.45

Calls 14

updateViewportsFunction · 0.85
drawFPSFunction · 0.85
RectClass · 0.85
widthFunction · 0.85
heightFunction · 0.85
intersectionMethod · 0.80
leftMethod · 0.80
topMethod · 0.80
pushRenderTargetMethod · 0.80
popRenderTargetMethod · 0.80
renderFunction · 0.70
getFunction · 0.50

Tested by

no test coverage detected