blob: 22f298141ea790c79e85012d81a6ee8e2dd7d553 (
plain)
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 RB_H
#define RB_H
#include <allegro5/allegro5.h>
#include <allegro5/allegro_font.h>
#define RB_WIDTH 1792
#define RB_HEIGHT 1344
#define RB_X_CENTER (RB_WIDTH / 2)
#define RB_Y_CENTER (RB_HEIGHT / 2)
#define RB_FPS (1.0 / 80.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;
};
#endif /* RB_H */
|