Extract standalone Playground SDK source foundation
This commit is contained in:
commit
34ac58b9a2
3567 changed files with 1657902 additions and 0 deletions
13
third_party/SDL3/cmake/test/main.swift
vendored
Normal file
13
third_party/SDL3/cmake/test/main.swift
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/* 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue