Posted by
Sven Gothel on
Nov 12, 2013; 11:09am
URL: https://forum.jogamp.org/Simple-example-with-NEWT-but-without-animator-tp4030571p4030601.html
On 11/12/2013 11:40 AM, elect [via jogamp] wrote:
> Sven Gothel wrote
>
> Well, you simply can do things w/o an animator and just call
> 'GLAutoDrawable.display()' if you need to update the scene on the screen.
>
> This is what I had in mind at the begin..
>
> Which are shortly pro and con of this vs the Arcor3D approach?
If this doesn't work - it is a bug, plain and simple.
>
> Ps: regarding the animator, I meant that it just seems to me something "quick
> and dirty", when you dont want to take care about updating, then you just let
> it run all the time, but this is just my insignificant opinion :D
Ofc .. it's an opt-in.
However, folks who have animated scenes most of the time should
use an GLAnimatorControl to have more fluent animation.
GLAutoDrawable does respect the animator state for example in quite
a few cases.
GLAnimatorControl is just an interface and can be implemented by anybody
and attached to an GLAutoDrawable - pls double check the remarks/requirements in
GLAnimatorControl and GLAutoDrawable.
Animator and FPSAnimator shall work out of the box .. but one is not
limited to them.
~Sven