Re: Mixing C and Java opengl calls with JOGL
Posted by christopherplawrence on Jan 18, 2020; 2:21pm
URL: https://forum.jogamp.org/Mixing-C-and-Java-opengl-calls-with-JOGL-tp4040269p4040272.html
Thank you for the detail, Sven. Pulling the address pointers from the ProcAddressTable greatly simplified the work I had to do.
I've been able to confirm issuing commands against the C GL API from native in an initial experiment (modified the 'hello-triangle' example project to use JNI to invoke some commands from native). I am working through hacking together a more extensive prototype now. I will eventually be putting together a production-level wrapper. I'm happy to share the code back in the future as either an example or an extension.
If this is a topic of interest to you, I will reach out in the future to further explore your thoughts on using GlueGen to automate creation of the wrappers.