aboutsummaryrefslogtreecommitdiff
path: root/libs/SDL/video.S
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-02-18 13:19:52 +0100
committerFelix Morgner <felix.morgner@gmail.com>2026-02-18 13:19:52 +0100
commit2a1f31365dade481c32efc3307f94cc052d00f7f (patch)
tree54acaae0d6c18106a82eb263e3b860197908f903 /libs/SDL/video.S
parent63fd09807c528915ac5ba6bc9eb11520cbf073e0 (diff)
downloadsnake.s-2a1f31365dade481c32efc3307f94cc052d00f7f.tar.xz
snake.s-2a1f31365dade481c32efc3307f94cc052d00f7f.zip
refactor: split SDL bindings
Diffstat (limited to 'libs/SDL/video.S')
-rw-r--r--libs/SDL/video.S23
1 files changed, 23 insertions, 0 deletions
diff --git a/libs/SDL/video.S b/libs/SDL/video.S
new file mode 100644
index 0000000..f91cc89
--- /dev/null
+++ b/libs/SDL/video.S
@@ -0,0 +1,23 @@
+//! @file video.S
+//!
+//! Assembler bindings for SDL2 (SDL_video.h)
+
+#define SDL_WINDOW_SHOWN 0x00000004u
+
+#define SDL_WINDOWPOS_UNDEFINED 0x1FFF0000u
+
+//! @fn SDL_Window * SDL_CreateWindow(const char *title, int x, int y, int w, int h, uint32_t flags)
+//! @param title the window title
+//! @param x the X position of the window, or SDL_WINDOWPOS_UNDEFINED
+//! @param y the Y position of the window, or SDL_WINDOWPOS_UNDEFINED
+//! @param w the width of the window
+//! @param h the height of the window
+//! @param flags 0, or one or more SDL_WindowFlags OR'd together.
+//! @return a valid window or NULL on error
+.type SDL_CreateWindow, @function
+.extern SDL_CreateWindow
+
+//! @fn void SDL_DestroyWindow(SDL_Window *window)
+//! @param window the window to destroy
+.type SDL_DestroyWindow, @function
+.extern SDL_DestroyWindow