Use of Vertex Array Objects and Vertex Buffer Objects
问题 I am trying to understand these two, how to use them and how they are related. Let's say I want to create a simple terrain and a textured cube. For both objects I have the array of triangles vertices and for the cube I have an array containing the texture's data. My question is: how do I use VAOs and VBOs to create and render these two? Would I have to create a VAO and VBO for each object? or should create a VAO for each object's VBO (vertices, texture data, etc.)? There are many tutorials