Prepare plugin support for objects with multiple BaseTextures (#3830)
* Add ability for Prepare plugin to upload the all textures for AnimatedSprites

* Add a new function to loop through all the textures of an AnimatedSprite and add them to the queue
* Moved Duplicate `findBaseTextures` function from WebGL & Canvas Prepare to Base prepare as static
* Moved all the `findObjectType` methods to their appropiate class as static methods for consistency

* Updated Comments to reflect "static" not "private" methods

* Added the findTexturesForAnimatedSprites logic to the standard findBasicTextures

This cleans up the need to worry about ordering the registration of hooks and only calls upload once

* Split the prepare.register function into 2 registerFindHook & registerUploadHook

* Some simple cleanup before the PR

* comment formatting

* removed dependenvy on `extras` from prepare

* Fix small comment issues with pull request

Removed the [optional] reference in the comments for both
new register methods.
Added a small example to the docs

* Add deprecation method

* Added Check before calling hooks and reformatted JSDoc

Lint wouldn't pass without the params in the JSDoc

* added `instanceof` check and fixed up the return true only if a texture is found
1 parent 782b694 commit 94b1975dff90dc4ffb12b7f66fecbe9f8dedc776
@Brenwell Brenwell authored on 16 Mar 2017
Matt Karl committed on 16 Mar 2017
Showing 5 changed files
View
src/deprecation.js
View
src/prepare/BasePrepare.js
View
src/prepare/canvas/CanvasPrepare.js
View
src/prepare/webgl/WebGLPrepare.js
View
test/prepare/BasePrepare.js