Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Does the order of the vertices/indices in a Vertex/IndexBuffer determine the draw order?

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles