Reply – Re: How to refer GL context in AWT Mouse Event
Your Name
Subject
Message
or Cancel
In Reply To
Re: How to refer GL context in AWT Mouse Event
— by gouessej gouessej
Hi

As I told you on StackOverflow, you shouldn't even try to do so, it's a bad idea, it would require to make the OpenGL context current on the AWT thread in your mouse event and release it when you're done, you should rather use GLAutoDrawable.invoke(boolean, GLRunnable) instead.

Please show some source code, I'm not sure that you really need a GL context to perform your conversion.

By the way, some engines store and treat the mouse and key events at a more appropriate time (not directly in the listeners) to solve this kind of problem.
Julien Gouesse | Personal blog | Website