I use glGenBuffers , which creates the / s descriptor, which is used to refer to the buffer when talking to gl.Can I use the descriptor to read the contents of the / s buffer? If so, how?
glGenBuffers
There are two ways to read data from a Buffer Object . There is glGetBufferSubData that directly copies the buffer data to the pointer of your choice.
glGetBufferSubData
You can also display a buffer for reading . This requires glMapBufferRange (or glMapBuffer if you're old school), which you can use to get a pointer to the data of buffer objects and read directly.
glMapBufferRange
glMapBuffer
Source: https://habr.com/ru/post/1396868/More articles:https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1396863/passing-two-parametes-to-asynctask-method-how-to&usg=ALkJrhjVOnB_qJBSDDpJezrXivMY3AngRwARC circular reference in objective-c uses delegate - objective-cANTLR Grammar if statement - antlrJava subclass issue with typical self-referencing type type - javaParsing Java code with ANTLR "need for a concept" - javaWhere to put the destructor code for the ATL COM object? - c ++Android - specifying a custom theme for a custom dialog. AlertDialog.Builder wraps content in a dialog box - androidHow to start PowerShell 3.0? - windowsHow to get SIGILL to send my program? - cSaving Reference Types in Struct - c #All Articles