Each attribute is associated with a component count, type, normalized, offset, stride and VBO. The VBO is no passed explicitly as a parameter but is instead the buffer bound to GL_ARRAY_BUFFER at the time of the call.
void prepareMeshForRender(Mesh mesh){
glBindVertexArray(mesh.vao);
glBi...