just some util changes

This commit is contained in:
Tim Anema 2014-12-16 17:14:16 -05:00
parent 297952673b
commit 80a2d2e389

View File

@ -10,6 +10,12 @@ function util.drawCanvasToCanvas(canvas, other_canvas, options)
if options["shader"] then if options["shader"] then
love.graphics.setShader(options["shader"]) love.graphics.setShader(options["shader"])
end end
if options["stencil"] then
love.graphics.setInvertedStencil(options["stencil"])
end
if options["istencil"] then
love.graphics.setInvertedStencil(options["stencil"])
end
if options["color"] then if options["color"] then
love.graphics.setColor(unpack(options["color"])) love.graphics.setColor(unpack(options["color"]))
else else
@ -22,6 +28,12 @@ function util.drawCanvasToCanvas(canvas, other_canvas, options)
if options["shader"] then if options["shader"] then
love.graphics.setShader() love.graphics.setShader()
end end
if options["stencil"] then
love.graphics.setInvertedStencil()
end
if options["istencil"] then
love.graphics.setInvertedStencil()
end
end) end)
end end