Hi! I am new to OpenGl. So far, I have been able to draw polygons on my screen and I have been able to apply textures, use matrix transformations, scaling, texture wrapping etc. I have only worked in 2D.
Now, I want to make a simple animated 2D scene using textured polygons. How do I do this? More specifically, how do I go about defining and using more than one element? Do I definue an array for vertex co-ordinates for every element or just put all the co-ordinates in one array ( sounds like a bad idead) ? I want to do this in an optimized way for which, according to my understanding so far, I should limit the glDraw() calls.
On another note, when using textures, does the glDisableVertexAttribArray() need to be called on the texture co-ordinates too? If yes, then why? Thank you.