examples: move core examples into core/ folder; add triangle example

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-06-02 10:15:01 -07:00
parent 1b448dd02a
commit 4ac8de4692
7 changed files with 180 additions and 3 deletions

View file

@ -1,15 +0,0 @@
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()) {}
}