
SDL3 C API bindings exposing SDL.h and SDL_main.h plus Metal and Vulkan headers; statically bundles SDL for zero-install usage and simplifies integration with host runtimes.
SDL3 bindings for Kotlin Multiplatform.
Add sdl3-kotlin dependency to your KMP project:
kotlin {
sourceSets.commonMain {
dependencies {
implementation("io.technoirlab.sdl3:sdl3:<latest version>")
}
}
}The bindings are generated by Kotlin/Native C interop in the io.technoirlab.sdl3 package. They cover
SDL.h and SDL_main.h on every target, plus SDL_metal.h on Apple targets and SDL_vulkan.h on the
others. SDL is linked statically into the published bindings, so consumers need neither CMake nor an SDL
installation. See the sample project for a minimal application.
On Android, the application also needs SDL's Java classes from the same SDL release, an SDLActivity subclass
whose getLibraries() names the Kotlin/Native shared library, and a public function exported as SDL_main
with @CName. The Android sample shows this setup.
mingwX64: SDL GPU and the Direct3D 12 renderer are disabled because the Kotlin/Native MinGW
toolchain lacks the required Direct3D 12 headers.linuxArm64 and linuxX64: SDL includes only its offscreen and dummy video drivers and its disk
and dummy audio drivers because the Kotlin/Native Linux sysroot lacks X11, Wayland, and audio
development headers.sdl3-kotlin is licensed under the Apache License, Version 2.0.
Published artifacts statically bundle SDL3, which is licensed under the zlib License.
SDL3 bindings for Kotlin Multiplatform.
Add sdl3-kotlin dependency to your KMP project:
kotlin {
sourceSets.commonMain {
dependencies {
implementation("io.technoirlab.sdl3:sdl3:<latest version>")
}
}
}The bindings are generated by Kotlin/Native C interop in the io.technoirlab.sdl3 package. They cover
SDL.h and SDL_main.h on every target, plus SDL_metal.h on Apple targets and SDL_vulkan.h on the
others. SDL is linked statically into the published bindings, so consumers need neither CMake nor an SDL
installation. See the sample project for a minimal application.
On Android, the application also needs SDL's Java classes from the same SDL release, an SDLActivity subclass
whose getLibraries() names the Kotlin/Native shared library, and a public function exported as SDL_main
with @CName. The Android sample shows this setup.
mingwX64: SDL GPU and the Direct3D 12 renderer are disabled because the Kotlin/Native MinGW
toolchain lacks the required Direct3D 12 headers.linuxArm64 and linuxX64: SDL includes only its offscreen and dummy video drivers and its disk
and dummy audio drivers because the Kotlin/Native Linux sysroot lacks X11, Wayland, and audio
development headers.sdl3-kotlin is licensed under the Apache License, Version 2.0.
Published artifacts statically bundle SDL3, which is licensed under the zlib License.