Skip to content

Commit 2b6cd72

Browse files
committed
update lovr-api
1 parent 2c7286d commit 2b6cd72

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

meta/3rd/lovr/library/lovr/graphics.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ function Pass:sphere(transform, longitudes, latitudes) end
23102310
---
23112311
---
23122312
---### NOTE:
2313-
---Strings should be encoded as UTF-8.
2313+
---UTF-8 encoded strings are supported.
23142314
---
23152315
---Newlines will start a new line of text.
23162316
---
@@ -2326,11 +2326,11 @@ function Pass:sphere(transform, longitudes, latitudes) end
23262326
---
23272327
---Blending should be enabled when rendering text (it's on by default).
23282328
---
2329-
---This function can draw up to 16384 visible characters at a time.
2329+
---This function can draw up to 16384 visible characters at a time, and will currently throw an error if the string is too long.
23302330
---
23312331
---@overload fun(self: lovr.Pass, colortext: table, transform: lovr.Mat4, wrap?: number, halign?: lovr.HorizontalAlign, valign?: lovr.VerticalAlign)
23322332
---@param text string # The text to render.
2333-
---@param transform lovr.Mat4 # The transform of the text.
2333+
---@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.
23342334
---@param wrap? number # The maximum width of each line in meters (before scale is applied). When zero, the text will not wrap.
23352335
---@param halign? lovr.HorizontalAlign # The horizontal alignment.
23362336
---@param valign? lovr.VerticalAlign # The vertical alignment.

meta/3rd/lovr/library/lovr/math.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ function lovr.math.vec4(x, y, z, w) end
254254
---
255255
---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.
256256
---
257-
---These points can be passed directly to `lovr.graphics.points` or `lovr.graphics.line` to render the curve.
257+
---These points can be passed directly to `Pass:points` or `Pass:line` to render the curve.
258258
---
259259
---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.
260260
---

0 commit comments

Comments
 (0)