mach/examples/core-custom-entrypoint/main.zig
Stephen Gutekanst 013546b189 core: add mach.Core module API
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-08 23:49:38 -07:00

20 lines
415 B
Zig

const std = @import("std");
const mach = @import("mach");
const Game = @import("Game.zig");
// The global list of Mach modules registered for use in our application.
pub const modules = .{
mach.Core,
Game,
};
pub const GPUInterface = mach.core.wgpu.dawn.Interface;
pub fn main() !void {
// Initialize mach.Core
try mach.core.initModule();
// Main loop
while (try mach.core.tick()) {}
}