Exemple #1
0
  @Override
  public void dispose(GLAutoDrawable drawable) {
    GL gl = drawable.getGL();

    if (netManager != null) netManager.shutdown();
    if (world != null) world.dispose(gl);
    if (renderer != null) renderer.dispose(gl);
    if (contentManager != null) contentManager.dispose(gl);
  }