sdl.init

SDL Initialization

Members

Aliases

SDL_AppEvent_func
alias SDL_AppEvent_func = SDL_AppResult function(void* appstate, SDL_Event* event)

Function pointer typedef for SDL_AppEvent.

SDL_AppInit_func
alias SDL_AppInit_func = SDL_AppResult function(void** appstate, int argc, char** argv)

Function pointer typedef for SDL_AppInit.

SDL_AppIterate_func
alias SDL_AppIterate_func = SDL_AppResult function(void* appstate)

Function pointer typedef for SDL_AppIterate.

SDL_AppQuit_func
alias SDL_AppQuit_func = void function(void* appstate, SDL_AppResult result)

Function pointer typedef for SDL_AppQuit.

SDL_InitFlags
alias SDL_InitFlags = Uint32

Initialization flags for SDL_Init and/or SDL_InitSubSystem

SDL_MainThreadCallback
alias SDL_MainThreadCallback = void function(void* userdata)

Callback run on the main thread.

Enums

SDL_AppResult
enum SDL_AppResult

Return values for optional main callbacks.

Functions

SDL_GetAppMetadataProperty
const(char)* SDL_GetAppMetadataProperty(const(char)* name)

Get metadata about your app.

SDL_Init
bool SDL_Init(SDL_InitFlags flags)

Initialize the SDL library.

SDL_InitSubSystem
bool SDL_InitSubSystem(SDL_InitFlags flags)

Compatibility function to initialize the SDL library.

SDL_IsMainThread
bool SDL_IsMainThread()

Return whether this is the main thread.

SDL_Quit
void SDL_Quit()

Clean up all initialized subsystems.

SDL_QuitSubSystem
void SDL_QuitSubSystem(SDL_InitFlags flags)

Shut down specific SDL subsystems.

SDL_RunOnMainThread
bool SDL_RunOnMainThread(SDL_MainThreadCallback callback, void* userdata, bool wait_complete)

Call a function on the main thread during event processing.

SDL_SetAppMetadata
bool SDL_SetAppMetadata(const(char)* appname, const(char)* appversion, const(char)* appidentifier)

Specify basic metadata about your app.

SDL_SetAppMetadataProperty
bool SDL_SetAppMetadataProperty(const(char)* name, const(char)* value)

Specify metadata about your app through a set of properties.

SDL_WasInit
SDL_InitFlags SDL_WasInit(SDL_InitFlags flags)

Get a mask of the specified subsystems which are currently initialized.

Manifest constants

SDL_PROP_APP_METADATA_COPYRIGHT_STRING
enum SDL_PROP_APP_METADATA_COPYRIGHT_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_APP_METADATA_CREATOR_STRING
enum SDL_PROP_APP_METADATA_CREATOR_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_APP_METADATA_IDENTIFIER_STRING
enum SDL_PROP_APP_METADATA_IDENTIFIER_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_APP_METADATA_NAME_STRING
enum SDL_PROP_APP_METADATA_NAME_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_APP_METADATA_TYPE_STRING
enum SDL_PROP_APP_METADATA_TYPE_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_APP_METADATA_URL_STRING
enum SDL_PROP_APP_METADATA_URL_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_PROP_APP_METADATA_VERSION_STRING
enum SDL_PROP_APP_METADATA_VERSION_STRING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.

Variables

SDL_INIT_AUDIO
enum SDL_InitFlags SDL_INIT_AUDIO;

SDL_INIT_AUDIO implies SDL_INIT_EVENTS

SDL_INIT_CAMERA
enum SDL_InitFlags SDL_INIT_CAMERA;

SDL_INIT_CAMERA implies SDL_INIT_EVENTS

SDL_INIT_EVENTS
enum SDL_InitFlags SDL_INIT_EVENTS;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_INIT_EVERYTHING
enum SDL_InitFlags SDL_INIT_EVERYTHING;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_INIT_GAMEPAD
enum SDL_InitFlags SDL_INIT_GAMEPAD;

SDL_INIT_GAMEPAD implies SDL_INIT_JOYSTICK

SDL_INIT_HAPTIC
enum SDL_InitFlags SDL_INIT_HAPTIC;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_INIT_JOYSTICK
enum SDL_InitFlags SDL_INIT_JOYSTICK;

SDL_INIT_JOYSTICK implies SDL_INIT_EVENTS, should be initialized on the same thread as SDL_INIT_VIDEO on Windows if you don't set SDL_HINT_JOYSTICK_THREAD

SDL_INIT_SENSOR
enum SDL_InitFlags SDL_INIT_SENSOR;

SDL_INIT_SENSOR implies SDL_INIT_EVENTS

SDL_INIT_VIDEO
enum SDL_InitFlags SDL_INIT_VIDEO;

SDL_INIT_VIDEO implies SDL_INIT_EVENTS, should be initialized on the main thread

See Also

Meta

License

Subject to the terms of the Zlib License, as written in the LICENSE file.

Authors

Luna Nielsen