examples: add hardware-check
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
3c778816d9
commit
92086d8d66
4 changed files with 383 additions and 2 deletions
19
examples/hardware-check/main.zig
Normal file
19
examples/hardware-check/main.zig
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
const mach = @import("mach");
|
||||
|
||||
// The global list of Mach modules registered for use in our application.
|
||||
pub const modules = .{
|
||||
mach.Core,
|
||||
mach.gfx.sprite_modules,
|
||||
mach.gfx.text_modules,
|
||||
mach.Audio,
|
||||
@import("App.zig"),
|
||||
};
|
||||
|
||||
// TODO(important): use standard entrypoint instead
|
||||
pub fn main() !void {
|
||||
// Initialize mach.Core
|
||||
try mach.core.initModule();
|
||||
|
||||
// Main loop
|
||||
while (try mach.core.tick()) {}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue