SoGLBufferObjectMemcpy Method (SoBufferObject, UInt64, UInt64, UInt64) |
Copy data from a buffer into this GL buffer.
Namespace: OIV.Inventor.Devices
public override void Memcpy( SoBufferObject source, ulong destOffset, ulong sourceOffset, ulong copySize )
The buffer object to be copied.
The starting offset in the destination buffer object, useful for data subsets.
The starting offset in the source buffer object, useful for data subsets.
The number of bytes to copy from the source buffer object (SO_BUFFER_SIZE_ALL means all).
Notes:
It is not necessary to bind an OpenGL context before calling this method.
The current buffer object must be large enough to hold the data that will be copied. See OIV.Inventor.Devices.SoGLBufferObject.SetSize(System.UInt64) to allocate memory.
If the size or the offset are not valid an error is reported (OIV.Inventor.Errors.SoDebugError).
This buffer is not resized, if it is too small an error is reported.
This function is a specialized function for speed-up.