TextureAtlasFrame(TextureAtlas textureAtlas, RenderTextureQuad textureAtlasQuad, String name, int rotation, int offsetX, int offsetY, int originalWidth, int originalHeight, int frameX, int frameY, int frameWidth, int frameHeight, Float32List vxList, Int16List ixList)
Source
TextureAtlasFrame(
this.textureAtlas, this.textureAtlasQuad, this.name, this.rotation,
this.offsetX, this.offsetY, this.originalWidth, this.originalHeight,
this.frameX, this.frameY, this.frameWidth, this.frameHeight,
this.vxList, this.ixList) {
var s = new Rectangle<int>(frameX, frameY, frameWidth, frameHeight);
var o = new Rectangle<int>(-offsetX, -offsetY, originalWidth, originalHeight);
var q = new RenderTextureQuad.slice(textureAtlasQuad, s, o, rotation);
if (this.vxList != null && this.ixList != null) {
q.setCustomVertices(this.vxList, this.ixList);
} else {
q.setQuadVertices();
}
_bitmapData = new BitmapData.fromRenderTextureQuad(q);
}