resize abstract method

void resize(
  1. Vector2 newCanvasSize
)

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);