Click or drag to resize
SoGLBufferObjectMap Method (SoBufferObjectAccessModes, UInt64, UInt64)

This function extends the map(AccessMode) method by allowing the mapping of a sub part of the buffer object into CPU memory.

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 SbNativeArray<byte> Map(
	SoBufferObjectAccessModes accessMode,
	ulong offset,
	ulong count
)

Parameters

accessMode
Type: OIV.Inventor.DevicesSoBufferObjectAccessModes
offset
Type: SystemUInt64
count
Type: SystemUInt64

Return Value

Type: SbNativeArrayByte

Reference to data in the mapped region of the OpenGL buffer.

Remarks

On some systems this method has better performance.

Notes:

  • It is not necessary to bind an OpenGL context before calling this method.

  • The OIV.Inventor.Devices.SoGLBufferObject.Unmap() method must be called before using the buffer for any OpenGL operation, otherwise the operation will produce an error.

See Also