canvas and love.graphics.translate not functioning properly?
Posted: Tue Jul 28, 2015 5:35 pm
In love.draw()
why is it such that drawing randomCanvas doesn't translate? Only drawing the image directly translates things, and that seems really weird.
Code: Select all
love.graphics.push()
love.graphics.setCanvas(canvas)
love.graphics.translate(10, 10)
randomCanvas = love.graphics.newCanvas()
love.graphics.setCanvas(randomCanvas)
love.graphics.draw(coolImage)
love.graphics.setCanvas(canvas)
love.graphics.draw(randomCanvas)
love.graphics.draw(coolImage)
love.graphics.setCanvas()
love.graphics.pop()
love.graphics.draw(canvas)