diff options
| author | Matheus C. França <matheus-catarino@hotmail.com> | 2024-06-01 13:06:26 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-01 13:06:26 -0300 |
| commit | 4e55ad2b741ca54211a105f1028e2ff8e24e8043 (patch) | |
| tree | f7961aa17c17e6259f7ec31a4779621ffe9bdfba /bindgen | |
| parent | 7b5cfa72b3188b239c23ec0f0eb7a810ec128dd4 (diff) | |
add sokol_imgui and sokol_fetch support
Diffstat (limited to 'bindgen')
| -rw-r--r-- | bindgen/gen_d.py | 5 |
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 = { |