sdlRenderDrawLines function
Draw a series of connected lines on the current rendering target.
\param renderer the rendering context \param points an array of SDL_Point structures representing points along the lines \param count the number of points, drawing count-1 lines \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_RenderDrawLine \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
extern DECLSPEC int SDLCALL SDL_RenderDrawLines(SDL_Renderer * renderer, const SDL_Point * points, int count)
Implementation
int sdlRenderDrawLines(
Pointer<SdlRenderer> renderer, Pointer<SdlPoint> points, int count) {
final sdlRenderDrawLinesLookupFunction = libSdl2.lookupFunction<
Int32 Function(
Pointer<SdlRenderer> renderer, Pointer<SdlPoint> points, Int32 count),
int Function(Pointer<SdlRenderer> renderer, Pointer<SdlPoint> points,
int count)>('SDL_RenderDrawLines');
return sdlRenderDrawLinesLookupFunction(renderer, points, count);
}