diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2025-06-02 20:51:57 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2025-06-02 21:05:38 +0200 |
| commit | e09f226126367ee4328237511de9cb621de805d3 (patch) | |
| tree | eebdb36cf6fccb65d5ef244a850000dd52bea4e8 /examples | |
| parent | 8135dda2fc42b3c474f0a77d7f03126b2eb8c034 (diff) | |
add examples/all/sdl3 for all sdl3 dependant packages
+ adds the wgpu glue packages to examples/all
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/all/all_vendor_windows.odin | 12 | ||||
| -rw-r--r-- | examples/all/sdl3/all_sdl3.odin | 13 | ||||
| -rw-r--r-- | examples/all/sdl3/all_sdl3_windows.odin | 5 |
3 files changed, 26 insertions, 4 deletions
diff --git a/examples/all/all_vendor_windows.odin b/examples/all/all_vendor_windows.odin index df6542cdd..3daf527ce 100644 --- a/examples/all/all_vendor_windows.odin +++ b/examples/all/all_vendor_windows.odin @@ -1,11 +1,15 @@ package all -import wgpu "vendor:wgpu" -import b2 "vendor:box2d" -import game_input "vendor:windows/GameInput" -import XAudio2 "vendor:windows/XAudio2" +import wgpu "vendor:wgpu" +import wgpu_glfw_glue "vendor:wgpu/glfwglue" +import wgpu_sdl_glue "vendor:wgpu/sdl2glue" +import b2 "vendor:box2d" +import game_input "vendor:windows/GameInput" +import XAudio2 "vendor:windows/XAudio2" _ :: wgpu +_ :: wgpu_glfw_glue +_ :: wgpu_sdl_glue _ :: b2 _ :: game_input _ :: XAudio2 diff --git a/examples/all/sdl3/all_sdl3.odin b/examples/all/sdl3/all_sdl3.odin new file mode 100644 index 000000000..550275af0 --- /dev/null +++ b/examples/all/sdl3/all_sdl3.odin @@ -0,0 +1,13 @@ +/* +Imports all packages using SDL3, can't go in the parent directory +because SDL2 and SDL3 will have naming conflicts. +*/ +package all_sdl3 + +import SDL "vendor:sdl3" +import IMG "vendor:sdl3/image" +import TTF "vendor:sdl3/ttf" + +_ :: SDL +_ :: IMG +_ :: TTF diff --git a/examples/all/sdl3/all_sdl3_windows.odin b/examples/all/sdl3/all_sdl3_windows.odin new file mode 100644 index 000000000..28a0fec90 --- /dev/null +++ b/examples/all/sdl3/all_sdl3_windows.odin @@ -0,0 +1,5 @@ +package all_sdl3 + +import wgpu_sdl3_glue "vendor:wgpu/sdl3glue" + +_ :: wgpu_sdl3_glue |