Click or drag to resize
SoGLBufferObjectSetSize Method

Set the size of the buffer in bytes.

Namespace: OIV.Inventor.Devices
Assembly: OIV.Inventor.GL (in OIV.Inventor.GL.dll) Version: 2024.2.2.0 (10.16.2.0)
Syntax
public override bool SetSize(
	ulong size
)

Parameters

size
Type: SystemUInt64

New size in bytes of the buffer.

Return Value

Type: Boolean
Remarks

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!

See Also