From 1fa5c9675f4411577d942e96b017fdd444e86504 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 19 Jun 2023 10:51:43 -0500 Subject: [PATCH] fix: ensure that main.zig is removed --- src/gui.zig | 2 ++ src/main.zig | 17 ----------------- 2 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 src/main.zig diff --git a/src/gui.zig b/src/gui.zig index 1be97bc..44bec99 100644 --- a/src/gui.zig +++ b/src/gui.zig @@ -9,6 +9,8 @@ pub const version = @import("std").SemanticVersion{ .major = 1, .minor = 89, .pa pub const plot = @import("plot.zig"); pub const backend = switch (@import("zgui_options").backend) { .glfw_wgpu => @import("backend_glfw_wgpu.zig"), + .glfw_opengl3 => @import("backend_glfw_opengl3.zig"), + .sdl2_opengl3 => @import("backend_sdl2_opengl3.zig"), .win32_dx12 => .{}, // TODO: .no_backend => .{}, }; diff --git a/src/main.zig b/src/main.zig deleted file mode 100644 index 16c2923..0000000 --- a/src/main.zig +++ /dev/null @@ -1,17 +0,0 @@ -//-------------------------------------------------------------------------------------------------- -// -// Zig bindings for 'dear imgui' library. Easy to use, hand-crafted API with default arguments, -// named parameters and Zig style text formatting. -// -//-------------------------------------------------------------------------------------------------- -pub const version = @import("std").SemanticVersion{ .major = 0, .minor = 9, .patch = 6 }; - -pub usingnamespace @import("gui.zig"); -pub const plot = @import("plot.zig"); -pub const backend = switch (@import("zgui_options").backend) { - .glfw_wgpu => @import("backend_glfw_wgpu.zig"), - .glfw_opengl3 => @import("backend_glfw_opengl3.zig"), - .sdl2_opengl3 => @import("backend_sdl2_opengl3.zig"), - .win32_dx12 => .{}, // TODO: - .no_backend => .{}, -};