package chess.view.DDDrender; import java.io.Closeable; import java.io.IOException; import java.util.List; import chess.view.DDDrender.opengl.VertexArray; public class DDDModel implements Closeable { private final List vaos; public DDDModel(List vaos) { this.vaos = vaos; } public List getVaos() { return vaos; } @Override public void close() throws IOException { for (VertexArray vertexArray : vaos) { vertexArray.close(); } } }