Currently making a gui rendering system and it needs to be able to render to a bunch of windows. The original way I was going to do this would be to have a dedicated renderer (and by extension dedicated gl objects) per window, however because my renderer takes up quite a bit of memory and there may be several windows at once, this isn’t ideal. So is there any way to have the same opengl context across multiple windows. Not shared objects as with
glfwCreateWindow(..., shared) but truely the same context where all objects even containers are shared, I was able to find an example for xgl here but it uses glut and xgl where I am using glad and glfw. Is there any way to do this kind of thing within the glfw api?
Another (mostly separate) option that I think might work but still am not entirely sure about is to render to framebuffers and then send render those framebuffers to their windows, but framebuffer objects are also container objects so I don’t think this really will work, but I haven’t tried it either.
Thanks in advance.