Re: GLJPanel for LibGDX JOGL backend
Posted by adam_law on Jul 01, 2015; 1:02pm
URL: https://forum.jogamp.org/GLJPanel-for-LibGDX-JOGL-backend-tp4034741p4034787.html
Thanks for helping me out. I appreciate it :)
Well, I tried as you said and extended these classes, and hooked it up to a SwingNode. Actually, I opted not to extend, chose to implement Application in the line of JoglAWTCanvas and Graphics and GLEventListener, in the line of JoglGraphicsBase with GLJPanel.
Everything passed through creation fine, but it's now saying that the my context is not current. I try using setContext() on either the GLJPanel or the my version of JoglAWTCanvas, but I don't know what to hook up to that, since the context is null for either, and not setting it spits this out:
Exception in thread "AWT-EventQueue-0" com.jogamp.opengl.GLException: Caught GLException: AWT-EventQueue-0: This context is not current. Current context: WindowsWGLContext [Version 3.3 (Compat profile, arb, compat[ES2, ES3], FBO, hardware) - 3.3.0 [GL 3.3.0, vendor 0.0.0 (n/a)], options 0x2c03, this 0x1d4d56f1, handle 0x10002, isShared false, jogamp.opengl.gl4.GL4bcImpl@4af1ad73, etc etc.
I guess the question now is, how to set the context, or where does it get created?
Thanks.