/** Erzeugt die Geometrie, falls noch nicht geschehen und zeichnet sie anschließend. */ public void draw() { if (vaid == -1) { construct(); } glBindVertexArray(vaid); if (this.instancebid != -1) { GL31.glDrawElementsInstanced( this.topology, this.indexCount, GL11.GL_UNSIGNED_INT, 0, this.instanceCount); } else { glDrawElements(topology, indexCount, GL_UNSIGNED_INT, 0); } }