Skip to content

Commit faf89ea

Browse files
committed
getTextureKeys method added to return all loaded textures.
1 parent 25089f6 commit faf89ea

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

src/textures/TextureManager.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,21 @@ var TextureManager = new Class({
323323
}
324324
},
325325

326+
getTextureKeys: function ()
327+
{
328+
var output = [];
329+
330+
for (var key in this.list)
331+
{
332+
if (key !== '__DEFAULT' && key !== '__MISSING')
333+
{
334+
output.push(key);
335+
}
336+
}
337+
338+
return output;
339+
},
340+
326341
getPixel: function (x, y, key, frame)
327342
{
328343
var textureFrame = this.getFrame(key, frame);

0 commit comments

Comments
 (0)