core: get wayland to compile

This commit is contained in:
Joshua Holmes 2024-09-12 22:51:13 -07:00 committed by Stephen Gutekanst
parent 8eb2da1044
commit 88d14b5c04
4 changed files with 191 additions and 126 deletions

View file

@ -183,14 +183,15 @@ fn init(core: *Mod, entities: *mach.Entities.Mod) !void {
var events = EventQueue.init(allocator);
try events.ensureTotalCapacity(8192);
// TODO: remove undefined initialization (disgusting!)
const platform: Platform = undefined;
core.init(.{
.allocator = allocator,
.main_window = main_window,
.events = events,
.input_state = .{},
// TODO: remove undefined initialization (disgusting!)
.platform = undefined,
.platform = platform,
// TODO: these should not be state, they should be components.
.title = title,