removed bricks, since we're not making breakout
authorMatthew Owens <matthew@owens.tech>
Sat, 3 Oct 2020 11:29:54 +0000 (12:29 +0100)
committerMatthew Owens <matthew@owens.tech>
Sat, 3 Oct 2020 11:29:54 +0000 (12:29 +0100)
src/main.c

index 8eb04c4..139c5b8 100644 (file)
@@ -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);