/** * Start a new display list. All further renderer commands that can be stored in a display list are part of this new * list until {@link #endDisplayList()} is called. * * @return id of new display list */ public int startDisplayList() { final GL gl = GLContext.getCurrentGL(); final int id = gl.getGL2().glGenLists(1); gl.getGL2().glNewList(id, GL2.GL_COMPILE); return id; }