- [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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user