Login  Register

GLCanvas wit overlay

Posted by psyko on Dec 21, 2018; 8:55am
URL: https://forum.jogamp.org/GLCanvas-wit-overlay-tp4039329.html

Hello,

I'm using the swt GLCanvas (com.jogamp.opengl.swt.GLCanvas) in combination with an Overlay (com.jogamp.opengl.util.awt.Overlay) to display some textual information.
It works fine on Windows, but doesn't work on MacOS because Overlay works with an internal TextureRenderer  (com.jogamp.opengl.util.awt.TextureRenderer) which force the use of a GL2 (which is not available on Mac).
My application is designed to work with most recent GL4.

Is there any way to have a GL4 compatible overlay ?
I wanted to use the drawing capabilities of SWT graphics, but I'm struggling with the synchronisation of SWT and GL rendering. SWT actions should be done in the main UI thread and I'm not sure how to sync that with every frame of the GLCanvas.

Thank you,
Psyko