which is an overview of the different techniques and steps to achieve a headless mode. With a short search I was able to identify three different approaches:
Hidden Window (GLFW): it is not possible to create an OpenGL context without a window with GLFW, but the display of the window can be suppressed
VirtualGL: A framework to support headless mode. They use different techniques (VGL Transport, EGL). Sources are here.
EGL: EGL is a framework between OpenGL and the underlying native window system. Here are some sources:
There are different possibilities to achieve some kind of headless server rendering with OpenGL. To understand the topic better, I advise to read
https://virtualgl.org/About/Background
which is an overview of the different techniques and steps to achieve a headless mode. With a short search I was able to identify three different approaches:
The third approach is the most modern approach and should be best suited for server rendering or automatic testing.
I'm happy to build you some examples if you're interested (I need it for my stuff anyway) 😺