mach: update to latest ECS module layout
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
6f499aa418
commit
353cf6144b
2 changed files with 8 additions and 8 deletions
|
|
@ -7,13 +7,13 @@ const ecs = @import("ecs");
|
||||||
/// The Mach engine ECS module. This enables access to `engine.get(.mach, .core)` `*Core` APIs, as
|
/// 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
|
/// to for example `.setOptions(.{.title = "foobar"})`, or to access the GPU device via
|
||||||
/// `engine.get(.mach, .device)`
|
/// `engine.get(.mach, .device)`
|
||||||
pub const module = ecs.Module(.{
|
pub const Module = struct {
|
||||||
.globals = struct {
|
core: *Core,
|
||||||
core: *Core,
|
device: *gpu.Device,
|
||||||
device: *gpu.Device,
|
exit: bool,
|
||||||
exit: bool,
|
|
||||||
},
|
pub const name = .mach;
|
||||||
});
|
};
|
||||||
|
|
||||||
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
|
var gpa = std.heap.GeneralPurposeAllocator(.{}){};
|
||||||
const allocator = gpa.allocator();
|
const allocator = gpa.allocator();
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ pub const ResourceManager = @import("resource/ResourceManager.zig");
|
||||||
|
|
||||||
// Engine exports
|
// Engine exports
|
||||||
pub const App = @import("engine.zig").App;
|
pub const App = @import("engine.zig").App;
|
||||||
pub const module = @import("engine.zig").module;
|
pub const Module = @import("engine.zig").Module;
|
||||||
|
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue