SDL3 support

This commit is contained in:
2024-08-03 23:28:29 -07:00
parent ca3957398d
commit 50f4f02f85
8 changed files with 26 additions and 4 deletions

View File

@ -1,4 +1,9 @@
import CppBackend
import Foundation
import SDL3
backend_init()
print("Hello World")
guard SDL_Init(SDL_INIT_VIDEO) >= 0 else {
print("SDL init failed.")
exit(0)
}
print("SDL init success.")
SDL_Quit()