SoGLBufferObjectMap Method (SoBufferObjectAccessModes) |
This function maps the OpenGL buffer memory into CPU memory.
Namespace: OIV.Inventor.Devices
Reference to data in the OpenGL buffer.
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.