SoGLBufferObjectSetSize Method |
Set the size of the buffer in bytes.
Namespace: OIV.Inventor.DevicesAssembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 9.9.13.0 (9.9.13.0)
Syntaxpublic override bool SetSize(
ulong size
)
Public Overrides Function SetSize (
size As ULong
) As Boolean
public:
virtual bool SetSize(
unsigned long long size
) override
abstract SetSize :
size : uint64 -> bool
override SetSize :
size : uint64 -> bool
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 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