lycheedev 2.0.6 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES +23 -12
- package/native/windows-amd64/lycheedev.exe +0 -0
- package/package.json +1 -1
- package/payload/addon/Bridge/ActivityView.lua +70 -0
- package/payload/addon/Bridge/CaptureWriter.lua +11 -1
- package/payload/addon/Bridge/InputProtocol.lua +76 -0
- package/payload/addon/Bridge/Investigation.lua +159 -0
- package/payload/addon/Bridge/ProbeQueue.lua +20 -3
- package/payload/addon/Bridge/ProbeRunner.lua +159 -17
- package/payload/addon/Bridge/ReceiptView.lua +32 -6
- package/payload/addon/Bridge/Receiver.lua +326 -0
- package/payload/addon/Bridge/ReceiverBindings.lua +241 -0
- package/payload/addon/Bridge/Reentry.lua +11 -10
- package/payload/addon/Bridge/ReportStore.lua +46 -6
- package/payload/addon/Bridge/Session.lua +13 -3
- package/payload/addon/Bridge/StartupBeacon.lua +66 -0
- package/payload/addon/Core/Compat.lua +19 -0
- package/payload/addon/Core/Controls.lua +43 -2
- package/payload/addon/Core/Locale.lua +53 -2
- package/payload/addon/Core/Locale_enUS.lua +53 -2
- package/payload/addon/Core/Persistence.lua +25 -1
- package/payload/addon/Core/Runtime.lua +4 -1
- package/payload/addon/Lychee Dev.toc +10 -1
- package/payload/addon/Media/RoundedPanel.png +0 -0
- package/payload/addon/Modules/AutomationView.lua +14 -4
- package/payload/addon/UI/Export.lua +14 -16
- package/payload/addon/UI/Pages/About.lua +37 -56
- package/payload/addon/UI/Pages/Automation.lua +82 -51
- package/payload/addon/UI/Pages/Diagnostics.lua +34 -44
- package/payload/addon/UI/Pages/Events.lua +64 -108
- package/payload/addon/UI/Pages/ExportRecords.lua +53 -30
- package/payload/addon/UI/Pages/Object.lua +59 -63
- package/payload/addon/UI/Pages/Run.lua +33 -23
- package/payload/addon/UI/Pages/Settings.lua +82 -0
- package/payload/addon/UI/Pages/Trace.lua +20 -30
- package/payload/addon/UI/Theme.lua +152 -0
- package/payload/addon/UI/TreeView.lua +8 -4
- package/payload/addon/UI/Widgets.lua +279 -152
- package/payload/addon/UI/Window.lua +255 -53
- package/payload/skill/SKILL.md +51 -17
- package/payload/skill/references/addon-validation.md +16 -3
- package/payload/skill/references/asset-export.md +8 -2
- package/payload/skill/references/commands.md +54 -44
- package/payload/skill/references/data-investigation.md +47 -5
- package/payload/skill/references/data-query-recipes.md +73 -0
- package/payload/skill/references/error-diagnosis.md +6 -0
- package/payload/skill/references/installation.md +6 -0
- package/payload/skill/references/live-investigation.md +159 -7
- package/payload/skill/references/live-startup.md +75 -25
- package/payload/skill/references/source-research.md +96 -24
- package/payload/tool/luals/LICENSE +21 -0
- package/payload/tool/luals/bin/concrt140.dll +0 -0
- package/payload/tool/luals/bin/lua-language-server.exe +0 -0
- package/payload/tool/luals/bin/main.lua +85 -0
- package/payload/tool/luals/bin/msvcp140.dll +0 -0
- package/payload/tool/luals/bin/msvcp140_1.dll +0 -0
- package/payload/tool/luals/bin/msvcp140_2.dll +0 -0
- package/payload/tool/luals/bin/msvcp140_atomic_wait.dll +0 -0
- package/payload/tool/luals/bin/msvcp140_codecvt_ids.dll +0 -0
- package/payload/tool/luals/bin/vcruntime140.dll +0 -0
- package/payload/tool/luals/bin/vcruntime140_1.dll +0 -0
- package/payload/tool/luals/bin/vcruntime140_threads.dll +0 -0
- package/payload/tool/luals/changelog.md +2413 -0
- package/payload/tool/luals/debugger.lua +66 -0
- package/payload/tool/luals/locale/en-us/meta.lua +885 -0
- package/payload/tool/luals/locale/en-us/script.lua +1346 -0
- package/payload/tool/luals/locale/en-us/setting.lua +621 -0
- package/payload/tool/luals/locale/es-419/meta.lua +884 -0
- package/payload/tool/luals/locale/es-419/script.lua +1349 -0
- package/payload/tool/luals/locale/es-419/setting.lua +625 -0
- package/payload/tool/luals/locale/ja-jp/meta.lua +880 -0
- package/payload/tool/luals/locale/ja-jp/script.lua +1341 -0
- package/payload/tool/luals/locale/ja-jp/setting.lua +620 -0
- package/payload/tool/luals/locale/pt-br/meta.lua +885 -0
- package/payload/tool/luals/locale/pt-br/script.lua +1343 -0
- package/payload/tool/luals/locale/pt-br/setting.lua +620 -0
- package/payload/tool/luals/locale/zh-cn/meta.lua +864 -0
- package/payload/tool/luals/locale/zh-cn/script.lua +1337 -0
- package/payload/tool/luals/locale/zh-cn/setting.lua +619 -0
- package/payload/tool/luals/locale/zh-tw/meta.lua +868 -0
- package/payload/tool/luals/locale/zh-tw/script.lua +1333 -0
- package/payload/tool/luals/locale/zh-tw/setting.lua +619 -0
- package/payload/tool/luals/main.lua +85 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/config.json +7 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Action.lua +81 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ActionCamera.lua +44 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ActionEase.lua +26 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ActionFloat.lua +43 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ActionInstant.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ActionInterval.lua +40 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ActionManager.lua +121 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ActionTween.lua +44 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/AmbientLight.lua +18 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Animate.lua +49 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Animate3D.lua +106 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Animation.lua +107 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Animation3D.lua +26 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/AnimationCache.lua +58 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/AnimationFrame.lua +55 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Application.lua +35 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/AssetsManager.lua +66 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/AssetsManagerEx.lua +60 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/AsyncTaskPool.lua +28 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/AtlasNode.lua +95 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/AttachNode.lua +29 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/AudioEngine.lua +148 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/AudioProfile.lua +10 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/AutoPolygon.lua +13 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/BaseLight.lua +31 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/BezierBy.lua +29 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/BezierTo.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/BillBoard.lua +38 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Blink.lua +40 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Bundle3D.lua +56 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/CSLoader.lua +65 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/CallFunc.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Camera.lua +163 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/CameraBackgroundBrush.lua +64 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/CameraBackgroundColorBrush.lua +33 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/CameraBackgroundDepthBrush.lua +31 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/CameraBackgroundSkyBoxBrush.lua +49 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/CardinalSplineBy.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/CardinalSplineTo.lua +42 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/CatmullRomBy.lua +19 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/CatmullRomTo.lua +19 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ClippingNode.lua +74 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ClippingRectangleNode.lua +35 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Component.lua +43 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ComponentLua.lua +21 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Console.lua +37 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Control.lua +91 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ControlButton.lua +260 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ControlColourPicker.lua +55 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ControlHuePicker.lua +64 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ControlPotentiometer.lua +119 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ControlSaturationBrightnessPicker.lua +44 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ControlSlider.lua +106 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ControlStepper.lua +108 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ControlSwitch.lua +70 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Controller.lua +53 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/DelayTime.lua +25 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Device.lua +31 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/DirectionLight.lua +31 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Director.lua +306 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/DrawNode.lua +182 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseBackIn.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseBackInOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseBackOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseBezierAction.lua +32 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseBounce.lua +5 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseBounceIn.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseBounceInOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseBounceOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseCircleActionIn.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseCircleActionInOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseCircleActionOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseCubicActionIn.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseCubicActionInOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseCubicActionOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseElastic.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseElasticIn.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseElasticInOut.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseElasticOut.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseExponentialIn.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseExponentialInOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseExponentialOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseIn.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseInOut.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseOut.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseQuadraticActionIn.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseQuadraticActionInOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseQuadraticActionOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseQuarticActionIn.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseQuarticActionInOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseQuarticActionOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseQuinticActionIn.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseQuinticActionInOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseQuinticActionOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseRateAction.lua +28 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseSineIn.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseSineInOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EaseSineOut.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Event.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventAcceleration.lua +5 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventAssetsManagerEx.lua +53 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventController.lua +37 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventCustom.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventDispatcher.lua +111 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventFocus.lua +14 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventKeyboard.lua +14 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListener.lua +26 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerAcceleration.lua +19 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerAssetsManagerEx.lua +20 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerController.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerCustom.lua +15 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerFocus.lua +18 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerKeyboard.lua +18 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerMouse.lua +18 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerPhysicsContact.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerPhysicsContactWithBodies.lua +19 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerPhysicsContactWithGroup.lua +18 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerPhysicsContactWithShapes.lua +19 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerTouchAllAtOnce.lua +18 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventListenerTouchOneByOne.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventMouse.lua +88 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/EventTouch.lua +19 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FadeIn.lua +29 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FadeOut.lua +28 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FadeOutBLTiles.lua +25 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FadeOutDownTiles.lua +25 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FadeOutTRTiles.lua +49 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FadeOutUpTiles.lua +30 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FadeTo.lua +37 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FastTMXLayer.lua +132 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FastTMXTiledMap.lua +87 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FileUtils.lua +340 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FiniteTimeAction.lua +21 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FlipX.lua +29 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FlipX3D.lua +36 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FlipY.lua +29 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/FlipY3D.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Follow.lua +85 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/GLView.lua +184 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/GLViewImpl.lua +30 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Grid3D.lua +43 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Grid3DAction.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/GridAction.lua +28 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/GridBase.lua +86 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Hide.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Image.lua +70 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/JumpBy.lua +43 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/JumpTiles3D.lua +58 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/JumpTo.lua +39 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Label.lua +397 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/LabelAtlas.lua +42 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Layer.lua +19 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/LayerColor.lua +67 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/LayerGradient.lua +86 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/LayerMultiplex.lua +37 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/LayerRadialGradient.lua +100 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Lens3D.lua +63 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Liquid.lua +58 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Manifest.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Material.lua +88 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Menu.lua +68 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/MenuItem.lua +34 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/MenuItemAtlasFont.lua +18 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/MenuItemFont.lua +54 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/MenuItemImage.lua +31 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/MenuItemLabel.lua +48 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/MenuItemSprite.lua +48 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/MenuItemToggle.lua +47 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Mesh.lua +82 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/MotionStreak.lua +121 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/MotionStreak3D.lua +143 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/MoveBy.lua +35 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/MoveTo.lua +31 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/NavMesh.lua +47 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/NavMeshAgent.lua +122 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/NavMeshObstacle.lua +49 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Node.lua +802 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/NodeGrid.lua +43 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/OrbitCamera.lua +48 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PUParticleSystem3D.lua +192 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PageTurn3D.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParallaxNode.lua +49 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleBatchNode.lua +116 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleData.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleExplosion.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleFire.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleFireworks.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleFlower.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleGalaxy.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleMeteor.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleRain.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleSmoke.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleSnow.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleSpiral.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleSun.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleSystem.lua +526 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleSystem3D.lua +87 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ParticleSystemQuad.lua +52 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Pass.lua +148 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Physics3D6DofConstraint.lua +58 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Physics3DComponent.lua +46 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Physics3DConeTwistConstraint.lua +97 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Physics3DConstraint.lua +46 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Physics3DHingeConstraint.lua +100 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Physics3DObject.lua +39 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Physics3DPointToPointConstraint.lua +39 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Physics3DRigidBody.lua +201 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Physics3DShape.lua +64 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Physics3DSliderConstraint.lua +245 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Physics3DWorld.lua +63 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsBody.lua +335 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsContact.lua +21 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsContactPostSolve.lua +15 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsContactPreSolve.lua +30 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsJoint.lua +48 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsJointDistance.lua +28 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsJointFixed.lua +19 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsJointGear.lua +35 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsJointGroove.lua +44 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsJointLimit.lua +47 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsJointMotor.lua +26 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsJointPin.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsJointRatchet.lua +42 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsJointRotaryLimit.lua +31 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsJointRotarySpring.lua +42 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsJointSpring.lua +60 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsShape.lua +155 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsShapeBox.lua +25 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsShapeCircle.lua +44 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsShapeEdgeBox.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsShapeEdgeChain.lua +14 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsShapeEdgePolygon.lua +14 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsShapeEdgeSegment.lua +30 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsShapePolygon.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsSprite3D.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PhysicsWorld.lua +147 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Place.lua +29 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PointLight.lua +29 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/PolygonInfo.lua +60 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ProgressFromTo.lua +43 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ProgressTimer.lua +107 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ProgressTo.lua +39 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Properties.lua +226 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ProtectedNode.lua +96 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Ref.lua +25 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/RemoveSelf.lua +28 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/RenderState.lua +15 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/RenderTexture.lua +166 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Renderer.lua +251 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Repeat.lua +51 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/RepeatForever.lua +45 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ReuseGrid.lua +31 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Ripple3D.lua +75 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/RotateBy.lua +39 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/RotateTo.lua +38 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ScaleBy.lua +28 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ScaleTo.lua +41 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Scene.lua +72 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Scheduler.lua +30 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Sequence.lua +38 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ShaderCache.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Shaky3D.lua +40 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ShakyTiles3D.lua +40 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ShatteredTiles3D.lua +40 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Show.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ShuffleTiles.lua +44 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Skeleton3D.lua +41 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/SkewBy.lua +35 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/SkewTo.lua +39 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Skybox.lua +44 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Spawn.lua +35 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Speed.lua +60 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/SplitCols.lua +36 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/SplitRows.lua +36 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/SpotLight.lua +70 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Sprite.lua +337 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Sprite3D.lua +118 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Sprite3DCache.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Sprite3DMaterial.lua +35 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/SpriteBatchNode.lua +188 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/SpriteFrame.lua +153 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/SpriteFrameCache.lua +106 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/StopGrid.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TMXLayer.lua +141 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TMXLayerInfo.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TMXMapInfo.lua +161 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TMXObjectGroup.lua +58 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TMXTiledMap.lua +106 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TMXTilesetInfo.lua +13 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TableView.lua +81 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TableViewCell.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TargetedAction.lua +48 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Technique.lua +41 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Terrain.lua +108 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Texture2D.lua +161 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TextureCache.lua +98 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TextureCube.lua +36 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TileMapAtlas.lua +39 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TiledGrid3D.lua +25 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TiledGrid3DAction.lua +12 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Timer.lua +32 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TintBy.lua +42 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TintTo.lua +38 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/ToggleVisibility.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Touch.lua +61 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionCrossFade.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionEaseScene.lua +13 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionFade.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionFadeBL.lua +21 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionFadeDown.lua +21 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionFadeTR.lua +33 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionFadeUp.lua +21 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionFlipAngular.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionFlipX.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionFlipY.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionJumpZoom.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionMoveInB.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionMoveInL.lua +25 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionMoveInR.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionMoveInT.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionPageTurn.lua +45 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionProgress.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionProgressHorizontal.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionProgressInOut.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionProgressOutIn.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionProgressRadialCCW.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionProgressRadialCW.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionProgressVertical.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionRotoZoom.lua +17 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionScene.lua +43 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionSceneOriented.lua +25 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionShrinkGrow.lua +21 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionSlideInB.lua +20 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionSlideInL.lua +25 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionSlideInR.lua +20 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionSlideInT.lua +20 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionSplitCols.lua +31 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionSplitRows.lua +20 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionTurnOffTiles.lua +27 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionZoomFlipAngular.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionZoomFlipX.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TransitionZoomFlipY.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/TurnOffTiles.lua +47 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Twirl.lua +71 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/UserDefault.lua +98 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Waves.lua +66 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/Waves3D.lua +58 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/cc/WavesTiles3D.lua +58 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccb/Program.lua +51 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccb/ProgramState.lua +40 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccb/Texture2DBackend.lua +70 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccb/TextureBackend.lua +48 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccb/TextureCubemapBackend.lua +13 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccb/VertexLayout.lua +39 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ActionFadeFrame.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ActionFrame.lua +56 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ActionManagerEx.lua +45 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ActionMoveFrame.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ActionObject.lua +82 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ActionRotationFrame.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ActionScaleFrame.lua +33 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ActionTimeline.lua +162 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ActionTimelineCache.lua +53 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ActionTimelineData.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ActionTimelineNode.lua +36 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ActionTintFrame.lua +24 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/AlphaFrame.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/AnchorPointFrame.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/AnimationData.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/Armature.lua +136 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ArmatureAnimation.lua +100 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ArmatureData.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ArmatureDataManager.lua +101 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ArmatureDisplayData.lua +12 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/BaseData.lua +19 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/BatchNode.lua +30 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/BlendFuncFrame.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/Bone.lua +164 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/BoneData.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/BoneNode.lua +129 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ColorFrame.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ComAttribute.lua +63 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ComAudio.lua +131 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ComController.lua +30 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ComExtensionData.lua +40 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ComRender.lua +34 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ContourData.lua +19 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/DisplayData.lua +20 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/DisplayManager.lua +89 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/EventFrame.lua +29 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/Frame.lua +58 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/FrameData.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/GUIReader.lua +31 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/InnerActionFrame.lua +51 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/MovementBoneData.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/MovementData.lua +20 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ParticleDisplayData.lua +12 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/PlayableFrame.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/PositionFrame.lua +36 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/RotationFrame.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/RotationSkewFrame.lua +15 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ScaleFrame.lua +33 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/SceneReader.lua +32 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/SkeletonNode.lua +37 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/SkewFrame.lua +29 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/Skin.lua +54 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/SpriteDisplayData.lua +16 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/TextureData.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/TextureFrame.lua +26 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/Timeline.lua +60 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/Tween.lua +55 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/VisibleFrame.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccs/ZOrderFrame.lua +22 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/AbstractCheckButton.lua +146 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/Button.lua +223 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/CheckBox.lua +32 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/EditBox.lua +320 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/HBox.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/Helper.lua +70 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/ImageView.lua +89 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/Layout.lua +217 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/LayoutComponent.lua +248 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/LayoutParameter.lua +32 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/LinearLayoutParameter.lua +32 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/ListView.lua +302 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/LoadingBar.lua +84 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/PageView.lua +177 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/RadioButton.lua +32 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/RadioButtonGroup.lua +70 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/RelativeBox.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/RelativeLayoutParameter.lua +50 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/RichElement.lua +29 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/RichElementCustomNode.lua +35 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/RichElementImage.lua +55 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/RichElementNewLine.lua +21 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/RichElementText.lua +107 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/RichText.lua +208 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/Scale9Sprite.lua +222 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/ScrollView.lua +375 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/Slider.lua +188 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/TabControl.lua +101 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/TabHeader.lua +71 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/Text.lua +203 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/TextAtlas.lua +65 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/TextBMFont.lua +52 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/TextField.lua +245 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/VBox.lua +23 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/VideoPlayer.lua +111 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/WebView.lua +90 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/ccui/Widget.lua +396 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/global.lua +215 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/sp/SkeletonAnimation.lua +111 -0
- package/payload/tool/luals/meta/3rd/Cocos4.0/library/sp/SkeletonRenderer.lua +126 -0
- package/payload/tool/luals/meta/3rd/Defold/config.json +22 -0
- package/payload/tool/luals/meta/3rd/Defold/library/base.lua +83 -0
- package/payload/tool/luals/meta/3rd/Defold/library/buffer.lua +68 -0
- package/payload/tool/luals/meta/3rd/Defold/library/built-ins.lua +24 -0
- package/payload/tool/luals/meta/3rd/Defold/library/collection_factory.lua +54 -0
- package/payload/tool/luals/meta/3rd/Defold/library/collection_proxy.lua +9 -0
- package/payload/tool/luals/meta/3rd/Defold/library/collision_object.lua +149 -0
- package/payload/tool/luals/meta/3rd/Defold/library/factory.lua +47 -0
- package/payload/tool/luals/meta/3rd/Defold/library/game_object.lua +340 -0
- package/payload/tool/luals/meta/3rd/Defold/library/gui.lua +929 -0
- package/payload/tool/luals/meta/3rd/Defold/library/html5.lua +23 -0
- package/payload/tool/luals/meta/3rd/Defold/library/http.lua +18 -0
- package/payload/tool/luals/meta/3rd/Defold/library/image.lua +20 -0
- package/payload/tool/luals/meta/3rd/Defold/library/json.lua +20 -0
- package/payload/tool/luals/meta/3rd/Defold/library/label.lua +20 -0
- package/payload/tool/luals/meta/3rd/Defold/library/luasocket.lua +484 -0
- package/payload/tool/luals/meta/3rd/Defold/library/message.lua +56 -0
- package/payload/tool/luals/meta/3rd/Defold/library/model.lua +43 -0
- package/payload/tool/luals/meta/3rd/Defold/library/particle_effects.lua +52 -0
- package/payload/tool/luals/meta/3rd/Defold/library/profiler.lua +89 -0
- package/payload/tool/luals/meta/3rd/Defold/library/render.lua +439 -0
- package/payload/tool/luals/meta/3rd/Defold/library/resource.lua +181 -0
- package/payload/tool/luals/meta/3rd/Defold/library/sound.lua +126 -0
- package/payload/tool/luals/meta/3rd/Defold/library/sprite.lua +32 -0
- package/payload/tool/luals/meta/3rd/Defold/library/system.lua +161 -0
- package/payload/tool/luals/meta/3rd/Defold/library/tilemap.lua +78 -0
- package/payload/tool/luals/meta/3rd/Defold/library/timer.lua +36 -0
- package/payload/tool/luals/meta/3rd/Defold/library/vector_math.lua +406 -0
- package/payload/tool/luals/meta/3rd/Defold/library/window.lua +56 -0
- package/payload/tool/luals/meta/3rd/Defold/library/zlib.lua +18 -0
- package/payload/tool/luals/meta/3rd/Jass/config.json +6 -0
- package/payload/tool/luals/meta/3rd/Jass/library/jass/common.lua +12329 -0
- package/payload/tool/luals/meta/3rd/OpenResty/config.json +19 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/cjson/safe.lua +42 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/cjson.lua +470 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/jit.lua +31 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ndk.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/balancer.lua +117 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/base64.lua +21 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/errlog.lua +119 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/ocsp.lua +60 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/pipe.lua +307 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/process.lua +48 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/re.lua +102 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/req.lua +16 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/resp.lua +23 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/semaphore.lua +62 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/ssl/clienthello.lua +99 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/ssl/session.lua +51 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/ssl.lua +276 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx/upstream.lua +9 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/ngx.lua +4351 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/prometheus.lua +247 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/aes.lua +74 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/base.lua +51 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/base64.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/ctx.lua +9 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/exit.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/hash.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/misc.lua +6 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/ndk.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/phase.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/regex.lua +55 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/request.lua +5 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/response.lua +5 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/shdict.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/time.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/uri.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/utils.lua +10 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/var.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core/worker.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/core.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/dns/resolver.lua +395 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/limit/conn.lua +11 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/limit/count.lua +7 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/limit/req.lua +9 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/limit/traffic.lua +5 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/lock.lua +125 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/lrucache/pureffi.lua +18 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/lrucache.lua +107 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/md5.lua +16 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/memcached.lua +27 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/mysql.lua +15 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/random.lua +10 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/redis.lua +57 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/sha.lua +4 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/sha1.lua +10 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/sha224.lua +10 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/sha256.lua +10 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/sha384.lua +10 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/sha512.lua +10 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/shell.lua +60 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/signal.lua +69 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/string.lua +72 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/upload.lua +7 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/upstream/healthcheck.lua +6 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/websocket/client.lua +62 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/websocket/protocol.lua +172 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/resty/websocket/server.lua +16 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/table/clone.lua +25 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/table/isarray.lua +23 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/table/isempty.lua +22 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/table/nkeys.lua +23 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/tablepool.lua +29 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/thread/exdata.lua +43 -0
- package/payload/tool/luals/meta/3rd/OpenResty/library/thread/exdata2.lua +8 -0
- package/payload/tool/luals/meta/3rd/bee/LICENSE +21 -0
- package/payload/tool/luals/meta/3rd/bee/config.json +5 -0
- package/payload/tool/luals/meta/3rd/bee/library/bee/channel.lua +24 -0
- package/payload/tool/luals/meta/3rd/bee/library/bee/epoll.lua +58 -0
- package/payload/tool/luals/meta/3rd/bee/library/bee/filesystem.lua +189 -0
- package/payload/tool/luals/meta/3rd/bee/library/bee/platform.lua +62 -0
- package/payload/tool/luals/meta/3rd/bee/library/bee/select.lua +34 -0
- package/payload/tool/luals/meta/3rd/bee/library/bee/serialization.lua +14 -0
- package/payload/tool/luals/meta/3rd/bee/library/bee/socket.lua +102 -0
- package/payload/tool/luals/meta/3rd/bee/library/bee/subprocess.lua +82 -0
- package/payload/tool/luals/meta/3rd/bee/library/bee/sys.lua +12 -0
- package/payload/tool/luals/meta/3rd/bee/library/bee/thread.lua +48 -0
- package/payload/tool/luals/meta/3rd/bee/library/bee/time.lua +10 -0
- package/payload/tool/luals/meta/3rd/busted/config.json +7 -0
- package/payload/tool/luals/meta/3rd/busted/library/busted.lua +298 -0
- package/payload/tool/luals/meta/3rd/example/config.json +22 -0
- package/payload/tool/luals/meta/3rd/example/library/love.lua +8 -0
- package/payload/tool/luals/meta/3rd/example/plugin.lua +16 -0
- package/payload/tool/luals/meta/3rd/ffi-reflect/config.json +3 -0
- package/payload/tool/luals/meta/3rd/ffi-reflect/library/reflect.lua +128 -0
- package/payload/tool/luals/meta/3rd/lfs/config.json +9 -0
- package/payload/tool/luals/meta/3rd/lfs/library/lfs.lua +145 -0
- package/payload/tool/luals/meta/3rd/love2d/config.json +10 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/audio.lua +980 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/data.lua +264 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/event.lua +244 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/filesystem.lua +653 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/font.lua +281 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/graphics.lua +3977 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/image.lua +695 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/joystick.lua +464 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/keyboard.lua +1484 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/math.lua +704 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/mouse.lua +283 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/physics.lua +3281 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/sound.lua +189 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/system.lua +115 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/thread.lua +210 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/timer.lua +68 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/touch.lua +40 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/video.lua +92 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love/window.lua +473 -0
- package/payload/tool/luals/meta/3rd/love2d/library/love.lua +334 -0
- package/payload/tool/luals/meta/3rd/lovr/config.json +7 -0
- package/payload/tool/luals/meta/3rd/lovr/library/callback.lua +230 -0
- package/payload/tool/luals/meta/3rd/lovr/library/lovr/audio.lua +844 -0
- package/payload/tool/luals/meta/3rd/lovr/library/lovr/data.lua +1557 -0
- package/payload/tool/luals/meta/3rd/lovr/library/lovr/event.lua +430 -0
- package/payload/tool/luals/meta/3rd/lovr/library/lovr/filesystem.lua +317 -0
- package/payload/tool/luals/meta/3rd/lovr/library/lovr/graphics.lua +3541 -0
- package/payload/tool/luals/meta/3rd/lovr/library/lovr/headset.lua +791 -0
- package/payload/tool/luals/meta/3rd/lovr/library/lovr/math.lua +1233 -0
- package/payload/tool/luals/meta/3rd/lovr/library/lovr/physics.lua +1779 -0
- package/payload/tool/luals/meta/3rd/lovr/library/lovr/system.lua +110 -0
- package/payload/tool/luals/meta/3rd/lovr/library/lovr/thread.lua +170 -0
- package/payload/tool/luals/meta/3rd/lovr/library/lovr/timer.lua +59 -0
- package/payload/tool/luals/meta/3rd/lovr/library/lovr.lua +42 -0
- package/payload/tool/luals/meta/3rd/luaecs/config.json +4 -0
- package/payload/tool/luals/meta/3rd/luaecs/library/ecs.lua +355 -0
- package/payload/tool/luals/meta/3rd/luassert/config.json +3 -0
- package/payload/tool/luals/meta/3rd/luassert/library/luassert/array.lua +15 -0
- package/payload/tool/luals/meta/3rd/luassert/library/luassert/match.lua +413 -0
- package/payload/tool/luals/meta/3rd/luassert/library/luassert/mock.lua +28 -0
- package/payload/tool/luals/meta/3rd/luassert/library/luassert/spy.d.lua +100 -0
- package/payload/tool/luals/meta/3rd/luassert/library/luassert/spy.lua +81 -0
- package/payload/tool/luals/meta/3rd/luassert/library/luassert/stub.lua +50 -0
- package/payload/tool/luals/meta/3rd/luassert/library/luassert.lua +441 -0
- package/payload/tool/luals/meta/3rd/luv/config.json +8 -0
- package/payload/tool/luals/meta/3rd/luv/library/errors.lua +261 -0
- package/payload/tool/luals/meta/3rd/luv/library/luv_dir_t.lua +34 -0
- package/payload/tool/luals/meta/3rd/luv/library/luv_thread_t.lua +20 -0
- package/payload/tool/luals/meta/3rd/luv/library/luv_work_ctx_t.lua +17 -0
- package/payload/tool/luals/meta/3rd/luv/library/types.lua +526 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv.lua +3075 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_async_t.lua +35 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_check_t.lua +29 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_fs_event_t.lua +33 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_fs_poll_t.lua +35 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_handle_t.lua +132 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_idle_t.lua +38 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_pipe_t.lua +103 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_poll_t.lua +57 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_prepare_t.lua +30 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_process_t.lua +22 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_req_t.lua +25 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_signal_t.lua +69 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_stream_t.lua +173 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_tcp_t.lua +112 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_timer_t.lua +55 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_tty_t.lua +44 -0
- package/payload/tool/luals/meta/3rd/luv/library/uv_udp_t.lua +175 -0
- package/payload/tool/luals/meta/3rd/skynet/config.json +4 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/cluster.lua +44 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/crypt.lua +74 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/db/mongo.lua +176 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/db/mysql.lua +43 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/db/redis.lua +70 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/debug.lua +13 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/habor.lua +22 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/muliticast.lua +23 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/netpack.lua +38 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/profile.lua +19 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/sharedata.lua +33 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/sharemap.lua +46 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/sharetable.lua +32 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/socket.lua +117 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/socketchannel.lua +58 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/socketdriver.lua +132 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet/stm.lua +32 -0
- package/payload/tool/luals/meta/3rd/skynet/library/skynet.lua +479 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/basic.lua +467 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/bit.lua +76 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/bit32.lua +156 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/builtin.lua +16 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/coroutine.lua +96 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/debug.lua +268 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/ffi.lua +121 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/io.lua +265 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/jit/profile.lua +19 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/jit/util.lua +119 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/jit.lua +42 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/math.lua +381 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/os.lua +244 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/package.lua +107 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/string/buffer.lua +353 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/string.lua +219 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/table/clear.lua +17 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/table/new.lua +19 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/table.lua +177 -0
- package/payload/tool/luals/meta/Lua 5.4 zh-cn utf8/utf8.lua +87 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/basic.lua +453 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/bit.lua +76 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/bit32.lua +156 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/builtin.lua +16 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/coroutine.lua +96 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/debug.lua +262 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/ffi.lua +121 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/io.lua +265 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/jit/profile.lua +19 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/jit/util.lua +119 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/jit.lua +42 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/math.lua +364 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/os.lua +244 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/package.lua +106 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/string/buffer.lua +353 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/string.lua +219 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/table/clear.lua +17 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/table/new.lua +19 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/table.lua +177 -0
- package/payload/tool/luals/meta/LuaJIT zh-cn utf8/utf8.lua +84 -0
- package/payload/tool/luals/meta/default utf8/CS.lua +14408 -0
- package/payload/tool/luals/meta/default utf8/System.CodeDom.Compiler.lua +822 -0
- package/payload/tool/luals/meta/default utf8/System.CodeDom.lua +1452 -0
- package/payload/tool/luals/meta/default utf8/System.Collections.Concurrent.lua +541 -0
- package/payload/tool/luals/meta/default utf8/System.Collections.Generic.lua +1397 -0
- package/payload/tool/luals/meta/default utf8/System.Collections.ObjectModel.lua +189 -0
- package/payload/tool/luals/meta/default utf8/System.Collections.Specialized.lua +607 -0
- package/payload/tool/luals/meta/default utf8/System.Collections.lua +915 -0
- package/payload/tool/luals/meta/default utf8/System.ComponentModel.Design.Serialization.lua +427 -0
- package/payload/tool/luals/meta/default utf8/System.ComponentModel.Design.lua +1582 -0
- package/payload/tool/luals/meta/default utf8/System.ComponentModel.lua +4997 -0
- package/payload/tool/luals/meta/default utf8/System.Configuration.Assemblies.lua +61 -0
- package/payload/tool/luals/meta/default utf8/System.Configuration.lua +926 -0
- package/payload/tool/luals/meta/default utf8/System.Data.Common.lua +1823 -0
- package/payload/tool/luals/meta/default utf8/System.Data.Odbc.lua +931 -0
- package/payload/tool/luals/meta/default utf8/System.Data.OleDb.lua +1156 -0
- package/payload/tool/luals/meta/default utf8/System.Data.Sql.lua +24 -0
- package/payload/tool/luals/meta/default utf8/System.Data.SqlClient.lua +1959 -0
- package/payload/tool/luals/meta/default utf8/System.Data.SqlTypes.lua +4007 -0
- package/payload/tool/luals/meta/default utf8/System.Data.lua +3614 -0
- package/payload/tool/luals/meta/default utf8/System.Deployment.Internal.lua +49 -0
- package/payload/tool/luals/meta/default utf8/System.Diagnostics.CodeAnalysis.lua +24 -0
- package/payload/tool/luals/meta/default utf8/System.Diagnostics.Contracts.Internal.lua +22 -0
- package/payload/tool/luals/meta/default utf8/System.Diagnostics.Contracts.lua +251 -0
- package/payload/tool/luals/meta/default utf8/System.Diagnostics.Eventing.Reader.lua +744 -0
- package/payload/tool/luals/meta/default utf8/System.Diagnostics.Eventing.lua +179 -0
- package/payload/tool/luals/meta/default utf8/System.Diagnostics.PerformanceData.lua +155 -0
- package/payload/tool/luals/meta/default utf8/System.Diagnostics.SymbolStore.lua +485 -0
- package/payload/tool/luals/meta/default utf8/System.Diagnostics.Tracing.lua +591 -0
- package/payload/tool/luals/meta/default utf8/System.Diagnostics.lua +3178 -0
- package/payload/tool/luals/meta/default utf8/System.Dynamic.lua +672 -0
- package/payload/tool/luals/meta/default utf8/System.Globalization.lua +3076 -0
- package/payload/tool/luals/meta/default utf8/System.IO.Compression.lua +249 -0
- package/payload/tool/luals/meta/default utf8/System.IO.IsolatedStorage.lua +400 -0
- package/payload/tool/luals/meta/default utf8/System.IO.MemoryMappedFiles.lua +302 -0
- package/payload/tool/luals/meta/default utf8/System.IO.Pipes.lua +412 -0
- package/payload/tool/luals/meta/default utf8/System.IO.Ports.lua +367 -0
- package/payload/tool/luals/meta/default utf8/System.IO.lua +2977 -0
- package/payload/tool/luals/meta/default utf8/System.Linq.Expressions.lua +3141 -0
- package/payload/tool/luals/meta/default utf8/System.Linq.lua +2737 -0
- package/payload/tool/luals/meta/default utf8/System.Management.Instrumentation.lua +180 -0
- package/payload/tool/luals/meta/default utf8/System.Media.lua +89 -0
- package/payload/tool/luals/meta/default utf8/System.Net.Cache.lua +109 -0
- package/payload/tool/luals/meta/default utf8/System.Net.Configuration.lua +564 -0
- package/payload/tool/luals/meta/default utf8/System.Net.Http.Headers.lua +950 -0
- package/payload/tool/luals/meta/default utf8/System.Net.Http.lua +529 -0
- package/payload/tool/luals/meta/default utf8/System.Net.Mail.lua +566 -0
- package/payload/tool/luals/meta/default utf8/System.Net.Mime.lua +143 -0
- package/payload/tool/luals/meta/default utf8/System.Net.NetworkInformation.lua +1500 -0
- package/payload/tool/luals/meta/default utf8/System.Net.Security.lua +677 -0
- package/payload/tool/luals/meta/default utf8/System.Net.Sockets.lua +2133 -0
- package/payload/tool/luals/meta/default utf8/System.Net.WebSockets.lua +368 -0
- package/payload/tool/luals/meta/default utf8/System.Net.lua +3584 -0
- package/payload/tool/luals/meta/default utf8/System.Numerics.lua +2511 -0
- package/payload/tool/luals/meta/default utf8/System.Reflection.Emit.lua +3816 -0
- package/payload/tool/luals/meta/default utf8/System.Reflection.lua +2924 -0
- package/payload/tool/luals/meta/default utf8/System.Resources.lua +270 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.CompilerServices.lua +1317 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.ConstrainedExecution.lua +58 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.DesignerServices.lua +26 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.ExceptionServices.lua +30 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Hosting.lua +33 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.InteropServices.ComTypes.lua +1839 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.InteropServices.Expando.lua +26 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.InteropServices.WindowsRuntime.lua +208 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.InteropServices.lua +6387 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Remoting.Activation.lua +85 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Remoting.Channels.lua +552 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Remoting.Contexts.lua +321 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Remoting.Lifetime.lua +109 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Remoting.Messaging.lua +680 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Remoting.Metadata.W3cXsd2001.lua +723 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Remoting.Metadata.lua +110 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Remoting.Proxies.lua +87 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Remoting.Services.lua +58 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Remoting.lua +612 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Serialization.Configuration.lua +169 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Serialization.Formatters.Binary.lua +60 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Serialization.Formatters.lua +172 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Serialization.Json.lua +239 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Serialization.lua +1581 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.Versioning.lua +145 -0
- package/payload/tool/luals/meta/default utf8/System.Runtime.lua +87 -0
- package/payload/tool/luals/meta/default utf8/System.Security.AccessControl.lua +2112 -0
- package/payload/tool/luals/meta/default utf8/System.Security.Authentication.ExtendedProtection.Configuration.lua +58 -0
- package/payload/tool/luals/meta/default utf8/System.Security.Authentication.ExtendedProtection.lua +144 -0
- package/payload/tool/luals/meta/default utf8/System.Security.Authentication.lua +87 -0
- package/payload/tool/luals/meta/default utf8/System.Security.Claims.lua +378 -0
- package/payload/tool/luals/meta/default utf8/System.Security.Cryptography.X509Certificates.lua +1235 -0
- package/payload/tool/luals/meta/default utf8/System.Security.Cryptography.lua +3923 -0
- package/payload/tool/luals/meta/default utf8/System.Security.Permissions.lua +1720 -0
- package/payload/tool/luals/meta/default utf8/System.Security.Policy.lua +1384 -0
- package/payload/tool/luals/meta/default utf8/System.Security.Principal.lua +589 -0
- package/payload/tool/luals/meta/default utf8/System.Security.lua +939 -0
- package/payload/tool/luals/meta/default utf8/System.Text.RegularExpressions.lua +520 -0
- package/payload/tool/luals/meta/default utf8/System.Text.lua +1712 -0
- package/payload/tool/luals/meta/default utf8/System.Threading.Tasks.lua +1899 -0
- package/payload/tool/luals/meta/default utf8/System.Threading.lua +2558 -0
- package/payload/tool/luals/meta/default utf8/System.Timers.lua +80 -0
- package/payload/tool/luals/meta/default utf8/System.Web.lua +74 -0
- package/payload/tool/luals/meta/default utf8/System.Windows.Input.lua +25 -0
- package/payload/tool/luals/meta/default utf8/System.Windows.Markup.lua +10 -0
- package/payload/tool/luals/meta/default utf8/System.Xml.Linq.lua +1307 -0
- package/payload/tool/luals/meta/default utf8/System.Xml.Resolvers.lua +81 -0
- package/payload/tool/luals/meta/default utf8/System.Xml.Schema.lua +1738 -0
- package/payload/tool/luals/meta/default utf8/System.Xml.Serialization.Advanced.lua +99 -0
- package/payload/tool/luals/meta/default utf8/System.Xml.Serialization.Configuration.lua +116 -0
- package/payload/tool/luals/meta/default utf8/System.Xml.Serialization.lua +1756 -0
- package/payload/tool/luals/meta/default utf8/System.Xml.XPath.lua +791 -0
- package/payload/tool/luals/meta/default utf8/System.Xml.XmlConfiguration.lua +18 -0
- package/payload/tool/luals/meta/default utf8/System.Xml.Xsl.lua +522 -0
- package/payload/tool/luals/meta/default utf8/System.Xml.lua +5751 -0
- package/payload/tool/luals/meta/default utf8/System.lua +16165 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.AI.lua +1625 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Accessibility.lua +26 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Analytics.lua +2323 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Android.lua +596 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Animations.lua +3555 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Apple.ReplayKit.lua +201 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Apple.TV.lua +14 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Apple.lua +74 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Assertions.Comparers.lua +64 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Assertions.Must.lua +131 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Assertions.lua +937 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Audio.lua +371 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Build.Pipeline.lua +84 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.CrashReportHandler.lua +35 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Diagnostics.lua +91 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.EventSystems.lua +959 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Events.lua +425 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Experimental.AI.lua +426 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Experimental.Animations.lua +74 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Experimental.AssetBundlePatching.lua +11 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Experimental.Audio.lua +231 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Experimental.GlobalIllumination.lua +957 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Experimental.Playables.lua +210 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Experimental.Rendering.lua +2058 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Experimental.TerrainAPI.lua +905 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Experimental.Video.lua +107 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Internal.lua +23 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Jobs.lua +169 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.LowLevel.lua +87 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Lumin.lua +11 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Networking.Match.lua +272 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Networking.PlayerConnection.lua +110 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Networking.Types.lua +157 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Networking.lua +2772 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.ParticleSystemJobs.lua +222 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Playables.lua +1646 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.PlayerLoop.lua +1161 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Profiling.Experimental.lua +29 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Profiling.Memory.Experimental.lua +95 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Profiling.lua +564 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Rendering.PostProcessing.lua +2145 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Rendering.VirtualTexturing.lua +673 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Rendering.lua +11996 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.SceneManagement.lua +715 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Scripting.APIUpdating.lua +8 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Scripting.lua +139 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.SearchService.lua +33 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Serialization.lua +35 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.SocialPlatforms.GameCenter.lua +84 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.SocialPlatforms.Impl.lua +252 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.SocialPlatforms.lua +487 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Sprites.lua +41 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Subsystems.lua +27 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.SubsystemsImplementation.Extensions.lua +20 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.SubsystemsImplementation.lua +125 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.TestTools.lua +163 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.TextCore.LowLevel.lua +680 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.TextCore.lua +284 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Tilemaps.lua +1278 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Timeline.lua +1386 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.U2D.lua +582 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.UI.lua +2813 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.UIElements.Experimental.lua +575 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.UIElements.lua +8986 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.VFX.lua +2888 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Video.lua +927 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.WSA.lua +1018 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Windows.Speech.lua +667 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Windows.WebCam.lua +756 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.Windows.lua +189 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.XR.Provider.lua +16 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.XR.WSA.lua +15 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.XR.lua +2757 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.iOS.lua +1359 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.lua +78477 -0
- package/payload/tool/luals/meta/default utf8/UnityEngine.tvOS.lua +119 -0
- package/payload/tool/luals/meta/default utf8/UnityEngineInternal.XR.WSA.lua +13 -0
- package/payload/tool/luals/meta/default utf8/UnityEngineInternal.lua +158 -0
- package/payload/tool/luals/meta/spell/dictionary.txt +82834 -0
- package/payload/tool/luals/meta/spell/lua_dict.txt +230 -0
- package/payload/tool/luals/meta/template/basic.lua +404 -0
- package/payload/tool/luals/meta/template/bit.lua +77 -0
- package/payload/tool/luals/meta/template/bit32.lua +86 -0
- package/payload/tool/luals/meta/template/builtin.lua +16 -0
- package/payload/tool/luals/meta/template/coroutine.lua +68 -0
- package/payload/tool/luals/meta/template/debug.lua +221 -0
- package/payload/tool/luals/meta/template/ffi.lua +122 -0
- package/payload/tool/luals/meta/template/io.lua +170 -0
- package/payload/tool/luals/meta/template/jit.lua +43 -0
- package/payload/tool/luals/meta/template/jit.profile.lua +20 -0
- package/payload/tool/luals/meta/template/jit.util.lua +120 -0
- package/payload/tool/luals/meta/template/math.lua +255 -0
- package/payload/tool/luals/meta/template/os.lua +136 -0
- package/payload/tool/luals/meta/template/package.lua +66 -0
- package/payload/tool/luals/meta/template/string.buffer.lua +354 -0
- package/payload/tool/luals/meta/template/string.lua +161 -0
- package/payload/tool/luals/meta/template/table.clear.lua +9 -0
- package/payload/tool/luals/meta/template/table.lua +114 -0
- package/payload/tool/luals/meta/template/table.new.lua +11 -0
- package/payload/tool/luals/meta/template/utf8.lua +91 -0
- package/payload/tool/luals/meta/whimsical/basic.lua +50 -0
- package/payload/tool/luals/meta/whimsical/builtin.lua +18 -0
- package/payload/tool/luals/meta/whimsical/rule.lua +128 -0
- package/payload/tool/luals/runtime.json +1 -0
- package/payload/tool/luals/script/SDBMHash.lua +60 -0
- package/payload/tool/luals/script/await.lua +267 -0
- package/payload/tool/luals/script/brave/brave.lua +84 -0
- package/payload/tool/luals/script/brave/init.lua +4 -0
- package/payload/tool/luals/script/brave/log.lua +55 -0
- package/payload/tool/luals/script/brave/work.lua +125 -0
- package/payload/tool/luals/script/cli/check.lua +120 -0
- package/payload/tool/luals/script/cli/check_worker.lua +295 -0
- package/payload/tool/luals/script/cli/doc/export.lua +362 -0
- package/payload/tool/luals/script/cli/doc/init.lua +258 -0
- package/payload/tool/luals/script/cli/help.lua +170 -0
- package/payload/tool/luals/script/cli/init.lua +34 -0
- package/payload/tool/luals/script/cli/version.lua +2 -0
- package/payload/tool/luals/script/cli/visualize.lua +106 -0
- package/payload/tool/luals/script/client.lua +668 -0
- package/payload/tool/luals/script/config/config.lua +277 -0
- package/payload/tool/luals/script/config/env.lua +67 -0
- package/payload/tool/luals/script/config/init.lua +3 -0
- package/payload/tool/luals/script/config/loader.lua +131 -0
- package/payload/tool/luals/script/config/template.lua +462 -0
- package/payload/tool/luals/script/core/code-action.lua +749 -0
- package/payload/tool/luals/script/core/code-lens.lua +166 -0
- package/payload/tool/luals/script/core/color.lua +97 -0
- package/payload/tool/luals/script/core/command/autoRequire.lua +164 -0
- package/payload/tool/luals/script/core/command/exportDocument.lua +15 -0
- package/payload/tool/luals/script/core/command/getConfig.lua +13 -0
- package/payload/tool/luals/script/core/command/jsonToLua.lua +54 -0
- package/payload/tool/luals/script/core/command/reloadFFIMeta.lua +56 -0
- package/payload/tool/luals/script/core/command/removeSpace.lua +60 -0
- package/payload/tool/luals/script/core/command/setConfig.lua +11 -0
- package/payload/tool/luals/script/core/command/solve.lua +99 -0
- package/payload/tool/luals/script/core/completion/auto-require.lua +168 -0
- package/payload/tool/luals/script/core/completion/completion.lua +2408 -0
- package/payload/tool/luals/script/core/completion/init.lua +1 -0
- package/payload/tool/luals/script/core/completion/keyword.lua +409 -0
- package/payload/tool/luals/script/core/completion/postfix.lua +413 -0
- package/payload/tool/luals/script/core/definition.lua +238 -0
- package/payload/tool/luals/script/core/diagnostics/ambiguity-1.lua +79 -0
- package/payload/tool/luals/script/core/diagnostics/assign-type-mismatch.lua +121 -0
- package/payload/tool/luals/script/core/diagnostics/await-in-sync.lua +30 -0
- package/payload/tool/luals/script/core/diagnostics/cast-local-type.lua +54 -0
- package/payload/tool/luals/script/core/diagnostics/cast-type-mismatch.lua +46 -0
- package/payload/tool/luals/script/core/diagnostics/circle-doc-class.lua +58 -0
- package/payload/tool/luals/script/core/diagnostics/close-non-object.lua +40 -0
- package/payload/tool/luals/script/core/diagnostics/code-after-break.lua +38 -0
- package/payload/tool/luals/script/core/diagnostics/codestyle-check.lua +41 -0
- package/payload/tool/luals/script/core/diagnostics/count-down-loop.lua +51 -0
- package/payload/tool/luals/script/core/diagnostics/deprecated.lua +82 -0
- package/payload/tool/luals/script/core/diagnostics/different-requires.lua +54 -0
- package/payload/tool/luals/script/core/diagnostics/discard-returns.lua +30 -0
- package/payload/tool/luals/script/core/diagnostics/doc-field-no-class.lua +41 -0
- package/payload/tool/luals/script/core/diagnostics/duplicate-doc-alias.lua +54 -0
- package/payload/tool/luals/script/core/diagnostics/duplicate-doc-field.lua +94 -0
- package/payload/tool/luals/script/core/diagnostics/duplicate-doc-param.lua +37 -0
- package/payload/tool/luals/script/core/diagnostics/duplicate-index.lua +65 -0
- package/payload/tool/luals/script/core/diagnostics/duplicate-set-field.lua +101 -0
- package/payload/tool/luals/script/core/diagnostics/empty-block.lua +54 -0
- package/payload/tool/luals/script/core/diagnostics/global-element.lua +76 -0
- package/payload/tool/luals/script/core/diagnostics/global-in-nil-env.lua +42 -0
- package/payload/tool/luals/script/core/diagnostics/helper/missing-doc-helper.lua +83 -0
- package/payload/tool/luals/script/core/diagnostics/incomplete-signature-doc.lua +109 -0
- package/payload/tool/luals/script/core/diagnostics/init.lua +191 -0
- package/payload/tool/luals/script/core/diagnostics/inject-field.lua +150 -0
- package/payload/tool/luals/script/core/diagnostics/invisible.lua +67 -0
- package/payload/tool/luals/script/core/diagnostics/lowercase-global.lua +85 -0
- package/payload/tool/luals/script/core/diagnostics/missing-fields.lua +118 -0
- package/payload/tool/luals/script/core/diagnostics/missing-global-doc.lua +27 -0
- package/payload/tool/luals/script/core/diagnostics/missing-local-export-doc.lua +52 -0
- package/payload/tool/luals/script/core/diagnostics/missing-parameter.lua +32 -0
- package/payload/tool/luals/script/core/diagnostics/missing-return-value.lua +51 -0
- package/payload/tool/luals/script/core/diagnostics/missing-return.lua +76 -0
- package/payload/tool/luals/script/core/diagnostics/name-style-check.lua +35 -0
- package/payload/tool/luals/script/core/diagnostics/need-check-nil.lua +48 -0
- package/payload/tool/luals/script/core/diagnostics/newfield-call.lua +49 -0
- package/payload/tool/luals/script/core/diagnostics/newline-call.lua +54 -0
- package/payload/tool/luals/script/core/diagnostics/no-unknown.lua +36 -0
- package/payload/tool/luals/script/core/diagnostics/not-yieldable.lua +63 -0
- package/payload/tool/luals/script/core/diagnostics/param-type-mismatch.lua +176 -0
- package/payload/tool/luals/script/core/diagnostics/redefined-local.lua +37 -0
- package/payload/tool/luals/script/core/diagnostics/redundant-parameter.lua +73 -0
- package/payload/tool/luals/script/core/diagnostics/redundant-return-value.lua +58 -0
- package/payload/tool/luals/script/core/diagnostics/redundant-return.lua +27 -0
- package/payload/tool/luals/script/core/diagnostics/redundant-value.lua +26 -0
- package/payload/tool/luals/script/core/diagnostics/return-type-mismatch.lua +94 -0
- package/payload/tool/luals/script/core/diagnostics/spell-check.lua +35 -0
- package/payload/tool/luals/script/core/diagnostics/trailing-space.lua +53 -0
- package/payload/tool/luals/script/core/diagnostics/unbalanced-assignments.lua +49 -0
- package/payload/tool/luals/script/core/diagnostics/undefined-doc-class.lua +48 -0
- package/payload/tool/luals/script/core/diagnostics/undefined-doc-name.lua +134 -0
- package/payload/tool/luals/script/core/diagnostics/undefined-doc-param.lua +24 -0
- package/payload/tool/luals/script/core/diagnostics/undefined-env-child.lua +50 -0
- package/payload/tool/luals/script/core/diagnostics/undefined-field.lua +90 -0
- package/payload/tool/luals/script/core/diagnostics/undefined-global.lua +37 -0
- package/payload/tool/luals/script/core/diagnostics/unknown-cast-variable.lua +31 -0
- package/payload/tool/luals/script/core/diagnostics/unknown-diag-code.lua +31 -0
- package/payload/tool/luals/script/core/diagnostics/unknown-operator.lua +33 -0
- package/payload/tool/luals/script/core/diagnostics/unnecessary-assert.lua +29 -0
- package/payload/tool/luals/script/core/diagnostics/unreachable-code.lua +84 -0
- package/payload/tool/luals/script/core/diagnostics/unused-function.lua +129 -0
- package/payload/tool/luals/script/core/diagnostics/unused-label.lua +22 -0
- package/payload/tool/luals/script/core/diagnostics/unused-local.lua +130 -0
- package/payload/tool/luals/script/core/diagnostics/unused-vararg.lua +39 -0
- package/payload/tool/luals/script/core/document-symbol.lua +411 -0
- package/payload/tool/luals/script/core/find-source.lua +33 -0
- package/payload/tool/luals/script/core/fix-indent.lua +188 -0
- package/payload/tool/luals/script/core/folding.lua +184 -0
- package/payload/tool/luals/script/core/formatting.lua +35 -0
- package/payload/tool/luals/script/core/highlight.lua +368 -0
- package/payload/tool/luals/script/core/hint.lua +340 -0
- package/payload/tool/luals/script/core/hover/args.lua +85 -0
- package/payload/tool/luals/script/core/hover/description.lua +545 -0
- package/payload/tool/luals/script/core/hover/init.lua +165 -0
- package/payload/tool/luals/script/core/hover/label.lua +234 -0
- package/payload/tool/luals/script/core/hover/name.lua +104 -0
- package/payload/tool/luals/script/core/hover/return.lua +84 -0
- package/payload/tool/luals/script/core/hover/table.lua +232 -0
- package/payload/tool/luals/script/core/implementation.lua +170 -0
- package/payload/tool/luals/script/core/jump-source.lua +62 -0
- package/payload/tool/luals/script/core/look-backward.lua +102 -0
- package/payload/tool/luals/script/core/matchkey.lua +85 -0
- package/payload/tool/luals/script/core/modifyRequirePath.lua +74 -0
- package/payload/tool/luals/script/core/rangeformatting.lua +33 -0
- package/payload/tool/luals/script/core/reference.lua +160 -0
- package/payload/tool/luals/script/core/rename.lua +466 -0
- package/payload/tool/luals/script/core/semantic-tokens.lua +951 -0
- package/payload/tool/luals/script/core/signature.lua +227 -0
- package/payload/tool/luals/script/core/substring.lua +13 -0
- package/payload/tool/luals/script/core/type-definition.lua +176 -0
- package/payload/tool/luals/script/core/type-formatting.lua +49 -0
- package/payload/tool/luals/script/core/view/psi-select.lua +13 -0
- package/payload/tool/luals/script/core/view/psi-view.lua +96 -0
- package/payload/tool/luals/script/core/workspace-symbol.lua +161 -0
- package/payload/tool/luals/script/doctor.lua +625 -0
- package/payload/tool/luals/script/encoder/ansi.lua +24 -0
- package/payload/tool/luals/script/encoder/init.lua +123 -0
- package/payload/tool/luals/script/encoder/utf16.lua +157 -0
- package/payload/tool/luals/script/file-uri.lua +118 -0
- package/payload/tool/luals/script/files.lua +999 -0
- package/payload/tool/luals/script/filewatch.lua +129 -0
- package/payload/tool/luals/script/fs-utility.lua +667 -0
- package/payload/tool/luals/script/gc.lua +121 -0
- package/payload/tool/luals/script/glob/gitignore.lua +251 -0
- package/payload/tool/luals/script/glob/glob.lua +125 -0
- package/payload/tool/luals/script/glob/init.lua +4 -0
- package/payload/tool/luals/script/glob/matcher.lua +159 -0
- package/payload/tool/luals/script/global.d.lua +113 -0
- package/payload/tool/luals/script/inspect.lua +337 -0
- package/payload/tool/luals/script/json-beautify.lua +176 -0
- package/payload/tool/luals/script/json-edit.lua +725 -0
- package/payload/tool/luals/script/json.lua +555 -0
- package/payload/tool/luals/script/jsonc.lua +374 -0
- package/payload/tool/luals/script/jsonrpc.lua +73 -0
- package/payload/tool/luals/script/language.lua +144 -0
- package/payload/tool/luals/script/lazy-cacher.lua +171 -0
- package/payload/tool/luals/script/lazytable.lua +351 -0
- package/payload/tool/luals/script/lclient.lua +268 -0
- package/payload/tool/luals/script/library.lua +672 -0
- package/payload/tool/luals/script/linked-table.lua +227 -0
- package/payload/tool/luals/script/locale-loader.lua +28 -0
- package/payload/tool/luals/script/log.lua +165 -0
- package/payload/tool/luals/script/meta/bee/channel.lua +36 -0
- package/payload/tool/luals/script/meta/bee/filesystem.lua +117 -0
- package/payload/tool/luals/script/meta/bee/filewatch.lua +32 -0
- package/payload/tool/luals/script/meta/bee/select.lua +46 -0
- package/payload/tool/luals/script/meta/bee/socket.lua +73 -0
- package/payload/tool/luals/script/meta/bee/sys.lua +19 -0
- package/payload/tool/luals/script/meta/bee/thread.lua +52 -0
- package/payload/tool/luals/script/parser/compile.lua +5164 -0
- package/payload/tool/luals/script/parser/guide.lua +1364 -0
- package/payload/tool/luals/script/parser/init.lua +8 -0
- package/payload/tool/luals/script/parser/lines.lua +25 -0
- package/payload/tool/luals/script/parser/luadoc.lua +2424 -0
- package/payload/tool/luals/script/parser/relabel.lua +360 -0
- package/payload/tool/luals/script/parser/tokens.lua +56 -0
- package/payload/tool/luals/script/plugin.lua +176 -0
- package/payload/tool/luals/script/plugins/astHelper.lua +96 -0
- package/payload/tool/luals/script/plugins/ffi/c-parser/c99.lua +731 -0
- package/payload/tool/luals/script/plugins/ffi/c-parser/cdefines.lua +152 -0
- package/payload/tool/luals/script/plugins/ffi/c-parser/cdriver.lua +54 -0
- package/payload/tool/luals/script/plugins/ffi/c-parser/cpp.lua +870 -0
- package/payload/tool/luals/script/plugins/ffi/c-parser/ctypes.lua +604 -0
- package/payload/tool/luals/script/plugins/ffi/c-parser/typed.lua +172 -0
- package/payload/tool/luals/script/plugins/ffi/c-parser/util.lua +28 -0
- package/payload/tool/luals/script/plugins/ffi/cdefRerence.lua +37 -0
- package/payload/tool/luals/script/plugins/ffi/init.lua +373 -0
- package/payload/tool/luals/script/plugins/ffi/searchCode.lua +69 -0
- package/payload/tool/luals/script/plugins/init.lua +1 -0
- package/payload/tool/luals/script/plugins/nodeHelper.lua +72 -0
- package/payload/tool/luals/script/progress.lua +182 -0
- package/payload/tool/luals/script/proto/converter.lua +235 -0
- package/payload/tool/luals/script/proto/define.lua +197 -0
- package/payload/tool/luals/script/proto/diagnostic.lua +306 -0
- package/payload/tool/luals/script/proto/init.lua +3 -0
- package/payload/tool/luals/script/proto/proto.lua +308 -0
- package/payload/tool/luals/script/provider/build-meta.lua +153 -0
- package/payload/tool/luals/script/provider/capability.lua +84 -0
- package/payload/tool/luals/script/provider/code-lens.lua +29 -0
- package/payload/tool/luals/script/provider/completion.lua +104 -0
- package/payload/tool/luals/script/provider/diagnostic.lua +727 -0
- package/payload/tool/luals/script/provider/formatting.lua +101 -0
- package/payload/tool/luals/script/provider/init.lua +2 -0
- package/payload/tool/luals/script/provider/inlay-hint.lua +29 -0
- package/payload/tool/luals/script/provider/language-configuration.lua +113 -0
- package/payload/tool/luals/script/provider/markdown.lua +163 -0
- package/payload/tool/luals/script/provider/name-style.lua +28 -0
- package/payload/tool/luals/script/provider/provider.lua +1671 -0
- package/payload/tool/luals/script/provider/semantic-tokens.lua +29 -0
- package/payload/tool/luals/script/provider/spell.lua +51 -0
- package/payload/tool/luals/script/pub/init.lua +4 -0
- package/payload/tool/luals/script/pub/pub.lua +290 -0
- package/payload/tool/luals/script/pub/report.lua +28 -0
- package/payload/tool/luals/script/service/init.lua +3 -0
- package/payload/tool/luals/script/service/net.lua +275 -0
- package/payload/tool/luals/script/service/service.lua +290 -0
- package/payload/tool/luals/script/string-merger.lua +148 -0
- package/payload/tool/luals/script/text-merger.lua +115 -0
- package/payload/tool/luals/script/timer.lua +244 -0
- package/payload/tool/luals/script/tracy.lua +32 -0
- package/payload/tool/luals/script/utility.lua +1354 -0
- package/payload/tool/luals/script/version.lua +30 -0
- package/payload/tool/luals/script/vm/compiler.lua +2744 -0
- package/payload/tool/luals/script/vm/def.lua +133 -0
- package/payload/tool/luals/script/vm/doc.lua +526 -0
- package/payload/tool/luals/script/vm/field.lua +59 -0
- package/payload/tool/luals/script/vm/function.lua +533 -0
- package/payload/tool/luals/script/vm/generic.lua +278 -0
- package/payload/tool/luals/script/vm/global.lua +758 -0
- package/payload/tool/luals/script/vm/infer.lua +621 -0
- package/payload/tool/luals/script/vm/init.lua +25 -0
- package/payload/tool/luals/script/vm/library.lua +15 -0
- package/payload/tool/luals/script/vm/node.lua +537 -0
- package/payload/tool/luals/script/vm/operator.lua +530 -0
- package/payload/tool/luals/script/vm/precompile.lua +20 -0
- package/payload/tool/luals/script/vm/ref.lua +328 -0
- package/payload/tool/luals/script/vm/sign.lua +454 -0
- package/payload/tool/luals/script/vm/tracer.lua +947 -0
- package/payload/tool/luals/script/vm/type.lua +930 -0
- package/payload/tool/luals/script/vm/value.lua +258 -0
- package/payload/tool/luals/script/vm/variable.lua +411 -0
- package/payload/tool/luals/script/vm/visible.lua +208 -0
- package/payload/tool/luals/script/vm/vm.lua +119 -0
- package/payload/tool/luals/script/without-check-nil.lua +126 -0
- package/payload/tool/luals/script/workspace/init.lua +3 -0
- package/payload/tool/luals/script/workspace/loading.lua +228 -0
- package/payload/tool/luals/script/workspace/require-path.lua +317 -0
- package/payload/tool/luals/script/workspace/scope.lua +254 -0
- package/payload/tool/luals/script/workspace/workspace.lua +664 -0
- package/release.json +6167 -82
|
@@ -0,0 +1,3541 @@
|
|
|
1
|
+
---@meta
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
---The graphics module renders graphics and performs computation using the GPU.
|
|
5
|
+
---
|
|
6
|
+
---Most of the graphics functions are on the `Pass` object.
|
|
7
|
+
---
|
|
8
|
+
---@class lovr.graphics
|
|
9
|
+
lovr.graphics = {}
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
---Compiles shader code to SPIR-V bytecode.
|
|
13
|
+
---
|
|
14
|
+
---The bytecode can be passed to `lovr.graphics.newShader` to create shaders, which will be faster than creating it from GLSL. The bytecode is portable, so bytecode compiled on one platform will work on other platforms. This allows shaders to be precompiled in a build step.
|
|
15
|
+
---
|
|
16
|
+
---
|
|
17
|
+
---### NOTE:
|
|
18
|
+
---The input can be GLSL or SPIR-V.
|
|
19
|
+
---
|
|
20
|
+
---If it's SPIR-V, it will be returned unchanged as a Blob.
|
|
21
|
+
---
|
|
22
|
+
---If the shader fails to compile, an error will be thrown with the error message.
|
|
23
|
+
---
|
|
24
|
+
---@overload fun(stage: lovr.ShaderStage, blob: lovr.Blob):lovr.Blob
|
|
25
|
+
---@param stage lovr.ShaderStage # The type of shader to compile.
|
|
26
|
+
---@param source string # A string or filename with shader code.
|
|
27
|
+
---@return lovr.Blob bytecode # A Blob containing compiled SPIR-V code.
|
|
28
|
+
function lovr.graphics.compileShader(stage, source) end
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
---Returns the global background color.
|
|
32
|
+
---
|
|
33
|
+
---The textures in a render pass will be cleared to this color at the beginning of the pass if no other clear option is specified.
|
|
34
|
+
---
|
|
35
|
+
---Additionally, the headset and window will be cleared to this color before rendering.
|
|
36
|
+
---
|
|
37
|
+
---
|
|
38
|
+
---### NOTE:
|
|
39
|
+
---Setting the background color in `lovr.draw` will apply on the following frame, since the default pass is cleared before `lovr.draw` is called.
|
|
40
|
+
---
|
|
41
|
+
---Internally, this color is applied to the default pass objects when retrieving one of them using `lovr.headset.getPass` or `lovr.graphics.getPass`.
|
|
42
|
+
---
|
|
43
|
+
---Both are called automatically by the default `lovr.run` implementation.
|
|
44
|
+
---
|
|
45
|
+
---Using the background color to clear the display is expected to be more efficient than manually clearing after a render pass begins, especially on mobile GPUs.
|
|
46
|
+
---
|
|
47
|
+
---@return number r # The red component of the background color.
|
|
48
|
+
---@return number g # The green component of the background color.
|
|
49
|
+
---@return number b # The blue component of the background color.
|
|
50
|
+
---@return number a # The alpha component of the background color.
|
|
51
|
+
function lovr.graphics.getBackgroundColor() end
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
---Creates a temporary Buffer.
|
|
55
|
+
---
|
|
56
|
+
---
|
|
57
|
+
---### NOTE:
|
|
58
|
+
---The format table can contain a list of `FieldType`s or a list of tables to provide extra information about each field.
|
|
59
|
+
---
|
|
60
|
+
---Each inner table has the following keys:
|
|
61
|
+
---
|
|
62
|
+
---- `type` is the `FieldType` of the field and is required.
|
|
63
|
+
---- `offset` is the byte offset of the field.
|
|
64
|
+
---
|
|
65
|
+
---Any fields with a `nil` offset will be placed next
|
|
66
|
+
--- to each other sequentially in memory, subject to any padding required by the Buffer's layout.
|
|
67
|
+
--- In practice this means that an `offset` should be set for either all of the fields or none of
|
|
68
|
+
--- them.
|
|
69
|
+
---- `location` is the vertex attribute location of each field.
|
|
70
|
+
---
|
|
71
|
+
---This is used to match up each
|
|
72
|
+
--- field with an attribute declared in a shader, and doesn't have any purpose when binding the
|
|
73
|
+
--- buffer as a uniform or storage buffer.
|
|
74
|
+
---
|
|
75
|
+
---Any fields with a `nil` location will use an
|
|
76
|
+
--- autoincrementing location starting at zero.
|
|
77
|
+
---
|
|
78
|
+
---Named locations are not currently supported, but
|
|
79
|
+
--- may be added in the future.
|
|
80
|
+
---
|
|
81
|
+
---If no table or Blob is used to define the initial Buffer contents, its data will be undefined.
|
|
82
|
+
---
|
|
83
|
+
---There is currently a max of 16 fields.
|
|
84
|
+
---
|
|
85
|
+
---@overload fun(data: table, type: lovr.FieldType):lovr.Buffer
|
|
86
|
+
---@overload fun(length: number, format: table):lovr.Buffer
|
|
87
|
+
---@overload fun(data: table, format: table):lovr.Buffer
|
|
88
|
+
---@overload fun(blob: lovr.Blob, type: lovr.FieldType):lovr.Buffer
|
|
89
|
+
---@overload fun(blob: lovr.Blob, format: table):lovr.Buffer
|
|
90
|
+
---@param length number # The length of the Buffer.
|
|
91
|
+
---@param type lovr.FieldType # The type of each item in the Buffer.
|
|
92
|
+
---@return lovr.Buffer buffer # The new Buffer.
|
|
93
|
+
function lovr.graphics.getBuffer(length, type) end
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
---Returns the default Font.
|
|
97
|
+
---
|
|
98
|
+
---The default font is Varela Round, created at 32px with a spread value of `4.0`.
|
|
99
|
+
---
|
|
100
|
+
---It's used by `Pass:text` if no Font is provided.
|
|
101
|
+
---
|
|
102
|
+
---@return lovr.Font font # The default Font object.
|
|
103
|
+
function lovr.graphics.getDefaultFont() end
|
|
104
|
+
|
|
105
|
+
---
|
|
106
|
+
---Returns information about the graphics device and driver.
|
|
107
|
+
---
|
|
108
|
+
---
|
|
109
|
+
---### NOTE:
|
|
110
|
+
---The device and vendor ID numbers will usually be PCI IDs, which are standardized numbers consisting of 4 hex digits.
|
|
111
|
+
---
|
|
112
|
+
---Various online databases and system utilities can be used to look up these numbers.
|
|
113
|
+
---
|
|
114
|
+
---Here are some example vendor IDs for a few popular GPU manufacturers:
|
|
115
|
+
---
|
|
116
|
+
---<table>
|
|
117
|
+
--- <thead>
|
|
118
|
+
--- <tr>
|
|
119
|
+
--- <td>ID</td>
|
|
120
|
+
--- <td>Vendor</td>
|
|
121
|
+
--- </tr>
|
|
122
|
+
--- </thead>
|
|
123
|
+
--- <tbody>
|
|
124
|
+
--- <tr>
|
|
125
|
+
--- <td><code>0x1002</code></td>
|
|
126
|
+
--- <td>Advanced Micro Devices, Inc.</td>
|
|
127
|
+
--- </tr>
|
|
128
|
+
--- <tr>
|
|
129
|
+
--- <td><code>0x8086</code></td>
|
|
130
|
+
--- <td>Intel Corporation</td>
|
|
131
|
+
--- </tr>
|
|
132
|
+
--- <tr>
|
|
133
|
+
--- <td><code>0x10de</code></td>
|
|
134
|
+
--- <td>NVIDIA Corporation</td>
|
|
135
|
+
--- </tr>
|
|
136
|
+
--- </tbody> </table>
|
|
137
|
+
---
|
|
138
|
+
---It is not currently possible to get the version of the driver, although this could be added.
|
|
139
|
+
---
|
|
140
|
+
---Regarding multiple GPUs: If OpenXR is enabled, the OpenXR runtime has control over which GPU is used, which ensures best compatibility with the VR headset.
|
|
141
|
+
---
|
|
142
|
+
---Otherwise, the "first" GPU returned by the renderer will be used.
|
|
143
|
+
---
|
|
144
|
+
---There is currently no other way to pick a GPU to use.
|
|
145
|
+
---
|
|
146
|
+
---@return {id: number, vendor: number, name: string, renderer: string, subgroupSize: number, discrete: boolean} device # nil
|
|
147
|
+
function lovr.graphics.getDevice() end
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
---Returns a table indicating which features are supported by the GPU.
|
|
151
|
+
---
|
|
152
|
+
---@return {textureBC: boolean, textureASTC: boolean, wireframe: boolean, depthClamp: boolean, indirectDrawFirstInstance: boolean, float64: boolean, int64: boolean, int16: boolean} features #
|
|
153
|
+
function lovr.graphics.getFeatures() end
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
---Returns limits of the current GPU.
|
|
157
|
+
---
|
|
158
|
+
---
|
|
159
|
+
---### NOTE:
|
|
160
|
+
---The limit ranges are as follows:
|
|
161
|
+
---
|
|
162
|
+
---<table>
|
|
163
|
+
--- <thead>
|
|
164
|
+
--- <tr>
|
|
165
|
+
--- <td>Limit</td>
|
|
166
|
+
--- <td>Minimum</td>
|
|
167
|
+
--- <td>Maximum</td>
|
|
168
|
+
--- </tr>
|
|
169
|
+
--- </thead>
|
|
170
|
+
--- <tbody>
|
|
171
|
+
--- <tr>
|
|
172
|
+
--- <td><code>textureSize2D</code></td>
|
|
173
|
+
--- <td>4096</td>
|
|
174
|
+
--- <td></td>
|
|
175
|
+
--- </tr>
|
|
176
|
+
--- <tr>
|
|
177
|
+
--- <td><code>textureSize3D</code></td>
|
|
178
|
+
--- <td>256</td>
|
|
179
|
+
--- <td></td>
|
|
180
|
+
--- </tr>
|
|
181
|
+
--- <tr>
|
|
182
|
+
--- <td><code>textureSizeCube</code></td>
|
|
183
|
+
--- <td>4096</td>
|
|
184
|
+
--- <td></td>
|
|
185
|
+
--- </tr>
|
|
186
|
+
--- <tr>
|
|
187
|
+
--- <td><code>textureLayers</code></td>
|
|
188
|
+
--- <td>256</td>
|
|
189
|
+
--- <td></td>
|
|
190
|
+
--- </tr>
|
|
191
|
+
--- <tr>
|
|
192
|
+
--- <td><code>renderSize</code></td>
|
|
193
|
+
--- <td>{ 4096, 4096, 6 }</td>
|
|
194
|
+
--- <td></td>
|
|
195
|
+
--- </tr>
|
|
196
|
+
--- <tr>
|
|
197
|
+
--- <td><code>uniformBuffersPerStage</code></td>
|
|
198
|
+
--- <td>9</td>
|
|
199
|
+
--- <td>32*</td>
|
|
200
|
+
--- </tr>
|
|
201
|
+
--- <tr>
|
|
202
|
+
--- <td><code>storageBuffersPerStage</code></td>
|
|
203
|
+
--- <td>4</td>
|
|
204
|
+
--- <td>32*</td>
|
|
205
|
+
--- </tr>
|
|
206
|
+
--- <tr>
|
|
207
|
+
--- <td><code>sampledTexturesPerStage</code></td>
|
|
208
|
+
--- <td>32</td>
|
|
209
|
+
--- <td>32*</td>
|
|
210
|
+
--- </tr>
|
|
211
|
+
--- <tr>
|
|
212
|
+
--- <td><code>storageTexturesPerStage</code></td>
|
|
213
|
+
--- <td>4</td>
|
|
214
|
+
--- <td>32*</td>
|
|
215
|
+
--- </tr>
|
|
216
|
+
--- <tr>
|
|
217
|
+
--- <td><code>samplersPerStage</code></td>
|
|
218
|
+
--- <td>15</td>
|
|
219
|
+
--- <td>32*</td>
|
|
220
|
+
--- </tr>
|
|
221
|
+
--- <tr>
|
|
222
|
+
--- <td><code>resourcesPerShader</code></td>
|
|
223
|
+
--- <td>32</td>
|
|
224
|
+
--- <td>32*</td>
|
|
225
|
+
--- </tr>
|
|
226
|
+
--- <tr>
|
|
227
|
+
--- <td><code>uniformBufferRange</code></td>
|
|
228
|
+
--- <td>65536</td>
|
|
229
|
+
--- <td></td>
|
|
230
|
+
--- </tr>
|
|
231
|
+
--- <tr>
|
|
232
|
+
--- <td><code>storageBufferRange</code></td>
|
|
233
|
+
--- <td>134217728 (128MB)</td>
|
|
234
|
+
--- <td>1073741824 (1GB)*</td>
|
|
235
|
+
--- </tr>
|
|
236
|
+
--- <tr>
|
|
237
|
+
--- <td><code>uniformBufferAlign</code></td>
|
|
238
|
+
--- <td></td>
|
|
239
|
+
--- <td>256</td>
|
|
240
|
+
--- </tr>
|
|
241
|
+
--- <tr>
|
|
242
|
+
--- <td><code>storageBufferAlign</code></td>
|
|
243
|
+
--- <td></td>
|
|
244
|
+
--- <td>64</td>
|
|
245
|
+
--- </tr>
|
|
246
|
+
--- <tr>
|
|
247
|
+
--- <td><code>vertexAttributes</code></td>
|
|
248
|
+
--- <td>16</td>
|
|
249
|
+
--- <td>16*</td>
|
|
250
|
+
--- </tr>
|
|
251
|
+
--- <tr>
|
|
252
|
+
--- <td><code>vertexBufferStride</code></td>
|
|
253
|
+
--- <td>2048</td>
|
|
254
|
+
--- <td>65535*</td>
|
|
255
|
+
--- </tr>
|
|
256
|
+
--- <tr>
|
|
257
|
+
--- <td><code>vertexShaderOutputs</code></td>
|
|
258
|
+
--- <td>64</td>
|
|
259
|
+
--- <td></td>
|
|
260
|
+
--- </tr>
|
|
261
|
+
--- <tr>
|
|
262
|
+
--- <td><code>clipDistances</code></td>
|
|
263
|
+
--- <td>0</td>
|
|
264
|
+
--- <td></td>
|
|
265
|
+
--- </tr>
|
|
266
|
+
--- <tr>
|
|
267
|
+
--- <td><code>cullDistances</code></td>
|
|
268
|
+
--- <td>0</td>
|
|
269
|
+
--- <td></td>
|
|
270
|
+
--- </tr>
|
|
271
|
+
--- <tr>
|
|
272
|
+
--- <td><code>clipAndCullDistances</code></td>
|
|
273
|
+
--- <td>0</td>
|
|
274
|
+
--- <td></td>
|
|
275
|
+
--- </tr>
|
|
276
|
+
--- <tr>
|
|
277
|
+
--- <td><code>computeDispatchCount</code></td>
|
|
278
|
+
--- <td>{ 65536, 65536, 65536 }</td>
|
|
279
|
+
--- <td></td>
|
|
280
|
+
--- </tr>
|
|
281
|
+
--- <tr>
|
|
282
|
+
--- <td><code>computeWorkgroupSize</code></td>
|
|
283
|
+
--- <td>{ 128, 128, 64 }</td>
|
|
284
|
+
--- <td></td>
|
|
285
|
+
--- </tr>
|
|
286
|
+
--- <tr>
|
|
287
|
+
--- <td><code>computeWorkgroupVolume</code></td>
|
|
288
|
+
--- <td>128</td>
|
|
289
|
+
--- <td></td>
|
|
290
|
+
--- </tr>
|
|
291
|
+
--- <tr>
|
|
292
|
+
--- <td><code>computeSharedMemory</code></td>
|
|
293
|
+
--- <td>16384 (16KB)</td>
|
|
294
|
+
--- <td></td>
|
|
295
|
+
--- </tr>
|
|
296
|
+
--- <tr>
|
|
297
|
+
--- <td><code>pushConstantSize</code></td>
|
|
298
|
+
--- <td>128</td>
|
|
299
|
+
--- <td>256*</td>
|
|
300
|
+
--- </tr>
|
|
301
|
+
--- <tr>
|
|
302
|
+
--- <td><code>indirectDrawCount</code></td>
|
|
303
|
+
--- <td>1</td>
|
|
304
|
+
--- <td></td>
|
|
305
|
+
--- </tr>
|
|
306
|
+
--- <tr>
|
|
307
|
+
--- <td><code>instances</code></td>
|
|
308
|
+
--- <td>134217727</td>
|
|
309
|
+
--- <td></td>
|
|
310
|
+
--- </tr>
|
|
311
|
+
--- <tr>
|
|
312
|
+
--- <td><code>anisotropy</code></td>
|
|
313
|
+
--- <td>0.0</td>
|
|
314
|
+
--- <td></td>
|
|
315
|
+
--- </tr>
|
|
316
|
+
--- <tr>
|
|
317
|
+
--- <td><code>pointSize</code></td>
|
|
318
|
+
--- <td>1.0</td>
|
|
319
|
+
--- <td></td>
|
|
320
|
+
--- </tr>
|
|
321
|
+
--- </tbody> </table>
|
|
322
|
+
---
|
|
323
|
+
---Note: in the table above, `*` means that LÖVR itself is imposing a cap on the limit, instead of the GPU.
|
|
324
|
+
---
|
|
325
|
+
---@return {textureSize2D: number, textureSize3D: number, textureSizeCube: number, textureLayers: number, renderSize: table, uniformBuffersPerStage: number, storageBuffersPerStage: number, sampledTexturesPerStage: number, storageTexturesPerStage: number, samplersPerStage: number, resourcesPerShader: number, uniformBufferRange: number, storageBufferRange: number, uniformBufferAlign: number, storageBufferAlign: number, vertexAttributes: number, vertexBufferStride: number, vertexShaderOutputs: number, clipDistances: number, cullDistances: number, clipAndCullDistances: number, workgroupCount: table, workgroupSize: table, totalWorkgroupSize: number, computeSharedMemory: number, shaderConstantSize: number, indirectDrawCount: number, instances: number, anisotropy: number, pointSize: number} limits #
|
|
326
|
+
function lovr.graphics.getLimits() end
|
|
327
|
+
|
|
328
|
+
---
|
|
329
|
+
---Creates and returns a temporary Pass object.
|
|
330
|
+
---
|
|
331
|
+
---
|
|
332
|
+
---### NOTE:
|
|
333
|
+
---Fun facts about render passes:
|
|
334
|
+
---
|
|
335
|
+
---- Textures must have the same dimensions, layer counts, and sample counts.
|
|
336
|
+
---- Textures must have been created with the `render` `TextureUsage`.
|
|
337
|
+
---- If `mipmap` is true, then any textures with mipmaps must have the `transfer` `TextureUsage`.
|
|
338
|
+
---- It's okay to have zero color textures, but in this case there must be a depth texture.
|
|
339
|
+
---- Setting `clear` to `false` for textures is usually very slow on mobile GPUs.
|
|
340
|
+
---
|
|
341
|
+
---For `compute` and `transfer` passes, all of the commands in the pass act as though they run in parallel.
|
|
342
|
+
---
|
|
343
|
+
---This means that writing to the same element of a buffer twice, or writing to it and reading from it again is not guaranteed to work properly on all GPUs.
|
|
344
|
+
---
|
|
345
|
+
---LÖVR is not currently able to check for this.
|
|
346
|
+
---
|
|
347
|
+
---If compute or transfers need to be sequenced, multiple passes should be used.
|
|
348
|
+
---
|
|
349
|
+
---It is, however, completely fine to read and write to non-overlapping regions of the same buffer or texture.
|
|
350
|
+
---
|
|
351
|
+
---@overload fun(type: lovr.PassType, texture: lovr.Texture):lovr.Pass
|
|
352
|
+
---@overload fun(type: lovr.PassType, canvas: table):lovr.Pass
|
|
353
|
+
---@param type lovr.PassType # The type of pass to create.
|
|
354
|
+
---@return lovr.Pass pass # The new Pass.
|
|
355
|
+
function lovr.graphics.getPass(type) end
|
|
356
|
+
|
|
357
|
+
---
|
|
358
|
+
---Returns the window pass.
|
|
359
|
+
---
|
|
360
|
+
---This is a builtin render `Pass` object that renders to the desktop window texture.
|
|
361
|
+
---
|
|
362
|
+
---If the desktop window was not open when the graphics module was initialized, this function will return `nil`.
|
|
363
|
+
---
|
|
364
|
+
---
|
|
365
|
+
---### NOTE:
|
|
366
|
+
---`lovr.conf` may be used to change the settings for the pass: `t.graphics.antialias` enables antialiasing, and `t.graphics.stencil` enables the stencil buffer.
|
|
367
|
+
---
|
|
368
|
+
---This pass clears the window texture to the background color, which can be changed using `lovr.graphics.setBackgroundColor`.
|
|
369
|
+
---
|
|
370
|
+
---@return lovr.Pass pass # The window pass, or `nil` if there is no window.
|
|
371
|
+
function lovr.graphics.getWindowPass() end
|
|
372
|
+
|
|
373
|
+
---
|
|
374
|
+
---Returns the type of operations the GPU supports for a texture format, if any.
|
|
375
|
+
---
|
|
376
|
+
---@param format lovr.TextureFormat # The texture format to query.
|
|
377
|
+
---@param features lovr.TextureFeature # Zero or more features to check. If no features are given, this function will return whether the GPU supports *any* feature for this format. Otherwise, this function will only return true if *all* of the input features are supported.
|
|
378
|
+
---@return boolean supported # Whether the GPU supports these operations for textures with this format.
|
|
379
|
+
function lovr.graphics.isFormatSupported(format, features) end
|
|
380
|
+
|
|
381
|
+
---
|
|
382
|
+
---Creates a Buffer.
|
|
383
|
+
---
|
|
384
|
+
---
|
|
385
|
+
---### NOTE:
|
|
386
|
+
---The format table can contain a list of `FieldType`s or a list of tables to provide extra information about each field.
|
|
387
|
+
---
|
|
388
|
+
---Each inner table has the following keys:
|
|
389
|
+
---
|
|
390
|
+
---- `type` is the `FieldType` of the field and is required.
|
|
391
|
+
---- `offset` is the byte offset of the field.
|
|
392
|
+
---
|
|
393
|
+
---Any fields with a `nil` offset will be placed next
|
|
394
|
+
--- to each other sequentially in memory, subject to any padding required by the Buffer's layout.
|
|
395
|
+
--- In practice this means that you probably want to provide an `offset` for either all of the
|
|
396
|
+
--- fields or none of them.
|
|
397
|
+
---- `location` is the vertex attribute location of each field.
|
|
398
|
+
---
|
|
399
|
+
---This is used to match up each
|
|
400
|
+
--- field with an attribute declared in a shader, and doesn't have any purpose when binding the
|
|
401
|
+
--- buffer as a uniform or storage buffer.
|
|
402
|
+
---
|
|
403
|
+
---Any fields with a `nil` location will use an
|
|
404
|
+
--- autoincrementing location starting at zero.
|
|
405
|
+
---
|
|
406
|
+
---Named locations are not currently supported, but
|
|
407
|
+
--- may be added in the future.
|
|
408
|
+
---
|
|
409
|
+
---If no table or Blob is used to define the initial Buffer contents, its data will be undefined.
|
|
410
|
+
---
|
|
411
|
+
---There is currently a max of 16 fields.
|
|
412
|
+
---
|
|
413
|
+
---@overload fun(data: table, type: lovr.FieldType):lovr.Buffer
|
|
414
|
+
---@overload fun(length: number, format: table):lovr.Buffer
|
|
415
|
+
---@overload fun(data: table, format: table):lovr.Buffer
|
|
416
|
+
---@overload fun(blob: lovr.Blob, type: lovr.FieldType):lovr.Buffer
|
|
417
|
+
---@overload fun(blob: lovr.Blob, format: table):lovr.Buffer
|
|
418
|
+
---@param length number # The length of the Buffer.
|
|
419
|
+
---@param type lovr.FieldType # The type of each item in the Buffer.
|
|
420
|
+
---@return lovr.Buffer buffer # The new Buffer.
|
|
421
|
+
function lovr.graphics.newBuffer(length, type) end
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
---Creates a new Font.
|
|
425
|
+
---
|
|
426
|
+
---@overload fun(blob: lovr.Blob, size?: number, spread?: number):lovr.Font
|
|
427
|
+
---@overload fun(size?: number, spread?: number):lovr.Font
|
|
428
|
+
---@overload fun(rasterizer: lovr.Rasterizer, spread?: number):lovr.Font
|
|
429
|
+
---@param filename string # A path to a TTF file.
|
|
430
|
+
---@param size? number # The size of the Font in pixels. Larger sizes are slower to initialize and use more memory, but have better quality.
|
|
431
|
+
---@param spread? number # For signed distance field fonts (currently all fonts), the width of the SDF, in pixels. The greater the distance the font is viewed from, the larger this value needs to be for the font to remain properly antialiased. Increasing this will have a performance penalty similar to increasing the size of the font.
|
|
432
|
+
---@return lovr.Font font # The new Font.
|
|
433
|
+
function lovr.graphics.newFont(filename, size, spread) end
|
|
434
|
+
|
|
435
|
+
---
|
|
436
|
+
---Creates a new Material from a table of properties and textures.
|
|
437
|
+
---
|
|
438
|
+
---All fields are optional.
|
|
439
|
+
---
|
|
440
|
+
---Once a Material is created, its properties can not be changed.
|
|
441
|
+
---
|
|
442
|
+
---Instead, a new Material should be created with the updated properties.
|
|
443
|
+
---
|
|
444
|
+
---
|
|
445
|
+
---### NOTE:
|
|
446
|
+
---The non-texture material properties can be accessed in shaders using `Material.<property>`, where the property is the same as the Lua table key.
|
|
447
|
+
---
|
|
448
|
+
---The textures use capitalized names in shader code, e.g. `ColorTexture`.
|
|
449
|
+
---
|
|
450
|
+
---@param properties {color: lovr.Vec4, glow: lovr.Vec4, uvShift: lovr.Vec2, uvScale: lovr.Vec2, metalness: number, roughness: number, clearcoat: number, clearcoatRoughness: number, occlusionStrength: number, normalScale: number, alphaCutoff: number, texture: lovr.Texture, glowTexture: lovr.Texture, metalnessTexture: lovr.Texture, roughnessTexture: lovr.Texture, clearcoatTexture: lovr.Texture, occlusionTexture: lovr.Texture, normalTexture: lovr.Texture} # Material properties.
|
|
451
|
+
---@return lovr.Material material # The new material.
|
|
452
|
+
function lovr.graphics.newMaterial(properties) end
|
|
453
|
+
|
|
454
|
+
---
|
|
455
|
+
---Loads a 3D model from a file.
|
|
456
|
+
---
|
|
457
|
+
---Currently, OBJ, glTF, and binary STL files are supported.
|
|
458
|
+
---
|
|
459
|
+
---
|
|
460
|
+
---### NOTE:
|
|
461
|
+
---Currently, the following features are not supported by the model importer:
|
|
462
|
+
---
|
|
463
|
+
---- glTF: Morph targets are not supported.
|
|
464
|
+
---- glTF: Only the default scene is loaded.
|
|
465
|
+
---- glTF: Currently, each skin in a Model can have up to 256 joints.
|
|
466
|
+
---- glTF: Meshes can't appear multiple times in the node hierarchy with different skins, they need
|
|
467
|
+
--- to use 1 skin consistently.
|
|
468
|
+
---- glTF: `KHR_texture_transform` is supported, but all textures in a material will use the same
|
|
469
|
+
--- transform.
|
|
470
|
+
---- STL: ASCII STL files are not supported.
|
|
471
|
+
---
|
|
472
|
+
---Diffuse and emissive textures will be loaded using sRGB encoding, all other textures will be loaded as linear.
|
|
473
|
+
---
|
|
474
|
+
---@overload fun(blob: lovr.Blob, options?: table):lovr.Model
|
|
475
|
+
---@overload fun(modelData: lovr.ModelData, options?: table):lovr.Model
|
|
476
|
+
---@param filename string # The path to model file.
|
|
477
|
+
---@param options? {mipmaps: boolean} # Model options.
|
|
478
|
+
---@return lovr.Model model # The new Model.
|
|
479
|
+
function lovr.graphics.newModel(filename, options) end
|
|
480
|
+
|
|
481
|
+
---
|
|
482
|
+
---Creates a new Sampler.
|
|
483
|
+
---
|
|
484
|
+
---Samplers are immutable, meaning their parameters can not be changed after the sampler is created.
|
|
485
|
+
---
|
|
486
|
+
---Instead, a new sampler should be created with the updated properties.
|
|
487
|
+
---
|
|
488
|
+
---@param parameters {filter: {["[1]"]: lovr.FilterMode, ["[2]"]: lovr.FilterMode, ["[3]"]: lovr.FilterMode}, wrap: {["[1]"]: lovr.WrapMode, ["[2]"]: lovr.WrapMode, ["[3]"]: lovr.FilterMode}, compare: lovr.CompareMode, anisotropy: number, mipmaprange: table} # Parameters for the sampler.
|
|
489
|
+
---@return lovr.Sampler sampler # The new sampler.
|
|
490
|
+
function lovr.graphics.newSampler(parameters) end
|
|
491
|
+
|
|
492
|
+
---
|
|
493
|
+
---Creates a Shader, which is a small program that runs on the GPU.
|
|
494
|
+
---
|
|
495
|
+
---Shader code is usually written in GLSL and compiled to SPIR-V bytecode.
|
|
496
|
+
---
|
|
497
|
+
---SPIR-V is faster to load but requires a build step.
|
|
498
|
+
---
|
|
499
|
+
---Either form can be used to create a shader.
|
|
500
|
+
---
|
|
501
|
+
---@overload fun(compute: string, options: table):lovr.Shader
|
|
502
|
+
---@overload fun(default: lovr.DefaultShader, options: table):lovr.Shader
|
|
503
|
+
---@param vertex string # A string, path to a file, or Blob containing GLSL or SPIR-V code for the vertex stage. Can also be a `DefaultShader` to use that shader's vertex code.
|
|
504
|
+
---@param fragment string # A string, path to a file, or Blob containing GLSL or SPIR-V code for the fragment stage. Can also be a `DefaultShader` to use that shader's fragment code.
|
|
505
|
+
---@param options {flags: table, label: string} # Shader options.
|
|
506
|
+
---@return lovr.Shader shader # The new shader.
|
|
507
|
+
function lovr.graphics.newShader(vertex, fragment, options) end
|
|
508
|
+
|
|
509
|
+
---
|
|
510
|
+
---Creates a new Tally.
|
|
511
|
+
---
|
|
512
|
+
---@param type lovr.TallyType # The type of the Tally, which controls what "thing" it measures.
|
|
513
|
+
---@param count number # The number of slots in the Tally. Each slot holds one measurement.
|
|
514
|
+
---@param views? number # Tally objects with the `time` type can only be used in render passes with a certain number of views. This is ignored for other types of tallies.
|
|
515
|
+
---@return lovr.Tally tally # The new Tally.
|
|
516
|
+
function lovr.graphics.newTally(type, count, views) end
|
|
517
|
+
|
|
518
|
+
---
|
|
519
|
+
---Creates a new Texture.
|
|
520
|
+
---
|
|
521
|
+
---Image filenames or `Image` objects can be used to provide the initial pixel data and the dimensions, format, and type.
|
|
522
|
+
---
|
|
523
|
+
---Alternatively, dimensions can be provided, which will create an empty texture.
|
|
524
|
+
---
|
|
525
|
+
---
|
|
526
|
+
---### NOTE:
|
|
527
|
+
---If no `type` is provided in the options table, LÖVR will guess the `TextureType` of the Texture based on the number of layers:
|
|
528
|
+
---
|
|
529
|
+
---- If there's 1 layer, the type will be `2d`.
|
|
530
|
+
---- If there are 6 layers, the type will be `cube`.
|
|
531
|
+
---- Otherwise, the type will be `array`.
|
|
532
|
+
---
|
|
533
|
+
---Note that an Image can contain multiple layers and mipmaps.
|
|
534
|
+
---
|
|
535
|
+
---When a single Image is provided, its layer count will be used as the Texture's layer count.
|
|
536
|
+
---
|
|
537
|
+
---If multiple Images are used to initialize the Texture, they must all have a single layer, and their dimensions, format, and mipmap counts must match.
|
|
538
|
+
---
|
|
539
|
+
---When providing cubemap images in a table, they can be in one of the following forms:
|
|
540
|
+
---
|
|
541
|
+
--- { 'px.png', 'nx.png', 'py.png', 'ny.png', 'pz.png', 'nz.png' }
|
|
542
|
+
--- { right = 'px.png', left = 'nx.png', top = 'py.png', bottom = 'ny.png', back = 'pz.png', front = 'nz.png' }
|
|
543
|
+
--- { px = 'px.png', nx = 'nx.png', py = 'py.png', ny = 'ny.png', pz = 'pz.png', nz = 'nz.png' }
|
|
544
|
+
---
|
|
545
|
+
---(Where 'p' stands for positive and 'n' stands for negative).
|
|
546
|
+
---
|
|
547
|
+
---If no `usage` is provided in the options table, LÖVR will guess the `TextureUsage` of the Texture.
|
|
548
|
+
---
|
|
549
|
+
---The `sample` usage is always included, but if the texture was created without any images then the texture will have the `render` usage as well.
|
|
550
|
+
---
|
|
551
|
+
---The supported image formats are png, jpg, hdr, dds, ktx1, ktx2, and astc.
|
|
552
|
+
---
|
|
553
|
+
---If image data is provided, mipmaps will be generated for any missing mipmap levels.
|
|
554
|
+
---
|
|
555
|
+
---@overload fun(width: number, height: number, options: table):lovr.Texture
|
|
556
|
+
---@overload fun(width: number, height: number, layers: number, options: table):lovr.Texture
|
|
557
|
+
---@overload fun(image: string, options: table):lovr.Texture
|
|
558
|
+
---@overload fun(images: table, options: table):lovr.Texture
|
|
559
|
+
---@overload fun(blob: lovr.Blob, options: table):lovr.Texture
|
|
560
|
+
---@param filename string # The filename of an image to load.
|
|
561
|
+
---@param options {type: lovr.TextureType, format: lovr.TextureFormat, linear: boolean, samples: number, mipmaps: any, usage: table, label: string} # Texture options.
|
|
562
|
+
---@return lovr.Texture texture # The new Texture.
|
|
563
|
+
function lovr.graphics.newTexture(filename, options) end
|
|
564
|
+
|
|
565
|
+
---
|
|
566
|
+
---Presents the window texture to the desktop window.
|
|
567
|
+
---
|
|
568
|
+
---This function is called automatically by the default implementation of `lovr.run`, so it normally does not need to be called.
|
|
569
|
+
---
|
|
570
|
+
---
|
|
571
|
+
---### NOTE:
|
|
572
|
+
---This should be called after submitting the window pass (`lovr.graphics.getWindowPass`).
|
|
573
|
+
---
|
|
574
|
+
---If the window texture has not been rendered to since the last present, this function does nothing.
|
|
575
|
+
---
|
|
576
|
+
function lovr.graphics.present() end
|
|
577
|
+
|
|
578
|
+
---
|
|
579
|
+
---Changes the global background color.
|
|
580
|
+
---
|
|
581
|
+
---The textures in a render pass will be cleared to this color at the beginning of the pass if no other clear option is specified.
|
|
582
|
+
---
|
|
583
|
+
---Additionally, the headset and window will be cleared to this color before rendering.
|
|
584
|
+
---
|
|
585
|
+
---
|
|
586
|
+
---### NOTE:
|
|
587
|
+
---Setting the background color in `lovr.draw` will apply on the following frame, since the default pass is cleared before `lovr.draw` is called.
|
|
588
|
+
---
|
|
589
|
+
---Internally, this color is applied to the default pass objects when retrieving one of them using `lovr.headset.getPass` or `lovr.graphics.getPass`.
|
|
590
|
+
---
|
|
591
|
+
---Both are called automatically by the default `lovr.run` implementation.
|
|
592
|
+
---
|
|
593
|
+
---Using the background color to clear the display is expected to be more efficient than manually clearing after a render pass begins, especially on mobile GPUs.
|
|
594
|
+
---
|
|
595
|
+
---@overload fun(hex: number, a?: number)
|
|
596
|
+
---@overload fun(table: table)
|
|
597
|
+
---@param r number # The red component of the background color.
|
|
598
|
+
---@param g number # The green component of the background color.
|
|
599
|
+
---@param b number # The blue component of the background color.
|
|
600
|
+
---@param a? number # The alpha component of the background color.
|
|
601
|
+
function lovr.graphics.setBackgroundColor(r, g, b, a) end
|
|
602
|
+
|
|
603
|
+
---
|
|
604
|
+
---Submits work to the GPU.
|
|
605
|
+
---
|
|
606
|
+
---
|
|
607
|
+
---### NOTE:
|
|
608
|
+
---The submitted `Pass` objects will run in the order specified.
|
|
609
|
+
---
|
|
610
|
+
---Commands within a single Pass do not have any ordering guarantees.
|
|
611
|
+
---
|
|
612
|
+
---Submitting work to the GPU is not thread safe.
|
|
613
|
+
---
|
|
614
|
+
---No other `lovr.graphics` or `Pass` functions may run at the same time as `lovr.graphics.submit`.
|
|
615
|
+
---
|
|
616
|
+
---Calling this function will invalidate any temporary buffers or passes that were created during the frame.
|
|
617
|
+
---
|
|
618
|
+
---Submitting work to the GPU is a relatively expensive operation.
|
|
619
|
+
---
|
|
620
|
+
---It's a good idea to batch all `Pass` objects into 1 submission if possible, unless there's a good reason not to.
|
|
621
|
+
---
|
|
622
|
+
---One such reason would be that the frame has so much work that some of it needs to be submitted early to prevent the GPU from running out of things to do.
|
|
623
|
+
---
|
|
624
|
+
---Another would be for `Readback` objects.
|
|
625
|
+
---
|
|
626
|
+
---By default, this function is called with the default pass at the end of `lovr.draw` and `lovr.mirror`.
|
|
627
|
+
---
|
|
628
|
+
---It is valid to submit zero passes.
|
|
629
|
+
---
|
|
630
|
+
---This will send an empty batch of work to the GPU.
|
|
631
|
+
---
|
|
632
|
+
---@overload fun(t: table):boolean
|
|
633
|
+
---@vararg lovr.Pass # The pass objects to submit. Falsy values will be skipped.
|
|
634
|
+
---@return boolean true # Always returns true, for convenience when returning from `lovr.draw`.
|
|
635
|
+
function lovr.graphics.submit(...) end
|
|
636
|
+
|
|
637
|
+
---
|
|
638
|
+
---Waits for all submitted GPU work to finish.
|
|
639
|
+
---
|
|
640
|
+
---A normal application that is trying to render graphics at a high framerate should never use this function, since waiting like this prevents the CPU from doing other useful work.
|
|
641
|
+
---
|
|
642
|
+
---Otherwise, reasons to use this function might be for debugging or to force a `Readback` to finish immediately.
|
|
643
|
+
---
|
|
644
|
+
function lovr.graphics.wait() end
|
|
645
|
+
|
|
646
|
+
---
|
|
647
|
+
---A Buffer is a block of GPU memory.
|
|
648
|
+
---
|
|
649
|
+
---Buffers are similar to Lua tables or arrays: they have a length and store a list of values.
|
|
650
|
+
---
|
|
651
|
+
---The length of a Buffer and its format (the type of each value) are declared upfront and can't be changed.
|
|
652
|
+
---
|
|
653
|
+
---Each value of a Buffer consists of one or more fields, and each field has a type.
|
|
654
|
+
---
|
|
655
|
+
---For example, if a Buffer is used to store vertices, each value might store 3 fields for the position, normal vector, and UV coordinates of a vertex.
|
|
656
|
+
---
|
|
657
|
+
---Buffers are commonly used for:
|
|
658
|
+
---
|
|
659
|
+
---- Mesh data: Buffers hold the data that define the vertices in a mesh. Buffers also store the
|
|
660
|
+
--- vertex indices of a mesh, which define the order the vertices are connected together into
|
|
661
|
+
--- triangles. These are often called vertex buffers and index buffers.
|
|
662
|
+
---- Shader data: Buffers can be bound to a Shader, letting the Shader read arbitrary data. For
|
|
663
|
+
--- example, Lua code could create a Buffer with the positions and colors of all the lights in a
|
|
664
|
+
--- scene, which a Shader can use to do lighting calculations.
|
|
665
|
+
---- Compute: Compute shaders can write data to Buffers.
|
|
666
|
+
---
|
|
667
|
+
---This GPU-generated data can be used in
|
|
668
|
+
--- later rendering work or sent back to Lua.
|
|
669
|
+
---- Indirect: Indirect rendering is an advanced technique where instructions for rendering work
|
|
670
|
+
--- are recorded to a Buffer (potentially by a compute shader) and later drawn.
|
|
671
|
+
---
|
|
672
|
+
---There are two types of Buffers:
|
|
673
|
+
---
|
|
674
|
+
---- **Temporary** buffers are very inexpensive to create, and writing to them from Lua is fast.
|
|
675
|
+
--- However, they become invalid at the end of `lovr.draw` (i.e. when `lovr.graphics.submit` is
|
|
676
|
+
--- called).
|
|
677
|
+
---
|
|
678
|
+
---The GPU is slightly slower at accessing data from temporary buffers, and compute
|
|
679
|
+
--- shaders can not write to them.
|
|
680
|
+
---
|
|
681
|
+
---They are designed for storing data that changes every frame.
|
|
682
|
+
---- **Permanent** buffers are more expensive to create, and updating their contents requires a
|
|
683
|
+
--- transfer from CPU memory to VRAM.
|
|
684
|
+
---
|
|
685
|
+
---They act like normal LÖVR objects and don't need to be
|
|
686
|
+
--- recreated every frame.
|
|
687
|
+
---
|
|
688
|
+
---They often have faster performance when used by the GPU, and compute
|
|
689
|
+
--- shaders can write to them.
|
|
690
|
+
---
|
|
691
|
+
---They are great for large pieces of data that are initialized once
|
|
692
|
+
--- at load time, or data that is updated infrequently.
|
|
693
|
+
---
|
|
694
|
+
---@class lovr.Buffer
|
|
695
|
+
local Buffer = {}
|
|
696
|
+
|
|
697
|
+
---
|
|
698
|
+
---Clears some or all of the data in the **temporary** Buffer to zero.
|
|
699
|
+
---
|
|
700
|
+
---Permanent Buffers can be cleared in a transfer pass using `Pass:clear`.
|
|
701
|
+
---
|
|
702
|
+
---
|
|
703
|
+
---### NOTE:
|
|
704
|
+
---Clearing a permanent buffer requires the byte offset and byte count of the cleared range to be a multiple of 4.
|
|
705
|
+
---
|
|
706
|
+
---This will usually be true for most data types.
|
|
707
|
+
---
|
|
708
|
+
---@param index? number # The index of the first item to clear.
|
|
709
|
+
---@param count? number # The number of items to clear. If `nil`, clears to the end of the Buffer.
|
|
710
|
+
function Buffer:clear(index, count) end
|
|
711
|
+
|
|
712
|
+
---
|
|
713
|
+
---Returns the format of the Buffer.
|
|
714
|
+
---
|
|
715
|
+
---This is the list of fields that comprise each item in the buffer.
|
|
716
|
+
---
|
|
717
|
+
---Each field has a type, byte offset, and vertex attribute location.
|
|
718
|
+
---
|
|
719
|
+
---@return table format # The format of the Buffer.
|
|
720
|
+
function Buffer:getFormat() end
|
|
721
|
+
|
|
722
|
+
---
|
|
723
|
+
---Returns the length of the Buffer.
|
|
724
|
+
---
|
|
725
|
+
---@return number length # The length of the Buffer.
|
|
726
|
+
function Buffer:getLength() end
|
|
727
|
+
|
|
728
|
+
---
|
|
729
|
+
---Returns a raw pointer to the Buffer's memory as a lightuserdata, intended for use with the LuaJIT FFI or for passing to C libraries.
|
|
730
|
+
---
|
|
731
|
+
---This is only available for temporary buffers, so the pointer is only valid until `lovr.graphics.submit` is called.
|
|
732
|
+
---
|
|
733
|
+
---@return lightuserdata pointer # A pointer to the Buffer's memory.
|
|
734
|
+
function Buffer:getPointer() end
|
|
735
|
+
|
|
736
|
+
---
|
|
737
|
+
---Returns the size of the Buffer, in bytes.
|
|
738
|
+
---
|
|
739
|
+
---This is the same as `length * stride`.
|
|
740
|
+
---
|
|
741
|
+
---@return number size # The size of the Buffer, in bytes.
|
|
742
|
+
function Buffer:getSize() end
|
|
743
|
+
|
|
744
|
+
---
|
|
745
|
+
---Returns the distance between each item in the Buffer, in bytes.
|
|
746
|
+
---
|
|
747
|
+
---
|
|
748
|
+
---### NOTE:
|
|
749
|
+
---When a Buffer is created, the stride can be set explicitly, otherwise it will be automatically computed based on the fields in the Buffer.
|
|
750
|
+
---
|
|
751
|
+
---Strides can not be zero, and can not be smaller than the size of a single item.
|
|
752
|
+
---
|
|
753
|
+
---To work around this, bind the Buffer as a storage buffer and fetch data from the buffer manually.
|
|
754
|
+
---
|
|
755
|
+
---@return number stride # The stride of the Buffer, in bytes.
|
|
756
|
+
function Buffer:getStride() end
|
|
757
|
+
|
|
758
|
+
---
|
|
759
|
+
---Returns whether the Buffer is temporary.
|
|
760
|
+
---
|
|
761
|
+
---@return boolean temporary # Whether the Buffer is temporary.
|
|
762
|
+
function Buffer:isTemporary() end
|
|
763
|
+
|
|
764
|
+
---
|
|
765
|
+
---Changes data in a temporary Buffer using a table or a Blob.
|
|
766
|
+
---
|
|
767
|
+
---Permanent buffers can be changed using `Pass:copy`.
|
|
768
|
+
---
|
|
769
|
+
---
|
|
770
|
+
---### NOTE:
|
|
771
|
+
---When using a table, the table can contain a nested table for each value in the Buffer, or it can be a flat list of field component values.
|
|
772
|
+
---
|
|
773
|
+
---It is not possible to mix both nested tables and flat values.
|
|
774
|
+
---
|
|
775
|
+
---For each item updated, components of each field in the item (according to the Buffer's format) are read from either the nested subtable or the table itself.
|
|
776
|
+
---
|
|
777
|
+
---A single number can be used to update a field with a scalar type.
|
|
778
|
+
---
|
|
779
|
+
---Multiple numbers or a `lovr.math` vector can be used to update a field with a vector or mat4 type.
|
|
780
|
+
---
|
|
781
|
+
---Multiple numbers can be used to update mat2 and mat3 fields.
|
|
782
|
+
---
|
|
783
|
+
---When updating normalized field types, components read from the table will be clamped to the normalized range ([0,1] or [-1,1]).
|
|
784
|
+
---
|
|
785
|
+
---In the Buffer, each field is written at its byte offset according to the Buffer's format, and subsequent items are separated by the byte stride of the Buffer.
|
|
786
|
+
---
|
|
787
|
+
---Any missing components for an updated field will be set to zero.
|
|
788
|
+
---
|
|
789
|
+
---@overload fun(self: lovr.Buffer, blob: lovr.Blob, sourceOffset?: number, destinationOffset?: number, size?: number)
|
|
790
|
+
---@param data table # A flat or nested table of items to copy to the Buffer (see notes for format).
|
|
791
|
+
---@param sourceIndex? number # The index in the table to copy from.
|
|
792
|
+
---@param destinationIndex? number # The index of the first value in the Buffer to update.
|
|
793
|
+
---@param count? number # The number of values to update. `nil` will copy as many items as possible, based on the lengths of the source and destination.
|
|
794
|
+
function Buffer:setData(data, sourceIndex, destinationIndex, count) end
|
|
795
|
+
|
|
796
|
+
---
|
|
797
|
+
---Font objects are used to render text with `Pass:text`.
|
|
798
|
+
---
|
|
799
|
+
---The active font can be changed using `Pass:setFont`.
|
|
800
|
+
---
|
|
801
|
+
---The default font is Varela Round, which is used when no font is active, and can be retrieved using `lovr.graphics.getDefaultFont`.
|
|
802
|
+
---
|
|
803
|
+
---Custom fonts can be loaded from TTF files using `lovr.graphics.newFont`.
|
|
804
|
+
---
|
|
805
|
+
---Each Font uses a `Rasterizer` to load the TTF file and create images for each glyph. As text is drawn, the Font uploads images from the Rasterizer to a GPU texture atlas as needed.
|
|
806
|
+
---
|
|
807
|
+
---The Font also performs text layout and mesh generation for strings of text.
|
|
808
|
+
---
|
|
809
|
+
---LÖVR uses a text rendering technique called "multichannel signed distance fields" (MSDF), which makes the font rendering remain crisp when text is viewed up close.
|
|
810
|
+
---
|
|
811
|
+
---
|
|
812
|
+
---### NOTE:
|
|
813
|
+
---MSDF text requires a special shader to work.
|
|
814
|
+
---
|
|
815
|
+
---LÖVR will automatically switch to this shader if no shader is active on the `Pass`.
|
|
816
|
+
---
|
|
817
|
+
---This font shader is also available as a `DefaultShader`.
|
|
818
|
+
---
|
|
819
|
+
---@class lovr.Font
|
|
820
|
+
local Font = {}
|
|
821
|
+
|
|
822
|
+
---
|
|
823
|
+
---Returns the ascent of the font.
|
|
824
|
+
---
|
|
825
|
+
---The ascent is the maximum amount glyphs ascend above the baseline.
|
|
826
|
+
---
|
|
827
|
+
---The units depend on the font's pixel density.
|
|
828
|
+
---
|
|
829
|
+
---With the default density, the units correspond to meters.
|
|
830
|
+
---
|
|
831
|
+
---@return number ascent # The ascent of the font.
|
|
832
|
+
function Font:getAscent() end
|
|
833
|
+
|
|
834
|
+
---
|
|
835
|
+
---Returns the descent of the font.
|
|
836
|
+
---
|
|
837
|
+
---The descent is the maximum amount glyphs descend below the baseline.
|
|
838
|
+
---
|
|
839
|
+
---The units depend on the font's pixel density.
|
|
840
|
+
---
|
|
841
|
+
---With the default density, the units correspond to meters.
|
|
842
|
+
---
|
|
843
|
+
---@return number descent # The descent of the font.
|
|
844
|
+
function Font:getDescent() end
|
|
845
|
+
|
|
846
|
+
---
|
|
847
|
+
---Returns the height of the font, sometimes also called the leading.
|
|
848
|
+
---
|
|
849
|
+
---This is the full height of a line of text, including the space between lines.
|
|
850
|
+
---
|
|
851
|
+
---Each line of a multiline string is separated on the y axis by this height, multiplied by the font's line spacing.
|
|
852
|
+
---
|
|
853
|
+
---The units depend on the font's pixel density.
|
|
854
|
+
---
|
|
855
|
+
---With the default density, the units correspond to meters.
|
|
856
|
+
---
|
|
857
|
+
---@return number height # The height of the font.
|
|
858
|
+
function Font:getHeight() end
|
|
859
|
+
|
|
860
|
+
---
|
|
861
|
+
---Returns the kerning between 2 glyphs.
|
|
862
|
+
---
|
|
863
|
+
---Kerning is a slight horizontal adjustment between 2 glyphs to improve the visual appearance.
|
|
864
|
+
---
|
|
865
|
+
---It will often be negative.
|
|
866
|
+
---
|
|
867
|
+
---The units depend on the font's pixel density.
|
|
868
|
+
---
|
|
869
|
+
---With the default density, the units correspond to meters.
|
|
870
|
+
---
|
|
871
|
+
---@overload fun(self: lovr.Font, firstCodepoint: number, second: string):number
|
|
872
|
+
---@overload fun(self: lovr.Font, first: string, secondCodepoint: number):number
|
|
873
|
+
---@overload fun(self: lovr.Font, firstCodepoint: number, secondCodepoint: number):number
|
|
874
|
+
---@param first string # The first character.
|
|
875
|
+
---@param second string # The second character.
|
|
876
|
+
---@return number keming # The kerning between the two glyphs.
|
|
877
|
+
function Font:getKerning(first, second) end
|
|
878
|
+
|
|
879
|
+
---
|
|
880
|
+
---Returns the line spacing of the Font.
|
|
881
|
+
---
|
|
882
|
+
---When spacing out lines, the height of the font is multiplied the line spacing to get the final spacing value.
|
|
883
|
+
---
|
|
884
|
+
---The default is 1.0.
|
|
885
|
+
---
|
|
886
|
+
---@return number spacing # The line spacing of the font.
|
|
887
|
+
function Font:getLineSpacing() end
|
|
888
|
+
|
|
889
|
+
---
|
|
890
|
+
---Returns a table of wrapped lines for a piece of text, given a line length limit.
|
|
891
|
+
---
|
|
892
|
+
---Newlines are handled correctly.
|
|
893
|
+
---
|
|
894
|
+
---The wrap limit units depend on the pixel density of the font.
|
|
895
|
+
---
|
|
896
|
+
---With the default pixel density, the units correspond to meters when the font is drawn at 1.0 scale.
|
|
897
|
+
---
|
|
898
|
+
---@overload fun(self: lovr.Font, strings: table, wrap: number):table
|
|
899
|
+
---@param string string # The text to wrap.
|
|
900
|
+
---@param wrap number # The line length to wrap at.
|
|
901
|
+
---@return table lines # A table strings, one for each wrapped line (without any color information).
|
|
902
|
+
function Font:getLines(string, wrap) end
|
|
903
|
+
|
|
904
|
+
---
|
|
905
|
+
---Returns the pixel density of the font.
|
|
906
|
+
---
|
|
907
|
+
---The density is a "pixels per world unit" factor that controls how the pixels in the font's texture are mapped to units in the coordinate space.
|
|
908
|
+
---
|
|
909
|
+
---The default pixel density is set to the height of the font.
|
|
910
|
+
---
|
|
911
|
+
---This means that lines of text rendered with a scale of 1.0 come out to 1 unit (meter) tall.
|
|
912
|
+
---
|
|
913
|
+
---However, if this font was drawn to a 2D texture where the units are in pixels, the font would still be drawn 1 unit (pixel) tall! Scaling the coordinate space or the size of the text by the height of the font would fix this.
|
|
914
|
+
---
|
|
915
|
+
---However, a more convenient option is to set the pixel density of the font to 1.0 when doing 2D rendering to make the font's size match up with the pixels of the canvas.
|
|
916
|
+
---
|
|
917
|
+
---@return number density # The pixel density of the font.
|
|
918
|
+
function Font:getPixelDensity() end
|
|
919
|
+
|
|
920
|
+
---
|
|
921
|
+
---Returns the Rasterizer object backing the Font.
|
|
922
|
+
---
|
|
923
|
+
---@return lovr.Rasterizer rasterizer # The Rasterizer.
|
|
924
|
+
function Font:getRasterizer() end
|
|
925
|
+
|
|
926
|
+
---
|
|
927
|
+
---Returns a table of vertices for a piece of text, along with a Material to use when rendering it. The Material returned by this function may not be the same if the Font's texture atlas needs to be recreated with a bigger size to make room for more glyphs.
|
|
928
|
+
---
|
|
929
|
+
---
|
|
930
|
+
---### NOTE:
|
|
931
|
+
---Each vertex is a table of 4 floating point numbers with the following data:
|
|
932
|
+
---
|
|
933
|
+
--- { x, y, u, v }
|
|
934
|
+
---
|
|
935
|
+
---These could be placed in a vertex buffer using the following buffer format:
|
|
936
|
+
---
|
|
937
|
+
--- { 'vec2:VertexPosition', 'vec2:VertexUV' }
|
|
938
|
+
---
|
|
939
|
+
---@param halign lovr.HorizontalAlign # The horizontal align.
|
|
940
|
+
---@param valign lovr.VerticalAlign # The vertical align.
|
|
941
|
+
---@return table vertices # The table of vertices. See below for the format of each vertex.
|
|
942
|
+
---@return lovr.Material material # A Material to use when rendering the vertices.
|
|
943
|
+
function Font:getVertices(halign, valign) end
|
|
944
|
+
|
|
945
|
+
---
|
|
946
|
+
---Returns the maximum width of a piece of text.
|
|
947
|
+
---
|
|
948
|
+
---This function does not perform wrapping but does respect newlines in the text.
|
|
949
|
+
---
|
|
950
|
+
---@overload fun(self: lovr.Font, strings: table):number
|
|
951
|
+
---@param string string # The text to measure.
|
|
952
|
+
---@return number width # The maximum width of the text.
|
|
953
|
+
function Font:getWidth(string) end
|
|
954
|
+
|
|
955
|
+
---
|
|
956
|
+
---Sets the line spacing of the Font.
|
|
957
|
+
---
|
|
958
|
+
---When spacing out lines, the height of the font is multiplied by the line spacing to get the final spacing value.
|
|
959
|
+
---
|
|
960
|
+
---The default is 1.0.
|
|
961
|
+
---
|
|
962
|
+
---@param spacing number # The new line spacing.
|
|
963
|
+
function Font:setLineSpacing(spacing) end
|
|
964
|
+
|
|
965
|
+
---
|
|
966
|
+
---Sets the pixel density of the font.
|
|
967
|
+
---
|
|
968
|
+
---The density is a "pixels per world unit" factor that controls how the pixels in the font's texture are mapped to units in the coordinate space.
|
|
969
|
+
---
|
|
970
|
+
---The default pixel density is set to the height of the font.
|
|
971
|
+
---
|
|
972
|
+
---This means that lines of text rendered with a scale of 1.0 come out to 1 unit (meter) tall.
|
|
973
|
+
---
|
|
974
|
+
---However, if this font was drawn to a 2D texture where the units are in pixels, the font would still be drawn 1 unit (pixel) tall! Scaling the coordinate space or the size of the text by the height of the font would fix this.
|
|
975
|
+
---
|
|
976
|
+
---However, a more convenient option is to set the pixel density of the font to 1.0 when doing 2D rendering to make the font's size match up with the pixels of the canvas.
|
|
977
|
+
---
|
|
978
|
+
---@overload fun(self: lovr.Font)
|
|
979
|
+
---@param density number # The new pixel density of the font.
|
|
980
|
+
function Font:setPixelDensity(density) end
|
|
981
|
+
|
|
982
|
+
---
|
|
983
|
+
---Materials are a set of properties and textures that define the properties of a surface, like what color it is, how bumpy or shiny it is, etc. `Shader` code can use the data from a material to compute lighting.
|
|
984
|
+
---
|
|
985
|
+
---Materials are immutable, and can't be changed after they are created.
|
|
986
|
+
---
|
|
987
|
+
---Instead, a new Material should be created with the updated properties.
|
|
988
|
+
---
|
|
989
|
+
---`Pass:setMaterial` changes the active material, causing it to affect rendering until the active material is changed again.
|
|
990
|
+
---
|
|
991
|
+
---Using material objects is optional.
|
|
992
|
+
---
|
|
993
|
+
---`Pass:setMaterial` can take a `Texture`, and `Pass:setColor` can change the color of objects, so basic tinting and texturing of surfaces does not require a full material to be created.
|
|
994
|
+
---
|
|
995
|
+
---Also, a custom material system could be developed by sending textures and other data to shaders manually.
|
|
996
|
+
---
|
|
997
|
+
---`Model` objects will create materials for all of the materials defined in the model file.
|
|
998
|
+
---
|
|
999
|
+
---In shader code, non-texture material properties can be accessed as `Material.<property>`, and material textures can be accessed as `<Type>Texture`, e.g. `RoughnessTexture`.
|
|
1000
|
+
---
|
|
1001
|
+
---@class lovr.Material
|
|
1002
|
+
local Material = {}
|
|
1003
|
+
|
|
1004
|
+
---
|
|
1005
|
+
---Returns the properties of the Material in a table.
|
|
1006
|
+
---
|
|
1007
|
+
---@return table properties # The Material properties.
|
|
1008
|
+
function Material:getProperties() end
|
|
1009
|
+
|
|
1010
|
+
---
|
|
1011
|
+
---Models are 3D model assets loaded from files.
|
|
1012
|
+
---
|
|
1013
|
+
---Currently, OBJ, glTF, and binary STL files are supported.
|
|
1014
|
+
---
|
|
1015
|
+
---A model can be drawn using `Pass:draw`.
|
|
1016
|
+
---
|
|
1017
|
+
---The raw CPU data for a model is held in a `ModelData` object, which can be loaded on threads or reused for multiple Model instances.
|
|
1018
|
+
---
|
|
1019
|
+
---Models have a hierarchy of nodes which can have their transforms modified.
|
|
1020
|
+
---
|
|
1021
|
+
---Meshes are attached to these nodes.
|
|
1022
|
+
---
|
|
1023
|
+
---The same mesh can be attached to multiple nodes, allowing it to be drawn multiple times while only storing a single copy of its data.
|
|
1024
|
+
---
|
|
1025
|
+
---Models can have animations.
|
|
1026
|
+
---
|
|
1027
|
+
---Animations have keyframes which affect the transforms of nodes. Right now each model can only be drawn with a single animated pose per frame.
|
|
1028
|
+
---
|
|
1029
|
+
---Models can have materials, which are collections of properties and textures that define how its surface is affected by lighting.
|
|
1030
|
+
---
|
|
1031
|
+
---Each mesh in the model can use a single material.
|
|
1032
|
+
---
|
|
1033
|
+
---@class lovr.Model
|
|
1034
|
+
local Model = {}
|
|
1035
|
+
|
|
1036
|
+
---
|
|
1037
|
+
---Animates a Model by setting or blending the transforms of nodes using data stored in the keyframes of an animation.
|
|
1038
|
+
---
|
|
1039
|
+
---The animation from the model file is evaluated at the timestamp, resulting in a set of node properties.
|
|
1040
|
+
---
|
|
1041
|
+
---These properties are then applied to the nodes in the model, using an optional blend factor.
|
|
1042
|
+
---
|
|
1043
|
+
---If the animation doesn't have keyframes that target a given node, the node will remain unchanged.
|
|
1044
|
+
---
|
|
1045
|
+
---
|
|
1046
|
+
---### NOTE:
|
|
1047
|
+
---If the timestamp is larger than the duration of the animation, it will wrap back around to zero, so looping an animation doesn't require using the modulo operator.
|
|
1048
|
+
---
|
|
1049
|
+
---To change the speed of the animation, multiply the timestamp by a speed factor.
|
|
1050
|
+
---
|
|
1051
|
+
---For each animated property in the animation, if the timestamp used for the animation is less than the timestamp of the first keyframe, the data of the first keyframe will be used.
|
|
1052
|
+
---
|
|
1053
|
+
---This function can be called multiple times to layer and blend animations.
|
|
1054
|
+
---
|
|
1055
|
+
---The model joints will be drawn in the final resulting pose.
|
|
1056
|
+
---
|
|
1057
|
+
---`Model:resetNodeTransforms` can be used to reset the model nodes to their initial transforms, which is helpful to ensure animating starts from a clean slate.
|
|
1058
|
+
---
|
|
1059
|
+
---@overload fun(self: lovr.Model, index: number, time: number, blend?: number)
|
|
1060
|
+
---@param name string # The name of an animation in the model file.
|
|
1061
|
+
---@param time number # The timestamp to evaluate the keyframes at, in seconds.
|
|
1062
|
+
---@param blend? number # How much of the animation's pose to blend into the nodes, from 0 to 1.
|
|
1063
|
+
function Model:animate(name, time, blend) end
|
|
1064
|
+
|
|
1065
|
+
---
|
|
1066
|
+
---Returns the number of animations in the Model.
|
|
1067
|
+
---
|
|
1068
|
+
---@return number count # The number of animations in the Model.
|
|
1069
|
+
function Model:getAnimationCount() end
|
|
1070
|
+
|
|
1071
|
+
---
|
|
1072
|
+
---Returns the duration of an animation in the Model, in seconds.
|
|
1073
|
+
---
|
|
1074
|
+
---
|
|
1075
|
+
---### NOTE:
|
|
1076
|
+
---The duration of an animation is calculated as the largest timestamp of all of its keyframes.
|
|
1077
|
+
---
|
|
1078
|
+
---@overload fun(self: lovr.Model, name: string):number
|
|
1079
|
+
---@param index number # The animation index.
|
|
1080
|
+
---@return number duration # The duration of the animation, in seconds.
|
|
1081
|
+
function Model:getAnimationDuration(index) end
|
|
1082
|
+
|
|
1083
|
+
---
|
|
1084
|
+
---Returns the name of an animation in the Model.
|
|
1085
|
+
---
|
|
1086
|
+
---@param index number # The index of an animation.
|
|
1087
|
+
---@return string name # The name of the animation.
|
|
1088
|
+
function Model:getAnimationName(index) end
|
|
1089
|
+
|
|
1090
|
+
---
|
|
1091
|
+
---Returns the 6 values of the Model's axis-aligned bounding box.
|
|
1092
|
+
---
|
|
1093
|
+
---@return number minx # The minimum x coordinate of the vertices in the Model.
|
|
1094
|
+
---@return number maxx # The maximum x coordinate of the vertices in the Model.
|
|
1095
|
+
---@return number miny # The minimum y coordinate of the vertices in the Model.
|
|
1096
|
+
---@return number maxy # The maximum y coordinate of the vertices in the Model.
|
|
1097
|
+
---@return number minz # The minimum z coordinate of the vertices in the Model.
|
|
1098
|
+
---@return number maxz # The maximum z coordinate of the vertices in the Model.
|
|
1099
|
+
function Model:getBoundingBox() end
|
|
1100
|
+
|
|
1101
|
+
---
|
|
1102
|
+
---Returns a sphere approximately enclosing the vertices in the Model.
|
|
1103
|
+
---
|
|
1104
|
+
---@return number x # The x coordinate of the position of the sphere.
|
|
1105
|
+
---@return number y # The y coordinate of the position of the sphere.
|
|
1106
|
+
---@return number z # The z coordinate of the position of the sphere.
|
|
1107
|
+
---@return number radius # The radius of the bounding sphere.
|
|
1108
|
+
function Model:getBoundingSphere() end
|
|
1109
|
+
|
|
1110
|
+
---
|
|
1111
|
+
---Returns the center of the Model's axis-aligned bounding box, relative to the Model's origin.
|
|
1112
|
+
---
|
|
1113
|
+
---@return number x # The x offset of the center of the bounding box.
|
|
1114
|
+
---@return number y # The y offset of the center of the bounding box.
|
|
1115
|
+
---@return number z # The z offset of the center of the bounding box.
|
|
1116
|
+
function Model:getCenter() end
|
|
1117
|
+
|
|
1118
|
+
---
|
|
1119
|
+
---Returns the ModelData this Model was created from.
|
|
1120
|
+
---
|
|
1121
|
+
---@return lovr.ModelData data # The ModelData.
|
|
1122
|
+
function Model:getData() end
|
|
1123
|
+
|
|
1124
|
+
---
|
|
1125
|
+
---Returns the depth of the Model, computed from its axis-aligned bounding box.
|
|
1126
|
+
---
|
|
1127
|
+
---@return number depth # The depth of the Model.
|
|
1128
|
+
function Model:getDepth() end
|
|
1129
|
+
|
|
1130
|
+
---
|
|
1131
|
+
---Returns the width, height, and depth of the Model, computed from its axis-aligned bounding box.
|
|
1132
|
+
---
|
|
1133
|
+
---@return number width # The width of the Model.
|
|
1134
|
+
---@return number height # The height of the Model.
|
|
1135
|
+
---@return number depth # The depth of the Model.
|
|
1136
|
+
function Model:getDimensions() end
|
|
1137
|
+
|
|
1138
|
+
---
|
|
1139
|
+
---Returns the height of the Model, computed from its axis-aligned bounding box.
|
|
1140
|
+
---
|
|
1141
|
+
---@return number height # The height of the Model.
|
|
1142
|
+
function Model:getHeight() end
|
|
1143
|
+
|
|
1144
|
+
---
|
|
1145
|
+
---Returns the index buffer used by the Model.
|
|
1146
|
+
---
|
|
1147
|
+
---The index buffer describes the order used to draw the vertices in each mesh.
|
|
1148
|
+
---
|
|
1149
|
+
---@return lovr.Buffer buffer # The index buffer.
|
|
1150
|
+
function Model:getIndexBuffer() end
|
|
1151
|
+
|
|
1152
|
+
---
|
|
1153
|
+
---Returns a `Material` loaded from the Model.
|
|
1154
|
+
---
|
|
1155
|
+
---@overload fun(self: lovr.Model, index: number):lovr.Material
|
|
1156
|
+
---@param name string # The name of the Material to return.
|
|
1157
|
+
---@return lovr.Material material # The material.
|
|
1158
|
+
function Model:getMaterial(name) end
|
|
1159
|
+
|
|
1160
|
+
---
|
|
1161
|
+
---Returns the number of materials in the Model.
|
|
1162
|
+
---
|
|
1163
|
+
---@return number count # The number of materials in the Model.
|
|
1164
|
+
function Model:getMaterialCount() end
|
|
1165
|
+
|
|
1166
|
+
---
|
|
1167
|
+
---Returns the name of a material in the Model.
|
|
1168
|
+
---
|
|
1169
|
+
---@param index number # The index of a material.
|
|
1170
|
+
---@return string name # The name of the material.
|
|
1171
|
+
function Model:getMaterialName(index) end
|
|
1172
|
+
|
|
1173
|
+
---
|
|
1174
|
+
---Returns extra information stored in the model file.
|
|
1175
|
+
---
|
|
1176
|
+
---Currently this is only implemented for glTF models and returns the JSON string from the glTF or glb file.
|
|
1177
|
+
---
|
|
1178
|
+
---The metadata can be used to get application-specific data or add support for glTF extensions not supported by LÖVR.
|
|
1179
|
+
---
|
|
1180
|
+
---@return string metadata # The metadata from the model file.
|
|
1181
|
+
function Model:getMetadata() end
|
|
1182
|
+
|
|
1183
|
+
---
|
|
1184
|
+
---Given a parent node, this function returns a table with the indices of its children.
|
|
1185
|
+
---
|
|
1186
|
+
---
|
|
1187
|
+
---### NOTE:
|
|
1188
|
+
---If the node does not have any children, this function returns an empty table.
|
|
1189
|
+
---
|
|
1190
|
+
---@overload fun(self: lovr.Model, name: string):table
|
|
1191
|
+
---@param index number # The index of the parent node.
|
|
1192
|
+
---@return table children # A table containing a node index for each child of the node.
|
|
1193
|
+
function Model:getNodeChildren(index) end
|
|
1194
|
+
|
|
1195
|
+
---
|
|
1196
|
+
---Returns the number of nodes in the model.
|
|
1197
|
+
---
|
|
1198
|
+
---@return number count # The number of nodes in the model.
|
|
1199
|
+
function Model:getNodeCount() end
|
|
1200
|
+
|
|
1201
|
+
---
|
|
1202
|
+
---Returns the draw mode, material, and vertex range of a mesh in the model.
|
|
1203
|
+
---
|
|
1204
|
+
---@overload fun(self: lovr.Model, name: string, index: number):lovr.MeshMode, lovr.Material, number, number, number
|
|
1205
|
+
---@param node number # The index of the node.
|
|
1206
|
+
---@param index number # The index of the draw.
|
|
1207
|
+
---@return lovr.MeshMode mode # Whether the vertices are points, lines, or triangles.
|
|
1208
|
+
---@return lovr.Material material # The Material used by the draw.
|
|
1209
|
+
---@return number start # The offset of the first vertex in the draw.
|
|
1210
|
+
---@return number count # The number of vertices in the draw.
|
|
1211
|
+
---@return number base # The base vertex of the draw (added to each instance value), or nil if the draw does not use an index buffer.
|
|
1212
|
+
function Model:getNodeDraw(node, index) end
|
|
1213
|
+
|
|
1214
|
+
---
|
|
1215
|
+
---Returns the number of meshes attached to a node.
|
|
1216
|
+
---
|
|
1217
|
+
---Each mesh is drawn individually.
|
|
1218
|
+
---
|
|
1219
|
+
---@overload fun(self: lovr.Model, name: string):number
|
|
1220
|
+
---@param index number # The index of a node.
|
|
1221
|
+
---@return number count # The number of draws in the node.
|
|
1222
|
+
function Model:getNodeDrawCount(index) end
|
|
1223
|
+
|
|
1224
|
+
---
|
|
1225
|
+
---Returns the name of a node.
|
|
1226
|
+
---
|
|
1227
|
+
---@param index number # The index of the node.
|
|
1228
|
+
---@return string name # The name of the node.
|
|
1229
|
+
function Model:getNodeName(index) end
|
|
1230
|
+
|
|
1231
|
+
---
|
|
1232
|
+
---Returns the orientation of a node.
|
|
1233
|
+
---
|
|
1234
|
+
---@overload fun(self: lovr.Model, name: string, origin?: lovr.OriginType):number, number, number, number
|
|
1235
|
+
---@param index number # The index of the node.
|
|
1236
|
+
---@param origin? lovr.OriginType # Whether the orientation should be returned relative to the root node or the node's parent.
|
|
1237
|
+
---@return number angle # The number of radians the node is rotated around its axis of rotation.
|
|
1238
|
+
---@return number ax # The x component of the axis of rotation.
|
|
1239
|
+
---@return number ay # The y component of the axis of rotation.
|
|
1240
|
+
---@return number az # The z component of the axis of rotation.
|
|
1241
|
+
function Model:getNodeOrientation(index, origin) end
|
|
1242
|
+
|
|
1243
|
+
---
|
|
1244
|
+
---Given a child node, this function returns the index of its parent.
|
|
1245
|
+
---
|
|
1246
|
+
---@overload fun(self: lovr.Model, name: string):number
|
|
1247
|
+
---@param index number # The index of the child node.
|
|
1248
|
+
---@return number parent # The index of the parent.
|
|
1249
|
+
function Model:getNodeParent(index) end
|
|
1250
|
+
|
|
1251
|
+
---
|
|
1252
|
+
---Returns the pose (position and orientation) of a node.
|
|
1253
|
+
---
|
|
1254
|
+
---@overload fun(self: lovr.Model, name: string, origin?: lovr.OriginType):number, number, number, number, number, number, number
|
|
1255
|
+
---@param index number # The index of a node.
|
|
1256
|
+
---@param origin? lovr.OriginType # Whether the pose should be returned relative to the root node or the node's parent.
|
|
1257
|
+
---@return number x # The x position of the node.
|
|
1258
|
+
---@return number y # The y position of the node.
|
|
1259
|
+
---@return number z # The z position of the node.
|
|
1260
|
+
---@return number angle # The number of radians the node is rotated around its axis of rotation.
|
|
1261
|
+
---@return number ax # The x component of the axis of rotation.
|
|
1262
|
+
---@return number ay # The y component of the axis of rotation.
|
|
1263
|
+
---@return number az # The z component of the axis of rotation.
|
|
1264
|
+
function Model:getNodePose(index, origin) end
|
|
1265
|
+
|
|
1266
|
+
---
|
|
1267
|
+
---Returns the position of a node.
|
|
1268
|
+
---
|
|
1269
|
+
---@overload fun(self: lovr.Model, name: string, space?: lovr.OriginType):number, number, number
|
|
1270
|
+
---@param index number # The index of the node.
|
|
1271
|
+
---@param space? lovr.OriginType # Whether the position should be returned relative to the root node or the node's parent.
|
|
1272
|
+
---@return number x # The x coordinate.
|
|
1273
|
+
---@return number y # The y coordinate.
|
|
1274
|
+
---@return number z # The z coordinate.
|
|
1275
|
+
function Model:getNodePosition(index, space) end
|
|
1276
|
+
|
|
1277
|
+
---
|
|
1278
|
+
---Returns the scale of a node.
|
|
1279
|
+
---
|
|
1280
|
+
---
|
|
1281
|
+
---### NOTE:
|
|
1282
|
+
---For best results when animating, it's recommended to keep the 3 components of the scale the same.
|
|
1283
|
+
---
|
|
1284
|
+
---@overload fun(self: lovr.Model, name: string, origin?: lovr.OriginType):number, number, number
|
|
1285
|
+
---@param index number # The index of the node.
|
|
1286
|
+
---@param origin? lovr.OriginType # Whether the scale should be returned relative to the root node or the node's parent.
|
|
1287
|
+
---@return number x # The x scale.
|
|
1288
|
+
---@return number y # The y scale.
|
|
1289
|
+
---@return number z # The z scale.
|
|
1290
|
+
function Model:getNodeScale(index, origin) end
|
|
1291
|
+
|
|
1292
|
+
---
|
|
1293
|
+
---Returns the transform (position, scale, and rotation) of a node.
|
|
1294
|
+
---
|
|
1295
|
+
---@overload fun(self: lovr.Model, name: string, origin?: lovr.OriginType):number, number, number, number, number, number, number, number, number, number
|
|
1296
|
+
---@param index number # The index of a node.
|
|
1297
|
+
---@param origin? lovr.OriginType # Whether the transform should be returned relative to the root node or the node's parent.
|
|
1298
|
+
---@return number x # The x position of the node.
|
|
1299
|
+
---@return number y # The y position of the node.
|
|
1300
|
+
---@return number z # The z position of the node.
|
|
1301
|
+
---@return number sx # The x scale of the node.
|
|
1302
|
+
---@return number sy # The y scale of the node.
|
|
1303
|
+
---@return number sz # The z scale of the node.
|
|
1304
|
+
---@return number angle # The number of radians the node is rotated around its axis of rotation.
|
|
1305
|
+
---@return number ax # The x component of the axis of rotation.
|
|
1306
|
+
---@return number ay # The y component of the axis of rotation.
|
|
1307
|
+
---@return number az # The z component of the axis of rotation.
|
|
1308
|
+
function Model:getNodeTransform(index, origin) end
|
|
1309
|
+
|
|
1310
|
+
---
|
|
1311
|
+
---Returns the index of the model's root node.
|
|
1312
|
+
---
|
|
1313
|
+
---@return number root # The index of the root node.
|
|
1314
|
+
function Model:getRootNode() end
|
|
1315
|
+
|
|
1316
|
+
---
|
|
1317
|
+
---Returns one of the textures in the Model.
|
|
1318
|
+
---
|
|
1319
|
+
---@param index number # The index of the texture to get.
|
|
1320
|
+
---@return lovr.Texture texture # The texture.
|
|
1321
|
+
function Model:getTexture(index) end
|
|
1322
|
+
|
|
1323
|
+
---
|
|
1324
|
+
---Returns the number of textures in the Model.
|
|
1325
|
+
---
|
|
1326
|
+
---@return number count # The number of textures in the Model.
|
|
1327
|
+
function Model:getTextureCount() end
|
|
1328
|
+
|
|
1329
|
+
---
|
|
1330
|
+
---Returns the total number of triangles in the Model.
|
|
1331
|
+
---
|
|
1332
|
+
---
|
|
1333
|
+
---### NOTE:
|
|
1334
|
+
---This isn't always related to the length of the vertex buffer, since a mesh in the Model could be drawn by multiple nodes.
|
|
1335
|
+
---
|
|
1336
|
+
---@return number count # The total number of triangles in the Model.
|
|
1337
|
+
function Model:getTriangleCount() end
|
|
1338
|
+
|
|
1339
|
+
---
|
|
1340
|
+
---Returns 2 tables containing mesh data for the Model.
|
|
1341
|
+
---
|
|
1342
|
+
---The first table is a list of vertex positions and contains 3 numbers for the x, y, and z coordinate of each vertex.
|
|
1343
|
+
---
|
|
1344
|
+
---The second table is a list of triangles and contains 1-based indices into the first table representing the first, second, and third vertices that make up each triangle.
|
|
1345
|
+
---
|
|
1346
|
+
---The vertex positions will be affected by node transforms.
|
|
1347
|
+
---
|
|
1348
|
+
---
|
|
1349
|
+
---### NOTE:
|
|
1350
|
+
---After this function is called on a Model once, the result is cached (in its ModelData).
|
|
1351
|
+
---
|
|
1352
|
+
---@return table vertices # The triangle vertex positions, returned as a flat (non-nested) table of numbers. The position of each vertex is given as an x, y, and z coordinate.
|
|
1353
|
+
---@return table indices # The vertex indices. Every 3 indices describes a triangle.
|
|
1354
|
+
function Model:getTriangles() end
|
|
1355
|
+
|
|
1356
|
+
---
|
|
1357
|
+
---Returns a `Buffer` that holds the vertices of all of the meshes in the Model.
|
|
1358
|
+
---
|
|
1359
|
+
---@return lovr.Buffer buffer # The vertex buffer.
|
|
1360
|
+
function Model:getVertexBuffer() end
|
|
1361
|
+
|
|
1362
|
+
---
|
|
1363
|
+
---Returns the total vertex count of the Model.
|
|
1364
|
+
---
|
|
1365
|
+
---
|
|
1366
|
+
---### NOTE:
|
|
1367
|
+
---This isn't always the same as the length of the vertex buffer, since a mesh in the Model could be drawn by multiple nodes.
|
|
1368
|
+
---
|
|
1369
|
+
---@return number count # The total number of vertices.
|
|
1370
|
+
function Model:getVertexCount() end
|
|
1371
|
+
|
|
1372
|
+
---
|
|
1373
|
+
---Returns the width of the Model, computed from its axis-aligned bounding box.
|
|
1374
|
+
---
|
|
1375
|
+
---@return number width # The width of the Model.
|
|
1376
|
+
function Model:getWidth() end
|
|
1377
|
+
|
|
1378
|
+
---
|
|
1379
|
+
---Returns whether the Model has any skeletal animations.
|
|
1380
|
+
---
|
|
1381
|
+
---
|
|
1382
|
+
---### NOTE:
|
|
1383
|
+
---This will return when there's at least one skin in the model, as returned by `ModelData:getSkinCount`.
|
|
1384
|
+
---
|
|
1385
|
+
---Even if this function returns true, the model could still have non-skeletal animations.
|
|
1386
|
+
---
|
|
1387
|
+
---Right now a model can only be drawn with one skeletal pose per frame.
|
|
1388
|
+
---
|
|
1389
|
+
---@return boolean jointed # Whether the animation uses joint nodes for skeletal animation.
|
|
1390
|
+
function Model:hasJoints() end
|
|
1391
|
+
|
|
1392
|
+
---
|
|
1393
|
+
---Resets node transforms to the original ones defined in the model file.
|
|
1394
|
+
---
|
|
1395
|
+
function Model:resetNodeTransforms() end
|
|
1396
|
+
|
|
1397
|
+
---
|
|
1398
|
+
---Sets or blends the orientation of a node to a new orientation.
|
|
1399
|
+
---
|
|
1400
|
+
---@overload fun(self: lovr.Model, name: string, orientation: lovr.rotation, blend?: number)
|
|
1401
|
+
---@param index number # The index of the node.
|
|
1402
|
+
---@param orientation lovr.rotation # The target orientation.
|
|
1403
|
+
---@param blend? number # A number from 0 to 1 indicating how much of the target orientation to blend in. A value of 0 will not change the node's orientation at all, whereas 1 will fully blend to the target orientation.
|
|
1404
|
+
function Model:setNodeOrientation(index, orientation, blend) end
|
|
1405
|
+
|
|
1406
|
+
---
|
|
1407
|
+
---Sets or blends the pose (position and orientation) of a node to a new pose.
|
|
1408
|
+
---
|
|
1409
|
+
---@overload fun(self: lovr.Model, name: string, position: lovr.Vec3, orientation: lovr.Quat, blend?: number)
|
|
1410
|
+
---@param index number # The index of the node.
|
|
1411
|
+
---@param position lovr.Vec3 # The target position. Can also be provided as 3 numbers.
|
|
1412
|
+
---@param orientation lovr.Quat # The target orientation. Can also be provided as 4 numbers in angle-axis form.
|
|
1413
|
+
---@param blend? number # A number from 0 to 1 indicating how much of the target pose to blend in. A value of 0 will not change the node's pose at all, whereas 1 will fully blend to the target pose.
|
|
1414
|
+
function Model:setNodePose(index, position, orientation, blend) end
|
|
1415
|
+
|
|
1416
|
+
---
|
|
1417
|
+
---Sets or blends the position of a node to a new position.
|
|
1418
|
+
---
|
|
1419
|
+
---@overload fun(self: lovr.Model, name: string, position: lovr.Vec3, blend?: number)
|
|
1420
|
+
---@param index number # The index of the node.
|
|
1421
|
+
---@param position lovr.Vec3 # The target position. Can also be provided as 3 numbers.
|
|
1422
|
+
---@param blend? number # A number from 0 to 1 indicating how much of the target position to blend in. A value of 0 will not change the node's position at all, whereas 1 will fully blend to the target position.
|
|
1423
|
+
function Model:setNodePosition(index, position, blend) end
|
|
1424
|
+
|
|
1425
|
+
---
|
|
1426
|
+
---Sets or blends the scale of a node to a new scale.
|
|
1427
|
+
---
|
|
1428
|
+
---
|
|
1429
|
+
---### NOTE:
|
|
1430
|
+
---For best results when animating, it's recommended to keep the 3 components of the scale the same.
|
|
1431
|
+
---
|
|
1432
|
+
---@overload fun(self: lovr.Model, name: string, scale: lovr.Vec3, blend?: number)
|
|
1433
|
+
---@param index number # The index of the node.
|
|
1434
|
+
---@param scale lovr.Vec3 # The target scale. Can also be provided as 3 numbers.
|
|
1435
|
+
---@param blend? number # A number from 0 to 1 indicating how much of the target scale to blend in. A value of 0 will not change the node's scale at all, whereas 1 will fully blend to the target scale.
|
|
1436
|
+
function Model:setNodeScale(index, scale, blend) end
|
|
1437
|
+
|
|
1438
|
+
---
|
|
1439
|
+
---Sets or blends the transform of a node to a new transform.
|
|
1440
|
+
---
|
|
1441
|
+
---
|
|
1442
|
+
---### NOTE:
|
|
1443
|
+
---For best results when animating, it's recommended to keep the 3 components of the scale the same.
|
|
1444
|
+
---
|
|
1445
|
+
---@overload fun(self: lovr.Model, name: string, transform: lovr.Mat4, blend?: number)
|
|
1446
|
+
---@param index number # The index of the node.
|
|
1447
|
+
---@param transform lovr.Mat4 # The target transform. Can also be provided as position, scale, and rotation using a mix of `Vectors` or numbers, with 3 scale components.
|
|
1448
|
+
---@param blend? number # A number from 0 to 1 indicating how much of the target transform to blend in. A value of 0 will not change the node's transform at all, whereas 1 will fully blend to the target transform.
|
|
1449
|
+
function Model:setNodeTransform(index, transform, blend) end
|
|
1450
|
+
|
|
1451
|
+
---
|
|
1452
|
+
---Pass objects are used to record commands for the GPU.
|
|
1453
|
+
---
|
|
1454
|
+
---Commands can be recorded by calling functions on the Pass.
|
|
1455
|
+
---
|
|
1456
|
+
---After recording a set of passes, they can be submitted for the GPU to process using `lovr.graphics.submit`.
|
|
1457
|
+
---
|
|
1458
|
+
---Pass objects are **temporary** and only exist for a single frame.
|
|
1459
|
+
---
|
|
1460
|
+
---Once `lovr.graphics.submit` is called to end the frame, any passes that were created during that frame become **invalid**. Each frame, a new set of passes must be created and recorded.
|
|
1461
|
+
---
|
|
1462
|
+
---LÖVR tries to detect if you use a pass after it's invalid, but this error checking is not 100% accurate at the moment.
|
|
1463
|
+
---
|
|
1464
|
+
---There are 3 types of passes.
|
|
1465
|
+
---
|
|
1466
|
+
---Each type can record a specific type of command:
|
|
1467
|
+
---
|
|
1468
|
+
---- `render` passes render graphics to textures.
|
|
1469
|
+
---- `compute` passes run compute shaders.
|
|
1470
|
+
---- `transfer` passes can transfer data to/from GPU objects, like `Buffer` and `Texture`.
|
|
1471
|
+
---
|
|
1472
|
+
---@class lovr.Pass
|
|
1473
|
+
local Pass = {}
|
|
1474
|
+
|
|
1475
|
+
---
|
|
1476
|
+
---Copies data between textures.
|
|
1477
|
+
---
|
|
1478
|
+
---Similar to `Pass:copy`, except the source and destination sizes can be different.
|
|
1479
|
+
---
|
|
1480
|
+
---The pixels from the source texture will be scaled to the destination size. This can only be called on a transfer pass, which can be created with `lovr.graphics.getPass`.
|
|
1481
|
+
---
|
|
1482
|
+
---
|
|
1483
|
+
---### NOTE:
|
|
1484
|
+
---When blitting between 3D textures, the layer counts do not need to match, and the layers will be treated as a continuous axis (i.e. pixels will be smoothed between layers).
|
|
1485
|
+
---
|
|
1486
|
+
---When blitting between array textures, the layer counts must match, and the blit occurs as a sequence of distinct 2D blits layer-by-layer.
|
|
1487
|
+
---
|
|
1488
|
+
---@param src lovr.Texture # The texture to copy from.
|
|
1489
|
+
---@param dst lovr.Texture # The texture to copy to.
|
|
1490
|
+
---@param srcx? number # The x offset from the left of the source texture to blit from, in pixels.
|
|
1491
|
+
---@param srcy? number # The y offset from the top of the source texture to blit from, in pixels.
|
|
1492
|
+
---@param srcz? number # The index of the first layer in the source texture to blit from.
|
|
1493
|
+
---@param dstx? number # The x offset from the left of the destination texture to blit to, in pixels.
|
|
1494
|
+
---@param dsty? number # The y offset from the top of the destination texture to blit to, in pixels.
|
|
1495
|
+
---@param dstz? number # The index of the first layer in the destination texture to blit to.
|
|
1496
|
+
---@param srcw? number # The width of the region in the source texture to blit. If nil, the region will extend to the right side of the texture.
|
|
1497
|
+
---@param srch? number # The height of the region in the source texture to blit. If nil, the region will extend to the bottom of the texture.
|
|
1498
|
+
---@param srcd? number # The number of layers in the source texture to blit.
|
|
1499
|
+
---@param dstw? number # The width of the region in the destination texture to blit to. If nil, the region will extend to the right side of the texture.
|
|
1500
|
+
---@param dsth? number # The height of the region in the destination texture to blit to. If nil, the region will extend to the bottom of the texture.
|
|
1501
|
+
---@param dstd? number # The number of the layers in the destination texture to blit to.
|
|
1502
|
+
---@param srclevel? number # The index of the mipmap level in the source texture to blit from.
|
|
1503
|
+
---@param dstlevel? number # The index of the mipmap level in the destination texture to blit to.
|
|
1504
|
+
---@param filter? lovr.FilterMode # The filtering algorithm used when rescaling.
|
|
1505
|
+
function Pass:blit(
|
|
1506
|
+
src,
|
|
1507
|
+
dst,
|
|
1508
|
+
srcx,
|
|
1509
|
+
srcy,
|
|
1510
|
+
srcz,
|
|
1511
|
+
dstx,
|
|
1512
|
+
dsty,
|
|
1513
|
+
dstz,
|
|
1514
|
+
srcw,
|
|
1515
|
+
srch,
|
|
1516
|
+
srcd,
|
|
1517
|
+
dstw,
|
|
1518
|
+
dsth,
|
|
1519
|
+
dstd,
|
|
1520
|
+
srclevel,
|
|
1521
|
+
dstlevel,
|
|
1522
|
+
filter
|
|
1523
|
+
)
|
|
1524
|
+
end
|
|
1525
|
+
|
|
1526
|
+
---
|
|
1527
|
+
---Draw a box.
|
|
1528
|
+
---
|
|
1529
|
+
---This is like `Pass:cube`, except it takes 3 separate values for the scale.
|
|
1530
|
+
---
|
|
1531
|
+
---@param transform lovr.Mat4 # The transform of the box. Can also be provided as position, 3-component scale, and rotation using a mix of `Vectors` or numbers.
|
|
1532
|
+
---@param style? lovr.DrawStyle # Whether the box should be drawn filled or outlined.
|
|
1533
|
+
function Pass:box(transform, style) end
|
|
1534
|
+
|
|
1535
|
+
---
|
|
1536
|
+
---Draws a capsule.
|
|
1537
|
+
---
|
|
1538
|
+
---A capsule is shaped like a cylinder with a hemisphere on each end.
|
|
1539
|
+
---
|
|
1540
|
+
---
|
|
1541
|
+
---### NOTE:
|
|
1542
|
+
---The length of the capsule does not include the end caps.
|
|
1543
|
+
---
|
|
1544
|
+
---The local origin of the capsule is in the center, and the local z axis points towards the end caps.
|
|
1545
|
+
---
|
|
1546
|
+
---@overload fun(self: lovr.Pass, p1: lovr.Vec3, p2: lovr.Vec3, radius?: number, segments?: number)
|
|
1547
|
+
---@param transform lovr.Mat4 # The transform of the capsule. Can also be provided as position, scale, and rotation using a mix of `Vectors` or numbers. When using numbers for the scale, 2 should be provided: one for the radius and one for the length. When using a matrix or a vector for the scale, the X and Y components are the radius and the Z component is the length.
|
|
1548
|
+
---@param segments? number # The number of circular segments to render.
|
|
1549
|
+
function Pass:capsule(transform, segments) end
|
|
1550
|
+
|
|
1551
|
+
---
|
|
1552
|
+
---Draws a circle.
|
|
1553
|
+
---
|
|
1554
|
+
---
|
|
1555
|
+
---### NOTE:
|
|
1556
|
+
---The local origin of the circle is in its center, and the local z axis goes through the center.
|
|
1557
|
+
---
|
|
1558
|
+
---@param transform lovr.Mat4 # The transform of the circle. Can also be provided as position, radius, and rotation, using a mix of `Vectors` or numbers.
|
|
1559
|
+
---@param style? lovr.DrawStyle # Whether the circle should be filled or outlined.
|
|
1560
|
+
---@param angle1? number # The angle of the beginning of the arc.
|
|
1561
|
+
---@param angle2? number # angle of the end of the arc.
|
|
1562
|
+
---@param segments? number # The number of segments to render.
|
|
1563
|
+
function Pass:circle(transform, style, angle1, angle2, segments) end
|
|
1564
|
+
|
|
1565
|
+
---
|
|
1566
|
+
---Clears a Buffer or Texture.
|
|
1567
|
+
---
|
|
1568
|
+
---This can only be called on a transfer pass, which can be created with `lovr.graphics.getPass`.
|
|
1569
|
+
---
|
|
1570
|
+
---@overload fun(self: lovr.Pass, texture: lovr.Texture, color: lovr.Vec4, layer?: number, layers?: number, level?: number, levels?: number)
|
|
1571
|
+
---@param buffer lovr.Buffer # The Buffer to clear.
|
|
1572
|
+
---@param index? number # The index of the first item to clear.
|
|
1573
|
+
---@param count? number # The number of items to clear. If `nil`, clears to the end of the Buffer.
|
|
1574
|
+
function Pass:clear(buffer, index, count) end
|
|
1575
|
+
|
|
1576
|
+
---
|
|
1577
|
+
---Runs a compute shader.
|
|
1578
|
+
---
|
|
1579
|
+
---Before calling this, a compute shader needs to be active, using `Pass:setShader`.
|
|
1580
|
+
---
|
|
1581
|
+
---This can only be called on a Pass with the `compute` type, which can be created using `lovr.graphics.getPass`.
|
|
1582
|
+
---
|
|
1583
|
+
---
|
|
1584
|
+
---### NOTE:
|
|
1585
|
+
---Usually compute shaders are run many times in parallel: once for each pixel in an image, once per particle, once per object, etc.
|
|
1586
|
+
---
|
|
1587
|
+
---The 3 arguments represent how many times to run, or "dispatch", the compute shader, in up to 3 dimensions.
|
|
1588
|
+
---
|
|
1589
|
+
---Each element of this grid is called a **workgroup**.
|
|
1590
|
+
---
|
|
1591
|
+
---To make things even more complicated, each workgroup itself is made up of a set of "mini GPU threads", which are called **local workgroups**.
|
|
1592
|
+
---
|
|
1593
|
+
---Like workgroups, the local workgroup size can also be 3D.
|
|
1594
|
+
---
|
|
1595
|
+
---It's declared in the shader code, like this:
|
|
1596
|
+
---
|
|
1597
|
+
--- layout(local_size_x = w, local_size_y = h, local_size_z = d) in;
|
|
1598
|
+
---
|
|
1599
|
+
---All these 3D grids can get confusing, but the basic idea is to make the local workgroup size a small block of e.g. 32 particles or 8x8 pixels or 4x4x4 voxels, and then dispatch however many workgroups are needed to cover a list of particles, image, voxel field, etc.
|
|
1600
|
+
---
|
|
1601
|
+
---The reason to do it this way is that the GPU runs its threads in little fixed-size bundles called subgroups.
|
|
1602
|
+
---
|
|
1603
|
+
---Subgroups are usually 32 or 64 threads (the exact size is given by the `subgroupSize` property of `lovr.graphics.getDevice`) and all run together.
|
|
1604
|
+
---
|
|
1605
|
+
---If the local workgroup size was `1x1x1`, then the GPU would only run 1 thread per subgroup and waste the other 31 or 63.
|
|
1606
|
+
---
|
|
1607
|
+
---So for the best performance, be sure to set a local workgroup size bigger than 1!
|
|
1608
|
+
---
|
|
1609
|
+
---Inside the compute shader, a few builtin variables can be used to figure out which workgroup is running:
|
|
1610
|
+
---
|
|
1611
|
+
---- `uvec3 WorkgroupCount` is the workgroup count per axis (the `Pass:compute` arguments).
|
|
1612
|
+
---- `uvec3 WorkgroupSize` is the local workgroup size (declared in the shader).
|
|
1613
|
+
---- `uvec3 WorkgroupID` is the index of the current (global) workgroup.
|
|
1614
|
+
---- `uvec3 LocalThreadID` is the index of the local workgroup inside its workgroup.
|
|
1615
|
+
---- `uint LocalThreadIndex` is a 1D version of `LocalThreadID`.
|
|
1616
|
+
---- `uvec3 GlobalThreadID` is the unique identifier for a thread within all workgroups in a
|
|
1617
|
+
--- dispatch. It's equivalent to `WorkgroupID * WorkgroupSize + LocalThreadID` (usually what you
|
|
1618
|
+
--- want!)
|
|
1619
|
+
---
|
|
1620
|
+
---Indirect compute dispatches are useful to "chain" compute shaders together, while keeping all of the data on the GPU.
|
|
1621
|
+
---
|
|
1622
|
+
---The first dispatch can do some computation and write some results to buffers, then the second indirect dispatch can use the data in those buffers to know how many times it should run.
|
|
1623
|
+
---
|
|
1624
|
+
---An example would be a compute shader that does some sort of object culling, writing the number of visible objects to a buffer along with the IDs of each one. Subsequent compute shaders can be indirectly dispatched to perform extra processing on the visible objects.
|
|
1625
|
+
---
|
|
1626
|
+
---Finally, an indirect draw can be used to render them.
|
|
1627
|
+
---
|
|
1628
|
+
---@overload fun(self: lovr.Pass, buffer: lovr.Buffer, offset?: number)
|
|
1629
|
+
---@param x? number # The number of workgroups to dispatch in the x dimension.
|
|
1630
|
+
---@param y? number # The number of workgroups to dispatch in the y dimension.
|
|
1631
|
+
---@param z? number # The number of workgroups to dispatch in the z dimension.
|
|
1632
|
+
function Pass:compute(x, y, z) end
|
|
1633
|
+
|
|
1634
|
+
---
|
|
1635
|
+
---Draws a cone.
|
|
1636
|
+
---
|
|
1637
|
+
---
|
|
1638
|
+
---### NOTE:
|
|
1639
|
+
---The local origin is at the center of the base of the cone, and the negative z axis points towards the tip.
|
|
1640
|
+
---
|
|
1641
|
+
---@param transform lovr.Mat4 # The transform of the cone. Can also be provided as position, scale, and rotation using a mix of `Vectors` or numbers. When using numbers for the scale, 2 should be provided: one for the radius and one for the length. When using a matrix or a vector for the scale, the X and Y components are the radius and the Z component is the length.
|
|
1642
|
+
---@param segments? number # The number of segments in the cone.
|
|
1643
|
+
function Pass:cone(transform, segments) end
|
|
1644
|
+
|
|
1645
|
+
---
|
|
1646
|
+
---Copies data to or between `Buffer` and `Texture` objects.
|
|
1647
|
+
---
|
|
1648
|
+
---This can only be called on a transfer pass, which can be created with `lovr.graphics.getPass`.
|
|
1649
|
+
---
|
|
1650
|
+
---@overload fun(self: lovr.Pass, blob: lovr.Blob, bufferdst: lovr.Buffer, srcoffset?: number, dstoffset?: number, size?: number)
|
|
1651
|
+
---@overload fun(self: lovr.Pass, buffersrc: lovr.Buffer, bufferdst: lovr.Buffer, srcoffset?: number, dstoffset?: number, size?: number)
|
|
1652
|
+
---@overload fun(self: lovr.Pass, image: lovr.Image, texturedst: lovr.Texture, srcx?: number, srcy?: number, dstx?: number, dsty?: number, width?: number, height?: number, srclayer?: number, dstlayer?: number, layers?: number, srclevel?: number, dstlevel?: number)
|
|
1653
|
+
---@overload fun(self: lovr.Pass, texturesrc: lovr.Texture, texturedst: lovr.Texture, srcx?: number, srcy?: number, dstx?: number, dsty?: number, width?: number, height?: number, srclayer?: number, dstlayer?: number, layers?: number, srclevel?: number, dstlevel?: number)
|
|
1654
|
+
---@overload fun(self: lovr.Pass, tally: lovr.Tally, bufferdst: lovr.Buffer, srcindex?: number, dstoffset?: number, count?: number)
|
|
1655
|
+
---@param table table # A table to copy to the buffer.
|
|
1656
|
+
---@param bufferdst lovr.Buffer # The buffer to copy to.
|
|
1657
|
+
---@param srcindex? number # The index of the first item to begin copying from.
|
|
1658
|
+
---@param dstindex? number # The index of the first item in the buffer to begin copying to.
|
|
1659
|
+
---@param count? number # The number of items to copy. If nil, copies as many items as possible.
|
|
1660
|
+
function Pass:copy(table, bufferdst, srcindex, dstindex, count) end
|
|
1661
|
+
|
|
1662
|
+
---
|
|
1663
|
+
---Draws a cube.
|
|
1664
|
+
---
|
|
1665
|
+
---
|
|
1666
|
+
---### NOTE:
|
|
1667
|
+
---The local origin is in the center of the cube.
|
|
1668
|
+
---
|
|
1669
|
+
---@param transform lovr.Mat4 # The transform of the cube. Can also be provided as position, 1-component scale, and rotation using a mix of `Vectors` or numbers.
|
|
1670
|
+
---@param style? lovr.DrawStyle # Whether the cube should be drawn filled or outlined.
|
|
1671
|
+
function Pass:cube(transform, style) end
|
|
1672
|
+
|
|
1673
|
+
---
|
|
1674
|
+
---Draws a cylinder.
|
|
1675
|
+
---
|
|
1676
|
+
---
|
|
1677
|
+
---### NOTE:
|
|
1678
|
+
---The local origin is in the center of the cylinder, and the length of the cylinder is along the z axis.
|
|
1679
|
+
---
|
|
1680
|
+
---@overload fun(self: lovr.Pass, p1: lovr.Vec3, p2: lovr.Vec3, radius: number, capped?: boolean, angle1?: number, angle2?: number, segments?: number)
|
|
1681
|
+
---@param transform lovr.Mat4 # The transform of the cylinder. Can also be provided as position, scale, and rotation using a mix of `Vectors` or numbers. When using numbers for the scale, 2 should be provided: one for the radius and one for the length. When using a matrix or a vector for the scale, the X and Y components are the radius and the Z component is the length.
|
|
1682
|
+
---@param capped? boolean # Whether the tops and bottoms of the cylinder should be rendered.
|
|
1683
|
+
---@param angle1? number # The angle of the beginning of the arc.
|
|
1684
|
+
---@param angle2? number # angle of the end of the arc.
|
|
1685
|
+
---@param segments? number # The number of circular segments to render.
|
|
1686
|
+
function Pass:cylinder(transform, capped, angle1, angle2, segments) end
|
|
1687
|
+
|
|
1688
|
+
---
|
|
1689
|
+
---Draws a model.
|
|
1690
|
+
---
|
|
1691
|
+
---@overload fun(self: lovr.Pass, model: lovr.Model, transform: lovr.Mat4, nodename?: string, children?: boolean, instances?: number)
|
|
1692
|
+
---@param model lovr.Model # The model to draw.
|
|
1693
|
+
---@param transform lovr.Mat4 # The transform of the model. Can also be provided as a position, 1-component scale, and rotation using a combination of `Vectors` and numbers.
|
|
1694
|
+
---@param nodeindex? number # The index of the node to draw. If nil, the root node is drawn.
|
|
1695
|
+
---@param children? boolean # Whether the children of the node should be drawn.
|
|
1696
|
+
---@param instances? number # The number of instances to draw.
|
|
1697
|
+
function Pass:draw(model, transform, nodeindex, children, instances) end
|
|
1698
|
+
|
|
1699
|
+
---
|
|
1700
|
+
---Draws a fullscreen triangle.
|
|
1701
|
+
---
|
|
1702
|
+
---The `fill` shader is used, which stretches the triangle across the screen.
|
|
1703
|
+
---
|
|
1704
|
+
---
|
|
1705
|
+
---### NOTE:
|
|
1706
|
+
---This function has some special behavior for array textures:
|
|
1707
|
+
---
|
|
1708
|
+
---- Filling a single-layer texture to a multi-layer canvas will mirror the texture to all layers,
|
|
1709
|
+
--- just like regular drawing.
|
|
1710
|
+
---- Filling a 2-layer texture to a mono canvas will render the 2 layers side-by-side.
|
|
1711
|
+
---- Filling a multi-layer texture to a multi-layer canvas will do a layer-by-layer fill (the layer
|
|
1712
|
+
--- counts must match).
|
|
1713
|
+
---
|
|
1714
|
+
---@overload fun(self: lovr.Pass)
|
|
1715
|
+
---@param texture lovr.Texture # The texture to fill. If nil, the texture from the active material is used.
|
|
1716
|
+
function Pass:fill(texture) end
|
|
1717
|
+
|
|
1718
|
+
---
|
|
1719
|
+
---Returns the clear values of the pass.
|
|
1720
|
+
---
|
|
1721
|
+
---@return table clears # The clear values for the pass. Numeric keys will contain clear values for color textures, either as a table of r, g, b, a values or a boolean. If the pass has a depth texture, there will also be `depth` and `stencil` keys containing the clear values or booleans.
|
|
1722
|
+
function Pass:getClear() end
|
|
1723
|
+
|
|
1724
|
+
---
|
|
1725
|
+
---Returns the dimensions of the textures attached to the render pass.
|
|
1726
|
+
---
|
|
1727
|
+
---
|
|
1728
|
+
---### NOTE:
|
|
1729
|
+
---If the pass is not a render pass, this function returns zeros.
|
|
1730
|
+
---
|
|
1731
|
+
---@return number width # The texture width.
|
|
1732
|
+
---@return number height # The texture height.
|
|
1733
|
+
function Pass:getDimensions() end
|
|
1734
|
+
|
|
1735
|
+
---
|
|
1736
|
+
---Returns the height of the textures attached to the render pass.
|
|
1737
|
+
---
|
|
1738
|
+
---
|
|
1739
|
+
---### NOTE:
|
|
1740
|
+
---If the pass is not a render pass, this function returns zero.
|
|
1741
|
+
---
|
|
1742
|
+
---@return number height # The texture height.
|
|
1743
|
+
function Pass:getHeight() end
|
|
1744
|
+
|
|
1745
|
+
---
|
|
1746
|
+
---Returns the projection for a single view.
|
|
1747
|
+
---
|
|
1748
|
+
---@overload fun(self: lovr.Pass, view: number, matrix: lovr.Mat4):lovr.Mat4
|
|
1749
|
+
---@param view number # The view index.
|
|
1750
|
+
---@return number left # The left field of view angle, in radians.
|
|
1751
|
+
---@return number right # The right field of view angle, in radians.
|
|
1752
|
+
---@return number up # The top field of view angle, in radians.
|
|
1753
|
+
---@return number down # The bottom field of view angle, in radians.
|
|
1754
|
+
function Pass:getProjection(view) end
|
|
1755
|
+
|
|
1756
|
+
---
|
|
1757
|
+
---Returns the antialiasing setting of a render pass.
|
|
1758
|
+
---
|
|
1759
|
+
---@return number samples # The number of samples used for rendering. Currently, will be 1 or 4.
|
|
1760
|
+
function Pass:getSampleCount() end
|
|
1761
|
+
|
|
1762
|
+
---
|
|
1763
|
+
---Returns the textures a render pass is rendering to.
|
|
1764
|
+
---
|
|
1765
|
+
---@return table target # A table of the color textures targeted by the pass, with an additional `depth` key if the pass has a depth texture.
|
|
1766
|
+
function Pass:getTarget() end
|
|
1767
|
+
|
|
1768
|
+
---
|
|
1769
|
+
---Returns the type of the pass (render, compute, or transfer).
|
|
1770
|
+
---
|
|
1771
|
+
---The type restricts what kinds of functions can be called on the pass.
|
|
1772
|
+
---
|
|
1773
|
+
---@return lovr.PassType type # The type of the Pass.
|
|
1774
|
+
function Pass:getType() end
|
|
1775
|
+
|
|
1776
|
+
---
|
|
1777
|
+
---Returns the view count of a render pass.
|
|
1778
|
+
---
|
|
1779
|
+
---This is the layer count of the textures it is rendering to.
|
|
1780
|
+
---
|
|
1781
|
+
---
|
|
1782
|
+
---### NOTE:
|
|
1783
|
+
---A render pass has one "camera" for each view.
|
|
1784
|
+
---
|
|
1785
|
+
---Whenever something is drawn, it is broadcast to each view (layer) of each texture, using the corresponding camera.
|
|
1786
|
+
---
|
|
1787
|
+
---@return number views # The view count.
|
|
1788
|
+
function Pass:getViewCount() end
|
|
1789
|
+
|
|
1790
|
+
---
|
|
1791
|
+
---Get the pose of a single view.
|
|
1792
|
+
---
|
|
1793
|
+
---@overload fun(self: lovr.Pass, view: number, matrix: lovr.Mat4, invert: boolean):lovr.Mat4
|
|
1794
|
+
---@param view number # The view index.
|
|
1795
|
+
---@return number x # The x position of the viewer, in meters.
|
|
1796
|
+
---@return number y # The y position of the viewer, in meters.
|
|
1797
|
+
---@return number z # The z position of the viewer, in meters.
|
|
1798
|
+
---@return number angle # The number of radians the viewer is rotated around its axis of rotation.
|
|
1799
|
+
---@return number ax # The x component of the axis of rotation.
|
|
1800
|
+
---@return number ay # The y component of the axis of rotation.
|
|
1801
|
+
---@return number az # The z component of the axis of rotation.
|
|
1802
|
+
function Pass:getViewPose(view) end
|
|
1803
|
+
|
|
1804
|
+
---
|
|
1805
|
+
---Returns the width of the textures attached to the render pass.
|
|
1806
|
+
---
|
|
1807
|
+
---
|
|
1808
|
+
---### NOTE:
|
|
1809
|
+
---If the pass is not a render pass, this function returns zero.
|
|
1810
|
+
---
|
|
1811
|
+
---@return number width # The texture width.
|
|
1812
|
+
function Pass:getWidth() end
|
|
1813
|
+
|
|
1814
|
+
---
|
|
1815
|
+
---Draws a line between points.
|
|
1816
|
+
---
|
|
1817
|
+
---`Pass:mesh` can also be used to draw line segments using the `line` `MeshMode`.
|
|
1818
|
+
---
|
|
1819
|
+
---
|
|
1820
|
+
---### NOTE:
|
|
1821
|
+
---There is currently no way to increase line thickness.
|
|
1822
|
+
---
|
|
1823
|
+
---@overload fun(self: lovr.Pass, t: table)
|
|
1824
|
+
---@overload fun(self: lovr.Pass, v1: lovr.Vec3, v2: lovr.Vec3, ...)
|
|
1825
|
+
---@param x1 number # The x coordinate of the first point.
|
|
1826
|
+
---@param y1 number # The y coordinate of the first point.
|
|
1827
|
+
---@param z1 number # The z coordinate of the first point.
|
|
1828
|
+
---@param x2 number # The x coordinate of the next point.
|
|
1829
|
+
---@param y2 number # The y coordinate of the next point.
|
|
1830
|
+
---@param z2 number # The z coordinate of the next point.
|
|
1831
|
+
---@vararg any # More points to add to the line.
|
|
1832
|
+
function Pass:line(x1, y1, z1, x2, y2, z2, ...) end
|
|
1833
|
+
|
|
1834
|
+
---
|
|
1835
|
+
---Draws a mesh.
|
|
1836
|
+
---
|
|
1837
|
+
---
|
|
1838
|
+
---### NOTE:
|
|
1839
|
+
---The index buffer defines the order the vertices are drawn in.
|
|
1840
|
+
---
|
|
1841
|
+
---It can be used to reorder, reuse, or omit vertices from the mesh.
|
|
1842
|
+
---
|
|
1843
|
+
---The active `MeshMode` controls whether the vertices are drawn as points, lines, or triangles.
|
|
1844
|
+
---
|
|
1845
|
+
---The active `Material` is applied to the mesh.
|
|
1846
|
+
---
|
|
1847
|
+
---@overload fun(self: lovr.Pass, vertices?: lovr.Buffer, indices: lovr.Buffer, transform: lovr.Mat4, start?: number, count?: number, instances?: number, base?: number)
|
|
1848
|
+
---@overload fun(self: lovr.Pass, vertices?: lovr.Buffer, indices: lovr.Buffer, draws: lovr.Buffer, drawcount: number, offset: number, stride: number)
|
|
1849
|
+
---@overload fun(self: lovr.Pass, vertexcount: number, transform: lovr.Mat4)
|
|
1850
|
+
---@overload fun(self: lovr.Pass, vertexcount: number, indices: lovr.Buffer, transform: lovr.Mat4)
|
|
1851
|
+
---@param vertices? lovr.Buffer # The buffer containing the vertices to draw.
|
|
1852
|
+
---@param transform lovr.Mat4 # The transform to apply to the mesh. Can also be provided as a position, 1-component scale, and rotation using a combination of `Vectors` and numbers.
|
|
1853
|
+
---@param start? number # The 1-based index of the first vertex to render from the vertex buffer (or the first index, when using an index buffer).
|
|
1854
|
+
---@param count? number # The number of vertices to render (or the number of indices, when using an index buffer). When `nil`, as many vertices or indices as possible will be drawn (based on the length of the Buffers and `start`).
|
|
1855
|
+
---@param instances? number # The number of copies of the mesh to render.
|
|
1856
|
+
---@param base? number # A base offset to apply to vertex indices.
|
|
1857
|
+
function Pass:mesh(vertices, transform, start, count, instances, base) end
|
|
1858
|
+
|
|
1859
|
+
---
|
|
1860
|
+
---Generates mipmaps for a texture.
|
|
1861
|
+
---
|
|
1862
|
+
---This can only be called on a transfer pass, which can be created with `lovr.graphics.getPass`.
|
|
1863
|
+
---
|
|
1864
|
+
---When rendering to textures with a render pass, it's also possible to automatically regenerate mipmaps after rendering by adding the `mipmaps` flag when creating the pass.
|
|
1865
|
+
---
|
|
1866
|
+
---@param texture lovr.Texture # The texture to mipmap.
|
|
1867
|
+
---@param base? number # The index of the mipmap used to generate the remaining mipmaps.
|
|
1868
|
+
---@param count? number # The number of mipmaps to generate. If nil, generates the remaining mipmaps.
|
|
1869
|
+
function Pass:mipmap(texture, base, count) end
|
|
1870
|
+
|
|
1871
|
+
---
|
|
1872
|
+
---Resets the transform back to the origin.
|
|
1873
|
+
---
|
|
1874
|
+
function Pass:origin() end
|
|
1875
|
+
|
|
1876
|
+
---
|
|
1877
|
+
---Draws a plane.
|
|
1878
|
+
---
|
|
1879
|
+
---@param transform lovr.Mat4 # The transform of the plane. Can also be provided as a position, 2-component scale, and rotation using a combination of `Vectors`, and numbers.
|
|
1880
|
+
---@param style? lovr.DrawStyle # Whether the plane should be drawn filled or outlined.
|
|
1881
|
+
---@param columns? number # The number of horizontal segments in the plane.
|
|
1882
|
+
---@param rows? number # The number of vertical segments in the plane.
|
|
1883
|
+
function Pass:plane(transform, style, columns, rows) end
|
|
1884
|
+
|
|
1885
|
+
---
|
|
1886
|
+
---Draws points.
|
|
1887
|
+
---
|
|
1888
|
+
---`Pass:mesh` can also be used to draw points using a `Buffer`.
|
|
1889
|
+
---
|
|
1890
|
+
---
|
|
1891
|
+
---### NOTE:
|
|
1892
|
+
---To change the size of points, set the `pointSize` shader flag in `lovr.graphics.newShader` or write to the `PointSize` variable in the vertex shader.
|
|
1893
|
+
---
|
|
1894
|
+
---Points are always the same size on the screen, regardless of distance, and the units are in pixels.
|
|
1895
|
+
---
|
|
1896
|
+
---@overload fun(self: lovr.Pass, t: table)
|
|
1897
|
+
---@overload fun(self: lovr.Pass, v: lovr.Vec3, ...)
|
|
1898
|
+
---@param x number # The x coordinate of the first point.
|
|
1899
|
+
---@param y number # The y coordinate of the first point.
|
|
1900
|
+
---@param z number # The z coordinate of the first point.
|
|
1901
|
+
---@vararg any # More points.
|
|
1902
|
+
function Pass:points(x, y, z, ...) end
|
|
1903
|
+
|
|
1904
|
+
---
|
|
1905
|
+
---Pops the transform or render state stack, restoring it to the state it was in when it was last pushed.
|
|
1906
|
+
---
|
|
1907
|
+
---
|
|
1908
|
+
---### NOTE:
|
|
1909
|
+
---If a stack is popped without a corresponding push, the stack "underflows" which causes an error.
|
|
1910
|
+
---
|
|
1911
|
+
---@param stack? lovr.StackType # The type of stack to pop.
|
|
1912
|
+
function Pass:pop(stack) end
|
|
1913
|
+
|
|
1914
|
+
---
|
|
1915
|
+
---Saves a copy of the transform or render states.
|
|
1916
|
+
---
|
|
1917
|
+
---Further changes can be made to the transform or render states, and afterwards `Pass:pop` can be used to restore the original state.
|
|
1918
|
+
---
|
|
1919
|
+
---Pushes and pops can be nested, but it's an error to pop without a corresponding push.
|
|
1920
|
+
---
|
|
1921
|
+
---
|
|
1922
|
+
---### NOTE:
|
|
1923
|
+
---Each stack has a limit of the number of copies it can store.
|
|
1924
|
+
---
|
|
1925
|
+
---There can be 16 transforms and 4 render states saved.
|
|
1926
|
+
---
|
|
1927
|
+
---The `state` stack does not save the camera info or shader variables changed with `Pass:send`.
|
|
1928
|
+
---
|
|
1929
|
+
---@param stack? lovr.StackType # The type of stack to push.
|
|
1930
|
+
function Pass:push(stack) end
|
|
1931
|
+
|
|
1932
|
+
---
|
|
1933
|
+
---Creates a `Readback` object which asynchronously downloads data from a `Buffer`, `Texture`, or `Tally`.
|
|
1934
|
+
---
|
|
1935
|
+
---The readback can be polled for completion, or, after this transfer pass is submitted, `Readback:wait` can be used to block until the download is complete.
|
|
1936
|
+
---
|
|
1937
|
+
---This can only be called on a transfer pass, which can be created with `lovr.graphics.getPass`.
|
|
1938
|
+
---
|
|
1939
|
+
---@overload fun(self: lovr.Pass, texture: lovr.Texture, x?: number, y?: number, layer?: number, level?: number, width?: number, height?: number):lovr.Readback
|
|
1940
|
+
---@overload fun(self: lovr.Pass, tally: lovr.Tally, index: number, count: number):lovr.Readback
|
|
1941
|
+
---@param buffer lovr.Buffer # The Buffer to download data from.
|
|
1942
|
+
---@param index number # The index of the first item to download.
|
|
1943
|
+
---@param count number # The number of items to download.
|
|
1944
|
+
---@return lovr.Readback readback # The new readback.
|
|
1945
|
+
function Pass:read(buffer, index, count) end
|
|
1946
|
+
|
|
1947
|
+
---
|
|
1948
|
+
---Rotates the coordinate system.
|
|
1949
|
+
---
|
|
1950
|
+
---@param rotation lovr.Quat # A quaternion containing the rotation to apply. Can also be provided as 4 numbers in angle-axis representation.
|
|
1951
|
+
function Pass:rotate(rotation) end
|
|
1952
|
+
|
|
1953
|
+
---
|
|
1954
|
+
---Scales the coordinate system.
|
|
1955
|
+
---
|
|
1956
|
+
---@param scale lovr.Vec3 # The scale to apply to the coordinate system. Can also be provided as 1 or 3 numbers.
|
|
1957
|
+
function Pass:scale(scale) end
|
|
1958
|
+
|
|
1959
|
+
---
|
|
1960
|
+
---Sends a value to a variable in the Pass's active `Shader`.
|
|
1961
|
+
---
|
|
1962
|
+
---The active shader is changed using using `Pass:setShader`.
|
|
1963
|
+
---
|
|
1964
|
+
---
|
|
1965
|
+
---### NOTE:
|
|
1966
|
+
---Shader variables can be in different "sets".
|
|
1967
|
+
---
|
|
1968
|
+
---Variables changed by this function must be in set #2, because LÖVR uses set #0 and set #1 internally.
|
|
1969
|
+
---
|
|
1970
|
+
---The new value will persist until a new shader is set that uses a different "type" for the binding number of the variable.
|
|
1971
|
+
---
|
|
1972
|
+
---See `Pass:setShader` for more details.
|
|
1973
|
+
---
|
|
1974
|
+
---@overload fun(self: lovr.Pass, name: string, texture: lovr.Texture)
|
|
1975
|
+
---@overload fun(self: lovr.Pass, name: string, sampler: lovr.Sampler)
|
|
1976
|
+
---@overload fun(self: lovr.Pass, name: string, constant: any)
|
|
1977
|
+
---@overload fun(self: lovr.Pass, binding: number, buffer: lovr.Buffer)
|
|
1978
|
+
---@overload fun(self: lovr.Pass, binding: number, texture: lovr.Texture)
|
|
1979
|
+
---@overload fun(self: lovr.Pass, binding: number, sampler: lovr.Sampler)
|
|
1980
|
+
---@param name string # The name of the Shader variable.
|
|
1981
|
+
---@param buffer lovr.Buffer # The Buffer to assign.
|
|
1982
|
+
function Pass:send(name, buffer) end
|
|
1983
|
+
|
|
1984
|
+
---
|
|
1985
|
+
---Sets whether alpha to coverage is enabled.
|
|
1986
|
+
---
|
|
1987
|
+
---Alpha to coverage factors the alpha of a pixel into antialiasing calculations.
|
|
1988
|
+
---
|
|
1989
|
+
---It can be used to get antialiased edges on textures with transparency.
|
|
1990
|
+
---
|
|
1991
|
+
---It's often used for foliage.
|
|
1992
|
+
---
|
|
1993
|
+
---
|
|
1994
|
+
---### NOTE:
|
|
1995
|
+
---By default, alpha to coverage is disabled.
|
|
1996
|
+
---
|
|
1997
|
+
---@param enable boolean # Whether alpha to coverage should be enabled.
|
|
1998
|
+
function Pass:setAlphaToCoverage(enable) end
|
|
1999
|
+
|
|
2000
|
+
---
|
|
2001
|
+
---Sets the blend mode.
|
|
2002
|
+
---
|
|
2003
|
+
---When a pixel is drawn, the blend mode controls how it is mixed with the color and alpha of the pixel underneath it.
|
|
2004
|
+
---
|
|
2005
|
+
---
|
|
2006
|
+
---### NOTE:
|
|
2007
|
+
---The default blend mode is `alpha` with the `alphamultiply` alpha mode.
|
|
2008
|
+
---
|
|
2009
|
+
---@param blend lovr.BlendMode # The blend mode.
|
|
2010
|
+
---@param alphaBlend lovr.BlendAlphaMode # The alpha blend mode, used to control premultiplied alpha.
|
|
2011
|
+
function Pass:setBlendMode(blend, alphaBlend) end
|
|
2012
|
+
|
|
2013
|
+
---
|
|
2014
|
+
---Sets the color used for drawing.
|
|
2015
|
+
---
|
|
2016
|
+
---Color components are from 0 to 1.
|
|
2017
|
+
---
|
|
2018
|
+
---
|
|
2019
|
+
---### NOTE:
|
|
2020
|
+
---The default color is `(1, 1, 1, 1)`.
|
|
2021
|
+
---
|
|
2022
|
+
---@overload fun(self: lovr.Pass, t: table)
|
|
2023
|
+
---@overload fun(self: lovr.Pass, hex: number, a?: number)
|
|
2024
|
+
---@param r number # The red component of the color.
|
|
2025
|
+
---@param g number # The green component of the color.
|
|
2026
|
+
---@param b number # The blue component of the color.
|
|
2027
|
+
---@param a? number # The alpha component of the color.
|
|
2028
|
+
function Pass:setColor(r, g, b, a) end
|
|
2029
|
+
|
|
2030
|
+
---
|
|
2031
|
+
---Sets the color channels affected by drawing, on a per-channel basis.
|
|
2032
|
+
---
|
|
2033
|
+
---Disabling color writes is often used to render to the depth or stencil buffer without affecting existing pixel colors.
|
|
2034
|
+
---
|
|
2035
|
+
---
|
|
2036
|
+
---### NOTE:
|
|
2037
|
+
---By default, color writes are enabled for all channels.
|
|
2038
|
+
---
|
|
2039
|
+
---@overload fun(self: lovr.Pass, r: boolean, g: boolean, b: boolean, a: boolean)
|
|
2040
|
+
---@param enable boolean # Whether all color components should be affected by draws.
|
|
2041
|
+
function Pass:setColorWrite(enable) end
|
|
2042
|
+
|
|
2043
|
+
---
|
|
2044
|
+
---Sets whether the front or back faces of triangles are culled.
|
|
2045
|
+
---
|
|
2046
|
+
---
|
|
2047
|
+
---### NOTE:
|
|
2048
|
+
---The default cull mode is `none`.
|
|
2049
|
+
---
|
|
2050
|
+
---@param mode? lovr.CullMode # Whether `front` faces, `back` faces, or `none` of the faces should be culled.
|
|
2051
|
+
function Pass:setCullMode(mode) end
|
|
2052
|
+
|
|
2053
|
+
---
|
|
2054
|
+
---Enables or disables depth clamp.
|
|
2055
|
+
---
|
|
2056
|
+
---Normally, when pixels fall outside of the clipping planes, they are clipped (not rendered).
|
|
2057
|
+
---
|
|
2058
|
+
---Depth clamp will instead render these pixels, clamping their depth on to the clipping planes.
|
|
2059
|
+
---
|
|
2060
|
+
---
|
|
2061
|
+
---### NOTE:
|
|
2062
|
+
---This isn\'t supported on all GPUs.
|
|
2063
|
+
---
|
|
2064
|
+
---Use the `depthClamp` feature of `lovr.graphics.getFeatures` to check for support.
|
|
2065
|
+
---
|
|
2066
|
+
---If depth clamp is enabled when unsupported, it will silently fall back to depth clipping.
|
|
2067
|
+
---
|
|
2068
|
+
---Depth clamping is not enabled by default.
|
|
2069
|
+
---
|
|
2070
|
+
---@param enable boolean # Whether depth clamp should be enabled.
|
|
2071
|
+
function Pass:setDepthClamp(enable) end
|
|
2072
|
+
|
|
2073
|
+
---
|
|
2074
|
+
---Set the depth offset.
|
|
2075
|
+
---
|
|
2076
|
+
---This is a constant offset added to the depth value of pixels.
|
|
2077
|
+
---
|
|
2078
|
+
---It can be used to fix Z fighting when rendering decals or other nearly-overlapping objects.
|
|
2079
|
+
---
|
|
2080
|
+
---
|
|
2081
|
+
---### NOTE:
|
|
2082
|
+
---The default depth offset is zero for both values.
|
|
2083
|
+
---
|
|
2084
|
+
---@param offset? number # The depth offset.
|
|
2085
|
+
---@param sloped? number # The sloped depth offset.
|
|
2086
|
+
function Pass:setDepthOffset(offset, sloped) end
|
|
2087
|
+
|
|
2088
|
+
---
|
|
2089
|
+
---Sets the depth test.
|
|
2090
|
+
---
|
|
2091
|
+
---
|
|
2092
|
+
---### NOTE:
|
|
2093
|
+
---When using LÖVR's default projection (reverse Z with infinite far plane) the default depth test is `gequal`, depth values of 0.0 are on the far plane and depth values of 1.0 are on the near plane, closer to the camera.
|
|
2094
|
+
---
|
|
2095
|
+
---A depth buffer must be present to use the depth test, but this is enabled by default.
|
|
2096
|
+
---
|
|
2097
|
+
---@overload fun(self: lovr.Pass)
|
|
2098
|
+
---@param test lovr.CompareMode # The new depth test to use.
|
|
2099
|
+
function Pass:setDepthTest(test) end
|
|
2100
|
+
|
|
2101
|
+
---
|
|
2102
|
+
---Sets whether draws write to the depth buffer.
|
|
2103
|
+
---
|
|
2104
|
+
---When a pixel is drawn, if depth writes are enabled and the pixel passes the depth test, the depth buffer will be updated with the pixel's depth value.
|
|
2105
|
+
---
|
|
2106
|
+
---
|
|
2107
|
+
---### NOTE:
|
|
2108
|
+
---The default depth write is `true`.
|
|
2109
|
+
---
|
|
2110
|
+
---@param write boolean # Whether the depth buffer should be affected by draws.
|
|
2111
|
+
function Pass:setDepthWrite(write) end
|
|
2112
|
+
|
|
2113
|
+
---
|
|
2114
|
+
---Sets the font used for `Pass:text`.
|
|
2115
|
+
---
|
|
2116
|
+
---@param font lovr.Font # The Font to use when rendering text.
|
|
2117
|
+
function Pass:setFont(font) end
|
|
2118
|
+
|
|
2119
|
+
---
|
|
2120
|
+
---Sets the material.
|
|
2121
|
+
---
|
|
2122
|
+
---This will apply to most drawing, except for text, skyboxes, and models, which use their own materials.
|
|
2123
|
+
---
|
|
2124
|
+
---@overload fun(self: lovr.Pass, texture: lovr.Texture)
|
|
2125
|
+
---@overload fun(self: lovr.Pass)
|
|
2126
|
+
---@param material lovr.Material # The material to use for drawing.
|
|
2127
|
+
function Pass:setMaterial(material) end
|
|
2128
|
+
|
|
2129
|
+
---
|
|
2130
|
+
---Changes the way vertices are connected together when drawing using `Pass:mesh`.
|
|
2131
|
+
---
|
|
2132
|
+
---
|
|
2133
|
+
---### NOTE:
|
|
2134
|
+
---The default mesh mode is `triangles`.
|
|
2135
|
+
---
|
|
2136
|
+
---@param mode lovr.MeshMode # The mesh mode to use.
|
|
2137
|
+
function Pass:setMeshMode(mode) end
|
|
2138
|
+
|
|
2139
|
+
---
|
|
2140
|
+
---Sets the projection for a single view.
|
|
2141
|
+
---
|
|
2142
|
+
---4 field of view angles can be used, similar to the field of view returned by `lovr.headset.getViewAngles`.
|
|
2143
|
+
---
|
|
2144
|
+
---Alternatively, a projection matrix can be used for other types of projections like orthographic, oblique, etc.
|
|
2145
|
+
---
|
|
2146
|
+
---Up to 6 views are supported.
|
|
2147
|
+
---
|
|
2148
|
+
---The Pass returned by `lovr.headset.getPass` will have its views automatically configured to match the headset.
|
|
2149
|
+
---
|
|
2150
|
+
---
|
|
2151
|
+
---### NOTE:
|
|
2152
|
+
---A far clipping plane of 0.0 can be used for an infinite far plane with reversed Z range.
|
|
2153
|
+
---
|
|
2154
|
+
---This is the default because it improves depth precision and reduces Z fighting.
|
|
2155
|
+
---
|
|
2156
|
+
---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`.
|
|
2157
|
+
---
|
|
2158
|
+
---@overload fun(self: lovr.Pass, view: number, matrix: lovr.Mat4)
|
|
2159
|
+
---@param view number # The index of the view to update.
|
|
2160
|
+
---@param left number # The left field of view angle, in radians.
|
|
2161
|
+
---@param right number # The right field of view angle, in radians.
|
|
2162
|
+
---@param up number # The top field of view angle, in radians.
|
|
2163
|
+
---@param down number # The bottom field of view angle, in radians.
|
|
2164
|
+
---@param near? number # The near clipping plane distance, in meters.
|
|
2165
|
+
---@param far? number # The far clipping plane distance, in meters.
|
|
2166
|
+
function Pass:setProjection(view, left, right, up, down, near, far) end
|
|
2167
|
+
|
|
2168
|
+
---
|
|
2169
|
+
---Sets the default `Sampler` to use when sampling textures.
|
|
2170
|
+
---
|
|
2171
|
+
---It is also possible to send a custom sampler to a shader using `Pass:send` and use that instead, which allows customizing the sampler on a per-texture basis.
|
|
2172
|
+
---
|
|
2173
|
+
---
|
|
2174
|
+
---### NOTE:
|
|
2175
|
+
---The `getPixel` shader helper function will use this sampler.
|
|
2176
|
+
---
|
|
2177
|
+
---@overload fun(self: lovr.Pass, sampler: lovr.Sampler)
|
|
2178
|
+
---@param filter? lovr.FilterMode # The default filter mode to use when sampling textures (the `repeat` wrap mode will be used).
|
|
2179
|
+
function Pass:setSampler(filter) end
|
|
2180
|
+
|
|
2181
|
+
---
|
|
2182
|
+
---Sets the scissor rectangle.
|
|
2183
|
+
---
|
|
2184
|
+
---Any pixels outside the scissor rectangle will not be drawn.
|
|
2185
|
+
---
|
|
2186
|
+
---
|
|
2187
|
+
---### NOTE:
|
|
2188
|
+
---`x` and `y` can not be negative.
|
|
2189
|
+
---
|
|
2190
|
+
---The default scissor rectangle covers the entire dimensions of the render pass textures.
|
|
2191
|
+
---
|
|
2192
|
+
---@param x number # The x coordinate of the upper-left corner of the scissor rectangle.
|
|
2193
|
+
---@param y number # The y coordinate of the upper-left corner of the scissor rectangle.
|
|
2194
|
+
---@param w number # The width of the scissor rectangle.
|
|
2195
|
+
---@param h number # The height of the scissor rectangle.
|
|
2196
|
+
function Pass:setScissor(x, y, w, h) end
|
|
2197
|
+
|
|
2198
|
+
---
|
|
2199
|
+
---Sets the active shader.
|
|
2200
|
+
---
|
|
2201
|
+
---In a render pass, the Shader will affect all drawing operations until it is changed again.
|
|
2202
|
+
---
|
|
2203
|
+
---In a compute pass, the Shader will be run when `Pass:compute` is called.
|
|
2204
|
+
---
|
|
2205
|
+
---
|
|
2206
|
+
---### NOTE:
|
|
2207
|
+
---Changing the shader will preserve resource bindings (the ones set using `Pass:send`) **unless** the new shader declares a resource for a binding number using a different type than the current shader.
|
|
2208
|
+
---
|
|
2209
|
+
---In this case, the resource "type" means one of the following:
|
|
2210
|
+
---
|
|
2211
|
+
---- Uniform buffer (`uniform`).
|
|
2212
|
+
---- Storage buffer (`buffer`).
|
|
2213
|
+
---- Sampled texture, (`uniform texture<type>`).
|
|
2214
|
+
---- Storage texture, (`uniform image<type>`).
|
|
2215
|
+
---- Sampler (`uniform sampler`).
|
|
2216
|
+
---
|
|
2217
|
+
---If the new shader doesn't declare a resource in a particular binding number, any resource there will be preserved.
|
|
2218
|
+
---
|
|
2219
|
+
---If there's a clash in resource types like this, the variable will be "cleared".
|
|
2220
|
+
---
|
|
2221
|
+
---Using a buffer variable that has been cleared is not well-defined, and may return random data or even crash the GPU.
|
|
2222
|
+
---
|
|
2223
|
+
---For textures, white pixels will be returned.
|
|
2224
|
+
---
|
|
2225
|
+
---Samplers will use `linear` filtering and the `repeat` wrap mode.
|
|
2226
|
+
---
|
|
2227
|
+
---Changing the shader will not clear push constants set in the `Constants` block.
|
|
2228
|
+
---
|
|
2229
|
+
---@overload fun(self: lovr.Pass, default: lovr.DefaultShader)
|
|
2230
|
+
---@overload fun(self: lovr.Pass)
|
|
2231
|
+
---@param shader lovr.Shader # The shader to use.
|
|
2232
|
+
function Pass:setShader(shader) end
|
|
2233
|
+
|
|
2234
|
+
---
|
|
2235
|
+
---Sets the stencil test.
|
|
2236
|
+
---
|
|
2237
|
+
---Any pixels that fail the stencil test won't be drawn.
|
|
2238
|
+
---
|
|
2239
|
+
---For example, setting the stencil test to `('equal', 1)` will only draw pixels that have a stencil value of 1. The stencil buffer can be modified by drawing while stencil writes are enabled with `lovr.graphics.setStencilWrite`.
|
|
2240
|
+
---
|
|
2241
|
+
---
|
|
2242
|
+
---### NOTE:
|
|
2243
|
+
---The stencil test is disabled by default.
|
|
2244
|
+
---
|
|
2245
|
+
---@overload fun(self: lovr.Pass)
|
|
2246
|
+
---@param test lovr.CompareMode # The new stencil test to use.
|
|
2247
|
+
---@param value number # The stencil value to compare against.
|
|
2248
|
+
---@param mask? number # An optional mask to apply to stencil values before the comparison.
|
|
2249
|
+
function Pass:setStencilTest(test, value, mask) end
|
|
2250
|
+
|
|
2251
|
+
---
|
|
2252
|
+
---Sets or disables stencil writes.
|
|
2253
|
+
---
|
|
2254
|
+
---When stencil writes are enabled, any pixels drawn will update the values in the stencil buffer using the `StencilAction` set.
|
|
2255
|
+
---
|
|
2256
|
+
---
|
|
2257
|
+
---### NOTE:
|
|
2258
|
+
---By default, stencil writes are disabled.
|
|
2259
|
+
---
|
|
2260
|
+
---@overload fun(self: lovr.Pass, actions: table, value?: number, mask?: number)
|
|
2261
|
+
---@overload fun(self: lovr.Pass)
|
|
2262
|
+
---@param action lovr.StencilAction # How pixels drawn will update the stencil buffer.
|
|
2263
|
+
---@param value? number # When using the 'replace' action, this is the value to replace with.
|
|
2264
|
+
---@param mask? number # An optional mask to apply to stencil values before writing.
|
|
2265
|
+
function Pass:setStencilWrite(action, value, mask) end
|
|
2266
|
+
|
|
2267
|
+
---
|
|
2268
|
+
---Sets the pose for a single view.
|
|
2269
|
+
---
|
|
2270
|
+
---Objects rendered in this view will appear as though the camera is positioned using the given pose.
|
|
2271
|
+
---
|
|
2272
|
+
---Up to 6 views are supported.
|
|
2273
|
+
---
|
|
2274
|
+
---When rendering to the headset, views are changed to match the eye positions.
|
|
2275
|
+
---
|
|
2276
|
+
---These view poses are also available using `lovr.headset.getViewPose`.
|
|
2277
|
+
---
|
|
2278
|
+
---@overload fun(self: lovr.Pass, view: number, matrix: lovr.Mat4, inverted: boolean)
|
|
2279
|
+
---@param view number # The index of the view to update.
|
|
2280
|
+
---@param x number # The x position of the viewer, in meters.
|
|
2281
|
+
---@param y number # The y position of the viewer, in meters.
|
|
2282
|
+
---@param z number # The z position of the viewer, in meters.
|
|
2283
|
+
---@param angle number # The number of radians the viewer is rotated around its axis of rotation.
|
|
2284
|
+
---@param ax number # The x component of the axis of rotation.
|
|
2285
|
+
---@param ay number # The y component of the axis of rotation.
|
|
2286
|
+
---@param az number # The z component of the axis of rotation.
|
|
2287
|
+
function Pass:setViewPose(view, x, y, z, angle, ax, ay, az) end
|
|
2288
|
+
|
|
2289
|
+
---
|
|
2290
|
+
---Sets the viewport.
|
|
2291
|
+
---
|
|
2292
|
+
---Everything rendered will get mapped to the rectangle defined by the viewport.
|
|
2293
|
+
---
|
|
2294
|
+
---More specifically, this defines the transformation from normalized device coordinates to pixel coordinates.
|
|
2295
|
+
---
|
|
2296
|
+
---
|
|
2297
|
+
---### NOTE:
|
|
2298
|
+
---The viewport rectangle can use floating point numbers.
|
|
2299
|
+
---
|
|
2300
|
+
---A negative viewport height (with a y coordinate equal to the bottom of the viewport) can be used to flip the rendering vertically.
|
|
2301
|
+
---
|
|
2302
|
+
---The default viewport extends from `(0, 0)` to the dimensions of the target textures, with min depth and max depth respectively set to 0 and 1.
|
|
2303
|
+
---
|
|
2304
|
+
---@param x number # The x coordinate of the upper-left corner of the viewport.
|
|
2305
|
+
---@param y number # The y coordinate of the upper-left corner of the viewport.
|
|
2306
|
+
---@param w number # The width of the viewport.
|
|
2307
|
+
---@param h number # The height of the viewport. May be negative.
|
|
2308
|
+
---@param dmin? number # The min component of the depth range.
|
|
2309
|
+
---@param dmax? number # The max component of the depth range.
|
|
2310
|
+
function Pass:setViewport(x, y, w, h, dmin, dmax) end
|
|
2311
|
+
|
|
2312
|
+
---
|
|
2313
|
+
---Sets whether vertices in the clockwise or counterclockwise order vertices are considered the "front" face of a triangle.
|
|
2314
|
+
---
|
|
2315
|
+
---This is used for culling with `Pass:setCullMode`.
|
|
2316
|
+
---
|
|
2317
|
+
---
|
|
2318
|
+
---### NOTE:
|
|
2319
|
+
---The default winding is counterclockwise.
|
|
2320
|
+
---
|
|
2321
|
+
---LÖVR's builtin shapes are wound counterclockwise.
|
|
2322
|
+
---
|
|
2323
|
+
---@param winding lovr.Winding # Whether triangle vertices are ordered `clockwise` or `counterclockwise`.
|
|
2324
|
+
function Pass:setWinding(winding) end
|
|
2325
|
+
|
|
2326
|
+
---
|
|
2327
|
+
---Enables or disables wireframe rendering.
|
|
2328
|
+
---
|
|
2329
|
+
---This will draw all triangles as lines while active. It's intended to be used for debugging, since it usually has a performance cost.
|
|
2330
|
+
---
|
|
2331
|
+
---
|
|
2332
|
+
---### NOTE:
|
|
2333
|
+
---Wireframe rendering is disabled by default.
|
|
2334
|
+
---
|
|
2335
|
+
---There is currently no way to change the thickness of the lines.
|
|
2336
|
+
---
|
|
2337
|
+
---@param enable boolean # Whether wireframe rendering should be enabled.
|
|
2338
|
+
function Pass:setWireframe(enable) end
|
|
2339
|
+
|
|
2340
|
+
---
|
|
2341
|
+
---Draws a skybox.
|
|
2342
|
+
---
|
|
2343
|
+
---
|
|
2344
|
+
---### NOTE:
|
|
2345
|
+
---The skybox will be rotated based on the camera rotation.
|
|
2346
|
+
---
|
|
2347
|
+
---The skybox is drawn using a fullscreen triangle.
|
|
2348
|
+
---
|
|
2349
|
+
---The skybox uses a custom shader, so set the shader to `nil` before calling this function (unless explicitly using a custom shader).
|
|
2350
|
+
---
|
|
2351
|
+
---@overload fun(self: lovr.Pass)
|
|
2352
|
+
---@param skybox lovr.Texture # The skybox to render. Its `TextureType` can be `cube` to render as a cubemap, or `2d` to render as an equirectangular (spherical) 2D image.
|
|
2353
|
+
function Pass:skybox(skybox) end
|
|
2354
|
+
|
|
2355
|
+
---
|
|
2356
|
+
---Draws a sphere
|
|
2357
|
+
---
|
|
2358
|
+
---
|
|
2359
|
+
---### NOTE:
|
|
2360
|
+
---The local origin of the sphere is in its center.
|
|
2361
|
+
---
|
|
2362
|
+
---@param transform lovr.Mat4 # The transform of the sphere. Can also be provided as a position, radius, and rotation using a mix of `Vectors and numbers.'
|
|
2363
|
+
---@param longitudes? number # The number of "horizontal" segments.
|
|
2364
|
+
---@param latitudes? number # The number of "vertical" segments.
|
|
2365
|
+
function Pass:sphere(transform, longitudes, latitudes) end
|
|
2366
|
+
|
|
2367
|
+
---
|
|
2368
|
+
---Draws text.
|
|
2369
|
+
---
|
|
2370
|
+
---The font can be changed using `Pass:setFont`.
|
|
2371
|
+
---
|
|
2372
|
+
---
|
|
2373
|
+
---### NOTE:
|
|
2374
|
+
---UTF-8 encoded strings are supported.
|
|
2375
|
+
---
|
|
2376
|
+
---Newlines will start a new line of text.
|
|
2377
|
+
---
|
|
2378
|
+
---Tabs will be rendered as four spaces.
|
|
2379
|
+
---
|
|
2380
|
+
---Carriage returns are ignored.
|
|
2381
|
+
---
|
|
2382
|
+
---With the default font pixel density, a scale of 1.0 makes the text height 1 meter.
|
|
2383
|
+
---
|
|
2384
|
+
---The wrap value does not take into account the text's scale.
|
|
2385
|
+
---
|
|
2386
|
+
---Text rendering requires a special shader, which will only be automatically used when the active shader is set to `nil`.
|
|
2387
|
+
---
|
|
2388
|
+
---Blending should be enabled when rendering text (it's on by default).
|
|
2389
|
+
---
|
|
2390
|
+
---This function can draw up to 16384 visible characters at a time, and will currently throw an error if the string is too long.
|
|
2391
|
+
---
|
|
2392
|
+
---@overload fun(self: lovr.Pass, colortext: table, transform: lovr.Mat4, wrap?: number, halign?: lovr.HorizontalAlign, valign?: lovr.VerticalAlign)
|
|
2393
|
+
---@param text string # The text to render.
|
|
2394
|
+
---@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.
|
|
2395
|
+
---@param wrap? number # The maximum width of each line in meters (before scale is applied). When zero, the text will not wrap.
|
|
2396
|
+
---@param halign? lovr.HorizontalAlign # The horizontal alignment.
|
|
2397
|
+
---@param valign? lovr.VerticalAlign # The vertical alignment.
|
|
2398
|
+
function Pass:text(text, transform, wrap, halign, valign) end
|
|
2399
|
+
|
|
2400
|
+
---
|
|
2401
|
+
---Starts a GPU measurement.
|
|
2402
|
+
---
|
|
2403
|
+
---One of the slots in a `Tally` object will be used to hold the result. Commands on the Pass will continue being measured until `Pass:tock` is called with the same tally and slot combination.
|
|
2404
|
+
---
|
|
2405
|
+
---Afterwards, `Pass:read` can be used to read back the tally result, or the tally can be copied to a `Buffer`.
|
|
2406
|
+
---
|
|
2407
|
+
---
|
|
2408
|
+
---### NOTE:
|
|
2409
|
+
---`pixel` and `shader` measurements can not be nested, but `time` measurements can be nested.
|
|
2410
|
+
---
|
|
2411
|
+
---For `time` measurements, the view count of the pass (`Pass:getViewCount`) must match the view count of the tally, which defaults to `2`.
|
|
2412
|
+
---
|
|
2413
|
+
---@param tally lovr.Tally # The tally that will store the measurement.
|
|
2414
|
+
---@param slot number # The index of the slot in the tally to store the measurement in.
|
|
2415
|
+
function Pass:tick(tally, slot) end
|
|
2416
|
+
|
|
2417
|
+
---
|
|
2418
|
+
---Stops a GPU measurement.
|
|
2419
|
+
---
|
|
2420
|
+
---`Pass:tick` must be called to start the measurement before this can be called.
|
|
2421
|
+
---
|
|
2422
|
+
---Afterwards, `Pass:read` can be used to read back the tally result, or the tally can be copied to a `Buffer`.
|
|
2423
|
+
---
|
|
2424
|
+
---@param tally lovr.Tally # The tally storing the measurement.
|
|
2425
|
+
---@param slot number # The index of the slot in the tally storing the measurement.
|
|
2426
|
+
function Pass:tock(tally, slot) end
|
|
2427
|
+
|
|
2428
|
+
---
|
|
2429
|
+
---Draws a torus.
|
|
2430
|
+
---
|
|
2431
|
+
---
|
|
2432
|
+
---### NOTE:
|
|
2433
|
+
---The local origin is in the center of the torus, and the torus forms a circle around the local Z axis.
|
|
2434
|
+
---
|
|
2435
|
+
---@param transform lovr.Mat4 # The transform of the torus. Can also be provided as position, scale, and rotation using a mix of `Vectors` or numbers. When using numbers for the scale, 2 should be provided: one for the radius and one for the thickness. When using a matrix or a vector for the scale, the X and Y components are the radius and the Z component is the thickness.
|
|
2436
|
+
---@param tsegments? number # The number of toroidal (circular) segments to render.
|
|
2437
|
+
---@param psegments? number # The number of poloidal (tubular) segments to render.
|
|
2438
|
+
function Pass:torus(transform, tsegments, psegments) end
|
|
2439
|
+
|
|
2440
|
+
---
|
|
2441
|
+
---Transforms the coordinate system.
|
|
2442
|
+
---
|
|
2443
|
+
---@param transform lovr.Mat4 # A matrix containing the transformation to apply to the coordinate system. Can also be provided as a position, 3-component scale, and rotation, using a mix of `Vectors` or numbers.
|
|
2444
|
+
function Pass:transform(transform) end
|
|
2445
|
+
|
|
2446
|
+
---
|
|
2447
|
+
---Translates the coordinate system.
|
|
2448
|
+
---
|
|
2449
|
+
---
|
|
2450
|
+
---### NOTE:
|
|
2451
|
+
---Order matters when scaling, translating, and rotating the coordinate system.
|
|
2452
|
+
---
|
|
2453
|
+
---@param translation lovr.Vec3 # The translation to apply to the coordinate system. Can also be provided as 3 numbers.
|
|
2454
|
+
function Pass:translate(translation) end
|
|
2455
|
+
|
|
2456
|
+
---
|
|
2457
|
+
---Readbacks track the progress of an asynchronous read of a `Buffer`, `Texture`, or `Tally`.
|
|
2458
|
+
---
|
|
2459
|
+
---Once a Readback is created in a transfer pass, and the transfer pass is submitted, the Readback can be polled for completion or the CPU can wait for it to finish using `Readback:wait`.
|
|
2460
|
+
---
|
|
2461
|
+
---@class lovr.Readback
|
|
2462
|
+
local Readback = {}
|
|
2463
|
+
|
|
2464
|
+
---
|
|
2465
|
+
---Returns the Readback's data as a Blob.
|
|
2466
|
+
---
|
|
2467
|
+
---
|
|
2468
|
+
---### NOTE:
|
|
2469
|
+
---If the Readback is reading back a Texture, returns `nil`.
|
|
2470
|
+
---
|
|
2471
|
+
---@return lovr.Blob blob # The Blob.
|
|
2472
|
+
function Readback:getBlob() end
|
|
2473
|
+
|
|
2474
|
+
---
|
|
2475
|
+
---Returns the data from the Readback, as a table.
|
|
2476
|
+
---
|
|
2477
|
+
---
|
|
2478
|
+
---### NOTE:
|
|
2479
|
+
---This currently returns `nil` for readbacks of `Buffer` and `Texture` objects.
|
|
2480
|
+
---
|
|
2481
|
+
---Only readbacks of `Tally` objects return valid data.
|
|
2482
|
+
---
|
|
2483
|
+
---For `time` and `pixel` tallies, the table will have 1 number per slot that was read.
|
|
2484
|
+
---
|
|
2485
|
+
---For `shader` tallies, there will be 4 numbers for each slot.
|
|
2486
|
+
---
|
|
2487
|
+
---@return table data # A flat table of numbers containing the values that were read back.
|
|
2488
|
+
function Readback:getData() end
|
|
2489
|
+
|
|
2490
|
+
---
|
|
2491
|
+
---Returns the Readback's data as an Image.
|
|
2492
|
+
---
|
|
2493
|
+
---
|
|
2494
|
+
---### NOTE:
|
|
2495
|
+
---If the Readback is not reading back a Texture, returns `nil`.
|
|
2496
|
+
---
|
|
2497
|
+
---@return lovr.Image image # The Image.
|
|
2498
|
+
function Readback:getImage() end
|
|
2499
|
+
|
|
2500
|
+
---
|
|
2501
|
+
---Returns whether the Readback has completed on the GPU and its data is available.
|
|
2502
|
+
---
|
|
2503
|
+
---@return boolean complete # Whether the readback is complete.
|
|
2504
|
+
function Readback:isComplete() end
|
|
2505
|
+
|
|
2506
|
+
---
|
|
2507
|
+
---Blocks the CPU until the Readback is finished on the GPU.
|
|
2508
|
+
---
|
|
2509
|
+
---
|
|
2510
|
+
---### NOTE:
|
|
2511
|
+
---If the transfer pass that created the readback has not been submitted yet, no wait will occur and this function will return `false`.
|
|
2512
|
+
---
|
|
2513
|
+
---@return boolean waited # Whether the CPU had to be blocked for waiting.
|
|
2514
|
+
function Readback:wait() end
|
|
2515
|
+
|
|
2516
|
+
---
|
|
2517
|
+
---Samplers are objects that control how pixels are read from a texture.
|
|
2518
|
+
---
|
|
2519
|
+
---They can control whether the pixels are smoothed, whether the texture wraps at the edge of its UVs, and more.
|
|
2520
|
+
---
|
|
2521
|
+
---Each `Pass` has a default sampler that will be used by default, which can be changed using `Pass:setSampler`.
|
|
2522
|
+
---
|
|
2523
|
+
---Also, samplers can be declared in shaders using the following syntax:
|
|
2524
|
+
---
|
|
2525
|
+
--- layout(set = 2, binding = X) uniform sampler mySampler;
|
|
2526
|
+
---
|
|
2527
|
+
---A Sampler can be sent to the variable using `Pass:send('mySampler', sampler)`.
|
|
2528
|
+
---
|
|
2529
|
+
---The properties of a Sampler are immutable, and can't be changed after it's created.
|
|
2530
|
+
---
|
|
2531
|
+
---@class lovr.Sampler
|
|
2532
|
+
local Sampler = {}
|
|
2533
|
+
|
|
2534
|
+
---
|
|
2535
|
+
---Returns the anisotropy level of the Sampler.
|
|
2536
|
+
---
|
|
2537
|
+
---Anisotropy smooths out a texture's appearance when viewed at grazing angles.
|
|
2538
|
+
---
|
|
2539
|
+
---
|
|
2540
|
+
---### NOTE:
|
|
2541
|
+
---Not all GPUs support anisotropy.
|
|
2542
|
+
---
|
|
2543
|
+
---The maximum anisotropy level is given by the `anisotropy` limit of `lovr.graphics.getLimits`, which may be zero.
|
|
2544
|
+
---
|
|
2545
|
+
---It's very common for the maximum to be 16, however.
|
|
2546
|
+
---
|
|
2547
|
+
---@return number anisotropy # The anisotropy level of the sampler.
|
|
2548
|
+
function Sampler:getAnisotropy() end
|
|
2549
|
+
|
|
2550
|
+
---
|
|
2551
|
+
---Returns the compare mode of the Sampler.
|
|
2552
|
+
---
|
|
2553
|
+
---This is a feature typically only used for shadow mapping.
|
|
2554
|
+
---
|
|
2555
|
+
---Using a sampler with a compare mode requires it to be declared in a shader as a `samplerShadow` instead of a `sampler` variable, and used with a texture that has a depth format.
|
|
2556
|
+
---
|
|
2557
|
+
---The result of sampling a depth texture with a shadow sampler is a number between 0 and 1, indicating the percentage of sampled pixels that passed the comparison.
|
|
2558
|
+
---
|
|
2559
|
+
---@return lovr.CompareMode compare # The compare mode of the sampler.
|
|
2560
|
+
function Sampler:getCompareMode() end
|
|
2561
|
+
|
|
2562
|
+
---
|
|
2563
|
+
---Returns the filter mode of the Sampler.
|
|
2564
|
+
---
|
|
2565
|
+
---@return lovr.FilterMode min # The filter mode used when the texture is minified.
|
|
2566
|
+
---@return lovr.FilterMode mag # The filter mode used when the texture is magnified.
|
|
2567
|
+
---@return lovr.FilterMode mip # The filter mode used to select a mipmap level.
|
|
2568
|
+
function Sampler:getFilter() end
|
|
2569
|
+
|
|
2570
|
+
---
|
|
2571
|
+
---Returns the mipmap range of the Sampler.
|
|
2572
|
+
---
|
|
2573
|
+
---This is used to clamp the range of mipmap levels that can be accessed from a texture.
|
|
2574
|
+
---
|
|
2575
|
+
---@return number min # The minimum mipmap level that will be sampled (0 is the largest image).
|
|
2576
|
+
---@return number max # The maximum mipmap level that will be sampled.
|
|
2577
|
+
function Sampler:getMipmapRange() end
|
|
2578
|
+
|
|
2579
|
+
---
|
|
2580
|
+
---Returns the wrap mode of the sampler, used to wrap or clamp texture coordinates when the extend outside of the 0-1 range.
|
|
2581
|
+
---
|
|
2582
|
+
---@return lovr.WrapMode x # The wrap mode used in the horizontal direction.
|
|
2583
|
+
---@return lovr.WrapMode y # The wrap mode used in the vertical direction.
|
|
2584
|
+
---@return lovr.WrapMode z # The wrap mode used in the "z" direction, for 3D textures only.
|
|
2585
|
+
function Sampler:getWrap() end
|
|
2586
|
+
|
|
2587
|
+
---
|
|
2588
|
+
---Shaders are small GPU programs.
|
|
2589
|
+
---
|
|
2590
|
+
---See the `Shaders` guide for a full introduction to Shaders.
|
|
2591
|
+
---
|
|
2592
|
+
---@class lovr.Shader
|
|
2593
|
+
local Shader = {}
|
|
2594
|
+
|
|
2595
|
+
---
|
|
2596
|
+
---Clones a shader.
|
|
2597
|
+
---
|
|
2598
|
+
---This creates an inexpensive copy of it with different flags.
|
|
2599
|
+
---
|
|
2600
|
+
---It can be used to create several variants of a shader with different behavior.
|
|
2601
|
+
---
|
|
2602
|
+
---@param source lovr.Shader # The Shader to clone.
|
|
2603
|
+
---@param flags table # The flags used by the clone.
|
|
2604
|
+
---@return lovr.Shader shader # The new Shader.
|
|
2605
|
+
function Shader:clone(source, flags) end
|
|
2606
|
+
|
|
2607
|
+
---
|
|
2608
|
+
---Returns whether the shader is a graphics or compute shader.
|
|
2609
|
+
---
|
|
2610
|
+
---@return lovr.ShaderType type # The type of the Shader.
|
|
2611
|
+
function Shader:getType() end
|
|
2612
|
+
|
|
2613
|
+
---
|
|
2614
|
+
---Returns the workgroup size of a compute shader.
|
|
2615
|
+
---
|
|
2616
|
+
---The workgroup size defines how many times a compute shader is invoked for each workgroup dispatched by `Pass:compute`.
|
|
2617
|
+
---
|
|
2618
|
+
---
|
|
2619
|
+
---### NOTE:
|
|
2620
|
+
---For example, if the workgroup size is `8x8x1` and `16x16x16` workgroups are dispatched, then the compute shader will run `16 * 16 * 16 * (8 * 8 * 1) = 262144` times.
|
|
2621
|
+
---
|
|
2622
|
+
---@return number x # The x size of a workgroup.
|
|
2623
|
+
---@return number y # The y size of a workgroup.
|
|
2624
|
+
---@return number z # The z size of a workgroup.
|
|
2625
|
+
function Shader:getWorkgroupSize() end
|
|
2626
|
+
|
|
2627
|
+
---
|
|
2628
|
+
---Returns whether the Shader has a vertex attribute, by name or location.
|
|
2629
|
+
---
|
|
2630
|
+
---@overload fun(self: lovr.Shader, location: number):boolean
|
|
2631
|
+
---@param name string # The name of an attribute.
|
|
2632
|
+
---@return boolean exists # Whether the Shader has the attribute.
|
|
2633
|
+
function Shader:hasAttribute(name) end
|
|
2634
|
+
|
|
2635
|
+
---
|
|
2636
|
+
---Returns whether the Shader has a given stage.
|
|
2637
|
+
---
|
|
2638
|
+
---@param stage lovr.ShaderStage # The stage.
|
|
2639
|
+
---@return boolean exists # Whether the Shader has the stage.
|
|
2640
|
+
function Shader:hasStage(stage) end
|
|
2641
|
+
|
|
2642
|
+
---
|
|
2643
|
+
---Tally objects are able to measure events on the GPU.
|
|
2644
|
+
---
|
|
2645
|
+
---Tallies can measure three types of things:
|
|
2646
|
+
---
|
|
2647
|
+
---- `time` - measures elapsed GPU time.
|
|
2648
|
+
---- `pixel` - measures how many pixels were rendered, which can be used for occlusion culling.
|
|
2649
|
+
---- `shader` - measure how many times shaders were run.
|
|
2650
|
+
---
|
|
2651
|
+
---Tally objects can be created with up to 4096 slots.
|
|
2652
|
+
---
|
|
2653
|
+
---Each slot can hold a single measurement value.
|
|
2654
|
+
---
|
|
2655
|
+
---`Pass:tick` is used to begin a measurement, storing the result in one of the slots.
|
|
2656
|
+
---
|
|
2657
|
+
---All commands recorded on the Pass will be measured until `Pass:tock` is called with the same tally and slot.
|
|
2658
|
+
---
|
|
2659
|
+
---The measurement value stored in the slots can be copied to a `Buffer` using `Pass:copy`, or they can be read back to Lua using `Pass:read`.
|
|
2660
|
+
---
|
|
2661
|
+
---@class lovr.Tally
|
|
2662
|
+
local Tally = {}
|
|
2663
|
+
|
|
2664
|
+
---
|
|
2665
|
+
---Returns the number of slots in the Tally.
|
|
2666
|
+
---
|
|
2667
|
+
---@return number count # The number of slots in the Tally.
|
|
2668
|
+
function Tally:getCount() end
|
|
2669
|
+
|
|
2670
|
+
---
|
|
2671
|
+
---Returns the type of the tally, which is the thing it measures between `Pass:tick` and `Pass:tock`.
|
|
2672
|
+
---
|
|
2673
|
+
---@return lovr.TallyType type # The type of measurement.
|
|
2674
|
+
function Tally:getType() end
|
|
2675
|
+
|
|
2676
|
+
---
|
|
2677
|
+
---Tally objects with the `time` type can only be used in render passes with a certain number of views.
|
|
2678
|
+
---
|
|
2679
|
+
---This returns that number.
|
|
2680
|
+
---
|
|
2681
|
+
---@return number views # The number of views the Tally is compatible with.
|
|
2682
|
+
function Tally:getViewCount() end
|
|
2683
|
+
|
|
2684
|
+
---
|
|
2685
|
+
---Textures are multidimensional blocks of memory on the GPU, contrasted with `Buffer` objects which are one-dimensional.
|
|
2686
|
+
---
|
|
2687
|
+
---Textures are used as the destination for rendering operations, and textures loaded from images provide surface data to `Material` objects.
|
|
2688
|
+
---
|
|
2689
|
+
---@class lovr.Texture
|
|
2690
|
+
local Texture = {}
|
|
2691
|
+
|
|
2692
|
+
---
|
|
2693
|
+
---Returns the width, height, and depth of the Texture.
|
|
2694
|
+
---
|
|
2695
|
+
---@return number width # The width of the Texture.
|
|
2696
|
+
---@return number height # The height of the Texture.
|
|
2697
|
+
---@return number layers # The number of layers in the Texture.
|
|
2698
|
+
function Texture:getDimensions() end
|
|
2699
|
+
|
|
2700
|
+
---
|
|
2701
|
+
---Returns the format of the texture.
|
|
2702
|
+
---
|
|
2703
|
+
---@return lovr.TextureFormat format # The format of the Texture.
|
|
2704
|
+
function Texture:getFormat() end
|
|
2705
|
+
|
|
2706
|
+
---
|
|
2707
|
+
---Returns the height of the Texture, in pixels.
|
|
2708
|
+
---
|
|
2709
|
+
---@return number height # The height of the Texture, in pixels.
|
|
2710
|
+
function Texture:getHeight() end
|
|
2711
|
+
|
|
2712
|
+
---
|
|
2713
|
+
---Returns the layer count of the Texture.
|
|
2714
|
+
---
|
|
2715
|
+
---2D textures always have 1 layer and cubemaps always have 6 layers.
|
|
2716
|
+
---
|
|
2717
|
+
---3D and array textures have a variable number of layers.
|
|
2718
|
+
---
|
|
2719
|
+
---@return number layers # The layer count of the Texture.
|
|
2720
|
+
function Texture:getLayerCount() end
|
|
2721
|
+
|
|
2722
|
+
---
|
|
2723
|
+
---Returns the number of mipmap levels in the Texture.
|
|
2724
|
+
---
|
|
2725
|
+
---@return number mipmaps # The number of mipmap levels in the Texture.
|
|
2726
|
+
function Texture:getMipmapCount() end
|
|
2727
|
+
|
|
2728
|
+
---
|
|
2729
|
+
---Returns the parent of a Texture view, which is the Texture that it references.
|
|
2730
|
+
---
|
|
2731
|
+
---Returns `nil` if the Texture is not a view.
|
|
2732
|
+
---
|
|
2733
|
+
---@return lovr.Texture parent # The parent of the texture, or `nil` if the texture is not a view.
|
|
2734
|
+
function Texture:getParent() end
|
|
2735
|
+
|
|
2736
|
+
---
|
|
2737
|
+
---Returns the number of samples in the texture.
|
|
2738
|
+
---
|
|
2739
|
+
---Multiple samples are used for multisample antialiasing when rendering to the texture.
|
|
2740
|
+
---
|
|
2741
|
+
---Currently, the sample count is either 1 (not antialiased) or 4 (antialiased).
|
|
2742
|
+
---
|
|
2743
|
+
---@return number samples # The number of samples in the Texture.
|
|
2744
|
+
function Texture:getSampleCount() end
|
|
2745
|
+
|
|
2746
|
+
---
|
|
2747
|
+
---Returns the type of the texture.
|
|
2748
|
+
---
|
|
2749
|
+
---@return lovr.TextureType type # The type of the Texture.
|
|
2750
|
+
function Texture:getType() end
|
|
2751
|
+
|
|
2752
|
+
---
|
|
2753
|
+
---Returns the width of the Texture, in pixels.
|
|
2754
|
+
---
|
|
2755
|
+
---@return number width # The width of the Texture, in pixels.
|
|
2756
|
+
function Texture:getWidth() end
|
|
2757
|
+
|
|
2758
|
+
---
|
|
2759
|
+
---Returns whether a Texture was created with a set of `TextureUsage` flags.
|
|
2760
|
+
---
|
|
2761
|
+
---Usage flags are specified when the Texture is created, and restrict what you can do with a Texture object.
|
|
2762
|
+
---
|
|
2763
|
+
---By default, only the `sample` usage is enabled.
|
|
2764
|
+
---
|
|
2765
|
+
---Applying a smaller set of usage flags helps LÖVR optimize things better.
|
|
2766
|
+
---
|
|
2767
|
+
---@vararg lovr.TextureUsage # One or more usage flags.
|
|
2768
|
+
---@return boolean supported # Whether the Texture has all the provided usage flags.
|
|
2769
|
+
function Texture:hasUsage(...) end
|
|
2770
|
+
|
|
2771
|
+
---
|
|
2772
|
+
---Returns whether a Texture is a texture view, created with `Texture:newView`.
|
|
2773
|
+
---
|
|
2774
|
+
---@return boolean view # Whether the Texture is a texture view.
|
|
2775
|
+
function Texture:isView() end
|
|
2776
|
+
|
|
2777
|
+
---
|
|
2778
|
+
---Creates a new Texture view.
|
|
2779
|
+
---
|
|
2780
|
+
---A texture view does not store any pixels on its own, but instead uses the pixel data of a "parent" Texture object.
|
|
2781
|
+
---
|
|
2782
|
+
---The width, height, format, sample count, and usage flags all match the parent.
|
|
2783
|
+
---
|
|
2784
|
+
---The view may have a different `TextureType` from the parent, and it may reference a subset of the parent texture's layers and mipmap levels.
|
|
2785
|
+
---
|
|
2786
|
+
---Texture views can be used as render targets in a render pass and they can be bound to Shaders. They can not currently be used for transfer operations.
|
|
2787
|
+
---
|
|
2788
|
+
---They are used for:
|
|
2789
|
+
---
|
|
2790
|
+
---- Reinterpretation of texture contents.
|
|
2791
|
+
---
|
|
2792
|
+
---For example, a cubemap can be treated as
|
|
2793
|
+
--- an array texture.
|
|
2794
|
+
---- Rendering to a particular image or mipmap level of a texture.
|
|
2795
|
+
---- Binding a particular image or mipmap level to a shader.
|
|
2796
|
+
---
|
|
2797
|
+
---@param type lovr.TextureType # The texture type of the view.
|
|
2798
|
+
---@param layer? number # The index of the first layer in the view.
|
|
2799
|
+
---@param layerCount? number # The number of layers in the view, or `nil` to use all remaining layers.
|
|
2800
|
+
---@param mipmap? number # The index of the first mipmap in the view.
|
|
2801
|
+
---@param mipmapCount? number # The number of mipmaps in the view, or `nil` to use all remaining mipmaps.
|
|
2802
|
+
---@return lovr.Texture view # The new texture view.
|
|
2803
|
+
function Texture:newView(type, layer, layerCount, mipmap, mipmapCount) end
|
|
2804
|
+
|
|
2805
|
+
---
|
|
2806
|
+
---Controls whether premultiplied alpha is enabled.
|
|
2807
|
+
---
|
|
2808
|
+
---
|
|
2809
|
+
---### NOTE:
|
|
2810
|
+
---The premultiplied mode should be used if pixels being drawn have already been blended, or "pre-multiplied", by the alpha channel.
|
|
2811
|
+
---
|
|
2812
|
+
---This happens when rendering to a texture that contains pixels with transparent alpha values, since the stored color values have already been faded by alpha and don't need to be faded a second time with the alphamultiply blend mode.
|
|
2813
|
+
---
|
|
2814
|
+
---@alias lovr.BlendAlphaMode
|
|
2815
|
+
---
|
|
2816
|
+
---Color channel values are multiplied by the alpha channel during blending.
|
|
2817
|
+
---
|
|
2818
|
+
---| "alphamultiply"
|
|
2819
|
+
---
|
|
2820
|
+
---Color channel values are not multiplied by the alpha.
|
|
2821
|
+
---
|
|
2822
|
+
---Instead, it's assumed that the colors have already been multiplied by the alpha.
|
|
2823
|
+
---
|
|
2824
|
+
---This should be used if the pixels being drawn have already been blended, or "pre-multiplied".
|
|
2825
|
+
---
|
|
2826
|
+
---| "premultiplied"
|
|
2827
|
+
|
|
2828
|
+
---
|
|
2829
|
+
---Different ways pixels can blend with the pixels behind them.
|
|
2830
|
+
---
|
|
2831
|
+
---@alias lovr.BlendMode
|
|
2832
|
+
---
|
|
2833
|
+
---Colors will be mixed based on alpha.
|
|
2834
|
+
---
|
|
2835
|
+
---| "alpha"
|
|
2836
|
+
---
|
|
2837
|
+
---Colors will be added to the existing color, alpha will not be changed.
|
|
2838
|
+
---
|
|
2839
|
+
---| "add"
|
|
2840
|
+
---
|
|
2841
|
+
---Colors will be subtracted from the existing color, alpha will not be changed.
|
|
2842
|
+
---
|
|
2843
|
+
---| "subtract"
|
|
2844
|
+
---
|
|
2845
|
+
---All color channels will be multiplied together, producing a darkening effect.
|
|
2846
|
+
---
|
|
2847
|
+
---| "multiply"
|
|
2848
|
+
---
|
|
2849
|
+
---The maximum value of each color channel will be used.
|
|
2850
|
+
---
|
|
2851
|
+
---| "lighten"
|
|
2852
|
+
---
|
|
2853
|
+
---The minimum value of each color channel will be used.
|
|
2854
|
+
---
|
|
2855
|
+
---| "darken"
|
|
2856
|
+
---
|
|
2857
|
+
---The opposite of multiply: the pixel colors are inverted, multiplied, and inverted again, producing a lightening effect.
|
|
2858
|
+
---
|
|
2859
|
+
---| "screen"
|
|
2860
|
+
|
|
2861
|
+
---
|
|
2862
|
+
---The different ways to pack Buffer fields into memory.
|
|
2863
|
+
---
|
|
2864
|
+
---The default is `packed`, which is suitable for vertex buffers and index buffers.
|
|
2865
|
+
---
|
|
2866
|
+
---It doesn't add any padding between elements, and so it doesn't waste any space.
|
|
2867
|
+
---
|
|
2868
|
+
---However, this layout won't necessarily work for uniform buffers and storage buffers.
|
|
2869
|
+
---
|
|
2870
|
+
---The `std140` layout corresponds to the std140 layout used for uniform buffers in GLSL.
|
|
2871
|
+
---
|
|
2872
|
+
---It adds the most padding between fields, and requires the stride to be a multiple of 16.
|
|
2873
|
+
---
|
|
2874
|
+
---Example:
|
|
2875
|
+
---
|
|
2876
|
+
--- layout(std140) uniform ObjectScales { float scales[64]; };
|
|
2877
|
+
---
|
|
2878
|
+
---The `std430` layout corresponds to the std430 layout used for storage buffers in GLSL.
|
|
2879
|
+
---
|
|
2880
|
+
---It adds some padding between certain types, and may round up the stride.
|
|
2881
|
+
---
|
|
2882
|
+
---Example:
|
|
2883
|
+
---
|
|
2884
|
+
--- layout(std430) buffer TileSizes { vec2 sizes[]; }
|
|
2885
|
+
---
|
|
2886
|
+
---@alias lovr.BufferLayout
|
|
2887
|
+
---
|
|
2888
|
+
---The packed layout, without any padding.
|
|
2889
|
+
---
|
|
2890
|
+
---| "packed"
|
|
2891
|
+
---
|
|
2892
|
+
---The std140 layout.
|
|
2893
|
+
---
|
|
2894
|
+
---| "std140"
|
|
2895
|
+
---
|
|
2896
|
+
---The std430 layout.
|
|
2897
|
+
---
|
|
2898
|
+
---| "std430"
|
|
2899
|
+
|
|
2900
|
+
---
|
|
2901
|
+
---The method used to compare depth and stencil values when performing the depth and stencil tests. Also used for compare modes in `Sampler`s.
|
|
2902
|
+
---
|
|
2903
|
+
---
|
|
2904
|
+
---### NOTE:
|
|
2905
|
+
---This type can also be specified using mathematical notation, e.g. `=`, `>`, `<=`, etc. `notequal` can be provided as `~=` or `!=`.
|
|
2906
|
+
---
|
|
2907
|
+
---@alias lovr.CompareMode
|
|
2908
|
+
---
|
|
2909
|
+
---The test does not take place, and acts as though it always passes.
|
|
2910
|
+
---
|
|
2911
|
+
---| "none"
|
|
2912
|
+
---
|
|
2913
|
+
---The test passes if the values are equal.
|
|
2914
|
+
---
|
|
2915
|
+
---| "equal"
|
|
2916
|
+
---
|
|
2917
|
+
---The test passes if the values are not equal.
|
|
2918
|
+
---
|
|
2919
|
+
---| "notequal"
|
|
2920
|
+
---
|
|
2921
|
+
---The test passes if the value is less than the existing one.
|
|
2922
|
+
---
|
|
2923
|
+
---| "less"
|
|
2924
|
+
---
|
|
2925
|
+
---The test passes if the value is less than or equal to the existing one.
|
|
2926
|
+
---
|
|
2927
|
+
---| "lequal"
|
|
2928
|
+
---
|
|
2929
|
+
---The test passes if the value is greater than the existing one.
|
|
2930
|
+
---
|
|
2931
|
+
---| "greater"
|
|
2932
|
+
---
|
|
2933
|
+
---The test passes if the value is greater than or equal to the existing one.
|
|
2934
|
+
---
|
|
2935
|
+
---| "gequal"
|
|
2936
|
+
|
|
2937
|
+
---
|
|
2938
|
+
---The different ways of doing triangle backface culling.
|
|
2939
|
+
---
|
|
2940
|
+
---@alias lovr.CullMode
|
|
2941
|
+
---
|
|
2942
|
+
---Both sides of triangles will be drawn.
|
|
2943
|
+
---
|
|
2944
|
+
---| "none"
|
|
2945
|
+
---
|
|
2946
|
+
---Skips rendering the back side of triangles.
|
|
2947
|
+
---
|
|
2948
|
+
---| "back"
|
|
2949
|
+
---
|
|
2950
|
+
---Skips rendering the front side of triangles.
|
|
2951
|
+
---
|
|
2952
|
+
---| "front"
|
|
2953
|
+
|
|
2954
|
+
---
|
|
2955
|
+
---The set of shaders built in to LÖVR.
|
|
2956
|
+
---
|
|
2957
|
+
---These can be passed to `Pass:setShader` or `lovr.graphics.newShader` instead of writing GLSL code.
|
|
2958
|
+
---
|
|
2959
|
+
---The shaders can be further customized by using the `flags` option to change their behavior.
|
|
2960
|
+
---
|
|
2961
|
+
---If the active shader is set to `nil`, LÖVR picks one of these shaders to use.
|
|
2962
|
+
---
|
|
2963
|
+
---@alias lovr.DefaultShader
|
|
2964
|
+
---
|
|
2965
|
+
---Basic shader without lighting that uses colors and a texture.
|
|
2966
|
+
---
|
|
2967
|
+
---| "unlit"
|
|
2968
|
+
---
|
|
2969
|
+
---Shades triangles based on their normal, resulting in a cool rainbow effect.
|
|
2970
|
+
---
|
|
2971
|
+
---| "normal"
|
|
2972
|
+
---
|
|
2973
|
+
---Renders font glyphs.
|
|
2974
|
+
---
|
|
2975
|
+
---| "font"
|
|
2976
|
+
---
|
|
2977
|
+
---Renders cubemaps.
|
|
2978
|
+
---
|
|
2979
|
+
---| "cubemap"
|
|
2980
|
+
---
|
|
2981
|
+
---Renders spherical textures.
|
|
2982
|
+
---
|
|
2983
|
+
---| "equirect"
|
|
2984
|
+
---
|
|
2985
|
+
---Renders a fullscreen triangle.
|
|
2986
|
+
---
|
|
2987
|
+
---| "fill"
|
|
2988
|
+
|
|
2989
|
+
---
|
|
2990
|
+
---Whether a shape should be drawn filled or outlined.
|
|
2991
|
+
---
|
|
2992
|
+
---@alias lovr.DrawStyle
|
|
2993
|
+
---
|
|
2994
|
+
---The shape will be filled in (the default).
|
|
2995
|
+
---
|
|
2996
|
+
---| "fill"
|
|
2997
|
+
---
|
|
2998
|
+
---The shape will be outlined.
|
|
2999
|
+
---
|
|
3000
|
+
---| "line"
|
|
3001
|
+
|
|
3002
|
+
---
|
|
3003
|
+
---Different types for `Buffer` fields.
|
|
3004
|
+
---
|
|
3005
|
+
---These are scalar, vector, or matrix types, usually packed into small amounts of space to reduce the amount of memory they occupy.
|
|
3006
|
+
---
|
|
3007
|
+
---The names are encoded as follows:
|
|
3008
|
+
---
|
|
3009
|
+
---- The data type:
|
|
3010
|
+
--- - `i` for signed integer
|
|
3011
|
+
--- - `u` for unsigned integer
|
|
3012
|
+
--- - `sn` for signed normalized (-1 to 1)
|
|
3013
|
+
--- - `un` for unsigned normalized (0 to 1)
|
|
3014
|
+
--- - `f` for floating point
|
|
3015
|
+
---- The bit depth of each component
|
|
3016
|
+
---- The letter `x` followed by the component count (for vectors)
|
|
3017
|
+
---
|
|
3018
|
+
---
|
|
3019
|
+
---### NOTE:
|
|
3020
|
+
---In addition to these values, the following aliases can be used:
|
|
3021
|
+
---
|
|
3022
|
+
---<table>
|
|
3023
|
+
--- <thead>
|
|
3024
|
+
--- <tr>
|
|
3025
|
+
--- <td>Alias</td>
|
|
3026
|
+
--- <td>Maps to</td>
|
|
3027
|
+
--- </tr>
|
|
3028
|
+
--- </thead>
|
|
3029
|
+
--- <tbody>
|
|
3030
|
+
--- <tr>
|
|
3031
|
+
--- <td><code>vec2</code></td>
|
|
3032
|
+
--- <td><code>f32x2</code></td>
|
|
3033
|
+
--- </tr>
|
|
3034
|
+
--- <tr>
|
|
3035
|
+
--- <td><code>vec3</code></td>
|
|
3036
|
+
--- <td><code>f32x3</code></td>
|
|
3037
|
+
--- </tr>
|
|
3038
|
+
--- <tr>
|
|
3039
|
+
--- <td><code>vec4</code></td>
|
|
3040
|
+
--- <td><code>f32x4</code></td>
|
|
3041
|
+
--- </tr>
|
|
3042
|
+
--- <tr>
|
|
3043
|
+
--- <td><code>int</code></td>
|
|
3044
|
+
--- <td><code>i32</code></td>
|
|
3045
|
+
--- </tr>
|
|
3046
|
+
--- <tr>
|
|
3047
|
+
--- <td><code>uint</code></td>
|
|
3048
|
+
--- <td><code>u32</code></td>
|
|
3049
|
+
--- </tr>
|
|
3050
|
+
--- <tr>
|
|
3051
|
+
--- <td><code>float</code></td>
|
|
3052
|
+
--- <td><code>f32</code></td>
|
|
3053
|
+
--- </tr>
|
|
3054
|
+
--- <tr>
|
|
3055
|
+
--- <td><code>color</code></td>
|
|
3056
|
+
--- <td><code>un8x4</code></td>
|
|
3057
|
+
--- </tr>
|
|
3058
|
+
--- </tbody> </table>
|
|
3059
|
+
---
|
|
3060
|
+
---Additionally, the following convenience rules apply:
|
|
3061
|
+
---
|
|
3062
|
+
---- Field types can end in an `s`, which will be stripped off.
|
|
3063
|
+
---- Field types can end in `x1`, which will be stripped off.
|
|
3064
|
+
---
|
|
3065
|
+
---So you can write, e.g. `lovr.graphics.newBuffer(4, 'floats')`, which is cute!
|
|
3066
|
+
---
|
|
3067
|
+
---@alias lovr.FieldType
|
|
3068
|
+
---
|
|
3069
|
+
---Four 8-bit signed integers.
|
|
3070
|
+
---
|
|
3071
|
+
---| "i8x4"
|
|
3072
|
+
---
|
|
3073
|
+
---Four 8-bit unsigned integers.
|
|
3074
|
+
---
|
|
3075
|
+
---| "u8x4"
|
|
3076
|
+
---
|
|
3077
|
+
---Four 8-bit signed normalized values.
|
|
3078
|
+
---
|
|
3079
|
+
---| "sn8x4"
|
|
3080
|
+
---
|
|
3081
|
+
---Four 8-bit unsigned normalized values (aka `color`).
|
|
3082
|
+
---
|
|
3083
|
+
---| "un8x4"
|
|
3084
|
+
---
|
|
3085
|
+
---Three 10-bit unsigned normalized values, and 2 padding bits (aka `normal`).
|
|
3086
|
+
---
|
|
3087
|
+
---| "un10x3"
|
|
3088
|
+
---
|
|
3089
|
+
---One 16-bit signed integer.
|
|
3090
|
+
---
|
|
3091
|
+
---| "i16"
|
|
3092
|
+
---
|
|
3093
|
+
---Two 16-bit signed integers.
|
|
3094
|
+
---
|
|
3095
|
+
---| "i16x2"
|
|
3096
|
+
---
|
|
3097
|
+
---Four 16-bit signed integers.
|
|
3098
|
+
---
|
|
3099
|
+
---| "i16x4"
|
|
3100
|
+
---
|
|
3101
|
+
---One 16-bit unsigned integer.
|
|
3102
|
+
---
|
|
3103
|
+
---| "u16"
|
|
3104
|
+
---
|
|
3105
|
+
---Two 16-bit unsigned integers.
|
|
3106
|
+
---
|
|
3107
|
+
---| "u16x2"
|
|
3108
|
+
---
|
|
3109
|
+
---Four 16-bit unsigned integers.
|
|
3110
|
+
---
|
|
3111
|
+
---| "u16x4"
|
|
3112
|
+
---
|
|
3113
|
+
---Two 16-bit signed normalized values.
|
|
3114
|
+
---
|
|
3115
|
+
---| "sn16x2"
|
|
3116
|
+
---
|
|
3117
|
+
---Four 16-bit signed normalized values.
|
|
3118
|
+
---
|
|
3119
|
+
---| "sn16x4"
|
|
3120
|
+
---
|
|
3121
|
+
---Two 16-bit unsigned normalized values.
|
|
3122
|
+
---
|
|
3123
|
+
---| "un16x2"
|
|
3124
|
+
---
|
|
3125
|
+
---Four 16-bit unsigned normalized values.
|
|
3126
|
+
---
|
|
3127
|
+
---| "un16x4"
|
|
3128
|
+
---
|
|
3129
|
+
---One 32-bit signed integer (aka `int`).
|
|
3130
|
+
---
|
|
3131
|
+
---| "i32"
|
|
3132
|
+
---
|
|
3133
|
+
---Two 32-bit signed integers.
|
|
3134
|
+
---
|
|
3135
|
+
---| "i32x2"
|
|
3136
|
+
---
|
|
3137
|
+
---Two 32-bit signed integers.
|
|
3138
|
+
---
|
|
3139
|
+
---| "i32x2"
|
|
3140
|
+
---
|
|
3141
|
+
---Three 32-bit signed integers.
|
|
3142
|
+
---
|
|
3143
|
+
---| "i32x3"
|
|
3144
|
+
---
|
|
3145
|
+
---Four 32-bit signed integers.
|
|
3146
|
+
---
|
|
3147
|
+
---| "i32x4"
|
|
3148
|
+
---
|
|
3149
|
+
---One 32-bit unsigned integer (aka `uint`).
|
|
3150
|
+
---
|
|
3151
|
+
---| "u32"
|
|
3152
|
+
---
|
|
3153
|
+
---Two 32-bit unsigned integers.
|
|
3154
|
+
---
|
|
3155
|
+
---| "u32x2"
|
|
3156
|
+
---
|
|
3157
|
+
---Three 32-bit unsigned integers.
|
|
3158
|
+
---
|
|
3159
|
+
---| "u32x3"
|
|
3160
|
+
---
|
|
3161
|
+
---Four 32-bit unsigned integers.
|
|
3162
|
+
---
|
|
3163
|
+
---| "u32x4"
|
|
3164
|
+
---
|
|
3165
|
+
---Two 16-bit floating point numbers.
|
|
3166
|
+
---
|
|
3167
|
+
---| "f16x2"
|
|
3168
|
+
---
|
|
3169
|
+
---Four 16-bit floating point numbers.
|
|
3170
|
+
---
|
|
3171
|
+
---| "f16x4"
|
|
3172
|
+
---
|
|
3173
|
+
---One 32-bit floating point number (aka `float`).
|
|
3174
|
+
---
|
|
3175
|
+
---| "f32"
|
|
3176
|
+
---
|
|
3177
|
+
---Two 32-bit floating point numbers (aka `vec2`).
|
|
3178
|
+
---
|
|
3179
|
+
---| "f32x2"
|
|
3180
|
+
---
|
|
3181
|
+
---Three 32-bit floating point numbers (aka `vec3`).
|
|
3182
|
+
---
|
|
3183
|
+
---| "f32x3"
|
|
3184
|
+
---
|
|
3185
|
+
---Four 32-bit floating point numbers (aka `vec4`).
|
|
3186
|
+
---
|
|
3187
|
+
---| "f32x4"
|
|
3188
|
+
---
|
|
3189
|
+
---A 2x2 matrix containing four 32-bit floats.
|
|
3190
|
+
---
|
|
3191
|
+
---| "mat2"
|
|
3192
|
+
---
|
|
3193
|
+
---A 3x3 matrix containing nine 32-bit floats.
|
|
3194
|
+
---
|
|
3195
|
+
---| "mat3"
|
|
3196
|
+
---
|
|
3197
|
+
---A 4x4 matrix containing sixteen 32-bit floats.
|
|
3198
|
+
---
|
|
3199
|
+
---| "mat4"
|
|
3200
|
+
---
|
|
3201
|
+
---Like u16, but 1-indexed.
|
|
3202
|
+
---
|
|
3203
|
+
---| "index16"
|
|
3204
|
+
---
|
|
3205
|
+
---Like u32, but 1-indexed.
|
|
3206
|
+
---
|
|
3207
|
+
---| "index32"
|
|
3208
|
+
|
|
3209
|
+
---
|
|
3210
|
+
---Controls how `Sampler` objects smooth pixels in textures.
|
|
3211
|
+
---
|
|
3212
|
+
---@alias lovr.FilterMode
|
|
3213
|
+
---
|
|
3214
|
+
---A pixelated appearance where the "nearest neighbor" pixel is used.
|
|
3215
|
+
---
|
|
3216
|
+
---| "nearest"
|
|
3217
|
+
---
|
|
3218
|
+
---A smooth appearance where neighboring pixels are averaged.
|
|
3219
|
+
---
|
|
3220
|
+
---| "linear"
|
|
3221
|
+
|
|
3222
|
+
---
|
|
3223
|
+
---Different ways to horizontally align text with `Pass:text`.
|
|
3224
|
+
---
|
|
3225
|
+
---@alias lovr.HorizontalAlign
|
|
3226
|
+
---
|
|
3227
|
+
---Left-aligned text.
|
|
3228
|
+
---
|
|
3229
|
+
---| "left"
|
|
3230
|
+
---
|
|
3231
|
+
---Centered text.
|
|
3232
|
+
---
|
|
3233
|
+
---| "center"
|
|
3234
|
+
---
|
|
3235
|
+
---Right-aligned text.
|
|
3236
|
+
---
|
|
3237
|
+
---| "right"
|
|
3238
|
+
|
|
3239
|
+
---
|
|
3240
|
+
---Different ways vertices in a mesh can be connected together and filled in with pixels.
|
|
3241
|
+
---
|
|
3242
|
+
---@alias lovr.MeshMode
|
|
3243
|
+
---
|
|
3244
|
+
---Each vertex is rendered as a single point.
|
|
3245
|
+
---
|
|
3246
|
+
---The size of the point can be controlled using the `pointSize` shader flag, or by writing to the `PointSize` variable in shaders.
|
|
3247
|
+
---
|
|
3248
|
+
---The maximum point size is given by the `pointSize` limit from `lovr.graphics.getLimits`.
|
|
3249
|
+
---
|
|
3250
|
+
---| "points"
|
|
3251
|
+
---
|
|
3252
|
+
---Pairs of vertices are connected with line segments.
|
|
3253
|
+
---
|
|
3254
|
+
---To draw a single line through all of the vertices, an index buffer can be used to repeat vertices.
|
|
3255
|
+
---
|
|
3256
|
+
---It is not currently possible to change the width of the lines, although cylinders or capsules can be used as an alternative.
|
|
3257
|
+
---
|
|
3258
|
+
---| "lines"
|
|
3259
|
+
---
|
|
3260
|
+
---Every 3 vertices form a triangle, which is filled in with pixels (unless `Pass:setWireframe` is used).
|
|
3261
|
+
---
|
|
3262
|
+
---This mode is the most commonly used.
|
|
3263
|
+
---
|
|
3264
|
+
---| "triangles"
|
|
3265
|
+
|
|
3266
|
+
---
|
|
3267
|
+
---Different coordinate spaces for nodes in a `Model`.
|
|
3268
|
+
---
|
|
3269
|
+
---@alias lovr.OriginType
|
|
3270
|
+
---
|
|
3271
|
+
---Transforms are relative to the origin (root) of the Model.
|
|
3272
|
+
---
|
|
3273
|
+
---| "root"
|
|
3274
|
+
---
|
|
3275
|
+
---Transforms are relative to the parent of the node.
|
|
3276
|
+
---
|
|
3277
|
+
---| "parent"
|
|
3278
|
+
|
|
3279
|
+
---
|
|
3280
|
+
---The three different types of `Pass` objects.
|
|
3281
|
+
---
|
|
3282
|
+
---Each Pass has a single type, which determines the type of work it does and which functions can be called on it.
|
|
3283
|
+
---
|
|
3284
|
+
---@alias lovr.PassType
|
|
3285
|
+
---
|
|
3286
|
+
---A render pass renders graphics to a set of up to four color textures and an optional depth texture.
|
|
3287
|
+
---
|
|
3288
|
+
---The textures all need to have the same dimensions and sample counts.
|
|
3289
|
+
---
|
|
3290
|
+
---The textures can have multiple layers, and all rendering work will be broadcast to each layer.
|
|
3291
|
+
---
|
|
3292
|
+
---Each layer can use a different camera pose, which is used for stereo rendering.
|
|
3293
|
+
---
|
|
3294
|
+
---| "render"
|
|
3295
|
+
---
|
|
3296
|
+
---A compute pass runs compute shaders.
|
|
3297
|
+
---
|
|
3298
|
+
---Compute passes usually only call `Pass:setShader`, `Pass:send`, and `Pass:compute`.
|
|
3299
|
+
---
|
|
3300
|
+
---All of the compute work in a single compute pass is run in parallel, so multiple compute passes should be used if one compute pass needs to happen after a different one.
|
|
3301
|
+
---
|
|
3302
|
+
---| "compute"
|
|
3303
|
+
---
|
|
3304
|
+
---A transfer pass copies data to and from GPU memory in `Buffer` and `Texture` objects. Transfer passes use `Pass:copy`, `Pass:clear`, `Pass:blit`, `Pass:mipmap`, and `Pass:read`. Similar to compute passes, all the work in a transfer pass happens in parallel, so multiple passes should be used if the transfers need to be ordered.
|
|
3305
|
+
---
|
|
3306
|
+
---| "transfer"
|
|
3307
|
+
|
|
3308
|
+
---
|
|
3309
|
+
---Different shader stages.
|
|
3310
|
+
---
|
|
3311
|
+
---Graphics shaders have a `vertex` and `fragment` stage, and compute shaders have a single `compute` stage.
|
|
3312
|
+
---
|
|
3313
|
+
---@alias lovr.ShaderStage
|
|
3314
|
+
---
|
|
3315
|
+
---The vertex stage, which computes transformed vertex positions.
|
|
3316
|
+
---
|
|
3317
|
+
---| "vertex"
|
|
3318
|
+
---
|
|
3319
|
+
---The fragment stage, which computes pixel colors.
|
|
3320
|
+
---
|
|
3321
|
+
---| "fragment"
|
|
3322
|
+
---
|
|
3323
|
+
---The compute stage, which performs arbitrary computation.
|
|
3324
|
+
---
|
|
3325
|
+
---| "compute"
|
|
3326
|
+
|
|
3327
|
+
---
|
|
3328
|
+
---The two types of shaders that can be created.
|
|
3329
|
+
---
|
|
3330
|
+
---@alias lovr.ShaderType
|
|
3331
|
+
---
|
|
3332
|
+
---A graphics shader with a vertex and pixel stage.
|
|
3333
|
+
---
|
|
3334
|
+
---| "graphics"
|
|
3335
|
+
---
|
|
3336
|
+
---A compute shader with a single compute stage.
|
|
3337
|
+
---
|
|
3338
|
+
---| "compute"
|
|
3339
|
+
|
|
3340
|
+
---
|
|
3341
|
+
---Different types of stacks that can be pushed and popped with `Pass:push` and `Pass:pop`.
|
|
3342
|
+
---
|
|
3343
|
+
---@alias lovr.StackType
|
|
3344
|
+
---
|
|
3345
|
+
---The transform stack (`Pass:transform`, `Pass:translate`, etc.).
|
|
3346
|
+
---
|
|
3347
|
+
---| "transform"
|
|
3348
|
+
---
|
|
3349
|
+
---Graphics state, like `Pass:setColor`, `Pass:setFont`, etc.
|
|
3350
|
+
---
|
|
3351
|
+
---Notably this does not include camera poses/projections or shader variables changed with `Pass:send`.
|
|
3352
|
+
---
|
|
3353
|
+
---| "state"
|
|
3354
|
+
|
|
3355
|
+
---
|
|
3356
|
+
---Different ways of updating the stencil buffer with `Pass:setStencilWrite`.
|
|
3357
|
+
---
|
|
3358
|
+
---@alias lovr.StencilAction
|
|
3359
|
+
---
|
|
3360
|
+
---Stencil buffer pixels will not be changed by draws.
|
|
3361
|
+
---
|
|
3362
|
+
---| "keep"
|
|
3363
|
+
---
|
|
3364
|
+
---Stencil buffer pixels will be set to zero.
|
|
3365
|
+
---
|
|
3366
|
+
---| "zero"
|
|
3367
|
+
---
|
|
3368
|
+
---Stencil buffer pixels will be replaced with a custom value.
|
|
3369
|
+
---
|
|
3370
|
+
---| "replace"
|
|
3371
|
+
---
|
|
3372
|
+
---Stencil buffer pixels will be incremented each time they're rendered to.
|
|
3373
|
+
---
|
|
3374
|
+
---| "increment"
|
|
3375
|
+
---
|
|
3376
|
+
---Stencil buffer pixels will be decremented each time they're rendered to.
|
|
3377
|
+
---
|
|
3378
|
+
---| "decrement"
|
|
3379
|
+
---
|
|
3380
|
+
---Similar to increment, but will wrap around to 0 when it exceeds 255.
|
|
3381
|
+
---
|
|
3382
|
+
---| "incrementwrap"
|
|
3383
|
+
---
|
|
3384
|
+
---Similar to decrement, but will wrap around to 255 when it goes below 0.
|
|
3385
|
+
---
|
|
3386
|
+
---| "decrementwrap"
|
|
3387
|
+
---
|
|
3388
|
+
---The bits in the stencil buffer pixels will be inverted.
|
|
3389
|
+
---
|
|
3390
|
+
---| "invert"
|
|
3391
|
+
|
|
3392
|
+
---
|
|
3393
|
+
---These are the different metrics a `Tally` can measure.
|
|
3394
|
+
---
|
|
3395
|
+
---@alias lovr.TallyType
|
|
3396
|
+
---
|
|
3397
|
+
---Each slot measures elapsed time in nanoseconds.
|
|
3398
|
+
---
|
|
3399
|
+
---| "time"
|
|
3400
|
+
---
|
|
3401
|
+
---Each slot measures 4 numbers: the total number of vertices processed, the number of times the vertex shader was run, the number of triangles that were visible in the view, and the number of times the fragment shader was run.
|
|
3402
|
+
---
|
|
3403
|
+
---| "shader"
|
|
3404
|
+
---
|
|
3405
|
+
---Each slot measures the approximate number of pixels affected by rendering.
|
|
3406
|
+
---
|
|
3407
|
+
---| "pixel"
|
|
3408
|
+
|
|
3409
|
+
---
|
|
3410
|
+
---These are the different ways `Texture` objects can be used.
|
|
3411
|
+
---
|
|
3412
|
+
---These are passed in to `lovr.graphics.isFormatSupported` to see which texture operations are supported by the GPU for a given format.
|
|
3413
|
+
---
|
|
3414
|
+
---@alias lovr.TextureFeature
|
|
3415
|
+
---
|
|
3416
|
+
---The Texture can be sampled (e.g. a `texture2D` or `sampler2D` variable in shaders).
|
|
3417
|
+
---
|
|
3418
|
+
---| "sample"
|
|
3419
|
+
---
|
|
3420
|
+
---The Texture can be used with a `Sampler` using a `FilterMode` of `linear`.
|
|
3421
|
+
---
|
|
3422
|
+
---| "filter"
|
|
3423
|
+
---
|
|
3424
|
+
---The Texture can be rendered to by using it as a target in a render `Pass`.
|
|
3425
|
+
---
|
|
3426
|
+
---| "render"
|
|
3427
|
+
---
|
|
3428
|
+
---Blending can be enabled when rendering to this format in a render pass.
|
|
3429
|
+
---
|
|
3430
|
+
---| "blend"
|
|
3431
|
+
---
|
|
3432
|
+
---The Texture can be sent to an image variable in shaders (e.g. `image2D`).
|
|
3433
|
+
---
|
|
3434
|
+
---| "storage"
|
|
3435
|
+
---
|
|
3436
|
+
---Atomic operations can be used on storage textures with this format.
|
|
3437
|
+
---
|
|
3438
|
+
---| "atomic"
|
|
3439
|
+
---
|
|
3440
|
+
---Source textures in `Pass:blit` can use this format.
|
|
3441
|
+
---
|
|
3442
|
+
---| "blitsrc"
|
|
3443
|
+
---
|
|
3444
|
+
---Destination textures in `Pass:blit` can use this format.
|
|
3445
|
+
---
|
|
3446
|
+
---| "blitdst"
|
|
3447
|
+
|
|
3448
|
+
---
|
|
3449
|
+
---Different types of textures.
|
|
3450
|
+
---
|
|
3451
|
+
---Textures are multidimensional blocks of GPU memory, and the texture's type determines how many dimensions there are, and adds some semantics about what the 3rd dimension means.
|
|
3452
|
+
---
|
|
3453
|
+
---@alias lovr.TextureType
|
|
3454
|
+
---
|
|
3455
|
+
---A single 2D image, the most common type.
|
|
3456
|
+
---
|
|
3457
|
+
---| "2d"
|
|
3458
|
+
---
|
|
3459
|
+
---A 3D image, where a sequence of 2D images defines a 3D volume.
|
|
3460
|
+
---
|
|
3461
|
+
---Each mipmap level of a 3D texture gets smaller in the x, y, and z axes, unlike cubemap and array textures.
|
|
3462
|
+
---
|
|
3463
|
+
---| "3d"
|
|
3464
|
+
---
|
|
3465
|
+
---Six square 2D images with the same dimensions that define the faces of a cubemap, used for skyboxes or other "directional" images.
|
|
3466
|
+
---
|
|
3467
|
+
---| "cube"
|
|
3468
|
+
---
|
|
3469
|
+
---Array textures are sequences of distinct 2D images that all have the same dimensions.
|
|
3470
|
+
---
|
|
3471
|
+
---| "array"
|
|
3472
|
+
|
|
3473
|
+
---
|
|
3474
|
+
---These are the different things `Texture`s can be used for.
|
|
3475
|
+
---
|
|
3476
|
+
---When creating a Texture, a set of these flags can be provided, restricting what operations are allowed on the texture.
|
|
3477
|
+
---
|
|
3478
|
+
---Using a smaller set of flags may improve performance.
|
|
3479
|
+
---
|
|
3480
|
+
---If none are provided, the only usage flag applied is `sample`.
|
|
3481
|
+
---
|
|
3482
|
+
---@alias lovr.TextureUsage
|
|
3483
|
+
---
|
|
3484
|
+
---Whether the texture can be sampled from in Shaders (i.e. used in a material, or bound to a variable with a `texture` type, like `texture2D`).
|
|
3485
|
+
---
|
|
3486
|
+
---| "sample"
|
|
3487
|
+
---
|
|
3488
|
+
---Whether the texture can be rendered to (i.e. by using it as a render target in `lovr.graphics.pass`).
|
|
3489
|
+
---
|
|
3490
|
+
---| "render"
|
|
3491
|
+
---
|
|
3492
|
+
---Whether the texture can be used as a storage texture for compute operations (i.e. bound to a variable with an `image` type, like `image2D`).
|
|
3493
|
+
---
|
|
3494
|
+
---| "storage"
|
|
3495
|
+
---
|
|
3496
|
+
---Whether the texture can be used in a transfer pass.
|
|
3497
|
+
---
|
|
3498
|
+
---| "transfer"
|
|
3499
|
+
|
|
3500
|
+
---
|
|
3501
|
+
---Different ways to vertically align text with `Pass:text`.
|
|
3502
|
+
---
|
|
3503
|
+
---@alias lovr.VerticalAlign
|
|
3504
|
+
---
|
|
3505
|
+
---Top-aligned text.
|
|
3506
|
+
---
|
|
3507
|
+
---| "top"
|
|
3508
|
+
---
|
|
3509
|
+
---Centered text.
|
|
3510
|
+
---
|
|
3511
|
+
---| "middle"
|
|
3512
|
+
---
|
|
3513
|
+
---Bottom-aligned text.
|
|
3514
|
+
---
|
|
3515
|
+
---| "bottom"
|
|
3516
|
+
|
|
3517
|
+
---
|
|
3518
|
+
---Indicates whether the front face of a triangle uses the clockwise or counterclockwise vertex order.
|
|
3519
|
+
---
|
|
3520
|
+
---@alias lovr.Winding
|
|
3521
|
+
---
|
|
3522
|
+
---Clockwise winding.
|
|
3523
|
+
---
|
|
3524
|
+
---| "clockwise"
|
|
3525
|
+
---
|
|
3526
|
+
---Counterclockwise winding.
|
|
3527
|
+
---
|
|
3528
|
+
---| "counterclockwise"
|
|
3529
|
+
|
|
3530
|
+
---
|
|
3531
|
+
---Controls how `Sampler` objects wrap textures.
|
|
3532
|
+
---
|
|
3533
|
+
---@alias lovr.WrapMode
|
|
3534
|
+
---
|
|
3535
|
+
---Pixels will be clamped to the edge, with pixels outside the 0-1 uv range using colors from the nearest edge.
|
|
3536
|
+
---
|
|
3537
|
+
---| "clamp"
|
|
3538
|
+
---
|
|
3539
|
+
---Tiles the texture.
|
|
3540
|
+
---
|
|
3541
|
+
---| "repeat"
|