The texture handles in Dear ImGui and Nuklear might be only 32-bits wide (Dear ImGui allows to define this via imconfig.h, but that's a bit awkward to offload this task to the sokol_imgui.h user).
To be able to provide both a sokol-gfx image- and sampler-handle, add new functions:
The texture handles in Dear ImGui and Nuklear might be only 32-bits wide (Dear ImGui allows to define this via imconfig.h, but that's a bit awkward to offload this task to the sokol_imgui.h user).
To be able to provide both a sokol-gfx image- and sampler-handle, add new functions:
simgui_texture tex = simgui_make_texture(&(simgui_texture_desc){ .image = img, .sampler = smp });
simgui_destroy_texture(tex)
void* simgui_textureid(tex)
(likewise in sokol_nuklear.h)
Underneath it's just the usual handle-pool.
(depends on: https://github.com/floooh/sokol/pull/842)