mach/examples/core/custom-entrypoint/main.zig
Stephen Gutekanst 4ac8de4692 examples: move core examples into core/ folder; add triangle example
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2024-06-02 10:15:01 -07:00

15 lines
309 B
Zig

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