Dan Balasescu
f51f432541
Fix prefix
2025-08-03 00:14:47 +09:00
hwsmm
4813f8dc59
Add satellite libraries to test, and simply test availability
2025-06-29 19:51:18 +09:00
Susko3
88efab5deb
Fix `Unsafe_` method generation in SDL_ttf
2025-06-24 11:00:53 +02:00
Susko3
1c1dbaa8cd
Fix SDL_image tests not compiling
2025-06-23 23:13:18 +02:00
Dan Balasescu
5d7ad9a1b8
Init SDL too
2025-06-23 22:10:36 +09:00
Susko3
28951012e3
Add simple tests for SDL_image and SDL_ttf
2025-06-22 14:30:20 +02:00
Dan Balasescu
ac2e352e81
Merge pull request #179 from WizzardMaker/feature/sdl-libs
...
Adds support for sdl_image and sdl_ttf (also other libs)
2025-06-20 01:01:30 +09:00
Dan Balasescu
c563ecc3be
Mark test projects as non-packable
2025-06-20 00:38:43 +09:00
Susko3
7f8ddcd477
Add SDL_GetEventDescription to tests
2025-06-06 18:53:31 +02:00
Anthony Konzel
080b1e571e
Allow `foreach` enumeration over SDLArray
2025-06-05 12:57:08 -05:00
Susko3
f988cb2d0b
Implement helper for SDL_GetTrayEntries()
...
The returned array should not be SDL_free'd as it's a `const` pointer.
2025-01-05 04:33:11 +00:00
Susko3
4ee7f7e617
Mark interactive test with `[Explicit]`
2024-12-31 02:57:20 +01:00
Susko3
3a0f3844b7
Add simple SDL_tray test
...
Just to get a feel for the API and to see how it works/behaves across operating systems.
2024-12-31 02:56:57 +01:00
Susko3
d5287637ef
Add a simple usage test for SDL_GetWindows()
2024-12-17 17:20:39 +01:00
Susko3
05c7ec057c
Add some missing macros
2024-10-02 02:13:12 +01:00
Susko3
98930ae886
Update bindings
2024-10-02 00:51:01 +01:00
Susko3
4f32e5fb4e
Add SDLBool with implicit bool conversions
2024-09-22 02:03:16 +01:00
Susko3
03cb53dd11
Add tests for binary representation of SDL_bool
2024-09-02 18:58:32 +02:00
hwsmm
9f75280505
Fix tests
2024-08-28 22:46:24 +09:00
Dan Balasescu
12d09eaeae
Update tests for new bindings
2024-07-17 16:37:59 +09:00
Susko3
3262b3c5b7
Add test for visualising positional input events
2024-05-21 13:48:26 +02:00
Susko3
6140f87530
Add base test for SDL3 main callbacks
...
Reduces boilerplate code when writing tests.
2024-05-21 13:38:22 +02:00
Susko3
3f2c1b234e
Pull in ObjectHandle changes from framework
2024-05-21 13:32:57 +02:00
Susko3
ffe346ac59
Update tests
...
I wish there was `Unsafe_SDL_CreateRenderer` so that passing in `null` is not ambiguous.
2024-05-15 20:13:35 +02:00
Susko3
80ed12b6a0
Add string-friendly overload for `SDL_SetClipboardData`
...
`string[]` marshalling is horrible to implement manually, so I'm using `LibraryImport`.
2024-04-23 14:45:12 +02:00
Dan Balasescu
59cb0158ba
Add desktop tests project
...
The primary purpose of this is to split out the handling of the native
libs. This is a consequence of using ProjectReference, and resolves the
following issues:
1. When compiling for iOS, it really doesn't like multiple files being
included in the same output path. Example: all Windows SDL.dll files
placed as SDL.dll in the output path.
2. Even if (1) was somehow resolved, the iOS build also doesn't like the
linux-specific .so files being included.
3. As a consequence of (1), it's likely that the project already doesn't
work on some configurations. For example, because win-x86 is
specified as the last item, it will likely take precedence over all
other versions.
4. It looks like `RuntimeIdentifier` is not project-transitive, against
my expectations. I really want the project to both select the correct
single native lib for the current platform, and also support
compiling with a RID (`dotnet build -r ...`).
So now we only copy the correct lib to the output path, and don't do it
while packaging (not required).
2024-04-20 19:30:24 +09:00
Susko3
2a253a0e2d
Add MVP android tests
2024-04-19 19:34:09 +02:00
Susko3
3d1b5059b6
Change all namespaces to `SDL` (from `SDL3`)
...
The only real issue with this is Android, as the `SDL3` namespace shadows
the `SDL.SDL3` static class.
2024-04-19 19:02:22 +02:00
Susko3
13b2c6ebba
Update tests
2024-04-17 13:24:26 +02:00
Susko3
ec3ce75780
Change deceptive test name
2024-04-17 12:14:05 +02:00
Susko3
6f8564fb9d
Cover all cases of "creating" `Utf8String`s
2024-04-17 12:12:45 +02:00
Susko3
2f459c7a84
Add missing test
...
It was present in `TestReadOnlySpan` but not for strings.
2024-04-17 12:10:35 +02:00
Susko3
8e0066d7f7
Remove unnecessary `UTF8GetBytes()` helper
2024-04-16 13:01:13 +02:00
Susko3
72a002ead0
Add `Utf8String`, sourcegen and tests
2024-04-16 12:59:17 +02:00
Susko3
5b9bbd518e
Make SDL3-CS.Tests a proper test project
2024-04-16 12:49:45 +02:00
Susko3
e7c1d05fa6
Add helper for making null-terminated byte arrays
2024-04-15 20:27:41 +02:00
Susko3
b6a70cf162
Migrate custom patch to friendly overloads
...
Some changes are still required.
2024-04-15 19:40:55 +02:00
Dan Balasescu
913afa5b4f
Refactorings + auto styling
2024-04-07 12:47:29 +09:00
Susko3
bb9834d0a9
Add sample/tests project
...
Just a playground to see how the string/type/array friendly overloads work.
You'll have to provide the SDL3 library manually.
2024-04-06 14:47:39 +02:00