dist/ingress-model-viewer.js
/**
   * Constructs an asset loader.
   * @param  {context} gl      A 3d context from a canvas
   * @param  {Object} manifest A mapping of key:value pairs for the following types:
   *                           texture, mesh, program, rawProgram
   */
Constructs an asset loader.
@param  {context} gl      A 3d context from a canvas
@param  {Object} manifest A mapping of key:value pairs for the following types:
texture, mesh, program, rawProgram
Constructs an asset loader . @param { context } gl A 3d context from a canvas @param { Object } manifest A mapping of key : value pairs for the following types : texture mesh program rawProgram
function AssetManager(gl, manifest) {
    _classCallCheck(this, AssetManager);
    var _this = _possibleConstructorReturn(this, (AssetManager.__proto__ || Object.getPrototypeOf(AssetManager)).call(this, gl));
    _this.manifest = manifest;
    _this.loader = new _assetLoader2.default();
    _this.textures = {};
    _this.meshes = {};
    _this.programs = {};
    _this.queues = {
      texture: [],
      mesh: [],
      program: []
    };
    _this.stats = {
      texture: {},
      mesh: {},
      program: {},
      rawProgram: {}
    };
    _this.path = '/assets/';
    return _this;
  }
function AssetManager ( gl , manifest ) { _classCallCheck ( this , AssetManager ) ; var _this = _possibleConstructorReturn ( this , ( AssetManager . __proto__ || Object . getPrototypeOf ( AssetManager ) ) . call ( this , gl ) ) ; _this . manifest = manifest ; _this . loader = new _assetLoader2 . default ( ) ; _this . textures = { } ; _this . meshes = { } ; _this . programs = { } ; _this . queues = { texture : [ ] , mesh : [ ] , program : [ ] } ; _this . stats = { texture : { } , mesh : { } , program : { } , rawProgram : { } } ; _this . path = '/assets/' ; return _this ; }
Constructs an asset loader.
Constructs an asset loader .