[ACCEPTED]-reading from buffer/s - OpenGL-buffer
Accepted answer
There are two ways to read data from a Buffer Object. There 5 is glGetBufferSubData
, which directly copies buffer data into 4 a pointer of your choice.
You can also map the buffer for reading. That 3 requires using glMapBufferRange
(or glMapBuffer
if you're old-school), which 2 you can use to get a pointer to the buffer 1 objects data and read directly.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.