Question on triangle strip

Started by
0 comments, last by Programmer101 17 years, 1 month ago
Hello,everyone! The problem trouble me about triangle strip. How compute the vertex of triangle trip in the vertex buffer? Thanks!
Advertisement
I'm not quite sure I understand your question, but for a triangle strip, you just make an FVF and put some vertices in a structure that follow your FVF. Then copy the structure to the vertex buffer and your pretty much done. You just call DrawPrimitive and use the STRIP enumerator object, the start vertex and end vertex.

This topic is closed to new replies.

Advertisement