src/asset-manager.js
/**
   * Loads all remote resources found in the manifest, and creates any static programs
   * included in the manifest's rawPrograms section, if it exists.
   * @return {Promise}          Promise that resolves when all assets are loaded
   */
Loads all remote resources found in the manifest, and creates any static programs
included in the manifest's rawPrograms section, if it exists.
@return {Promise}          Promise that resolves when all assets are loaded
Loads all remote resources found in the manifest and creates any static programs included in the manifest ' s rawPrograms section if it exists . @return { Promise } Promise that resolves when all assets are loaded
loadAll() {
    var manifest = this.manifest;
    return Promise.all([
      Object.keys(manifest.texture).reduce((promise, name) => {
        return promise.then(() => {
          return this.loadTexture(name);
        });
      }, Promise.resolve()),
      Object.keys(manifest.mesh).reduce((promise, name) => {
        return promise.then(() => {
          return this.loadMesh(name);
        });
      }, Promise.resolve()),
      Object.keys(manifest.program)
        .concat(Object.keys(manifest.rawProgram))
        .reduce((promise, name) => {
          return promise.then(() => {
            return this.loadProgram(name);
          });
        }, Promise.resolve())
    ]);
  }
loadAll ( ) { var manifest = this . manifest ; return Promise . all ( [ Object . keys ( manifest . texture ) . reduce ( ( promise , name ) => { return promise . then ( ( ) => { return this . loadTexture ( name ) ; } ) ; } , Promise . resolve ( ) ) , Object . keys ( manifest . mesh ) . reduce ( ( promise , name ) => { return promise . then ( ( ) => { return this . loadMesh ( name ) ; } ) ; } , Promise . resolve ( ) ) , Object . keys ( manifest . program ) . concat ( Object . keys ( manifest . rawProgram ) ) . reduce ( ( promise , name ) => { return promise . then ( ( ) => { return this . loadProgram ( name ) ; } ) ; } , Promise . resolve ( ) ) ] ) ; }
Loads all remote resources found in the manifest, and creates any static programs
 included in the manifest's rawPrograms section, if it exists.
Loads all remote resources found in the manifest and creates any static programs included in the manifest ' s rawPrograms section if it exists .