From 943e24c81926f2392c341001cca69b58536c8129 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Wed, 18 Feb 2026 15:24:23 +0100 Subject: feat: create a simple square --- libs/SDL.S | 1 + libs/SDL/rect.S | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 libs/SDL/rect.S (limited to 'libs') 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 -- cgit v1.2.3