mach: update to latest ECS module layout

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-03-26 20:11:17 -07:00 committed by Stephen Gutekanst
parent 6f499aa418
commit 353cf6144b
2 changed files with 8 additions and 8 deletions

View file

@ -7,13 +7,13 @@ const ecs = @import("ecs");
/// The Mach engine ECS module. This enables access to `engine.get(.mach, .core)` `*Core` APIs, as
/// to for example `.setOptions(.{.title = "foobar"})`, or to access the GPU device via
/// `engine.get(.mach, .device)`
pub const module = ecs.Module(.{
.globals = struct {
core: *Core,
device: *gpu.Device,
exit: bool,
},
});
pub const Module = struct {
core: *Core,
device: *gpu.Device,
exit: bool,
pub const name = .mach;
};
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
const allocator = gpa.allocator();