summaryrefslogtreecommitdiff
path: root/meta/3rd/love2d
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-09-24 15:10:57 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-09-24 15:10:57 +0800
commitd3be298e8e9d1769a7444c233c1f70e316584a4d (patch)
tree40e7fa2ae783afeef3d7d6eab2f43b386d63e377 /meta/3rd/love2d
parent4b085b8aea5f33ec114baa31d2b9d72341383c32 (diff)
downloadlua-language-server-d3be298e8e9d1769a7444c233c1f70e316584a4d.zip
update submodules
Diffstat (limited to 'meta/3rd/love2d')
-rw-r--r--meta/3rd/love2d/library/love.graphics.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/meta/3rd/love2d/library/love.graphics.lua b/meta/3rd/love2d/library/love.graphics.lua
index 9f453304..f70efefd 100644
--- a/meta/3rd/love2d/library/love.graphics.lua
+++ b/meta/3rd/love2d/library/love.graphics.lua
@@ -530,12 +530,13 @@ function love.graphics.newFont(filename) end
---
---Creates a new Image from a filepath, FileData, an ImageData, or a CompressedImageData, and optionally generates or specifies mipmaps for the image.
---
----@overload fun(imageData: love.ImageData):love.Image
----@overload fun(compressedImageData: love.CompressedImageData):love.Image
----@overload fun(filename: string, flags: table):love.Image
+---@overload fun(fileData: love.FileData, flags: table):love.Image
+---@overload fun(imageData: love.ImageData, flags: table):love.Image
+---@overload fun(compressedImageData: love.CompressedImageData, flags: table):love.Image
---@param filename string # The filepath to the image file.
----@return love.Image image # An Image object which can be drawn on screen.
-function love.graphics.newImage(filename) end
+---@param flags {dpiscale: number, linear: boolean, mipmaps: boolean} # A table containing the following fields:
+---@return love.Image image # A new Image object which can be drawn on screen.
+function love.graphics.newImage(filename, flags) end
---
---Creates a new specifically formatted image.