mach/examples/custom-renderer/main.zig
Stephen Gutekanst d1c3d26710 core: provide a default pub const GPUInterface
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-04-09 21:20:48 -07:00

21 lines
467 B
Zig

const std = @import("std");
const mach = @import("mach");
const Renderer = @import("Renderer.zig");
const Game = @import("Game.zig");
// The global list of Mach modules registered for use in our application.
pub const modules = .{
mach.Core,
Renderer,
Game,
};
// TODO: move this to a mach "entrypoint" zig module
pub fn main() !void {
// Initialize mach core
try mach.core.initModule();
// Main loop
while (try mach.core.tick()) {}
}