aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2024-06-03 11:27:37 +0200
committerGitHub <noreply@github.com>2024-06-03 11:27:37 +0200
commitc54523c078e481d3084fa0b4630d2ce3d3e1e74f (patch)
treef7961aa17c17e6259f7ec31a4779621ffe9bdfba
parent7b5cfa72b3188b239c23ec0f0eb7a810ec128dd4 (diff)
parent4e55ad2b741ca54211a105f1028e2ff8e24e8043 (diff)
Merge pull request #1059 from kassane/d_imgui
sokol_d: add sokol_imgui support
-rw-r--r--bindgen/gen_d.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bindgen/gen_d.py b/bindgen/gen_d.py
index 9665bedc..31caf095 100644
--- a/bindgen/gen_d.py
+++ b/bindgen/gen_d.py
@@ -23,6 +23,8 @@ module_names = {
'sdtx_': 'debugtext',
'sshape_': 'shape',
'sglue_': 'glue',
+ 'sfetch_': 'fetch',
+ 'simgui_': 'imgui',
}
c_source_paths = {
@@ -35,6 +37,8 @@ c_source_paths = {
'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 @@ overrides = {
'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 = {