ViewportId.resize

void resize(int newWidth, int newHeight)

Resizes the viewport. Internally, this creates a new texture, so avoid calling it while the viewport is in use.