How does glBufferData know which VBO to work on?
问题 Here is the formal declaration for glBufferData which is used to populate a VBO: void glBufferData(GLenum target, GLsizeiptr size, const GLvoid* data, GLenum usage); What is confusing, however, is that you can have multiple VBOs, but this function does not require a handle to a particular VBO, so how does it know which VBO you are intending? The target parameter can be either GL_ARRAY_BUFFER or GL_ELEMENT_ARRAY_BUFFER but my understanding is that you can have more than one of each of these.