Sdl

object Sdl(source)

Process-wide SDL lifecycle. SDL itself is global, so this is the one place the platform layer exposes that fact.

Functions

Link copied to clipboard

Returns the value of the environment variable name, or null when it is not set.

Link copied to clipboard
fun init(subsystems: Set<Subsystem>)

Starts the given subsystems in addition to those already running; SDL counts each subsystem separately, so the call may be repeated for different subsystems. Start video before using any other platform function. quit shuts all of them down.

Link copied to clipboard
fun quit()

Shuts down every running subsystem, however many times init started it. Nothing from this package may be used afterwards.