Login  Register

How to add render object during the animator is running?

Posted by robbiezl on May 31, 2012; 1:49am
URL: https://forum.jogamp.org/How-to-add-render-object-during-the-animator-is-running-tp4024016.html

In my programe. all the render objects are in a ArrayList to save.When the animator start running, all these object in ArrayList call public void init(GLAutoDrawable arg0) method and rendering these object in the method public void display(GLAutoDrawable arg0)

when the animator is running ,i add a new render object in the ArrayList,but i must to recall the init method of this object.
how i can do this? if I use animator.stop() and then use animator.start(),the programe frame may block a few time.
how to solve this problem?Any other advise?

sorry for my poor English.