Login  Register

Re: Initialization steps...

Posted by gouessej on Feb 09, 2018; 11:02pm
URL: https://forum.jogamp.org/Initialization-steps-tp4038597p4038615.html

Rather call GLAutoDrawable.invoke(false, GLRunnable) and you can use a listener or a property change support in this GLRunnable to tell you when the initialization has ended:
http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/opengl/GLAutoDrawable.html#invoke(boolean,%20com.jogamp.opengl.GLRunnable)

I don't know what you do but there is probably something deeply wrong if you really need such a mechanism. I remember that even the drawing methods try to trigger the initialization if necessary.

The problem is that the (onscreen) canvas can't become realized when its parent isn't visible.
Julien Gouesse | Personal blog | Website