added views and temp circlefill
This commit is contained in:
parent
75f98548db
commit
1354d7c915
3 changed files with 11 additions and 1 deletions
|
|
@ -92,6 +92,7 @@ set(ARCHEUS_STD_SDL_SOURCES
|
||||||
src/graphics/sdl/sprite.c
|
src/graphics/sdl/sprite.c
|
||||||
src/graphics/sdl/spritesheet.c
|
src/graphics/sdl/spritesheet.c
|
||||||
src/graphics/sdl/text.c
|
src/graphics/sdl/text.c
|
||||||
|
src/graphics/sdl/view.c
|
||||||
src/graphics/sdl/window.c
|
src/graphics/sdl/window.c
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ extern "C" {
|
||||||
|
|
||||||
void ARC_Circle_Render(ARC_Circle *circle, ARC_Renderer *renderer, ARC_Color *color);
|
void ARC_Circle_Render(ARC_Circle *circle, ARC_Renderer *renderer, ARC_Color *color);
|
||||||
|
|
||||||
// void ARC_Rect_RenderFill(ARC_Rect *rect, ARC_Renderer *renderer, ARC_Color *color);
|
void ARC_Circle_RenderFill(ARC_Circle *circle, ARC_Renderer *renderer, ARC_Color *color);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -40,4 +40,13 @@ void ARC_Circle_Render(ARC_Circle *circle, ARC_Renderer *renderer, ARC_Color *co
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//TODO: very temp
|
||||||
|
void ARC_Circle_RenderFill(ARC_Circle *circle, ARC_Renderer *renderer, ARC_Color *color){
|
||||||
|
ARC_Circle temp = *circle;
|
||||||
|
|
||||||
|
for(; temp.r; temp.r--){
|
||||||
|
ARC_Circle_Render(&temp, renderer, color);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endif // ARC_SDL
|
#endif // ARC_SDL
|
||||||
Loading…
Add table
Add a link
Reference in a new issue