Okay, since I only use Quads for referencing images, I'm not really sure why you need to set 'sw' and 'sh' arguments instead of having the program do it automatically for you.
Are there particular reasons why 'sw' and 'sh' are really needed?
About love.graphics.newQuad(... sw, sh)
- DaedalusYoung
- Party member
- Posts: 413
- Joined: Sun Jul 14, 2013 8:04 pm
Re: About love.graphics.newQuad(... sw, sh)
I haven't played with Quads for a while, but as far as I can remember, changing sw and sh basically scales the source image to those values, and then creates the Quad from that. This makes the Quad sizes independent from the source image size.
Re: About love.graphics.newQuad(... sw, sh)
Just checked the wiki again, and you're right. It basically takes into account those who use "scale_factors".
Thanks!
Thanks!
Who is online
Users browsing this forum: Bing [Bot], Semrush [Bot] and 4 guests