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.DevicesAssembly: OIV.Inventor.GL (in OIV.Inventor.GL.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax public override SbNativeArray<byte> Map(
SoBufferObjectAccessModes accessMode,
ulong offset,
ulong count
)
Public Overrides Function Map (
accessMode As SoBufferObjectAccessModes,
offset As ULong,
count As ULong
) As SbNativeArray(Of Byte)
public:
virtual SbNativeArray<unsigned char>^ Map(
SoBufferObjectAccessModes accessMode,
unsigned long long offset,
unsigned long long count
) override
abstract Map :
accessMode : SoBufferObjectAccessModes *
offset : uint64 *
count : uint64 -> SbNativeArray<byte>
override Map :
accessMode : SoBufferObjectAccessModes *
offset : uint64 *
count : uint64 -> SbNativeArray<byte>
Parameters
- accessMode
- Type: OIV.Inventor.DevicesSoBufferObjectAccessModes
- offset
- Type: SystemUInt64
- count
- Type: SystemUInt64
Return Value
Type:
SbNativeArrayByteReference 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