init_subsystem
Description:
Use this function to initialize specific SDL subsystems.
SDL.init initializes assertions and crash protection and then calls SDL.init_subsystem. If you want to bypass those protections you can call SDL.init_subsystem directly.
Subsystem initialization is ref-counted, you must call SDL.quit_subsystem for each SDL.init_subsystem to correctly shutdown a subsystem manually (or call SDL.quit to force shutdown). If a subsystem is already loaded then this call will increase the ref-count and return.
Parameters:
flags |
any of the flags used by SDL.init. |
Returns:
Returns 0 on success or a negative error code on failure; call SDL.get_error for more information. |
Namespace: SDL
Package: sdl2