diff options
author | Eric Guzman | 2012-02-13 10:30:26 -0800 |
---|---|---|
committer | Eric Guzman | 2012-02-13 10:30:26 -0800 |
commit | 672e6f61647b1b8a5f6f5831284fa44bcb7be883 (patch) | |
tree | 0c15656f1f82f194bfcab68634a88f68fd3d42cb /js/helper-classes/RDGE/src/core/script/engine.js | |
parent | 586c3f7bbea04e62638e5ed8cdce9933e88c0b67 (diff) | |
parent | e142611e22718b1f1d1696902ad9161ec5f33f98 (diff) | |
download | ninja-672e6f61647b1b8a5f6f5831284fa44bcb7be883.tar.gz |
Merge branch 'refs/heads/master' into PresetsPanel
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/engine.js')
-rw-r--r-- | js/helper-classes/RDGE/src/core/script/engine.js | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/js/helper-classes/RDGE/src/core/script/engine.js b/js/helper-classes/RDGE/src/core/script/engine.js index 6fe964c7..5bc9305c 100644 --- a/js/helper-classes/RDGE/src/core/script/engine.js +++ b/js/helper-classes/RDGE/src/core/script/engine.js | |||
@@ -377,13 +377,13 @@ Engine.prototype.getRDGEPanel=function(panelID) | |||
377 | return panelObjectManager.handleToObject(panelID); | 377 | return panelObjectManager.handleToObject(panelID); |
378 | } | 378 | } |
379 | 379 | ||
380 | Engine.prototype.registerCanvas = function(canvas, runState) { | 380 | Engine.prototype.registerCanvas = function(canvas, runState) { |
381 | if (canvas && this.getContext(canvas.id)) | 381 | if (canvas && this.getContext(canvas.rdgeid)) |
382 | return; | 382 | return; |
383 | 383 | ||
384 | canvas.renderer = new _renderer(canvas); // create the renderer for the context | 384 | canvas.renderer = new _renderer(canvas); // create the renderer for the context |
385 | this.canvasToRendererMap[canvas.id] = canvas; // store the canvas in the context map | 385 | this.canvasToRendererMap[canvas.rdgeid] = canvas; // store the canvas in the context map |
386 | canvas.renderer.id = canvas.id; | 386 | canvas.renderer.id = canvas.rdgeid; |
387 | 387 | ||
388 | // configure the state manager for this context | 388 | // configure the state manager for this context |
389 | var stateMan = new stateManager(); | 389 | var stateMan = new stateManager(); |
@@ -391,11 +391,11 @@ Engine.prototype.registerCanvas = function(canvas, runState) { | |||
391 | // add this context to the contextManager and attach the handle to DOM canvas for user retrieval | 391 | // add this context to the contextManager and attach the handle to DOM canvas for user retrieval |
392 | var context = new contextDef(); | 392 | var context = new contextDef(); |
393 | 393 | ||
394 | context.id = canvas.id; | 394 | context.id = canvas.rdgeid; |
395 | context.renderer = canvas.renderer; | 395 | context.renderer = canvas.renderer; |
396 | context.ctxStateManager = stateMan; | 396 | context.ctxStateManager = stateMan; |
397 | context.startUpState; | 397 | context.startUpState; |
398 | context.fpsTracker = new fpsTracker(canvas.id); | 398 | context.fpsTracker = new fpsTracker(canvas.rdgeid); |
399 | 399 | ||
400 | context.renderer.mvMatrix = mat4.identity(); | 400 | context.renderer.mvMatrix = mat4.identity(); |
401 | context.renderer.invMvMatrix = mat4.identity(); | 401 | context.renderer.invMvMatrix = mat4.identity(); |
@@ -471,7 +471,7 @@ Engine.prototype.registerCanvas = function(canvas, runState) { | |||
471 | } | 471 | } |
472 | 472 | ||
473 | Engine.prototype.unregisterCanvas = function(canvas) { | 473 | Engine.prototype.unregisterCanvas = function(canvas) { |
474 | stat.closePage(canvas.id + "_fps"); | 474 | stat.closePage(canvas.rdgeid + "_fps"); |
475 | contextManager.removeObject(canvas.rdgeCtxHandle); | 475 | contextManager.removeObject(canvas.rdgeCtxHandle); |
476 | 476 | ||
477 | } | 477 | } |