reset method
dynamic
reset(
- dynamic renderTarget
Implementation
reset(renderTarget) {
if (renderTarget == null) {
var size = renderer.getSize(Vector2(null, null));
_pixelRatio = renderer.getPixelRatio();
_width = size.width.toInt();
_height = size.height.toInt();
renderTarget = renderTarget1.clone();
renderTarget.setSize(_width * _pixelRatio, _height * _pixelRatio);
}
renderTarget1.dispose();
renderTarget2.dispose();
renderTarget1 = renderTarget;
renderTarget2 = renderTarget.clone();
writeBuffer = renderTarget1;
readBuffer = renderTarget2;
}