Login  Register

JOGL used with native methods

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

Hi,

I am wondering how to use JOGL for OpenGL rendering from native methods called via JNI. I want to initialize context in JOGL and move rendering routine to native method called from display().

Let's stay on Windows only. There are only OpenGL headers of version 1.1 on Windows. Can I use GLEW for loading OpenGL in native method when it is already initialized by JOGL? Or should I better download OpenGL headers from OpenGL.org? Or should I use headers that come with JOGL (I mean headers located at <jogl-master>/make/stub-includes/opengl/GL)?

I tried to find any example how to use JOGL as only wrapper for rendering via native methods, but could not find anything. Any help would be much appreciated.


Thanks in advance for any help,
Pavel