Engine, adapter and tools without game data
This commit is contained in:
commit
e2ede736f3
3500 changed files with 1640229 additions and 0 deletions
13
engine/third_party/SDL3/cmake/test/main.swift
vendored
Normal file
13
engine/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