Questions about canvases with transformations
Posted: Sat Oct 30, 2021 11:46 pm
I'm trying to add resizable screens with push.lua/tlfres and want to know, since anything I draw to a canvas (e.g.minimap, controls of paddy.lua, etc) seem to come off wrong , is there anything I'm missing about using graphics functions (like scale and translate) when it comes to canvases?
Do the transformations applied to the original canvas affect another canvas. Does it affect it twice?
Do the effects apply twice? Should I cancel push then start it again after I draw the canvas?
Do the transformations applied to the original canvas affect another canvas. Does it affect it twice?
Code: Select all
draw()
push:start()--scale, transform, etc
...
drawsStuff()
...
love.graphics.setCanvas(anotherCanvas)
drawStuff2()
love.graphics.setCanvas()
...
push:end()--stop transforms