setSize method
Implementation
@override
WebGLMultipleRenderTargets setSize(int width, int height, [int depth = 1]) {
if (this.width != width || this.height != height || this.depth != depth) {
this.width = width;
this.height = height;
this.depth = depth;
if(texture is GroupTexture){
final children = (texture as GroupTexture).children;
for (int i = 0, il = children.length; i < il; i++) {
children[i].image.width = width;
children[i].image.height = height;
children[i].image.depth = depth;
}
}
dispose();
}
viewport.setValues(0, 0, width.toDouble(), height.toDouble());
scissor.setValues(0, 0, width.toDouble(), height.toDouble());
return this;
}