AberAber
March 31st, 2005, 12:21 AM
Bit of confusion on my part, probably because I'm just starting to learn DirectX.
I have a bunch of vertexes and a bunch of indexes that use the vertexes. However, my goal is to have different textures for some of the triangles. Do I have to actually make different index buffers for every set of triangles that use different textures? I couldn't figure out a way using DrawIndexedPrimitives to have it only draw some of the indices, then I could switch textures, and then draw more from the index buffer.
I have a bunch of vertexes and a bunch of indexes that use the vertexes. However, my goal is to have different textures for some of the triangles. Do I have to actually make different index buffers for every set of triangles that use different textures? I couldn't figure out a way using DrawIndexedPrimitives to have it only draw some of the indices, then I could switch textures, and then draw more from the index buffer.