sdlRenderDrawLineF function
Draw a line on the current rendering target at subpixel precision.
\param renderer The renderer which should draw a line. \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. \return 0 on success, or -1 on error
\since This function is available since SDL 2.0.10.
extern DECLSPEC int SDLCALL SDL_RenderDrawLineF(SDL_Renderer * renderer, float x1, float y1, float x2, float y2)
Implementation
int sdlRenderDrawLineF(
Pointer<SdlRenderer> renderer, double x1, double y1, double x2, double y2) {
final sdlRenderDrawLineFLookupFunction = libSdl2.lookupFunction<
Int32 Function(Pointer<SdlRenderer> renderer, Float x1, Float y1,
Float x2, Float y2),
int Function(Pointer<SdlRenderer> renderer, double x1, double y1,
double x2, double y2)>('SDL_RenderDrawLineF');
return sdlRenderDrawLineFLookupFunction(renderer, x1, y1, x2, y2);
}