Browse Source

Add sdl3_loadso.odin

gingerBill 7 months ago
parent
commit
a7d57e69ec
1 changed files with 10 additions and 0 deletions
  1. 10 0
      vendor/sdl3/sdl3_loadso.odin

+ 10 - 0
vendor/sdl3/sdl3_loadso.odin

@@ -0,0 +1,10 @@
+package sdl3
+
+SharedObject :: struct {}
+
+@(default_calling_convention="c", link_prefix="SDL_", require_results)
+foreign lib {
+	LoadObject   :: proc(sofile: cstring) -> ^SharedObject ---
+	LoadFunction :: proc(handle: ^SharedObject, name: cstring) -> FunctionPointer ---
+	UnloadObject :: proc(handle: ^SharedObject) ---
+}