two canvas

This commit is contained in:
Leonardo Kaplan 2016-04-24 15:38:59 +02:00
parent eeb9d91747
commit f68746c108

View File

@ -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)