OpenGL context sharing on OSX
Posted: Sat Nov 24, 2012 10:39 am
Hello everybody!
Basically I have QT5 scene graph and Ogre 1.8, both running on OSX.
The idea is to get Ogre initialized so that it uses the window and GL context created by QT,
and Ogre would just render it's output to a texture.
This texture would be then composited with the QT5 scene graph system.
What I have gathered, the window creation is always mandatory to get some internal structures
initialized, even if I just want to render to texture in existing context. (qmlogre example)
I also see that on OSX, the OpenGL backend doesn't even support "externalGLControl" or "externalGLContext" settings,
which makes me wonder if this is even possible to do on OSX without hacking the Ogre itself?
I have been tinkering for few days to get them working together, but as I have not found a real
solution, I thought I should ask here. I'd would be very nice if you could share your thoughts on the topic.
BR,
Markus
Basically I have QT5 scene graph and Ogre 1.8, both running on OSX.
The idea is to get Ogre initialized so that it uses the window and GL context created by QT,
and Ogre would just render it's output to a texture.
This texture would be then composited with the QT5 scene graph system.
What I have gathered, the window creation is always mandatory to get some internal structures
initialized, even if I just want to render to texture in existing context. (qmlogre example)
I also see that on OSX, the OpenGL backend doesn't even support "externalGLControl" or "externalGLContext" settings,
which makes me wonder if this is even possible to do on OSX without hacking the Ogre itself?
I have been tinkering for few days to get them working together, but as I have not found a real
solution, I thought I should ask here. I'd would be very nice if you could share your thoughts on the topic.
BR,
Markus