Hooray, 3D graphics, now actually functioning!

This commit is contained in:
duck
2025-04-24 17:26:57 +05:00
parent 89e0649efe
commit f42cebc87e
4 changed files with 85 additions and 43 deletions

View File

@@ -56,6 +56,9 @@ fn process_event(self: *Self, event: sdl.SDL_Event) void {
sdl.SDL_EVENT_QUIT => {
self.running = false;
},
sdl.SDL_EVENT_WINDOW_RESIZED => {
self.graphics.resize(@intCast(event.window.data1), @intCast(event.window.data2));
},
else => {},
}
}