Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use own embedded OpenGL loader #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

moritz-h
Copy link

Replace the OpenGL loading defines by an own minimal embedded OpenGL loader. This is the same as upstream imgui is doing now, see ocornut/imgui#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: dearimgui/gl3w_stripped#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant