From 3b55cd81652afd4b7414719e3b26a1a25b3ff586 Mon Sep 17 00:00:00 2001 From: Matthew Owens Date: Sat, 3 Oct 2020 12:29:54 +0100 Subject: [PATCH] removed bricks, since we're not making breakout --- src/main.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/main.c b/src/main.c index 8eb04c4..139c5b8 100644 --- a/src/main.c +++ b/src/main.c @@ -14,11 +14,6 @@ typedef struct Colour { Uint8 a; } Colour; -typedef struct Box { - Colour c; - SDL_Rect r; -} Box; - typedef struct Vbox { Colour c; SDL_Rect r; @@ -37,7 +32,6 @@ static Vec2di windowSize; static Vec2df windowScale; Vbox pad, ball; -Box *vec_bricks = NULL; Vec2df vline[2]; static void paddle_init() @@ -70,12 +64,6 @@ static void ball_init() ball.v.y = speed; } -static void box_render(const Box *b) -{ - SDL_SetRenderDrawColor(renderer, b->c.r, b->c.g, b->c.b, b->c.a); - SDL_RenderFillRect(renderer, &b->r); -} - static void vbox_render(const Vbox *b) { SDL_SetRenderDrawColor(renderer, b->c.r, b->c.g, b->c.b, b->c.a); -- 2.20.1