init


Description:

[ Version ( since = "2.0.0" ) ]
[ CCode ( cname = "SDL_Init" ) ]
public int init (uint32 flags = EVERYTHING)

Use this function to initialize the SDL library. This must be called before using any other SDL function.

All subsystems are initialized by default.

If you want to initialize subsystems separately you would call:

SDL.init (0);

followed by SDL.init_subsystem with the desired subsystem flag.

Parameters:

flags

subsystem initialization flags.

Returns:

Returns 0 on success or a negative error code on failure; call SDL.get_error for more information.


Namespace: SDL
Package: sdl2



2022 vala-language.org