this is my problem :
I want load a tileset png image and draw some quad.
This tileset have a 768x2304 px.
Code: Select all
function love.load()
Tileset = love.graphics.newImage('a.png')
GrassQuad = love.graphics.newQuad(0, 0,64, 128, Tileset:getWidth(), Tileset:getHeight())
end
function love.draw()
love.graphics.draw(Tileset, GrassQuad, 200, 400)
end
Related to old post forum, this is like a PO2 syndrom (viewtopic.php?f=4&t=3815), but this bug was resolv with 0.8.0 version.
* I have test this workarround without result : https://love2d.org/wiki/ImageData#Examples
* I have test with a power of 2 width and height without result.
* I have test with a real square image (768x768) and .... it's work !
So ... any image load by löve need to be a square ? what i have missed ?