From d3be298e8e9d1769a7444c233c1f70e316584a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 24 Sep 2021 15:10:57 +0800 Subject: update submodules --- meta/3rd/love2d/library/love.graphics.lua | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'meta') 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. -- cgit v1.2.3