Graphic
drawTextures () method public function drawTextures(tex:Texture, pos:Array):void批量绘制同样纹理。
Parameters
tex:Texture — 纹理。
pos:Array — 绘制次数和坐标。
请教第二个参数pos的具体格式
是带着s的drawTextures,批量绘制同样纹理。
是把
x X 轴偏移量。
y Y 轴偏移量。
width 宽度。
height 高度。
m 矩阵信息。
把这几个参数组成一个json对象,然后再把多个json组成数组传入吗?
像这样吗drawTextures(texture, [{x:0, y:0, width:128, height:64}, {x:128, y:0, width:128, height:64}]);
我发现这样没用。