From 4e55ad2b741ca54211a105f1028e2ff8e24e8043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matheus=20C=2E=20Fran=C3=A7a?= Date: Sat, 1 Jun 2024 13:06:26 -0300 Subject: [PATCH] add sokol_imgui and sokol_fetch support --- bindgen/gen_d.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bindgen/gen_d.py b/bindgen/gen_d.py index 9665bedc1..31caf095d 100644 --- a/bindgen/gen_d.py +++ b/bindgen/gen_d.py @@ -23,6 +23,8 @@ 'sdtx_': 'debugtext', 'sshape_': 'shape', 'sglue_': 'glue', + 'sfetch_': 'fetch', + 'simgui_': 'imgui', } c_source_paths = { @@ -35,6 +37,8 @@ 'sdtx_': 'sokol-d/src/sokol/c/sokol_debugtext.c', 'sshape_': 'sokol-d/src/sokol/c/sokol_shape.c', 'sglue_': 'sokol-d/src/sokol/c/sokol_glue.c', + 'sfetch_': 'sokol-d/src/sokol/c/sokol_fetch.c', + 'simgui_': 'sokol-d/src/sokol/c/sokol_imgui.c', } ignores = [ @@ -63,6 +67,7 @@ 'sshape_element_range_t.num_elements': 'uint32_t', 'sdtx_font.font_index': 'uint32_t', 'SGL_NO_ERROR': 'SGL_ERROR_NO_ERROR', + 'sfetch_continue': 'continue_fetching', # 'continue' is reserved in D } prim_types = {