Re: Setting render loop without using FPSAnimator
Posted by
gouessej on
Jun 05, 2012; 9:16am
URL: https://forum.jogamp.org/Setting-render-loop-without-using-FPSAnimator-tp4025143p4025144.html
Hi
Why not using correctly the GLEventListener? Anyway you can't perform OpenGL calls before the context is created. Main.java should only start the animator(s) (or do that in the constructor of View3d.So) and any OpenGL calls should be one in init(GLAutoDrawable) and display(GLAutoDrawable).
You can call GLCanvas.createContext(null) and GLCanvas.display() without using an animator but I'm not sure it is a good idea, you will only do what an animator does but in worse...