My use case is to have a unique program that can be used in two modes:
- Mode 1: Standard interactive program with OpenGL windows
- Mode 2: Windowless program that could make offscreen rendering
In mode 2 in Linux, program should be able to run without a DISPLAY, so as it can be used from a web server in order to generate pictures or any other graphical material
So, I am requesting that when user does this:
GLFWwindow* offscreen_context = glfwCreateWindow(640, 480, "", NULL, NULL);
and there is no DISPLAY nor X-Windows active, OpenGL was initialized in a different way, for example using egl
An extension to this would be that the program could be used interactively and with graphical windows from a remote server (like an HPC computer) by using vnc or a similar protocol and having hardware accelerated OpenGL.