Next: , Up: API Reference   [Contents][Index]


3.1 Basics

(use-modules (sdl2))
Procedure: sdl-init [subsystems]

Initialize the SDL library. This must be called before using any other SDL procedure.

subsystems is an optional list of symbols that specifies the subsystems to initialize. All subsystems are initialized by default. The possible flags are timer, audio, video, haptic, game-controller, and events.

Procedure: sdl-quit

Quit all activated SDL subsystems. This procedure should be called upon all exit conditions.

Procedure: sdl-version

Return a three element list containing the major, minor, and patch version of the linked SDL library.

Procedure: sdl-ticks

Return the number of milliseconds since the SDL library was initialized.

Procedure: sdl-performance-counter

Return the current value of the high resolution counter.

Procedure: sdl-performance-frequency

Return the count per second of the high resolution counter.