lovr.graphics.getDimensions

Returns the dimensions of the desktop window.

width, height = lovr.graphics.getDimensions()

Arguments

None

Returns

NameTypeDescription
widthnumberThe width of the window, in pixels.
heightnumberThe height of the window, in pixels.

See also