[][src]Function sdl2_sys::SDL_VideoInit

pub unsafe extern "C" fn SDL_VideoInit(driver_name: *const c_char) -> c_int

\brief Initialize the video subsystem, optionally specifying a video driver.

\param driver_name Initialize a specific driver by name, or NULL for the default video driver.

\return 0 on success, -1 on error

This function initializes the video subsystem; setting up a connection to the window manager, etc, and determines the available display modes and pixel formats, but does not initialize a window or graphics mode.

\sa SDL_VideoQuit()