Login  Register

Initializing a NEWT Window in Java and Rendering Natively

Posted by void-pointer on Mar 04, 2011; 6:34am
URL: https://forum.jogamp.org/Initializing-a-NEWT-Window-in-Java-and-Rendering-Natively-tp2631445.html

Greetings everyone!

I have had great success with developing cross-platform applications which render GPU-based simulations in the past using Java to initialize the GUI and native code to render onto the Canvas. However, performance is an important factor in many of the GPGPU algorithms I implement now, and I would like to avoid the latency inherent in using either AWT or JNI by rendering natively using NEWT. This was quite straightforward to accomplish using AWT, since the Java API comes with headers which define functions using which I can obtain an OpenGL context; I was wondering if I could do the same with NEWT, since I could not find any functions with allow for native interoperability. I would be more than happy to contribute some code to accomplish this task if a solution does not currently exist and if doing so would not involve a large undertaking. Whether the case is the former or the latter, would someone please provide me with some more information and point me in the right direction?

Thank you very much for your help!