Function initVideo

Wraps SDL_VideoInit which initializes the video subsystem while specifying the video driver used

void initVideo (
  string driverName
) @trusted;

Parameters

NameDescription
driverName the name of the video driver

Throws

dsdl2.SDLException if the video driver could not be initialized