Login  Register

Re: Multithready between AWT and JOGL

Posted by millerni456 on Sep 22, 2011; 3:16am
URL: https://forum.jogamp.org/Multithready-between-AWT-and-JOGL-tp3356928p3357605.html

Good news is I think I understand what your post is about. I was able to create a window using the NEWT libraries and render a simple triangle. On the window (which was a JFrame) I had a JSlider that changed the field of view in the gluPerspective method. However when stateChanged() method is called from the slider, I invoke a new GLRunnable and execute the GLContext code in there.

On another note, should I be testing this with input (i.e. mouse/keyboard?) And what Ideas of integrating JInput with this?
I did attach a controller to an application I made but this made it lag alot. The controller only affected my camera which was updated under the GLContext thread.



EDIT: I actually wanted to ask if I can do something similar with the Android SDK, my plans eventually were to convert this JOGL application into an Android app. My guess is the Android threads work differently and allow for another way to catch input changes.


RE-Edit: Where can I find the NEWT javadocs?