- override
Renders this display object with the given renderState
.
The display object is rendered without its filters.
Source
@override void render(RenderState renderState) { var renderContext = renderState.renderContext; var renderTextureQuad = bitmapData.renderTextureQuad; var renderTexture = bitmapData.renderTexture; var matrix = renderTextureQuad.samplerMatrix; var ma = matrix.a * bitmapData.width; var mb = matrix.b * bitmapData.width; var mc = matrix.c * bitmapData.height; var md = matrix.d * bitmapData.height; var mx = matrix.tx; var my = matrix.tx; _vxListTemp = _vxListTemp ?? new Float32List(vxList.length); for (int i = 0; i < _vxListTemp.length - 3; i += 4) { var x = vxList[i + 2]; var y = vxList[i + 3]; _vxListTemp[i + 0] = vxList[i + 0]; _vxListTemp[i + 1] = vxList[i + 1]; _vxListTemp[i + 2] = mx + x * ma + y * mc; _vxListTemp[i + 3] = my + x * mb + y * md; } renderContext.renderTextureMesh( renderState, renderTexture, ixList, _vxListTemp); }