aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-02-18 15:24:23 +0100
committerFelix Morgner <felix.morgner@gmail.com>2026-02-18 15:24:23 +0100
commit943e24c81926f2392c341001cca69b58536c8129 (patch)
tree4b1873fa69c75af91b33b3a384218f8a38743b1a /libs
parent2a1f31365dade481c32efc3307f94cc052d00f7f (diff)
downloadsnake.s-943e24c81926f2392c341001cca69b58536c8129.tar.xz
snake.s-943e24c81926f2392c341001cca69b58536c8129.zip
feat: create a simple square
Diffstat (limited to 'libs')
-rw-r--r--libs/SDL.S1
-rw-r--r--libs/SDL/rect.S10
2 files changed, 11 insertions, 0 deletions
diff --git a/libs/SDL.S b/libs/SDL.S
index 838f482..96efe31 100644
--- a/libs/SDL.S
+++ b/libs/SDL.S
@@ -1,4 +1,5 @@
#include "SDL/error.S"
#include "SDL/init.S"
+#include "SDL/rect.S"
#include "SDL/render.S"
#include "SDL/video.S" \ No newline at end of file
diff --git a/libs/SDL/rect.S b/libs/SDL/rect.S
new file mode 100644
index 0000000..f402324
--- /dev/null
+++ b/libs/SDL/rect.S
@@ -0,0 +1,10 @@
+//! @file rect.S
+//!
+//! Assembler bindings for SDL2 (SDL_rect.h)
+
+#define OFFSET_SDL_Rect_x 0
+#define OFFSET_SDL_Rect_y 4
+#define OFFSET_SDL_Rect_w 8
+#define OFFSET_SDL_Rect_h 12
+
+#define SIZE_SDL_Rect 16 \ No newline at end of file