A lot of stuff, I'm completely lost 😢

This commit is contained in:
Thomas FORGIONE
2015-10-26 15:56:18 +01:00
parent 8ed2b18d49
commit 4768a3056c
14 changed files with 274 additions and 96 deletions
+6 -1
View File
@@ -139,6 +139,10 @@ function resizeElements() {
var obj = arguments[i];
if (obj == null) {
return;
}
if (obj instanceof Element) {
obj.style.width = width + 'px';
@@ -162,7 +166,8 @@ function appendTo(container) {
for (var i = 0; i < arguments.length; i++) {
container.appendChild(arguments[i].domElement);
if (arguments[i] != null)
container.appendChild(arguments[i].domElement);
}
+8 -3
View File
@@ -14,7 +14,9 @@ L3D.ProgressiveLoader.onFinished = function() {
coins[i].mesh.visible = true;
}
loadingCanvas.clear();
if (initMainScene !== L3D.initSponza)
loadingCanvas.clear();
L3D.DB.enable();
camera1.reset();
};
@@ -34,6 +36,7 @@ var coins = [];
var previousTime;
var pointer;
var startCanvas;
var loadingCanvas;
window.onbeforeunload = function() {
@@ -74,7 +77,8 @@ function main() {
Coin.update(true);
loadingCanvas.render();
if (initMainScene !== L3D.initSponza)
loadingCanvas.render();
if (locked !== undefined && locked)
startCanvas.render();
@@ -146,7 +150,8 @@ function initCanvases() {
// Init start canvas
startCanvas = new L3D.StartCanvas(camera1);
loadingCanvas = new L3D.LoadingCanvas();
if (initMainScene !== L3D.initSponza)
loadingCanvas = new L3D.LoadingCanvas();
}
function initModels() {