Login  Register

Re: Unpredictable GL Frame Awt Key Handler or gluLookAt

Posted by Vincent on Aug 22, 2012; 6:02pm
URL: https://forum.jogamp.org/Unpredictable-GL-Frame-Awt-Key-Handler-or-gluLookAt-tp4025788p4025865.html

I was thinking about making a glu object global, but apparently it needs to be passed a drawable object. How can I pass the created glu instance to from the init loop to the render loop. I tried making the glu instance global but it must be passed the drawable object.


private void render(GLAutoDrawable drawable) {
            GL2 gl = drawable.getGL().getGL2();
            GLU glu = GLU.createGLU(gl);