use OpenGL on Mac

This commit is contained in:
Mitchell Hashimoto
2022-04-23 14:28:01 -07:00
parent d510d3c9a2
commit 70693872f7

View File

@ -17,7 +17,10 @@ pub fn build(b: *std.build.Builder) !void {
exe.addIncludeDir("src/"); exe.addIncludeDir("src/");
exe.addCSourceFile("src/gb_math.c", &.{}); exe.addCSourceFile("src/gb_math.c", &.{});
exe.addPackagePath("glfw", "vendor/mach/glfw/src/main.zig"); exe.addPackagePath("glfw", "vendor/mach/glfw/src/main.zig");
glfw.link(b, exe, .{}); glfw.link(b, exe, .{
.metal = false,
.opengl = true,
});
// GLAD // GLAD
exe.addIncludeDir("vendor/glad/include/"); exe.addIncludeDir("vendor/glad/include/");