Login  Register

Re: Getting GLAutoDrawable from GL4

Posted by gouessej on Nov 26, 2014; 10:24am
URL: https://forum.jogamp.org/Getting-GLAutoDrawable-from-GL4-tp4033629p4033641.html

I don't suggest you to use a scenegraph, I suggest you to look at the source code of some scenegraphs to learn how to implement the same features correctly.

A single GLEventListener can be used by several GLAutoDrawable instances, therefore there is no way to get the GLAutoDrawable from the GLEventListener but you can get the GLAutoDrawable in GLEventListener.display() and pass it to other methods.
Julien Gouesse | Personal blog | Website