Function Renderer.renderGeometry

Wraps SDL_RenderGeometry (from SDL 2.0.18) which renders triangles to the renderer's target

void renderGeometry (
  const(Vertex[]) vertices,
  Texture texture = null,
  const(uint[]) indices = null
) @trusted;

Parameters

NameDescription
vertices array of dsdl2.Vertexes of the triangles
texture dsdl2.Texture for the drawn triangles; null for none
indices array of uint indices for the vertices to be drawn (must be in multiples of three); null for order defined by vertices directly

Throws

dsdl2.SDLException if failed to render