forked from antirez/load81
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload81.h
36 lines (29 loc) · 769 Bytes
/
load81.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
35
36
#ifndef LOAD81_H
#define LOAD81_H
#include "framebuffer.h"
/* ================================ Defaults ================================ */
#define DEFAULT_WIDTH 800
#define DEFAULT_HEIGHT 600
#define DEFAULT_BPP 24
/* ============================= Data structures ============================ */
struct globalConfig {
/* Runtime */
int r,g,b;
int alpha;
int fps;
long long start_ms;
long long epoch;
frameBuffer *fb;
char *filename;
lua_State *L;
int luaerr; /* True if there was an error in the latest iteration. */
/* Configuration */
int width;
int height;
int bpp;
/* Command line switches */
int opt_show_fps;
int opt_full_screen;
};
extern struct globalConfig l81;
#endif /* LOAD81_H */