sdl3 migrate now compiling, need to go through all the files and clean them up
This commit is contained in:
parent
df4390ddba
commit
1b2e2cb7f1
26 changed files with 1139 additions and 0 deletions
7
packages/graphics/sdl3/line.c
Normal file
7
packages/graphics/sdl3/line.c
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#include "arc/graphics/line.h"
|
||||
#include "renderer.h"
|
||||
|
||||
void ARC_Line_Render(ARC_Point point1, ARC_Point point2, ARC_Renderer *renderer, ARC_Color color){
|
||||
SDL_SetRenderDrawColor((SDL_Renderer *)renderer, color.r, color.g, color.b, color.a);
|
||||
SDL_RenderLine((SDL_Renderer *)renderer, point1.x, point1.y, point2.x, point2.y);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue