m_pD3DDevice->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 0, //BaseVertexIndex pAttr[k].VertexStart, //MinIndex pAttr[k].VertexCount, //NumVertices pAttr[k].FaceStart*3, //StartIndex pAttr[k].FaceCount ); //NumPrimitives
I don`t figure out what is VertexStart and VertexCount. For example I have:
Face number-----------0----------------1------------------2-------------------3
Vert in IndxBuff--------40,20,24-------20,92,42---------43,34,25---------92,63,24
What is VertexStart? This is vert 40 from face 0 or min vert indx 20 which is in face 0 and face 1? That is VertexStart is min index of vert in index buffer or first index vert in indx buffer?
Furthemore what is VertexCount? This is value 12, that is we have 4 face by 3 vert each = 12. Or this value = 10 because vert 20 repeat twice in face 0 and face 1 and vert 24 repeat twice in face 0 and face3 ?
And how I understand FaceStart = 40 and FaceCount = 4.
Thanks in advance.












