纹理集

Constructor

new (img:BitmapData, xml:Xml)

Variables

path:String

Methods

bindScale9 (id:String, data:Dynamic):Void

给某个精灵对象绑定九宫格,在批渲染中使用Scale9时,将不需要设置scale9。

Parameters:

id
data

支持String Rectangle

dispose ():Void

getBitmapDataFrame (id:String):Frame

获取批处理位图

Parameters:

id

Returns:

Frame

getBitmapDataFrameAt (id:Int):Frame

获取批处理位图

Parameters:

id

Returns:

Frame

getBitmapDataFrames (id:String):Array<Frame>

根据名字含有进行筛选位图

 *  @param id -
 *  @return Array<BitmapData>

getRootBitmapData ():BitmapData

updateAtlas (bitmapData:BitmapData, xml:Xml):Array<Rectangle>

更新精灵表

Parameters:

bitmapData
null

xml

Static methods

staticcreateTextureAtlasByOne (bitmapData:BitmapData):TextureAtlas

创建一张图的精灵表,提供给位图九宫格使用,精灵名为img

Parameters:

bitmapData

Returns:

TextureAtlas

Inherited Variables

Defined by Atlas

@:value(false)isTextAtlas:Bool = false

是否为文本缓存精灵表

Inherited Methods