diff options
Diffstat (limited to 'js/lib/rdge')
-rw-r--r-- | js/lib/rdge/texture.js | 8 |
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() |