initial glfw stuff working

This commit is contained in:
Mitchell Hashimoto
2022-03-29 10:38:10 -07:00
parent ca11c63ca9
commit b8cee0a39e
5 changed files with 167 additions and 0 deletions

7
src/main.zig Normal file
View File

@@ -0,0 +1,7 @@
const std = @import("std");
const c = @import("glfw/c.zig");
pub fn main() !void {
if (c.glfwInit() != c.GLFW_TRUE) return error.GlfwInitFailed;
defer c.glfwTerminate();
}