Login  Register

Re: GLWindow in NewtCanvasAWT - deadlock in GLWindow.setSize

Posted by Andrzej on May 04, 2018; 11:42am
URL: https://forum.jogamp.org/GLWindow-in-NewtCanvasAWT-deadlock-in-GLWindow-setSize-tp4038848p4038853.html

So the while loop and no animator models my native renderer...

Its an asynchronous renderer in the native c++ lib that renders when needed and there is no one render function. Rather it calls into the platform specific code to make the context current, and then performs all the rendering on the native side. So it is the driver of what is rendered and when, and not a Java side animator. So the Java side here is really thin. I just need to create a gl context and give the native renderer a way to make it current (and handle the resize events, and user input handling).

As I mentioned in my other post, this all works fine when the GLWindow is stand alone, but I get these deadlicks as soon as I try to put this inside a Swing application (via NewtCanvasAWT).