summaryrefslogtreecommitdiff
path: root/src/include/rb.h
blob: cc321e65e4e6d9ff6b22538122ff04cd1fe2d07f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef RB_H
#define RB_H

#include <allegro5/allegro5.h>

#define RB_WIDTH 1600
#define RB_HEIGHT 900
#define RB_FPS	(1.0 / 30.0) /* 1 sec divided by 30 frames */

struct rb {
	float			width;
	float			height;
	float			fps;
	ALLEGRO_TIMER		*timer;
	ALLEGRO_EVENT_QUEUE	*event_queue;
	ALLEGRO_DISPLAY		*display;
	ALLEGRO_FONT		*font;
};

struct display_struct *display;

#endif /* RB_H */