setSize method
void
setSize(
- int width,
- int height, [
- int depth = 1
])
Implementation
void 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;
for (int i = 0, il = textures.length; i < il; i ++ ) {
textures[ i ].image.width = width;
textures[ i ].image.height = height;
textures[ i ].image.depth = depth;
}
dispose();
}
viewport.setValues(0, 0, width.toDouble(), height.toDouble());
scissor.setValues(0, 0, width.toDouble(), height.toDouble());
}