From e069d28762467969596a66ace8b5cde34427c8a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 11 May 2022 17:45:18 +0800 Subject: update submodules --- meta/3rd/lovr/library/lovr.graphics.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'meta/3rd/lovr/library/lovr.graphics.lua') diff --git a/meta/3rd/lovr/library/lovr.graphics.lua b/meta/3rd/lovr/library/lovr.graphics.lua index fe0b6c33..42a859a5 100644 --- a/meta/3rd/lovr/library/lovr.graphics.lua +++ b/meta/3rd/lovr/library/lovr.graphics.lua @@ -1578,6 +1578,7 @@ function Font:getRasterizer() end ---@param wrap? number # The width at which to wrap lines, or 0 for no wrap. ---@return number width # The maximum width of any line in the text. ---@return number lines # The number of lines in the wrapped text. +---@return number lastwidth # The width of the last line of text (to assist in text layout). function Font:getWidth(text, wrap) end --- @@ -1702,6 +1703,10 @@ function Material:setScalar(scalarType, x) end --- ---Any texture that is `nil` will use a single white pixel as a fallback. --- +--- +---### NOTE: +---Textures must have a `TextureType` of `2d` to be used with Materials. +--- ---@overload fun(self: lovr.Material, texture: lovr.Texture) ---@param textureType? lovr.MaterialTexture # The type of texture to set. ---@param texture lovr.Texture # The texture to apply, or `nil` to use the default. @@ -2528,7 +2533,7 @@ function ShaderBlock:read(name) end --- ---`Blob`s can also be used to pass arbitrary binary data to individual variables. --- ----@overload fun(self: lovr.ShaderBlock, blob: lovr.Blob, offset: number, extent: number):number +---@overload fun(self: lovr.ShaderBlock, blob: lovr.Blob, srcOffset: number, dstOffset: number, extent: number):number ---@param variable string # The name of the variable to update. ---@param value any # The new value of the uniform. function ShaderBlock:send(variable, value) end -- cgit v1.2.3