2021-11-27 00:23:19 +00:00
|
|
|
const std = @import("std");
|
|
|
|
const builtin = @import("builtin");
|
2021-11-28 00:04:15 +00:00
|
|
|
const gl = @import("gl.zig");
|
2021-11-27 00:23:19 +00:00
|
|
|
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();
|
|
|
|
|
2021-11-28 00:04:15 +00:00
|
|
|
gl.init();
|
|
|
|
|
2021-11-27 00:23:19 +00:00
|
|
|
while (!window.shouldClose()) {
|
|
|
|
window.update();
|
|
|
|
window.swapBuffers();
|
|
|
|
}
|
2021-11-27 22:18:18 +00:00
|
|
|
}
|