I am trying to apply a uniform scaling to multiple canvases and putting them inside a container canvas seemed to make the most sense. I would only need to adjust scaling to the outer most canvas. Is there another way I should be doing this, am I totally misunderstanding canvases?
Code: Select all
function love.load()
canvas = lg.newCanvas(320,240)
lg.setCanvas(canvas)
lg.clear(canvas)
canvas2 = lg.newCanvas(320,240)
lg.setCanvas(canvas2)
lg.clear(canvas2)
lg.rectangle('fill', 0,0, 32, 32)
lg.setCanvas()
lg.draw(canvas2, 0, 0, 0)
lg.rectangle('fill', 128,128, 32, 32)
lg.setCanvas()
end
function love.draw()
love.graphics.draw(canvas, 0, 0, 0, 2, 2)
end