Original Post
hello,
I encounter a problem with the drawIndexedPrimitive. I fill the vertexBuffer with 3 points like this:
...->lock(0, 0, (byte **)&vertex, 0);
...
vertex[1].x = ...
vertex[2].x = ...
vertex[3].x = ...
so much that the indexes I fill in the indexBuffer are 1, 2, 3.
Then I call ...->setIndices(IB, 0)
and it doesn''t work. This is not the right triangle which is displayed. Whereas, when I fill the indexBuffer with 0, 1, 2 and then call ...->setIndices(IB, 1) it works.