Function sdl2_mt::init [] [src]

pub fn init() -> Sdl2Mt

Initializes an Sdl2Mt instance, which also initializes the Sdl2 library.

Panics

init() will panic if Sdl2 initialization fails. If this is unacceptable, you should catch_panic() around your init() call. Initialization should never fail under anything approaching reasonable circumstances.