diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-05-11 17:45:18 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-05-11 17:45:18 +0800 |
commit | e069d28762467969596a66ace8b5cde34427c8a0 (patch) | |
tree | a882fdbe4a918e1ae075f148dadcf08addaa76f4 /meta/3rd/lovr/library/lovr.graphics.lua | |
parent | 669073e384f22c9bae84fa38ffb75fe046a11491 (diff) | |
download | lua-language-server-e069d28762467969596a66ace8b5cde34427c8a0.zip |
update submodules
Diffstat (limited to 'meta/3rd/lovr/library/lovr.graphics.lua')
-rw-r--r-- | meta/3rd/lovr/library/lovr.graphics.lua | 7 |
1 files changed, 6 insertions, 1 deletions
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 |