Login  Register

Re: How to refer GL context in AWT Mouse Event

Posted by gouessej on May 19, 2017; 10:37am
URL: https://forum.jogamp.org/How-to-refer-GL-context-in-AWT-Mouse-Event-tp4037905p4038002.html

You should create a Runnable to call repaint() and pass this runnable to SwingUtilities.invokeLater(). Moreover, creating a buffer at each call of glReadPixels is a bad idea, create a direct NIO buffer once and reuse it.
Julien Gouesse | Personal blog | Website