Example #1
0
 /** Method called by Renderer to signal an update is needed. */
 public void render(Renderer aren) {
   aren.pushModelMatrix();
   aren.setOrientation(orientation, scale, position);
   for (int i = 0; i < cells.size(); i++) {
     ((Cell) cells.elementAt(i)).render(aren);
   }
   aren.popModelMatrix();
 }
Example #2
0
  /** Method called by Renderer to signal an update is needed. */
  public void render(Renderer aren) {
    boolean reRender = checkRenderStat(aren);
    aren.pushModelMatrix();
    aren.setOrientation(orientation, scale, position);
    if (reRender) {
      updateTime();

      aren.beginDL(DisplayListIndex);
      for (int i = 0; i < cells.size(); i++) {

        ((Cell) cells.elementAt(i)).render(aren);
      }
      aren.endDL(DisplayListIndex);
    } else {
      aren.callDL(DisplayListIndex);
    }
    aren.popModelMatrix();
  }