Login  Register

Re: JOGL used with native methods

Posted by gouessej on Feb 14, 2014; 2:06pm
URL: https://forum.jogamp.org/JOGL-used-with-native-methods-tp4031589p4031592.html

Hi

Why not doing the opposite? You can create the context in your native source code, create an external context based on it with GLDrawableFactory.createExternalGLContext() and call your native drawing method in GLEventListener.display(). Another solution consists in creating the context in Java code with JOGL and calling your native drawing method in GLEventListener.display(). I'm not sure you can create a GLContext without creating a GLDrawable. Maybe Sven can confirm.
Julien Gouesse | Personal blog | Website