• Advertisement
Sign in to follow this  

Index Data

This topic is 4280 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

I know how Vertex Data is stored, a struct that has certain data members depending on the FVF values, but how is Index Data stored? Index data is like which vertex connects to which right? It is stored as a WORD but how can I make indexes that would make a cube for example?

Share this post


Link to post
Share on other sites
Advertisement
It depends on the type of primitive you're using.
If you're using triangle list, you have to write 3 indices. One for each vertex of the triangle. And indices can be stored on 32 bits but also on 16 bits.

Take a look here

Share this post


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

  • Advertisement