mirror of
https://github.com/tanema/light_world.lua.git
synced 2024-12-24 20:24:19 +00:00
two canvas
This commit is contained in:
parent
eeb9d91747
commit
f68746c108
@ -3,7 +3,9 @@ local util = {}
|
|||||||
|
|
||||||
function util.process(canvas, options)
|
function util.process(canvas, options)
|
||||||
--TODO: now you cannot draw a canvas to itself
|
--TODO: now you cannot draw a canvas to itself
|
||||||
util.drawCanvasToCanvas(canvas, canvas, options)
|
temp = love.graphics.newCanvas()
|
||||||
|
util.drawCanvasToCanvas(canvas, temp, options)
|
||||||
|
util.drawCanvasToCanvas(temp, canvas, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
function util.drawCanvasToCanvas(canvas, other_canvas, options)
|
function util.drawCanvasToCanvas(canvas, other_canvas, options)
|
||||||
|
Loading…
Reference in New Issue
Block a user