class TextureAtlas
package zygame.utils.load
extends Atlas
import zygame.utils.load.TextureLoader
extended by AsepriteTextureAtlas, DynamicTextureAtlas, TextTextureAtlas
纹理集
Constructor
Variables
Methods
bindScale9 (id:String, data:Dynamic):Void
给某个精灵对象绑定九宫格,在批渲染中使用Scale9时,将不需要设置scale9。
Parameters:
id | |
---|---|
data | 支持String Rectangle |
Static methods
staticcreateTextureAtlasByOne (bitmapData:BitmapData):TextureAtlas
创建一张图的精灵表,提供给位图九宫格使用,精灵名为img
Parameters:
bitmapData |
---|
Returns:
TextureAtlas