DirectX Question about vertices, buffers
Posted on 2012-04-11
I`m a DirectX newbie. I`m using DirectX 9 on C# .net VS2008 3.5.
Let`s say I have a Vertex List, with indices 0-99. I use a Vertex Buffer to store these. Now my application requires that after an event the new vertices are added to the same list. Lets say 100-199. So on.
What is the most efficient way to to display the vertices in stages?
For example Step 1. Display 0-99
Step 2. Calculate vertices 100-199 and then display 0-199
Step 3. Calculate vertices 200-299 and then display 0-299
Do I calculate all the vertices before hand and then display them in stages, or can I calculate the vertices in stages and then display them.
Also, the user should be able to use transformations (rotation, shifting) at any stage.
I`m looking for some guidance with this.