mach/src
David Vanderson c0e0b7c686 mach: save window and framebuffer size from glfw callbacks
Previously if user code called core.getWindowSize() (or
getFramebufferSize) during their update they could get sizes that did
not match engine.gpu_driver.target_desc because the window had changed
size.

Now core.getWindowSize() returns the last size we got from a glfw
callback instead of directly querying the window.  So all sizes should
agree during a single frame.

This relies on glfw callbacks only happening when we call
glfw.pollEvents().  This isn't strictly true - a callback could happen
during any glfw call.  Might have to revisit this later.
2022-05-30 12:17:04 -07:00
..
platform mach: save window and framebuffer size from glfw callbacks 2022-05-30 12:17:04 -07:00
Engine.zig mach: add a standard way to access platform specific structs 2022-05-23 01:03:43 -07:00
enums.zig mach: wasm: add note about vsync support and move VSyncMode to enums.zig 2022-05-25 09:10:13 -07:00
main.zig mach: introduce cross platform Timer abstraction 2022-05-17 23:56:41 -07:00
platform.zig mach: Move all platform specific files to platform/ directory 2022-05-30 10:22:42 -07:00
structs.zig mach: wasm: add note about vsync support and move VSyncMode to enums.zig 2022-05-25 09:10:13 -07:00
Timer.zig mach: add a standard way to access platform specific structs 2022-05-23 01:03:43 -07:00