Skip to content

Commit

Permalink
Merge pull request #1059 from kassane/d_imgui
Browse files Browse the repository at this point in the history
sokol_d: add sokol_imgui support
  • Loading branch information
floooh authored Jun 3, 2024
2 parents 7b5cfa7 + 4e55ad2 commit c54523c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bindgen/gen_d.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
'sdtx_': 'debugtext',
'sshape_': 'shape',
'sglue_': 'glue',
'sfetch_': 'fetch',
'simgui_': 'imgui',
}

c_source_paths = {
Expand All @@ -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 = [
Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit c54523c

Please sign in to comment.