aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/lib.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-25 17:44:21 +0100
committertcmal <me@aria.rip>2024-08-25 17:44:21 +0100
commit5ad62fff05064a6a025a9b947ebab05ed7770e6c (patch)
treefe7a61a8c4910f99df878682edfaf2963a9aca59 /stockton-render/src/lib.rs
parent412d09b7ce9afcb812b748a08621ad9ca70a7966 (diff)
feat(render): handle window resize and close events again
Diffstat (limited to 'stockton-render/src/lib.rs')
-rw-r--r--stockton-render/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/stockton-render/src/lib.rs b/stockton-render/src/lib.rs
index 7cea5e7..4d10ff8 100644
--- a/stockton-render/src/lib.rs
+++ b/stockton-render/src/lib.rs
@@ -87,6 +87,10 @@ impl<'a> Renderer<'a> {
self.context.draw_vertices(map, &faces).unwrap();
}
}
+
+ fn resize(&mut self) {
+ unsafe { self.context.handle_surface_change().unwrap() };
+ }
}
/// A system that just renders the world.