Render one VAO containing two VBOs
问题 I'm trying to draw two triangles in a window in OpenGL 3.3. I'm using the GLFW library for the windowing system. From what I understand, I should have two VBOs (one for each triangle) and one VAO containing these two VBOs. That's what I did. However, I can't figure out what calls I should make to render these two VBOs. Indeed, whatever I do, only the first VBO (first triangle) gets drawn . The second one never shows up. int main() { GLFWwindow *window = setupWindow(); GLfloat