Sign in to follow this  

Element arrays

This topic is 3047 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi, i need an advice on vertex array. Does element array with indices ordered (0,1,2,3,....) has advantage over the regular method ?

Share this post


Link to post
Share on other sites
There is no advantage. You can use glDrawArrays if you want which doesn't require indices.

Share this post


Link to post
Share on other sites
yes,

and by doing so, i will have one to one corresponding. this means that i need
indices 0,1,... and as said earlier it is not faster.

so what is the power of element arrays?

Share this post


Link to post
Share on other sites
When you have shared vertices you can reduce the size of the vertex arrays and utilize the vertex cache better. If a vertex have multiple normals, then they are not shared.

Share this post


Link to post
Share on other sites
Sign in to follow this