Add BaseTexture.from() & fix a bug of `Texture.from` (#3736)
* Add BaseTexture.from()

* Add BaseTexture.from().
* Support create BaseTexture from HTMLImageElement.
* Support  BaseTexture cache.

* Let `Texture.from(img)` support BaseTexture cache.
1 parent 5da4aa3 commit 926d92d2f4925200deb3b8b14ce8b70453f9c9f5
@finscn finscn authored on 15 Feb 2017
Matt Karl committed on 15 Feb 2017
Showing 2 changed files
View
src/core/textures/BaseTexture.js
View
src/core/textures/Texture.js