use JOGL in a Swing application

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

use JOGL in a Swing application

oldyoungguy
We are using JOGL to display our 2D images in our Swing application. I am wondering should we use EDT to call JOGL for image drawing or not? Does JOGL use EDT to draw the images?

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: use JOGL in a Swing application

gouessej
Administrator
Hi

Do you use a GLEventListener? Please avoid making the OpenGL context current on several threads, call your JOGL code directly or indirectly in GLEventListener.display() or use GLAutoDrawable.invoke().
Julien Gouesse | Personal blog | Website