projects
/
gbajam22
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add missing tools/pngdump to the repo
[gbajam22]
/
src
/
game.h
1
#ifndef GAME_H_
2
#define GAME_H_
3
4
#include <stdint.h>
5
6
struct screen {
7
char *name;
8
int (*start)(void);
9
void (*stop)(void);
10
void (*frame)(void);
11
void (*vblank)(void);
12
};
13
14
extern struct screen *curscr;
15
16
int init_screens(void);
17
int change_screen(struct screen *scr);
18
struct screen *find_screen(const char *name);
19
20
int gba_colors;
21
22
#ifndef BUILD_GBA
23
int32_t view_dtheta, view_dphi, view_zoom;
24
#endif
25
26
#endif /* GAME_H_ */