JCGLIndexBuffersType g; JCGLIndexBufferType a = g.indexBufferAllocate(3, JCGLUnsignedType.TYPE_UNSIGNED_INT, JCGLUsageHint.USAGE_STATIC_DRAW); final JCGLBufferUpdateType<JCGLIndexBufferType> u = JCGLBufferUpdates.newUpdateReplacingAll(this.index_buffer); final IntBuffer i = u.getData().asIntBuffer(); i.put(0, 0); i.put(1, 1); i.put(2, 2); g.indexBufferUpdate(u); g.indexBufferUnbind();