/** * Redefines some or all of the data store for the buffer object. Data starting at byte offset * offset and extending for size bytes is copied to the data store from the memory pointed to by * data. An error is thrown if offset and size together define a range beyond the bounds of the * buffer object's data store. * * @param theOffset Specifies the offset into the buffer object's data store where data * replacement will begin, measured in bytes. * @param theSize Specifies the size in bytes of the data store region being replaced * @param theData Specifies a pointer to the new data that will be copied into the data store. */ public void subData(long theOffset, long theSize, Buffer theData) { GL4 gl = GLGraphics.currentGL(); gl.glBufferSubData(_myTarget.glID, theOffset, theSize, theData); }