I’m working with Linux and Nvidia drivers, to process videos with OpenGL. I use Glut.
I want to build, in an offscreen buffer, a mosaic composed with images sent by a moving camera.
Then I want to use this buffer as a texture to make different renderings in several independent windows.
This works well with only one window. I use a texture attached to an FBO for the offscreen buffer. Then the texture is rendered with a glQuad and a shader in the output window.
How can I use the same texture to make a rendering in a second window ?
I understood that glut encapsulates all the glx primitives and make easier the building of windows.
Can I use only glx for building windows ?
Is it then possible that the windows share contexts and use the same texture ?