I’ve recently been converting a model viewer of mine to use vertex arrays instead of display lists. I’ve nearly finished the conversion, and I’m even using glLockArraysEXT and glUnlockArraysEXT. However, a few questions have come up…
First of all, how do I do flat shading with vertex arrays? It seems to me that vertex arrays were designed with per-vertex normals rather than having a normal for every face.
Secondly, from what I understand, vertex arrays can’t be used in display lists, yet if I’m not mistaken, several web pages make vague referrences to exactly that. Can I use the two together, and if so, is it implementation dependant?
Lastly, I don’t seem to be getting any significant performance increase by using vertex arrays over display lists. Is there an advantage to using vertex arrays, and if so, when does it provide the most benefit?