Function sdl2_sys::SDL_RenderDrawLine
source ยท pub unsafe extern "C" fn SDL_RenderDrawLine(
renderer: *mut SDL_Renderer,
x1: c_int,
y1: c_int,
x2: c_int,
y2: c_int,
) -> c_int
Expand description
Draw a line on the current rendering target.
SDL_RenderDrawLine() draws the line to include both end points. If you want to draw multiple, connecting lines use SDL_RenderDrawLines() instead.
\param renderer the rendering context \param x1 the x coordinate of the start point \param y1 the y coordinate of the start point \param x2 the x coordinate of the end point \param y2 the y coordinate of the end point \returns 0 on success or a negative error code on failure; call SDL_GetError() for more information.
\since This function is available since SDL 2.0.0.
\sa SDL_RenderDrawLines \sa SDL_RenderDrawPoint \sa SDL_RenderDrawPoints \sa SDL_RenderDrawRect \sa SDL_RenderDrawRects \sa SDL_RenderFillRect \sa SDL_RenderFillRects \sa SDL_RenderPresent \sa SDL_SetRenderDrawBlendMode \sa SDL_SetRenderDrawColor