SDL_RenderGeometry

Render a list of triangles, optionally using a texture and indices into the vertex array Color and alpha modulation is done per vertex (SDL_SetTextureColorMod and SDL_SetTextureAlphaMod are ignored).

extern (C) nothrow @nogc extern
bool
SDL_RenderGeometry

Parameters

renderer SDL_Renderer*

The rendering context.

texture SDL_Texture*

(optional) The SDL_Texture to use.

vertices const(SDL_Vertex)*

Vertices.

num_vertices int

Number of vertices.

indices const(int)*

(optional) An array of integer indices into the 'vertices' array, if null all vertices will be rendered in sequential order.

num_indices int

Number of indices.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta