Uint8 a;
} Colour;
-typedef struct Box {
- Colour c;
- SDL_Rect r;
-} Box;
-
typedef struct Vbox {
Colour c;
SDL_Rect r;
static Vec2df windowScale;
Vbox pad, ball;
-Box *vec_bricks = NULL;
Vec2df vline[2];
static void paddle_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);