resize abstract method
This configures the viewport with a new raw canvas size. It should immediately affect effectiveSize and canvasSize. This must be called by the engine at startup and also whenever the size changes.
Implementation
void resize(Vector2 newCanvasSize);