love.resize (한국어)

Available since LÖVE 0.9.0
This callback is not supported in earlier versions.

윈도우의 크기가 변경되면 호출됩니다.

예를 들어 사용자가 윈도우의 크기를 변경하거나, 풀스크린일 때love.window.setMode에서 지원되지 않는 가로 세로로 화면 크기를 초기화하거나, 윈도우가 가장 적절한 크기를 선택할 때 호출됩니다.

Calls to love.window.setMode will only trigger this event if the width or height of the window after the call doesn't match the requested width and height. This can happen if a fullscreen mode is requested which doesn't match any supported mode, or if the fullscreen type is 'desktop' and the requested width or height don't match the desktop resolution.

Function

Synopsis

love.resize( w, h )

Arguments

number w
The new width.
number h
The new height.

Returns

Nothing.

Example

function love.resize(w, h)
  print(("Window resized to width: %d and height: %d."):format(w, h))
end

See Also


Other Languages