fixed rectangles layout

This commit is contained in:
herbglitch 2023-01-03 19:21:57 -07:00
parent ba4a36ffe5
commit 0bbce28469
3 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#include "arc/graphics/rectangle.h"
#ifdef ARC_SDL
#include "arc/graphics/sdl/renderer.h"
#include <stdlib.h>
void ARC_Rect_Render(ARC_Rect *rect, ARC_Renderer *renderer, ARC_Color *color){
SDL_SetRenderDrawColor(renderer->renderer, color->r, color->g, color->b, color->a);
SDL_RenderDrawRect(renderer->renderer, (SDL_Rect *) rect);
}
#endif // ARC_SDL