Hello you all!
Ok, I know hot to make use of glDrawArrays and I do like it.
2 questions I now have:
What, if I have an array wich defines the vertices of a pyramid. That would be 3 coors * 3 vertices * 4 faces = 36 elements in this arrays. glDrawArtrays would perfectly draw my pyramid. Now I want do put a texture on ech side of the pyramid. What to do? would it be wise to use glDrawElements only to draw a triangle? Or is the gain of permoance reduces very much?
My 2nd questions concerns the redundant verteces. Does glDrawElemnts completly eliminate them, even if I specifief them in the array? Or do I have to leave them out in the array?
Thanks a lot,