Login  Register

Re: Initialization steps...

Posted by gouessej on Feb 09, 2018; 9:32am
URL: https://forum.jogamp.org/Initialization-steps-tp4038597p4038605.html

Maybe you're not waiting for the right thing. Have you tried to wait for the realization of the drawable?

I have to clarify the initialization sequence in the documentation. When the frame handler calls canvas.init(), it will initialize the canvas only if it hasn't already been done. I don't use a frame handler in my game, that's why I always call canvas.init(). Java3D Canvas3D is very different, it's closer to an AWT canvas than something OpenGL related whereas it doesn't make sense to realize a non visible onscreen drawable without visible top level container.

isRealized() doesn't throw a NullPointerException:
https://github.com/sgothel/jogl/blob/master/src/jogl/classes/com/jogamp/opengl/awt/GLCanvas.java#L483

I have to throw Guava out of our engine, switch to Java 1.8 and fix a very few issues before releasing the version 1.0.

Yes, the "eviction" takes some time, be patient.
Julien Gouesse | Personal blog | Website