imgui_tex_inspect icon indicating copy to clipboard operation
imgui_tex_inspect copied to clipboard

Use own embedded OpenGL loader

Open moritz-h opened this issue 2 years ago • 0 comments

Replace the OpenGL loading defines by an own minimal embedded OpenGL loader. This is the same as upstream imgui is doing now, see https://github.com/ocornut/imgui/issues/4445.

The changes to tex_inspect_opengl.cpp are taken from the upstream imgui repo. The loader is generated with the command:

./gl3w_gen.py --output ../imgui_tex_inspect/backends/tex_inspect_opengl_loader.h --ref ../imgui_tex_inspect/backends/tex_inspect_opengl.cpp ./extra_symbols.txt --symbolprefix imtexin_

There is a patch needed for gl3w_gen.py to allow overwriting the symbol prefix to avoid conflicts with the loader used by imgui itself, a PR with that feature is here: https://github.com/dearimgui/gl3w_stripped/pull/1

moritz-h avatar Sep 15 '22 17:09 moritz-h