Shared context for pwindow and window using jit.world
Hi,
I'd like to have both a pwindow AND a regular window displaying my opengl content. The wiki article describes an approach, but it is using jit.render instead of jit.world.
- Is there a way I can get this working without using a jit.gl.render (as I understand this should be avoided)?
- Best approach?
- Extra thanks if I can use jit.gl.handle on either windows!
– Is there a way I can get this working without using a jit.gl.render (as I understand this should be avoided)?
Jit.world just simplifies the process by encapsulating the functionality of a series of separate objects (qmetro, gl.render context, jit.window, physics, etc). As far as I know, there's not anything wrong with good old jit.gl.render and I don't think it should be avoided. In fact, for some specific cases, you really need to use it. That's the case here, as jit.world only encapsulates jit.window, not jit.pwindow...
There was a problem with the jit.gl.render, the lack of the erase/bang cycle.
awesome- thank you so much!
very helpful!