2022-12-20 00:50:55 -07:00
|
|
|
#ifdef ARC_SDL
|
2023-03-10 17:34:22 -07:00
|
|
|
#include "arc/graphics/line.h"
|
2022-12-20 00:50:55 -07:00
|
|
|
#include "arc/graphics/sdl/renderer.h"
|
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
|
|
void ARC_Line_Render(int32_t *x1, int32_t *y1, int32_t *x2, int32_t *y2, ARC_Renderer *renderer, ARC_Color *color){
|
2023-03-10 17:34:22 -07:00
|
|
|
SDL_SetRenderDrawColor((SDL_Renderer *)renderer, color->r, color->g, color->b, color->a);
|
|
|
|
|
SDL_RenderDrawLine((SDL_Renderer *)renderer, *x1, *y1, *x2, *y2);
|
2022-12-20 00:50:55 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // ARC_SDL
|