22 lines
463 B
Zig
22 lines
463 B
Zig
const std = @import("std");
|
|
const builtin = @import("builtin");
|
|
const glfw = @import("glfw.zig");
|
|
const math = @import("math.zig");
|
|
|
|
pub fn main() anyerror!void {
|
|
glfw.init();
|
|
defer glfw.deinit();
|
|
|
|
var window = glfw.Window.init(640, 360, "a toki ma!");
|
|
defer window.deinit();
|
|
|
|
while (!window.shouldClose()) {
|
|
window.update();
|
|
window.swapBuffers();
|
|
}
|
|
}
|
|
|
|
test "basic test" {
|
|
try std.testing.expectEqual(10, 3 + 7);
|
|
}
|