floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
6.82k stars 475 forks source link

Reminder: combined image/sampler objects for sokol_imgui.h, sokol_nuklear.h #847

Closed floooh closed 1 year ago

floooh commented 1 year ago

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:

(likewise in sokol_nuklear.h)

Underneath it's just the usual handle-pool.

(depends on: https://github.com/floooh/sokol/pull/842)

floooh commented 1 year ago

Oops, duplicate: #860