| Package | com.bomski.engine.textures |
| Class | public class MultiTextureAtlases |
| Inheritance | MultiTextureAtlases starling.events.EventDispatcher |
| Implements | IDispose |
| Method | Defined By | ||
|---|---|---|---|
Constructor
| MultiTextureAtlases | ||
createAllTextureAtlases():void
Create all texture atlases
| MultiTextureAtlases | ||
createNextTextureAtlas():void
Create the next texture atlas
This can be use if you have a limited device and you only want create one textureatlas every frame
| MultiTextureAtlases | ||
dispose():void
Free all data from an object
| MultiTextureAtlases | ||
getAtlas(atlasName:String):TextureAtlas
Get a textureatlas by atlas name
| MultiTextureAtlases | ||
getTexture(texture:MultiTextureAtlasTexture):Texture
Get a texture from texture atlas
| MultiTextureAtlases | ||
getTextureByName(atlasName:String, textureName:String):Texture
Get texture by name
| MultiTextureAtlases | ||
getTextures(prefix:MultiTextureAtlasTexturePrefix):Vector.<Texture>
Get textures by prefix
| MultiTextureAtlases | ||
getTexturesByName(atlasName:String, prefix:String):Vector.<Texture>
Get textures by name
| MultiTextureAtlases | ||
parseTextureAtlases(atlases:XML):void
Parse the textureatlases from a xml file
| MultiTextureAtlases | ||
| MultiTextureAtlases | () | Constructor |
public function MultiTextureAtlases(preloader:Preloader, assetsManager:AssetsManager, xmlManager:XMLManager)Constructor
Parameterspreloader:Preloader — Preloader for loading the xmls and bitmaps
| |
assetsManager:AssetsManager — The assetsmanager to add the bitmaps
| |
xmlManager:XMLManager — The xml to add the xmls
|
| createAllTextureAtlases | () | method |
public function createAllTextureAtlases():voidCreate all texture atlases
| createNextTextureAtlas | () | method |
public function createNextTextureAtlas():voidCreate the next texture atlas This can be use if you have a limited device and you only want create one textureatlas every frame
| dispose | () | method |
public function dispose():voidFree all data from an object
| getAtlas | () | method |
public function getAtlas(atlasName:String):TextureAtlasGet a textureatlas by atlas name
Parameters
atlasName:String — The atlas name
|
TextureAtlas — A textureAtlas or null if not atlas with this name exist
|
| getTexture | () | method |
public function getTexture(texture:MultiTextureAtlasTexture):TextureGet a texture from texture atlas
Parameters
texture:MultiTextureAtlasTexture — A object which identify the texture in the textureatlases
|
Texture — A texture or null if the texture can not be found
|
| getTextureByName | () | method |
public function getTextureByName(atlasName:String, textureName:String):TextureGet texture by name
Parameters
atlasName:String — The atlas name
| |
textureName:String — The texture name in this atlas
|
Texture — A texture or null if not texture exist
|
ArgumentError — if no atlas with this atlasname exist
|
| getTextures | () | method |
public function getTextures(prefix:MultiTextureAtlasTexturePrefix):Vector.<Texture>Get textures by prefix
Parameters
prefix:MultiTextureAtlasTexturePrefix — The prefix object which identify the textures
|
Vector.<Texture> — A vector of textures or null if no textures found
|
| getTexturesByName | () | method |
public function getTexturesByName(atlasName:String, prefix:String):Vector.<Texture>Get textures by name
Parameters
atlasName:String — The atlas name
| |
prefix:String — The prefix
|
Vector.<Texture> — A vector of textures or null if no textures found
|
| parseTextureAtlases | () | method |
public function parseTextureAtlases(atlases:XML):voidParse the textureatlases from a xml file
Parameters
atlases:XML |