Login  Register

Re: Rendering without callbacks

Posted by Wade Walker on Jan 16, 2011; 3:03am
URL: https://forum.jogamp.org/Rendering-without-callbacks-tp2259774p2264936.html

Oops, looks like I spoke too soon!

I tried this myself, and I couldn't get it to work either. Without the canvas (which you can't access outside the main window thread), it seems like I can't make the context current correctly, so accessing it from another thread doesn't draw anything, and I just see a black screen. I tried in SWT and AWT, and couldn't make it work either way.

I guess calling your main rendering method from inside GLEventListener.display() is the way to go -- hopefully that won't require too much change to your app.