MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / SDL_RenderDrawLine

Function SDL_RenderDrawLine

deps/SDL2/src/render/SDL_render.c:2423–2432  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2421}
2422
2423int
2424SDL_RenderDrawLine(SDL_Renderer * renderer, int x1, int y1, int x2, int y2)
2425{
2426 SDL_FPoint points[2];
2427 points[0].x = (float) x1;
2428 points[0].y = (float) y1;
2429 points[1].x = (float) x2;
2430 points[1].y = (float) y2;
2431 return SDL_RenderDrawLinesF(renderer, points, 2);
2432}
2433
2434int
2435SDL_RenderDrawLineF(SDL_Renderer * renderer, float x1, float y1, float x2, float y2)

Callers 7

DrawLinesFunction · 0.85
MoveSpritesFunction · 0.85
DrawLinesFunction · 0.85
DrawOnViewportFunction · 0.85
render_testPrimitivesFunction · 0.85

Calls 1

SDL_RenderDrawLinesFFunction · 0.85

Tested by 7

DrawLinesFunction · 0.68
MoveSpritesFunction · 0.68
DrawLinesFunction · 0.68
DrawOnViewportFunction · 0.68
render_testPrimitivesFunction · 0.68