CGL headless visualization
This is an addition to #336 with CGL (Core OpenGL) backend instead of EGL for MacOS 🍎 .
✔️ testing:
- [x] CI build
- [x] manual build
- [x] headless functionality
@camierjs , it seems I have accidentally uncovered something here by the error check in initGLEW(). Would you have time to check where it comes from?
Hmm, it is maybe something Mac specific with that GLEW_KHR_debug, because it is off for me, but I am not getting any error in the init with glEnable(GL_DEBUG_OUTPUT) 🤔 .
A question to everyone, do we want to make compilation with CGL default on Mac? 🤔 There is no additional dependency, so there is no need to keep it optional (unlike EGL, which is usually packed with OpenGL on Linux, but there is a slight chance it is not).
There is no additional dependency, so there is no need to keep it optional
How about having an option for it, but have it to be YES by default?
Thanks @najlkin!
Lets review this 👍