Module dsdl2.sdl

Functions

NameDescription
getHint(name) Wraps SDL_GetHint which gets the value of a specified user-set hint
getHintBool(name, defaultValue) Wraps SDL_GetHintBoolean (from SDL 2.0.5) which gets the value of a specified user-set hint as a bool
getPerformanceCounter() Wraps SDL_GetPerformanceCounter which gets the current value of the platform-specific high resolution counter
getPerformanceFrequency() Wraps SDL_GetPerformanceFrequency which gets the frequency of the platform-specific high resolution counter
getRevision() Wraps SDL_GetRevision which returns the revision string of the linked SDL2 library
getTicks() Wraps SDL_GetTicks or SDL_GetTicks64 on SDL 2.0.18 which gets the time since the SDL library was initialized in milliseconds
getVersion() Wraps SDL_GetVersion which gets the version of the linked SDL2 library
init(timer, audio, video, joystick, haptic, gameController, events, everything, noParachute, sensor) Wraps SDL_Init which initializes selected subsystems
loadSO(libName) Loads the SDL2 shared dynamic library, which wraps bindbc-sdl's loadSDL function
quit() Wraps SDL_Quit which entirely deinitializes SDL2
quit(timer, audio, video, joystick, haptic, gameController, events, everything, noParachute, sensor) Wraps SDL_QuitSubSystem which deinitializes specified subsystems
resetHints() Wraps SDL_ResetHints (from SDL 2.26) which resets any user-set hints given to SDL2 to default
setHint(name, value, priority) Wraps SDL_SetHintWithPriority which provides giving a hint to SDL2 in runtime
wasInit(timer, audio, video, joystick, haptic, gameController, events, everything, noParachute, sensor) Wraps SDL_WasInit which checks whether particular subsystem(s) is already initialized

Classes

NameDescription
SDLException SDL exception generated from SDL_GetError() or dsdl2-specific exceptions

Structs

NameDescription
Version D struct that wraps SDL_version containing version information

Enums

NameDescription
HintPriority D enum that wraps SDL_HintPriority