Search in sources :

Example 1 with Animator

use of com.jogamp.opengl.util.Animator in project jmonkeyengine by jMonkeyEngine.

the class JoglNewtAbstractDisplay method startGLCanvas.

protected void startGLCanvas() {
    if (frameRate > 0) {
        animator = new FPSAnimator(canvas, frameRate);
    } else {
        animator = new Animator();
        animator.add(canvas);
        ((Animator) animator).setRunAsFastAsPossible(true);
    }
    animator.start();
    wasAnimating = true;
}
Also used : FPSAnimator(com.jogamp.opengl.util.FPSAnimator) FPSAnimator(com.jogamp.opengl.util.FPSAnimator) Animator(com.jogamp.opengl.util.Animator)

Example 2 with Animator

use of com.jogamp.opengl.util.Animator in project jmonkeyengine by jMonkeyEngine.

the class JoglAbstractDisplay method startGLCanvas.

protected void startGLCanvas() {
    if (frameRate > 0) {
        animator = new FPSAnimator(canvas, frameRate);
    } else {
        animator = new Animator();
        animator.add(canvas);
        ((Animator) animator).setRunAsFastAsPossible(true);
    }
    animator.start();
    wasAnimating = true;
}
Also used : FPSAnimator(com.jogamp.opengl.util.FPSAnimator) FPSAnimator(com.jogamp.opengl.util.FPSAnimator) Animator(com.jogamp.opengl.util.Animator)

Aggregations

Animator (com.jogamp.opengl.util.Animator)2 FPSAnimator (com.jogamp.opengl.util.FPSAnimator)2