ExperimentalGear/docs/lua_api/fg.lua

54 lines
1.8 KiB
Lua
Raw Normal View History

-- fg 'foreground' table
2024-02-02 02:43:06 +01:00
---@class foreground
foreground = {
}
-- Draws the foreground shader and invokes `gfx.ForceRender`
2024-02-02 02:43:06 +01:00
foreground.DrawShader = function() end
-- Gets the clear state value, `0` for fail state, `1` for clear state
---@return integer
2024-02-02 02:43:06 +01:00
foreground.GetClearTransition = function() end
-- Retrieves the path to the background folder
2024-02-02 02:43:06 +01:00
foreground.GetPath = function() end
-- Gets the pixel coordinates for a point just above the end of the track
---@return number x
---@return number y
2024-02-02 02:43:06 +01:00
foreground.GetScreenCenter = function() end
-- Gets tilt values, `< 0` for clockwise, `> 0` for counter-clockwise
---@return number laserTilt # Tilt induced by lasers
---@return number spinTilt # Tilt induced by spinEvents
2024-02-02 02:43:06 +01:00
foreground.GetTilt = function() end
-- Gets timing data of the chart
---@return number bartime # Value that goes from `0` to `1` over the duration of each beat
---@return number offsync # Value that goes from `0` to `1` over the duration `BPM * multiplier`
---@return number time # Current time in the chart
2024-02-02 02:43:06 +01:00
foreground.GetTiming = function() end
-- Loads a texture which will be available in the fragment shader under the given `shaderName`
---@param shaderName string
---@param fileName string
2024-02-02 02:43:06 +01:00
foreground.LoadTexture = function(shaderName, fileName) end
-- Set a float value to a uniform variable in the shader
---@param uniformName string
---@param val number
2024-02-02 02:43:06 +01:00
foreground.SetParamf = function(uniformName, val) end
-- Set an integer value to a uniform variable in the shader
---@param uniformName string
---@param val integer
2024-02-02 02:43:06 +01:00
foreground.SetParami = function(uniformName, val) end
-- Sets the speed multiplier for the `offsync` timer returned by `GetTiming`
---@param speed number
2024-02-02 02:43:06 +01:00
foreground.SetSpeedMulti = function(speed) end
2024-02-02 02:43:06 +01:00
---Render foreground
---@param deltaTime number
function render_fg(deltaTime) end