summaryrefslogtreecommitdiff
path: root/src/include/rb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/rb.h')
-rw-r--r--src/include/rb.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/rb.h b/src/include/rb.h
new file mode 100644
index 0000000..fb3f617
--- /dev/null
+++ b/src/include/rb.h
@@ -0,0 +1,22 @@
+#ifndef RB_H
+#define RB_H
+
+#include <allegro5/allegro5.h>
+
+#define RB_WIDTH 640
+#define RB_HEIGHT 480
+#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 */