diff options
m--------- | 3rd/love-api | 0 | ||||
m--------- | 3rd/lovr-api | 0 | ||||
-rw-r--r-- | meta/3rd/love2d/library/love.graphics.lua | 2 | ||||
-rw-r--r-- | meta/3rd/lovr/library/lovr.graphics.lua | 5 | ||||
-rw-r--r-- | meta/3rd/lovr/library/lovr.math.lua | 4 |
5 files changed, 8 insertions, 3 deletions
diff --git a/3rd/love-api b/3rd/love-api -Subproject 4fa1de69cb04af2e405b3ac400d4e0cec0e0753 +Subproject fa88219b16b652cccee983aa08dcf706e1b5f0e diff --git a/3rd/lovr-api b/3rd/lovr-api -Subproject ee05ea3006ae3257f3ac198cf5386ccdc3d587f +Subproject 58580f0f8ba3852fa7fe1b31a275e0d2a657ec3 diff --git a/meta/3rd/love2d/library/love.graphics.lua b/meta/3rd/love2d/library/love.graphics.lua index c6b5ead8..1a168421 100644 --- a/meta/3rd/love2d/library/love.graphics.lua +++ b/meta/3rd/love2d/library/love.graphics.lua @@ -165,7 +165,7 @@ function love.graphics.ellipse(mode, x, y, radiusx, radiusy) end --- ---LÖVE will call this function internally as needed when most state is changed, so it is not necessary to manually call it. --- ----The current batch will be automatically flushed by color), as well as Shader:send and methods on Textures which change their state. Using a different Image in consecutive love.graphics.draw calls will also flush the current batch. +---The current batch will be automatically flushed by love.graphics state changes (except for the transform stack and the current color), as well as Shader:send and methods on Textures which change their state. Using a different Image in consecutive love.graphics.draw calls will also flush the current batch. --- ---SpriteBatches, ParticleSystems, Meshes, and Text objects do their own batching and do not affect automatic batching of other draws, aside from flushing the current batch when they're drawn. --- diff --git a/meta/3rd/lovr/library/lovr.graphics.lua b/meta/3rd/lovr/library/lovr.graphics.lua index 63b3596a..ef6ffc46 100644 --- a/meta/3rd/lovr/library/lovr.graphics.lua +++ b/meta/3rd/lovr/library/lovr.graphics.lua @@ -1190,7 +1190,10 @@ function Model:getAnimationCount() end --- ---Returns the duration of an animation in the Model, in seconds. --- -function Model:getAnimationDuration() end +---@overload fun(index: number):number +---@param name string # The name of the animation. +---@return number duration # The duration of the animation, in seconds. +function Model:getAnimationDuration(name) end --- ---Returns the name of one of the animations in the Model. diff --git a/meta/3rd/lovr/library/lovr.math.lua b/meta/3rd/lovr/library/lovr.math.lua index 007d8055..2a2139e8 100644 --- a/meta/3rd/lovr/library/lovr.math.lua +++ b/meta/3rd/lovr/library/lovr.math.lua @@ -491,7 +491,9 @@ function RandomGenerator:randomNormal(sigma, mu) end --- ---Seed the RandomGenerator with a new seed. Each seed will cause the RandomGenerator to produce a unique sequence of random numbers. --- -function RandomGenerator:setSeed() end +---@overload fun(low: number, high: number) +---@param seed number # The random seed. +function RandomGenerator:setSeed(seed) end --- ---Sets the state of the RandomGenerator, as previously obtained using `RandomGenerator:getState`. This can be used to reliably restore a previous state of the generator. |