diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2026-02-18 15:24:23 +0100 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2026-02-18 15:24:23 +0100 |
| commit | 943e24c81926f2392c341001cca69b58536c8129 (patch) | |
| tree | 4b1873fa69c75af91b33b3a384218f8a38743b1a /libs | |
| parent | 2a1f31365dade481c32efc3307f94cc052d00f7f (diff) | |
| download | snake.s-943e24c81926f2392c341001cca69b58536c8129.tar.xz snake.s-943e24c81926f2392c341001cca69b58536c8129.zip | |
feat: create a simple square
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/SDL.S | 1 | ||||
| -rw-r--r-- | libs/SDL/rect.S | 10 |
2 files changed, 11 insertions, 0 deletions
@@ -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 |
