diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-23 15:16:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-23 15:16:39 +0800 |
commit | 2b6cd724633edad4ce3b8d1928d9be31104911ba (patch) | |
tree | 9c1e6f3342c522a9438ad09f4bf39d76289b7db2 /meta | |
parent | 2c7286dbffea7bb33843364c04f79c38b485c51b (diff) | |
download | lua-language-server-2b6cd724633edad4ce3b8d1928d9be31104911ba.zip |
update lovr-api
Diffstat (limited to 'meta')
-rw-r--r-- | meta/3rd/lovr/library/lovr/graphics.lua | 6 | ||||
-rw-r--r-- | meta/3rd/lovr/library/lovr/math.lua | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/meta/3rd/lovr/library/lovr/graphics.lua b/meta/3rd/lovr/library/lovr/graphics.lua index f6ed83a8..7a2281bc 100644 --- a/meta/3rd/lovr/library/lovr/graphics.lua +++ b/meta/3rd/lovr/library/lovr/graphics.lua @@ -2310,7 +2310,7 @@ function Pass:sphere(transform, longitudes, latitudes) end --- --- ---### NOTE: ----Strings should be encoded as UTF-8. +---UTF-8 encoded strings are supported. --- ---Newlines will start a new line of text. --- @@ -2326,11 +2326,11 @@ function Pass:sphere(transform, longitudes, latitudes) end --- ---Blending should be enabled when rendering text (it's on by default). --- ----This function can draw up to 16384 visible characters at a time. +---This function can draw up to 16384 visible characters at a time, and will currently throw an error if the string is too long. --- ---@overload fun(self: lovr.Pass, colortext: table, transform: lovr.Mat4, wrap?: number, halign?: lovr.HorizontalAlign, valign?: lovr.VerticalAlign) ---@param text string # The text to render. ----@param transform lovr.Mat4 # The transform of the text. +---@param transform lovr.Mat4 # The transform of the text. Can also be provided as position, 1-component scale, and rotation using a mix of `Vectors` or numbers. ---@param wrap? number # The maximum width of each line in meters (before scale is applied). When zero, the text will not wrap. ---@param halign? lovr.HorizontalAlign # The horizontal alignment. ---@param valign? lovr.VerticalAlign # The vertical alignment. diff --git a/meta/3rd/lovr/library/lovr/math.lua b/meta/3rd/lovr/library/lovr/math.lua index b644d414..4a527af0 100644 --- a/meta/3rd/lovr/library/lovr/math.lua +++ b/meta/3rd/lovr/library/lovr/math.lua @@ -254,7 +254,7 @@ function lovr.math.vec4(x, y, z, w) end --- ---Once a Curve is created with `lovr.math.newCurve`, you can use `Curve:evaluate` to get a point on the curve or `Curve:render` to get a list of all of the points on the curve. --- ----These points can be passed directly to `lovr.graphics.points` or `lovr.graphics.line` to render the curve. +---These points can be passed directly to `Pass:points` or `Pass:line` to render the curve. --- ---Note that for longer or more complicated curves (like in a drawing application) it can be easier to store the path as several Curve objects. --- |