Skip to content

Commit 748f8b9

Browse files
committed
updat submodules
1 parent 8d10822 commit 748f8b9

File tree

7 files changed

+24
-21
lines changed

7 files changed

+24
-21
lines changed

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

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,21 @@ lovr.conf = nil
5151
lovr.draw = nil
5252

5353
---
54-
---The "lovr.errhand" callback is run whenever an error occurs.
54+
---The `lovr.errhand` callback is run whenever an error occurs.
5555
---
56-
---It receives two parameters. The first is a string containing the error message. The second is either nil, or a string containing a traceback (as returned by "debug.traceback()"); if nil, this means "lovr.errhand" is being called in the stack where the error occurred, and it can call "debug.traceback()" itself.
56+
---It receives a parameter containing the error message.
5757
---
58-
---"lovr.errhand" should return a handler function to run in a loop to show the error screen. This handler function is of the same type as the one returned by "lovr.run" and has the same requirements (such as pumping events). If an error occurs while this handler is running, the program will terminate immediately-- "lovr.errhand" will not be given a second chance. Errors which occur inside "lovr.errhand" or in the handler it returns may not be cleanly reported, so be careful.
58+
---It should return a handler function that will run in a loop to render the error screen.
59+
---
60+
---This handler function is of the same type as the one returned by `lovr.run` and has the same requirements (such as pumping events).
61+
---
62+
---If an error occurs while this handler is running, the program will terminate immediately -- `lovr.errhand` will not be given a second chance.
63+
---
64+
---Errors which occur in the error handler or in the handler it returns may not be cleanly reported, so be careful.
5965
---
6066
---A default error handler is supplied that renders the error message as text to the headset and to the window.
6167
---
62-
---@type fun(message: string, traceback: string):function
68+
---@type fun(message: string):function
6369
lovr.errhand = nil
6470

6571
---
@@ -123,7 +129,7 @@ lovr.log = nil
123129
---
124130
---For example, a stereo view could be drawn instead of a single eye or a 2D HUD could be rendered.
125131
---
126-
---@type fun()
132+
---@type fun(pass: lovr.Pass):boolean
127133
lovr.mirror = nil
128134

129135
---
@@ -196,7 +202,7 @@ lovr.run = nil
196202
---### NOTE:
197203
---Some characters in UTF-8 unicode take multiple bytes to encode.
198204
---
199-
---Due to the way Lua works, the length of these strings will be bigger than 1 even though they are just a single character. `lovr.graphics.print` is compatible with UTF-8 but doing other string processing on these strings may require a library.
205+
---Due to the way Lua works, the length of these strings will be bigger than 1 even though they are just a single character. `Pass:text` is compatible with UTF-8 but doing other string processing on these strings may require a library.
200206
---
201207
---Lua 5.3+ has support for working with UTF-8 strings.
202208
---

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2080,19 +2080,17 @@ function Pass:setMeshMode(mode) end
20802080
---
20812081
---Alternatively, a projection matrix can be used for other types of projections like orthographic, oblique, etc.
20822082
---
2083-
---There is also a shorthand string "orthographic" that can be used to configure an orthographic projection.
2084-
---
20852083
---Up to 6 views are supported.
20862084
---
2087-
---When rendering to the headset, both projections are changed to match the ones used by the headset.
2088-
---
2089-
---This is also available by calling `lovr.headset.getViewAngles`.
2085+
---The Pass returned by `lovr.headset.getPass` will have its views automatically configured to match the headset.
20902086
---
20912087
---
20922088
---### NOTE:
20932089
---A far clipping plane of 0.0 can be used for an infinite far plane with reversed Z range.
20942090
---
2095-
---This is the default.
2091+
---This is the default because it improves depth precision and reduces Z fighting.
2092+
---
2093+
---Using a non-infinite far plane requires the depth buffer to be cleared to 1.0 instead of 0.0 and the default depth test to be changed to `lequal` instead of `gequal`.
20962094
---
20972095
---@overload fun(self: lovr.Pass, view: number, matrix: lovr.Mat4)
20982096
---@param view number # The index of the view to update.
@@ -2733,14 +2731,13 @@ function Texture:isView() end
27332731
---- Rendering to a particular image or mipmap level of a texture.
27342732
---- Binding a particular image or mipmap level to a shader.
27352733
---
2736-
---@param parent lovr.Texture # The parent Texture to create the view of.
27372734
---@param type lovr.TextureType # The texture type of the view.
27382735
---@param layer? number # The index of the first layer in the view.
27392736
---@param layerCount? number # The number of layers in the view, or `nil` to use all remaining layers.
27402737
---@param mipmap? number # The index of the first mipmap in the view.
27412738
---@param mipmapCount? number # The number of mipmaps in the view, or `nil` to use all remaining mipmaps.
27422739
---@return lovr.Texture view # The new texture view.
2743-
function Texture:newView(parent, type, layer, layerCount, mipmap, mipmapCount) end
2740+
function Texture:newView(type, layer, layerCount, mipmap, mipmapCount) end
27442741

27452742
---
27462743
---Controls whether premultiplied alpha is enabled.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ function Mat4:equals(n) end
398398
---@param up number # The top half-angle of the projection, in radians.
399399
---@param down number # The bottom half-angle of the projection, in radians.
400400
---@param near number # The near plane of the projection.
401-
---@param far number # The far plane of the projection.
401+
---@param far? number # The far plane. Zero is a special value that will set an infinite far plane with a reversed Z range, which improves depth buffer precision and is the default.
402402
---@return lovr.Mat4 m # The original matrix.
403403
function Mat4:fov(left, right, up, down, near, far) end
404404

@@ -411,7 +411,7 @@ function Mat4:identity() end
411411
---
412412
---Inverts the matrix, causing it to represent the opposite of its old transform.
413413
---
414-
---@return lovr.Mat4 m # The original matrix.
414+
---@return lovr.Mat4 m # The original matrix, with its values inverted.
415415
function Mat4:invert() end
416416

417417
---
@@ -467,7 +467,7 @@ function Mat4:orthographic(left, right, bottom, top, near, far) end
467467
---@param fov number # The vertical field of view (in radians).
468468
---@param aspect number # The horizontal aspect ratio of the projection (width / height).
469469
---@param near number # The near plane.
470-
---@param far number # The far plane.
470+
---@param far? number # The far plane. Zero is a special value that will set an infinite far plane with a reversed Z range, which improves depth buffer precision and is the default.
471471
---@return lovr.Mat4 m # The original matrix.
472472
function Mat4:perspective(fov, aspect, near, far) end
473473

script/parser/luadoc.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ Symbol <- ({} {
137137
end,
138138
})
139139

140+
---@alias parser.visibleType 'public' | 'protected' | 'private' | 'package'
141+
140142
---@class parser.object
141143
---@field literal boolean
142144
---@field signs parser.object[]

script/vm/visible.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ local guide = require 'parser.guide'
44
local config = require 'config'
55
local glob = require 'glob'
66

7-
---@alias parser.visibleType 'public' | 'protected' | 'private' | 'package'
8-
97
---@class parser.object
108
---@field package _visibleType? parser.visibleType
119

0 commit comments

Comments
 (0)