DrawIndexedPrimitive(): Still Don't Understand Parameters
I've been working with indexed primitives for a while, and the second third and fourth parameters I always set to 0, because I didn't need to render multiple objects from the same buffer. Now that I do, I am completely confused about those certain parameters. MSDN isn't helpful, because the way they describe the parameters for the function is confusing me even more!
Basically, I need to render usually 2 or more different objects from the same index and vertex buffers in a for loop, using the DrawIndexedPrimitive, and I do not understand what parameters 2, 3, and 4 do exactly. And don't quote MSDN.
[edited by - jtmerchant on April 4, 2004 1:02:35 AM]
something like
trianglelist,0,0,vertexNumber, index,triangleNo
vertexNum refers to the total count of vertices that are stored in the current vb, index is where in the array to look a the index list. and triangleNo the number of triangles to draw from that.
so if you create 2 triangles out of six indices you have index=0, triangleNo=2 i think
trianglelist,0,0,vertexNumber, index,triangleNo
vertexNum refers to the total count of vertices that are stored in the current vb, index is where in the array to look a the index list. and triangleNo the number of triangles to draw from that.
so if you create 2 triangles out of six indices you have index=0, triangleNo=2 i think
Here is a link to possibly the best explanation of the parameters I''ve seen:
http://tomsdxfaq.blogspot.com/2002_05_01_tomsdxfaq_archive.html#77028718
Stay Casual,
Ken
Drunken Hyena
http://tomsdxfaq.blogspot.com/2002_05_01_tomsdxfaq_archive.html#77028718
Stay Casual,
Ken
Drunken Hyena
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement