dsdl2.sdl

Members

Classes

SDLException
class SDLException

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

Enums

HintPriority
enum HintPriority

D enum that wraps SDL_HintPriority

Functions

getHint
string getHint(string name)

Wraps SDL_GetHint which gets the value of a specified user-set hint

getHintBool
bool getHintBool(string name, bool defaultValue)

Wraps SDL_GetHintBoolean (from SDL 2.0.5) which gets the value of a specified user-set hint as a bool

getRevision
string getRevision()

Wraps SDL_GetRevision which returns the revision string of the linked SDL2 library

getTicks
ulong 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
Version getVersion()

Wraps SDL_GetVersion which gets the version of the linked SDL2 library

init
void init(bool timer, bool audio, bool video, bool joystick, bool haptic, bool gameController, bool events, bool everything, bool noParachute, bool sensor)

Wraps SDL_Init which initializes selected subsystems

loadSO
void loadSO(string libName)

Loads the SDL2 shared dynamic library, which wraps bindbc-sdl's loadSDL function

quit
void quit()

Wraps SDL_Quit which entirely deinitializes SDL2

quit
void quit(bool timer, bool audio, bool video, bool joystick, bool haptic, bool gameController, bool events, bool everything, bool noParachute, bool sensor)

Wraps SDL_QuitSubSystem which deinitializes specified subsystems

resetHints
void resetHints()

Wraps SDL_ResetHints (from SDL 2.26) which resets any user-set hints given to SDL2 to default

setHint
bool setHint(string name, string value, HintPriority priority)

Wraps SDL_SetHintWithPriority which provides giving a hint to SDL2 in runtime

wasInit
bool wasInit(bool timer, bool audio, bool video, bool joystick, bool haptic, bool gameController, bool events, bool everything, bool noParachute, bool sensor)

Wraps SDL_WasInit which checks whether particular subsystem(s) is already initialized

Structs

Version
struct Version

D struct that wraps SDL_version containing version information

Meta

Authors

Avaxar <avaxar@nekkl.org>