From 74f997d8a0477c2bf4892e5191272964dadeef00 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sat, 31 Dec 2022 00:49:27 -0600 Subject: [PATCH] feat: add glfw+opengl3 backend option to build.zig --- build.zig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build.zig b/build.zig index c5ec3b8..09a395e 100644 --- a/build.zig +++ b/build.zig @@ -4,6 +4,7 @@ pub const Backend = enum { no_backend, glfw_wgpu, win32_dx12, + glfw_opengl3, }; pub const BuildOptions = struct { @@ -68,6 +69,10 @@ pub fn link(exe: *std.build.LibExeObjStep, bos: BuildOptionsStep) void { exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_glfw.cpp", cflags); exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_wgpu.cpp", cflags); }, + .glfw_opengl3 => { + exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_glfw.cpp", cflags); + exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_opengl3.cpp", cflags); + }, .win32_dx12 => { exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_win32.cpp", cflags); exe.addCSourceFile(thisDir() ++ "/libs/imgui/backends/imgui_impl_dx12.cpp", cflags);