love.window.setFullscreen (한국어)

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

풀스크린 모드로 진입하거나 빠져 나옵니다. 다중 모니터 환경일 경우 The display to use when entering fullscreen is chosen based on which display the window is currently in, if multiple monitors are connected.

함수

형식

success = love.window.setFullscreen( fullscreen )

매개변수

boolean (한국어) fullscreen
Whether to enter or exit fullscreen mode.

리턴값

boolean (한국어) success
True if successful, false otherwise.

함수

형식

success = love.window.setFullscreen( fullscreen, fstype )

매개변수

boolean (한국어) fullscreen
Whether to enter or exit fullscreen mode.
FullscreenType (한국어) fstype
The type of fullscreen mode to use.

리턴값

boolean (한국어) success
True if successful, false otherwise.

알아 두기

If fullscreen mode is entered and the window size doesn't match one of the monitor's display modes (in normal fullscreen mode) or the window size doesn't match the desktop size (in 'desktop' fullscreen mode), the window will be resized appropriately. The window will revert back to its original size again when fullscreen mode is exited using this function.

예제

desktop 풀스크린 모드로 설정합니다.

function love.load()
    love.window.setFullscreen(true, "desktop")
end

같이 보기

다른 언어