Sorry that this is a basic question, but i've recently come back to programming opengl only to find 2.0 is now obsolete.
I understand that when setting up a VAO, you use this command
glBindVertexArray(array[0])
and the subsequent code is bound to it. but the tutorial i'm following just sets up the next VAO as follows
glBindVertexArray(array[1])
is this how VAOs work? you just use a glBindVertexArray command and what ever follows is bound to it? doesn't this mean the last used VBA is always open? can it (should it) be closed after setting it?
Cheers for any reply