DrawIndexedPrimitive & DX8.1
hello everybody
I have a problem with DrawIndexedPrimitive()
VertexBuffer and IndexBuffer I fill correctly, for sure.
On scene are two objects ( two box, every objects have a 12 triangles and 8 vertex, 36 indices, box are separated )
when I call this :
Get3DDevice()->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 8, 8, 36, 12 );
I get second box, that''s ok.
when I try this
Get3DDevice()->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 0, 8, 0, 12 );
I get first one, that''s ok, too
If I call :
Get3DDevice()->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 0, 8, 0, 12 );
Get3DDevice()->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 8, 8, 36, 12 );
I get only first one. why ???
and at last when I call :
Get3DDevice()->DrawIndexedPrimitive( D3DPT_TRIANGLELIST, 0, 16, 0, 24 );
I get first one, again. why ???
every function return S_OK.
I will be very grateful if anyone help me
lukas
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement