aboutsummaryrefslogtreecommitdiff
path: root/js/lib/rdge/texture.js
diff options
context:
space:
mode:
authorhwc4872012-03-29 07:27:49 -0700
committerhwc4872012-03-29 07:27:49 -0700
commit2ab7fbef0df37f0c2bb6a4447f03993b9d50b5d0 (patch)
treea66f2eea7d70fa20ca78a7f997ca8e7c1ad67cc6 /js/lib/rdge/texture.js
parent0a0aa4662ffa687dd049cc5a24e701cedf87253a (diff)
downloadninja-2ab7fbef0df37f0c2bb6a4447f03993b9d50b5d0.tar.gz
linked textures
Diffstat (limited to 'js/lib/rdge/texture.js')
-rw-r--r--js/lib/rdge/texture.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/lib/rdge/texture.js b/js/lib/rdge/texture.js
index 41c9a54a..d67c65d2 100644
--- a/js/lib/rdge/texture.js
+++ b/js/lib/rdge/texture.js
@@ -68,6 +68,9 @@ function Texture( dstWorld, texMapName, wrap, mips )
68 { 68 {
69 this._srcWorld = srcCanvas.elementModel.shapeModel.GLWorld; 69 this._srcWorld = srcCanvas.elementModel.shapeModel.GLWorld;
70 70
71 // add a notifier to the world
72 this._srcWorld.addListener( this, this.worldCallback, { myObj: 'anything' } );
73
71 // check if the source is animated 74 // check if the source is animated
72 if (srcCanvas.elementModel && srcCanvas.elementModel.shapeModel && srcCanvas.elementModel.shapeModel.GLWorld) 75 if (srcCanvas.elementModel && srcCanvas.elementModel.shapeModel && srcCanvas.elementModel.shapeModel.GLWorld)
73 this._isAnimated = this._srcWorld._hasAnimatedMaterials; 76 this._isAnimated = this._srcWorld._hasAnimatedMaterials;
@@ -79,8 +82,11 @@ function Texture( dstWorld, texMapName, wrap, mips )
79 { 82 {
80 this.loadFromFile(); 83 this.loadFromFile();
81 } 84 }
85 }
82 86
83 87 this.worldCallback = function( type, callbackObj, calleeData, callerData )
88 {
89 console.log( "texture callback, type: " + type );
84 } 90 }
85 91
86 this.loadFromFile = function() 92 this.loadFromFile = function()