@CSharpCoder wrote:
In a 2D tile-based platformer I'm drawing all of my tiles using a vertex and index buffer with DrawIndexedPrimitives. I'm trying to make as few draw calls as possible, but some of the tiles are on a different layer than others and thus has to be drawn on top of, or beneath other layers. If I only have to make a draw call for each different texture rather than each different texture for each different layer, that would be great.
Does the order of the vertices/indices in a Vertex/IndexBuffer determine the draw order?
Posts: 3
Participants: 3