diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2025-10-13 01:19:27 -0500 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2025-10-13 01:19:27 -0500 |
| commit | 1f9b827badb2de4c4eaae11c0d02242ec90af7f6 (patch) | |
| tree | 27acb295833e6eee730dd71f98db280d54c6a4ad /vendor/zgui/src/backend_glfw.zig | |
| parent | b5d0c1dcd751f4735d9f6b45c805300000c9d171 (diff) | |
| download | particle-sim-1f9b827badb2de4c4eaae11c0d02242ec90af7f6.tar.gz | |
Updating to zig 0.15.1
Diffstat (limited to 'vendor/zgui/src/backend_glfw.zig')
| -rw-r--r-- | vendor/zgui/src/backend_glfw.zig | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/vendor/zgui/src/backend_glfw.zig b/vendor/zgui/src/backend_glfw.zig deleted file mode 100644 index 83603fe..0000000 --- a/vendor/zgui/src/backend_glfw.zig +++ /dev/null @@ -1,35 +0,0 @@ -const gui = @import("gui.zig"); - -// This call will install GLFW callbacks to handle GUI interactions. -// Those callbacks will chain-call user's previously installed callbacks, if any. -// This means that custom user's callbacks need to be installed *before* calling zgpu.gui.init(). -pub fn init( - window: *const anyopaque, // zglfw.Window -) void { - if (!ImGui_ImplGlfw_InitForOther(window, true)) { - unreachable; - } -} - -pub fn initOpenGL( - window: *const anyopaque, // zglfw.Window -) void { - if (!ImGui_ImplGlfw_InitForOpenGL(window, true)) { - unreachable; - } -} - -pub fn deinit() void { - ImGui_ImplGlfw_Shutdown(); -} - -pub fn newFrame() void { - ImGui_ImplGlfw_NewFrame(); -} - -// Those functions are defined in `imgui_impl_glfw.cpp` -// (they include few custom changes). -extern fn ImGui_ImplGlfw_InitForOther(window: *const anyopaque, install_callbacks: bool) bool; -extern fn ImGui_ImplGlfw_InitForOpenGL(window: *const anyopaque, install_callbacks: bool) bool; -extern fn ImGui_ImplGlfw_NewFrame() void; -extern fn ImGui_ImplGlfw_Shutdown() void; |
