What I mean by that is this:
Why should I have to do
Code: Select all
local Image = love.graphics.newImage( 'Image.png' )
local Quad = love.graphics.newQuad( 0, 0, 32, 32, 32, 32 )
-- Later:
love.graphics.draw( Image, Quad, 0, 0 )
Code: Select all
local Image = love.graphisc.newImage( 'Image.png' )
local Quad = love.graphics.newQuad( Image, 0, 0, 32, 32, 32, 32 )
-- Later
love.graphics.draw( Quad, 0, 0 )
It could be argued that this keeps less typing (i.e. not typing the image every time you make a new quad), which I understand.
It could also be argued that it is a good coding method to remind you that it is a quad, and not an image, or for flexibility (but are there any examples of this?).
I'm just wondering, that's all. I think this would be better, but I'm no engine developer, just a curious programmer. Thanks.