Loader.load

Will load the resource, having only its path as input. The entire loading implementation lies with the resource itself. The manager will simply keep this resource in memory.

  1. T load(string path, string name)
    class Loader
    @safe
    T
    load
    (
    T
    )
    (
    immutable string path
    ,
    string name = "null"
    )
  2. void load(string[string] paths)

Parameters

T

Data type.

path string

Path to the file.

name string

Name.

Retunrs: T

Throws

LoadException if the loader determines that the file does not exist. There may be other errors while loading, see their documentation, for example Image.

Examples

Image img = loader.load!Image("a.png");

Meta