Login  Register

Re: JOGL used with native methods

Posted by stepasite on Feb 14, 2014; 3:20pm
URL: https://forum.jogamp.org/JOGL-used-with-native-methods-tp4031589p4031593.html

Thanks for the quick reply.

I think that your proposed solution is exactly what I need.

This solution will let me initialize OpenGL in native method with GLEW, create OpenGL context and then get it in JOGL via GLDrawableFactory.createExternalGLContext().

But I am not sure how I can create new GLCanvas/GJPanel using this context or how to assign it to any existing one. As context passed to constructor serves  as sharing context (that is not assigned).