Can I call GL methods outside of GLJPanel callback?
Posted by kitfox on Sep 02, 2014; 12:10pm
URL: https://forum.jogamp.org/Can-I-call-GL-methods-outside-of-GLJPanel-callback-tp4033005.html
I have an app where I've created a GLJPanel for rendering, passed it a GLEventListener object and use that object to render stuff to the screen. While this works for most of my rendering, it is a pain to use with textures. I'd like to be able to create and initialize textures outside of the GLEventListener callback. I'd also like to be able to write render-to-texture code that also does not have to depend on GLJPanel getting around to calling GLEventListener.display(). However, I need to make sure that the GL objects I create share the same context so that my main rendering loop can use the textures that I'm manipulating outside of it. Is there a way to do this?