- [WIP] Fase 2 quasi acabada

- [FIX] Arreglos per al debugger
- [FIX] Calcul de la posició del mouse en coordenades tenint en compte view.origin
This commit is contained in:
2026-04-13 20:09:57 +02:00
parent 0142d79d91
commit 380295aed0
22 changed files with 232 additions and 160 deletions

View File

@@ -71,18 +71,6 @@ function surf.clip() end
---Set the clipping region of the current target surface
function surf.clip(x, y, w, h) end
---@param x number
---@param y number
---@return number color
---Get color of pixel (x,y) on the source surface.
function surf.pixel(x, y) end
---@param x number
---@param y number
---@param color number
---Set the color for pixel (x,y) on the target surface.
function surf.pixel(x, y, color) end
surf.SCREEN = 0
@@ -204,6 +192,18 @@ function view.tolocal(x, y) end
draw = {}
---@param x number
---@param y number
---@return number color
---Get color of pixel (x,y) on the source surface.
function draw.pixel(x, y) end
---@param x number
---@param y number
---@param color number
---Set the color for pixel (x,y) on the target surface.
function draw.pixel(x, y, color) end
---@param x1 number
---@param y1 number
---@param x2 number