video.videodrivercontainer - ICE 0.1 API documentation

ICE 0.1 API documentation

# video.videodrivercontainer

Class managing video driver dependencies.

class VideoDriverContainer;

  Class managing lifetime and dependencies of video driver.

  this(VFSDir gameDir);

    Construct a VideoDriverContainer.

    Parameters:

    VFSDir gameDir | Game data directory.

    Throws:
    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:

    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?

    Returns:
    Produced video driver or null on error.
  void destroy();

    Destroy the video driver.

Copyright © Ferdinand Majerech 2011. | Page generated by AutoDDoc and Ddoc.