Difference between revisions of "love.window.getMode"

m (Note that the first index is 1)
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{newin|[[0.9.0]]|090|type=function|text=Moved from [[love.graphics.getMode]]}}
 
{{newin|[[0.9.0]]|090|type=function|text=Moved from [[love.graphics.getMode]]}}
윈도우의 상태에 대해 총괄적으로 조사합니다.
+
Gets the display mode and properties of the window.
  
== 함수 ==
+
== Function ==
=== 형식 ===
+
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
 
width, height, flags = love.window.getMode( )
 
width, height, flags = love.window.getMode( )
 
</source>
 
</source>
=== 매개변수 ===
+
=== Arguments ===
없음.
+
None.
=== 리턴값 ===
+
=== Returns ===
{{param|number (한국어)|width|모니터의 너비.}}
+
{{param|number|width|Window width.}}
{{param|number (한국어)|height|모니터의 높이.}}
+
{{param|number|height|Window height.}}
{{param|table (한국어)|flags|[http://ko.wikipedia.org/wiki/%ED%94%8C%EB%9E%98%EA%B7%B8 플래그] 테이블.}}
+
{{param|table|flags|Table with the window properties:}}
{{subparam|boolean (한국어)|fullscreen (false)|전체 화면이면 true, 윈도우면 false.}}
+
{{subparam|boolean|fullscreen|Fullscreen (true), or windowed (false).}}
{{subparam|boolean (한국어)|vsync (true)|수직 동기화 사용 여부.}}
+
{{subparam|FullscreenType|fullscreentype|The type of fullscreen mode used.}}
{{subparam|number (한국어)|fsaa (0)|앤티 에일리어싱 시 사용되는 샘플 수.}}
+
{{subparam|number|vsync|1 if the graphics framerate is synchronized with the monitor's refresh rate, 0 otherwise.}}
{{subparam|boolean (한국어)|resizable (false)|윈도우 크기가 변경 가능하면 true.}}
+
{{subparam|number|msaa|The number of antialiasing samples used (0 if MSAA is disabled).}}
{{subparam|boolean (한국어)|borderless (false)|전체 화면 모드가 아닐 때, 윈도우의 테두리가 없다면 true.}}
+
{{subparam|boolean|resizable|True if the window is resizable in windowed mode, false otherwise.}}
{{subparam|boolean (한국어)|centered (true)|화면 중앙에 윈도우가 있다면 true.}}
+
{{subparam|boolean|borderless|True if the window is borderless in windowed mode, false otherwise.}}
== 같이 보기 ==
+
{{subparam|boolean|centered|True if the window is centered in windowed mode, false otherwise.}}
* [[parent::love.window (한국어)]]
+
{{subparam|number|display|The index of the display the window is currently in, if multiple monitors are available. First is 1.}}
* [[love.window.setMode (한국어)]]
+
{{subparam|number|minwidth|The minimum width of the window, if it's resizable.}}
 +
{{subparam|number|minheight|The minimum height of the window, if it's resizable.}}
 +
{{New feature|0.9.1|
 +
{{subparam|boolean|highdpi|True if [[love.window.getPixelScale|high-dpi mode]] is allowed on Retina displays in OS X. Does nothing on non-Retina displays.}} }}
 +
{{New feature|0.9.2|
 +
{{subparam|number|refreshrate|The refresh rate of the screen's current display mode, in Hz. May be 0 if the value can't be determined.}}
 +
{{subparam|number|x|The x-coordinate of the window's position in its current display.}}
 +
{{subparam|number|y|The y-coordinate of the window's position in its current display.}} }}
 +
{{Removed new feature|0.9.1|0.10.0|
 +
{{subparam|boolean|srgb|Removed in [[0.10.0]] (use [[love.graphics.isGammaCorrect]] instead). True if sRGB gamma correction is applied when drawing to the screen.}} }}
 +
 
 +
== See Also ==
 +
* [[parent::love.window]]
 +
* [[love.window.setMode]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=윈도우의 상태에 대해 총괄적으로 조사합니다.}}
+
{{#set:Description=Gets the display mode and properties of the window.}}
== 다른 언어 ==
+
== Other Languages ==
 
{{i18n|love.window.getMode}}
 
{{i18n|love.window.getMode}}

Latest revision as of 17:50, 25 April 2023

Available since LÖVE 0.9.0
Moved from love.graphics.getMode.

Gets the display mode and properties of the window.

Function

Synopsis

width, height, flags = love.window.getMode( )

Arguments

None.

Returns

number width
Window width.
number height
Window height.
table flags
Table with the window properties:
boolean fullscreen
Fullscreen (true), or windowed (false).
FullscreenType fullscreentype
The type of fullscreen mode used.
number vsync
1 if the graphics framerate is synchronized with the monitor's refresh rate, 0 otherwise.
number msaa
The number of antialiasing samples used (0 if MSAA is disabled).
boolean resizable
True if the window is resizable in windowed mode, false otherwise.
boolean borderless
True if the window is borderless in windowed mode, false otherwise.
boolean centered
True if the window is centered in windowed mode, false otherwise.
number display
The index of the display the window is currently in, if multiple monitors are available. First is 1.
number minwidth
The minimum width of the window, if it's resizable.
number minheight
The minimum height of the window, if it's resizable.
Available since LÖVE 0.9.1
boolean highdpi
True if high-dpi mode is allowed on Retina displays in OS X. Does nothing on non-Retina displays.


Available since LÖVE 0.9.2
number refreshrate
The refresh rate of the screen's current display mode, in Hz. May be 0 if the value can't be determined.
number x
The x-coordinate of the window's position in its current display.
number y
The y-coordinate of the window's position in its current display.


Available since LÖVE 0.9.1 and removed in LÖVE 0.10.0
boolean srgb
Removed in 0.10.0 (use love.graphics.isGammaCorrect instead). True if sRGB gamma correction is applied when drawing to the screen.


See Also

Other Languages