added buffer system and fixed rendering functions
This commit is contained in:
parent
5a9d7ca07d
commit
017629872f
9 changed files with 170 additions and 44 deletions
|
|
@ -2,6 +2,6 @@
|
|||
#include "renderer.h"
|
||||
|
||||
void ARC_Line_Render(ARC_Point point1, ARC_Point point2, ARC_Renderer *renderer, ARC_Color color){
|
||||
SDL_SetRenderDrawColor((SDL_Renderer *)renderer, color.r, color.g, color.b, color.a);
|
||||
SDL_RenderLine((SDL_Renderer *)renderer, point1.x, point1.y, point2.x, point2.y);
|
||||
SDL_SetRenderDrawColor(renderer->renderer, color.r, color.g, color.b, color.a);
|
||||
SDL_RenderLine(renderer->renderer, point1.x, point1.y, point2.x, point2.y);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue