Browse Source

Add function to check if base multires tiles are loaded.

pull/1067/head
Matthew Petroff 2 years ago
parent
commit
621de7f6dd
1 changed files with 19 additions and 1 deletions
  1. +19
    -1
      src/js/libpannellum.js

+ 19
- 1
src/js/libpannellum.js View File

@@ -984,7 +984,25 @@ function Renderer(container, context) {
}
return false;
};

/**
* Check if base image tiles are loaded.
* @memberof Renderer
* @instance
* @returns {boolean} Whether or not base image tiles are loaded.
*/
this.isBaseLoaded = function() {
if (program.currentNodes.length >= 6) {
for (var i = 0; i < 6; i++) {
if (!program.currentNodes[i].textureLoaded) {
return false;
}
}
return true;
}
return false;
}

/**
* Retrieve renderer's canvas.
* @memberof Renderer


Loading…
Cancel
Save