refactor: reduce Window references

This commit is contained in:
MihailRis 2025-03-06 15:32:58 +03:00
parent 896ab3597a
commit 74a94f869c
19 changed files with 151 additions and 155 deletions

View file

@ -338,8 +338,8 @@ void WorldRenderer::draw(
auto world = level.getWorld();
const Viewport& vp = pctx.getViewport();
camera.aspect = vp.getWidth() / static_cast<float>(vp.getHeight());
const auto& vp = pctx.getViewport();
camera.setAspectRatio(vp.getRatio());
const auto& settings = engine.getSettings();
const auto& worldInfo = world->getInfo();