supertux
supertux copied to clipboard
Migrate from GLEW to libepoxy or GLAD
Hi,
we are currently trying to get rid of GLEW in Fedora as it isn't maintained anymore. Also GLEW with the last release only supports GLX and not EGL.
There are two ways moving forward:
- Use libepoxy
- Use GLAD, or check out the webservice for glad2 to generate the files you need!
With both of them migration should be straight forward.
Thanks for considering!
I would tend to GLAD (glad2) as it has zero external dependencies (it just generates one source file and a few header files that can be integrated in the project).
libeproxy seems to have no support for CMake?
I think both are fine. libepoxy only ships a pkgconfig file, it isn't hard to write your own FindEpoxy.cmake module with pkgconfig.
i would suggest to use in-tree glad and passing SDL_GL_GetProcAddress as loader, it would work on all platforms and on Linux SDL decides whether to use GLX or EGL