From ea9f4c53fecdfc87b91a9cec82f5631c7b8362ec Mon Sep 17 00:00:00 2001 From: Andre Weissflog Date: Sat, 6 Dec 2025 14:56:34 +0100 Subject: bindgen: add sokol_gfx_imgui.h to sokol-zig bindings --- bindgen/gen_all.py | 3 ++- bindgen/gen_zig.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bindgen/gen_all.py b/bindgen/gen_all.py index 3f75fd01..83c6df9b 100644 --- a/bindgen/gen_all.py +++ b/bindgen/gen_all.py @@ -39,6 +39,7 @@ zig_tasks = [ *tasks, [ '../sokol_fetch.h', 'sfetch_', [] ], [ '../util/sokol_imgui.h', 'simgui_', ['sg_', 'sapp_'] ], + [ '../util/sokol_gfx_imgui.h', 'sgimgui_', [] ], ] gen_zig.prepare() for task in zig_tasks: @@ -77,4 +78,4 @@ for task in tasks: gen_c3.prepare() for task in tasks: [c_header_path, main_prefix, dep_prefixes] = task - gen_c3.gen(c_header_path, main_prefix, dep_prefixes) \ No newline at end of file + gen_c3.gen(c_header_path, main_prefix, dep_prefixes) diff --git a/bindgen/gen_zig.py b/bindgen/gen_zig.py index 8305b8b0..ba3168e1 100644 --- a/bindgen/gen_zig.py +++ b/bindgen/gen_zig.py @@ -24,6 +24,7 @@ module_names = { 'sglue_': 'glue', 'sfetch_': 'fetch', 'simgui_': 'imgui', + 'sgimgui_': 'sgimgui', } c_source_paths = { @@ -38,6 +39,7 @@ c_source_paths = { 'sglue_': 'sokol-zig/src/sokol/c/sokol_glue.c', 'sfetch_': 'sokol-zig/src/sokol/c/sokol_fetch.c', 'simgui_': 'sokol-zig/src/sokol/c/sokol_imgui.c', + 'sgimgui_': 'sokol-zig/src/sokol/c/sokol_gfx_imgui.c', } ignores = [ -- cgit v1.2.3