206dcdedf1
git-subtree-dir: external/SDL git-subtree-split: 4d17b99d0a1c33c5257063b098f883c669ade40b
14 lines
270 B
Swift
14 lines
270 B
Swift
/* Contributed by Piotr Usewicz (https://github.com/pusewicz) */
|
|
|
|
import SDL3
|
|
|
|
guard SDL_Init(SDL_INIT_VIDEO) else {
|
|
fatalError("SDL_Init error: \(String(cString: SDL_GetError()))")
|
|
}
|
|
|
|
var sdlVersion = SDL_GetVersion()
|
|
|
|
print("SDL version: \(sdlVersion)")
|
|
|
|
SDL_Quit()
|