bigwheels
bigwheels copied to clipboard
[NFC] Simplify window size handling
This change is the first requirement for cleaning up knobs initialization: BigWheels has settings, which are used to initialize default values, which in turn are used to initialize knobs. But then those settings becomes RW values used at runtime (like window.width, window.height).
The ultimate goal is to sanitize this whole initialization step, and only rely on knobs.
This first commit removes window.width
and window.height
from the settings, and rely on the Window
class to store its size. This should be a NFC.
Tested on linux, android and Windows. The swapchain is only resized once on window size change (checked on windows, setting the window to fullscreen etc)
Rebased on main to fix the conflicts