Renderer.renderGeometry

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

class Renderer
@trusted
static if(sdlSupport >= SDLSupport.v2_0_18)
void
renderGeometry
(,
Texture texture = null
,
const uint[] indices = null
)

Parameters

vertices Vertex[]

array of dsdl2.Vertexes of the triangles

texture Texture

dsdl2.Texture for the drawn triangles; null for none

indices uint[]

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

Meta