mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-01-05 21:07:56 +00:00
initial glfw stuff working
This commit is contained in:
7
src/main.zig
Normal file
7
src/main.zig
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user