-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphics.h
24 lines (21 loc) · 816 Bytes
/
graphics.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __GRAPHICS_H
#define __GRAPHICS_H
extern int32_t gamewidth;
extern int32_t gameheight;
extern int32_t brickwidth;
extern int32_t brickheight;
extern int8_t is_pi;
void initialise_graphics();
void refresh_screen();
void draw_game(bar_t *bar, ball_t *ball, int32_t *bricks);
void draw_ball(int32_t x, int32_t y, int32_t radius, int32_t colour);
void draw_bar(int32_t x, int32_t y, int32_t width, int32_t height, uint32_t colour);
void draw_brick(int32_t x, int32_t y, int32_t width, int32_t height, int32_t colour);
void draw_filled_circle(int32_t x0, int32_t y0, int32_t radius);
void draw_win_screen();
void draw_gameover_screen();
void destroy_graphics();
void render_text(const char *text);
void draw_background();
void render_text_two_lines(const char *text1, const char *text2);
#endif //__GRAPHICS_H