11 lines
362 B
C
11 lines
362 B
C
|
|
#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
|