video.videodrivercontainer
Class managing video driver dependencies.
- class VideoDriverContainer;
Class managing lifetime and dependencies of video driver.
- this(VFSDir gameDir);
Construct a VideoDriverContainer.
Parameters:Throws:VFSDir gameDir Game data directory. VideoDriverException on failure.- VideoDriver produce(Driver)(const uint width, const uint height, const ColorFormat format, const bool fullscreen);
Initialize video driver of specified type and return a reference to it.
Parameters:Returns:width Width of initial video mode. height Height of initial video mode. format Color format of initial video mode. fullscreen Should initial video mode be fullscreen? Produced video driver or null on error.- void destroy();
Destroy the video driver.