fixed rectangles layout
This commit is contained in:
parent
ba4a36ffe5
commit
0bbce28469
3 changed files with 48 additions and 0 deletions
11
src/graphics/sdl/rectangle.c
Normal file
11
src/graphics/sdl/rectangle.c
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue