/** * @param theOffset * @param theSize * @return */ public ByteBuffer getData(int theOffset, long theSize) { bind(); GL4 gl = GLGraphics.currentGL(); ByteBuffer myResult = ByteBuffer.allocate((int) theSize); gl.glGetBufferSubData(_myTarget.glID, theOffset, theSize, myResult); unbind(); return myResult; }