Does anyone know the location of code for an Animator? I am wanting to have the game time be advanced by something other than a call to display(), as minimizing and maximizing the window does this. I am wanting to keep up with a counter that is escentially game play time which is not related to physical time and want to advance this and game “turns” myself, and then call display(), but I am not certain how to obtain the GLAutoDrawable that is passed to display(). Unless it is a static copy in the Animator, but I can’t seem to find code source.
Download the jogl source zip from the JOGL home page. It’s in src/classes/com/sun/opengl/util/Animator.java. See also FPSAnimator.java in the same package, which shows how you might subclass it.
Thanks. I get a big DUH for that one.