stuff to get shooty to work, might be temp

This commit is contained in:
herbglitch 2022-12-20 00:50:55 -07:00
parent d4731d3961
commit 12a28fea88
8 changed files with 102 additions and 3 deletions

11
src/graphics/sdl/line.c Normal file
View file

@ -0,0 +1,11 @@
#include "arc/graphics/line.h"
#ifdef ARC_SDL
#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){
SDL_SetRenderDrawColor(renderer->renderer, color->r, color->g, color->b, color->a);
SDL_RenderDrawLine(renderer->renderer, *x1, *y1, *x2, *y2);
}
#endif // ARC_SDL