diff --git a/src/docs/repentogon_new/rendering/Image.lua b/src/docs/repentogon_new/rendering/Image.lua index 2efc7f3..9ed799d 100644 --- a/src/docs/repentogon_new/rendering/Image.lua +++ b/src/docs/repentogon_new/rendering/Image.lua @@ -46,7 +46,11 @@ end function Image:GetTexelRegion(x, y, width, height) end -function Image:Render() +---@param sourceQuad SourceQuad +---@param destinationQuad DestinationQuad +---@param kColor KColor +---@param color Color? +function Image:Render(sourceQuad, destinationQuad, kColor, color) end ---The shaderParams are represented as a `table`. diff --git a/src/docs/repentogon_new/rendering/Renderer.lua b/src/docs/repentogon_new/rendering/Renderer.lua index 6f4613e..9b9b4fb 100644 --- a/src/docs/repentogon_new/rendering/Renderer.lua +++ b/src/docs/repentogon_new/rendering/Renderer.lua @@ -1,6 +1,12 @@ ---@class Renderer _G.Renderer = {} +---@type VertexAttributeFormat +Renderer.VertexAttributeFormat = {} + +---@type ShaderType +Renderer.ShaderType = {} + ---@param filePath string @The path to the image. ---@return Image function Renderer.LoadImage(filePath) @@ -99,4 +105,4 @@ end ---@return Transformer function Renderer.StartTransformation() -end +end \ No newline at end of file diff --git a/src/docs/repentogon_new/rendering/SourceQuad.lua b/src/docs/repentogon_new/rendering/SourceQuad.lua index 856484f..032cd88 100644 --- a/src/docs/repentogon_new/rendering/SourceQuad.lua +++ b/src/docs/repentogon_new/rendering/SourceQuad.lua @@ -8,20 +8,24 @@ _G.SourceQuad = {} ---@param topRight Vector ---@param bottomLeft Vector ---@param bottomRight Vector -function _G.SourceQuad(topLeft, topRight, bottomLeft, bottomRight) +---@param uv boolean? +---@return SourceQuad +function _G.SourceQuad(topLeft, topRight, bottomLeft, bottomRight, uv) end ---@param topLeft Vector ---@param bottomRight Vector +---@param uv boolean? ---@return SourceQuad -function _G.SourceQuad.NewFromBounds(topLeft, bottomRight) +function _G.SourceQuad.NewFromBounds(topLeft, bottomRight, uv) end ---@param topLeft Vector ---@param width number ---@param height number +---@param uv boolean? ---@return SourceQuad -function _G.SourceQuad.NewFromRectangle(topLeft, width, height) +function _G.SourceQuad.NewFromRectangle(topLeft, width, height, uv) end ---Specialized version of Copy for `SourceQuad`.