Function SDL_RenderGeometryRaw
pub unsafe extern "C" fn SDL_RenderGeometryRaw(
renderer: *mut SDL_Renderer,
texture: *mut SDL_Texture,
xy: *const f32,
xy_stride: i32,
color: *const SDL_Color,
color_stride: i32,
uv: *const f32,
uv_stride: i32,
num_vertices: i32,
indices: *const c_void,
num_indices: i32,
size_indices: i32,
) -> i32
dep_sdl2
only.Expand description
Render a list of triangles, optionally using a texture and indices into the vertex arrays Color and alpha modulation is done per vertex (SDL_SetTextureColorMod and SDL_SetTextureAlphaMod are ignored).
\param renderer The rendering context. \param texture (optional) The SDL texture to use. \param xy Vertex positions \param xy_stride Byte size to move from one element to the next element \param color Vertex colors (as SDL_Color) \param color_stride Byte size to move from one element to the next element \param uv Vertex normalized texture coordinates \param uv_stride Byte size to move from one element to the next element \param num_vertices Number of vertices. \param indices (optional) An array of indices into the ‘vertices’ arrays, if NULL all vertices will be rendered in sequential order. \param num_indices Number of indices. \param size_indices Index size: 1 (byte), 2 (short), 4 (int) \return 0 on success, or -1 if the operation is not supported
\since This function is available since SDL 2.0.18.
\sa SDL_RenderGeometry \sa SDL_Vertex