-
Notifications
You must be signed in to change notification settings - Fork 449
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
Enable MX option for EGL as well #356
Comments
As far as I am aware all the EGL functions are not tied to a context. The display argument is just there to correctly infer the maximum supported version. So API wise a MX option doesn't make sense. For the vendoring usecase, it's probably still better to vendor the symbols (rename the prefix) or require the symbols to be linked in from the "user". The problem with MX is, it makes the code generation so much harder to maintain that I would not want to add it for something that can be solved with a |
My naive rationale was that the EGL functions are still loaded and so even if link-time symbols collision for the In my mind #198 addresses a link-time problem, while the MX/GladGLContext mechanism addresses a run-time problem. However I am not expert enough to insist on that 😄 |
Or were you suggesting to also prefix the |
All glad symbols are prefixed with E.g.: GLAD_API_CALL PFNEGLCREATEWINDOWSURFACEPROC glad_eglCreateWindowSurface;
#define eglCreateWindowSurface glad_eglCreateWindowSurface |
Ah, right the |
Hi,
I am using glad2 and I found that the MX option available for the GL wrappers can also help in my specific case to avoid symbols collisions when linking to other components which also use glad, as an alternative to #198
Would it make sense for the MX option to also affect the EGL wrappers generation in a way similar to GL?
Thanks, Antonio
The text was updated successfully, but these errors were encountered: