-
Notifications
You must be signed in to change notification settings - Fork 1
/
draw.h
34 lines (24 loc) · 811 Bytes
/
draw.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
25
26
27
28
29
30
31
32
33
34
#ifndef DRAW_H
#define DRAW_H
#include "gamestate.h"
#include "player.h"
#include "box.h"
#include "bullet.h"
/* Splash */
void draw_splash(const game_state_t *state);
/* Background */
void draw_background(const game_state_t *state);
/* Generic Drawing Functions */
void draw_rect(const game_state_t *state,
const rect_t *rect, const color_t *col);
/* Box */
void draw_box(const game_state_t *state, const box_t *box);
/* Bullet */
void draw_bullet(const game_state_t *state, const bullet_t *bullet);
/* Powerup */
void draw_powerup(const game_state_t *state, const powerup_t *powerup);
/* Players */
void draw_player(const game_state_t *state, const player_t *player);
void draw_square(const game_state_t *state, vector2_t *pos, float width,
float degrees, const color_t *color);
#endif