- [NEW] Funcions per a apilar i desapilar surfaces target i source:
surf.source.push(surface) surf.source.pop() surf.target.push(surface) surf.target.pop()
This commit is contained in:
@@ -38,6 +38,8 @@ function surf.free(surface) end
|
||||
---Retrieve width and height of surface
|
||||
function surf.size(surface) end
|
||||
|
||||
surf.target = {}
|
||||
|
||||
---@return number surface
|
||||
---Get current target surface
|
||||
function surf.target() end
|
||||
@@ -46,6 +48,15 @@ function surf.target() end
|
||||
---Set surface as target
|
||||
function surf.target(surface) end
|
||||
|
||||
---@param surface number
|
||||
---push current target to the stack and set surface as target
|
||||
function surf.target.push(surface) end
|
||||
|
||||
---pop surface on the stack as current target
|
||||
function surf.target.pop() end
|
||||
|
||||
surf.source = {}
|
||||
|
||||
---@return number surface
|
||||
---Get current source surface
|
||||
function surf.source() end
|
||||
@@ -54,6 +65,13 @@ function surf.source() end
|
||||
---Set surface as source
|
||||
function surf.source(surface) end
|
||||
|
||||
---@param surface number
|
||||
---push current source to the stack and set surface as source
|
||||
function surf.source.push(surface) end
|
||||
|
||||
---pop surface on the stack and set it as current source
|
||||
function surf.source.pop() end
|
||||
|
||||
---Erase the current target surface with color 0.
|
||||
function surf.cls() end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user