Gamua / Starling-Framework

The Cross Platform Game Engine
http://www.starling-framework.org
Other
2.85k stars 819 forks source link

Support of custom texture formats #872

Open rzer opened 8 years ago

rzer commented 8 years ago

Example of adding WebP texture support (http://soywiz.github.io/as3libwebp/)

import libwebp.DecodeWebp;

assets = new Assets(scaleFactor); assets.addTextureProcessor("webp", DecodeWebp); assets.enqueue("example.webp");

PrimaryFeather commented 8 years ago

Thanks a lot for the pull request! I plan to rewrite the AssetManager soon (for Starling 2.1), and I'll look into your pull request in detail then.