   a quick VAO/Index buffer question
  I've used VAOs a few times now, but never for anything big.  However I'm still not sure how to bind the ELEMENT_ARRAY_BUFFER in the VAO.  The ARRAY_BUFFER's each get bound to indices via glVertexAttribPointer and are enable by EnableVertexAttribArray.  But index buffers aren't attributes of the vertices and so they should be different.  How does one bind the index buffer to a VAO so that if unbound by other draw calls, they will be rebound when binding the VAO?At the moment all I do is call BindBuffer and BufferData to create the index buffers, and as long as I don't bind anything else at ELEMENT_ARRAY_BUFFER, rendering works fine the the VAO obviously.Is there a function to do this, or does the VAO remember GL_ELEMENT_ARRAY_BUFFER_BINDING automatically?   
  Vao remembers the index buffer aswell so put it in in the vaos aswell ;)   ;  Please explain what you mean by "put it in the vao" ?  That's what I'm asking how to do?  Are you saying that a glBindBuffer does this?I'm just going to assume that's what you meant :)thanks very much!   