Example #1
0
  /**
   * Initialization call-back. We initialize our renderer here.
   *
   * @param r the render context that is associated with this render panel
   */
  public void init(RenderContext r) {
    r.setSceneManager(parent.getSceneManager());

    // Register a timer task
    Timer timer = new Timer();
    timer.scheduleAtFixedRate(parent.animationTask(), 0, 10);
  }
Example #2
0
    /**
     * Initialization call-back. We initialize our renderer here.
     *
     * @param r the render context that is associated with this render panel
     */
    public void init(RenderContext r) {
      renderContext = r;
      renderContext.setSceneManager(sceneManager);

      // Register a timer task
      Timer timer = new Timer();
      angle = 0.01f;
      timer.scheduleAtFixedRate(new AnimationTask(), 0, 10);
    }