sdl3 migrate now compiling, need to go through all the files and clean them up

This commit is contained in:
herbglitch 2025-03-22 23:25:21 -06:00
parent df4390ddba
commit 1b2e2cb7f1
26 changed files with 1139 additions and 0 deletions

View file

@ -0,0 +1,23 @@
#include "arc/graphics/rectangle.h"
#include "renderer.h"
#include <stdlib.h>
void ARC_Rect_Render(ARC_Rect rect, ARC_Renderer *renderer, ARC_Color color){
ARC_FRect casted = ARC_Rect_CastToFRect(rect);
ARC_FRect_Render(casted, renderer, color);
}
void ARC_Rect_RenderFill(ARC_Rect rect, ARC_Renderer *renderer, ARC_Color color){
ARC_FRect casted = ARC_Rect_CastToFRect(rect);
ARC_FRect_RenderFill(casted, renderer, color);
}
void ARC_FRect_Render(ARC_FRect rect, ARC_Renderer *renderer, ARC_Color color){
SDL_SetRenderDrawColor((SDL_Renderer *)renderer, color.r, color.g, color.b, color.a);
SDL_RenderRect((SDL_Renderer *)renderer, (SDL_FRect *)&rect);
}
void ARC_FRect_RenderFill(ARC_FRect rect, ARC_Renderer *renderer, ARC_Color color){
SDL_SetRenderDrawColor((SDL_Renderer *)renderer, color.r, color.g, color.b, color.a);
SDL_RenderFillRect((SDL_Renderer *)renderer, (SDL_FRect *)&rect);
}