Login  Register

Re: GLCanvas wit overlay

Posted by psyko on Dec 22, 2018; 10:45am
URL: https://forum.jogamp.org/GLCanvas-wit-overlay-tp4039329p4039338.html

Checking documentation is usually the first thing I do. I looked at the Javadoc of GLCanvas.invoke() but it doesn't help. I tried posting the runnable after and before the animator, with true and false: no success.

I managed to use SWT with a PaintListener, but the paint event on the SWT GLCanvas is not called at each frame. So it gets replaced by the GL content.
I tried attaching a GLEventListener to forward the display event and call a canvas.redraw() in a Display.async/sync, but with this method, it flickers a lot.