setRenderSize method

void setRenderSize(
  1. int w,
  2. int h
)

Sets the rendering surface size.

On web, this sets the canvas pixel resolution (canvas.width/height). On SDL3, this resizes the window.

Implementation

void setRenderSize(int w, int h) {
  _windowBackend.setSize(w, h);
}