Ejemplo n.º 1
0
  private void draw(GLAutoDrawable drawable) {
    if (modeFlag) {
      modeFlag = false;
      reshape(drawable, 0, 0, width, height);
    }

    //		GL gl = drawable.getGL();
    gl.glClear(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_DEPTH_BUFFER_BIT);

    loadDefaults(gl);

    for (Iterator<GLBrush> it = displayList.iterator(); it.hasNext(); ) {
      GLBrush brush = it.next();
      brush.draw(gl, glu, glut);
    }
  }