Salam, Hi guys,, i found many tutorials about how VBO's, and VAO's works, but i don't get the actual concept. Actually i beginner to Opengl in fact I have directly started the modern opengl, now let come to the actual question,

glEnableVertexAttribArray(0), some time they use it for disabling purposes, but some time they use it for indexing VAO, like

glEnableVertexAttribArray(0) => vertices
glEnableVertexAttribArray(1) => normals
glEnableVertexAttribArray(2) => colors,

plz reply for my question. i apologies if i have posted my question in wrong section, thanks,