From 5e7ef9236c51593074da22f42d25b1d622939707 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Tue, 28 Oct 2025 20:56:23 +0100 Subject: Initial drop Add basic Allegro initialization, draw the display and add sample object Signed-off-by: Carlos Maiolino --- src/include/rb.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/include/rb.h (limited to 'src/include/rb.h') 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 + +#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 */ -- cgit v1.2.3