-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Support using Glad instead of GLEW #642
base: main
Are you sure you want to change the base?
Conversation
Hi @rpavlik, thank you very much for this! I could merge it, but since vcglib is fully owned by the CNR, all the vcglib contributors that do not work at CNR must first sign the contributor license agreement. Sorry about this bureaucracy, but I can't really do nothing about it. |
That's one of them, but it turns out there's a few more: one in vcglib/wrap/glw/glheaders.h and one in vcglib/wrap/gl/gl_surface.h. I'd suggest wrapping the glheaders one in the ifdefs and removing the include (or switching it to use wrap/glw/glheaders) from wrap/gl/camera.h and wrap/gl/gl_surface.h I don't really want to sign that agreement right now, I don't have the bandwidth to get it reviewed, etc. Everything I submit is available "inbound == outbound", as is traditional in open source, but right now I'm not going to bother to get lawyers involved for <5 line patches. This isn't a complete pull request, I just submitted it as a "draft" as a way to have a place to put notes to help @xinyazhang besides commenting on the other, merged/closed pull request. (Though, it does build and run now.) I had originally started this work in my attempt to get it to build with OpenGL-ES. As I worked on this, I kept finding additional opengl extensions that needed to be added to the GLAD build. If anybody picks up this and continues with it, note that there's a link in glad.h that can be clicked to set up the GLAD generator web site to the right state and then you can easily add more extensions. Additionally, it looks like a bunch of the extensions used are promoted to inclusion in mainline opengl, so it might be possible to modernize (and thus ease porting to gles, additionally): see https://www.khronos.org/opengl/wiki/History_of_OpenGL for details and https://opengl.gpuinfo.org/listextensions.php for lists of devices/drivers that support or don't support various extensions.
These are the ones that aren't promoted and that actually appear to be variable in their support: links go to lists of reports for devices that don't support it.
These are the ones that some code is actively checking for:
This pull request makes all those checks take the form (vcglib parts used by meshlab explicitly check for |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
WIP
cc @xinyazhang
There is a few small changes needed to vcglib (remove a glew include or wrap the glew include in
#ifndef __gl_h_
), and a handful of other changes still needed, but this should be helpful.also getting this error, despite including gl_defs first: