Click or drag to resize
SoGLBufferObjectMap Method (SoBufferObjectAccessModes)

This function maps the OpenGL buffer memory into CPU memory.

Namespace: OIV.Inventor.Devices
Assembly: OIV.Inventor.Base (in OIV.Inventor.Base.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public SbNativeArray<byte> Map(
	SoBufferObjectAccessModes accessMode
)

Parameters

accessMode
Type: OIV.Inventor.DevicesSoBufferObjectAccessModes

Return Value

Type: SbNativeArrayByte

Reference to data in the OpenGL buffer.

Remarks

So the returned pointer is usable as a regular reference. See the example code in the class description.

Notes:

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

  • After calling this map() method, the unmap() method must be called before using the buffer for any OpenGL operation, including rendering (e.g. SoBufferedShape), otherwise the operation will produce an OpenGL error.

See Also