SoGLBufferObjectSetSize Method |
Set the size of the buffer in bytes.
Namespace: OIV.Inventor.Devices
New size in bytes of the buffer.
Notes:
Causes memory to be allocated for the buffer.
A valid OpenGL context (see OIV.Inventor.Devices.SoGLContext) must be bound to perform this operation.
If the buffer is already allocated, the memory is freed and re-allocated with the new size. Therefore if you increase the size of the buffer, the original data is lost!