I am using glGenBuffers,which creates a handle/s that is used to refer to the buffer when talking to gl.Can I use the handle to read the content of the buffer/s?
If yes – how?
I am using glGenBuffers ,which creates a handle/s that is used to refer to
Share
There are two ways to read data from a Buffer Object. There is
glGetBufferSubData, which directly copies buffer data into a pointer of your choice.You can also map the buffer for reading. That requires using
glMapBufferRange(orglMapBufferif you’re old-school), which you can use to get a pointer to the buffer objects data and read directly.