Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/docs/repentogon_new/rendering/Image.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, (number | number[])>`.
Expand Down
8 changes: 7 additions & 1 deletion src/docs/repentogon_new/rendering/Renderer.lua
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -99,4 +105,4 @@ end

---@return Transformer
function Renderer.StartTransformation()
end
end
10 changes: 7 additions & 3 deletions src/docs/repentogon_new/rendering/SourceQuad.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down