hi all,
I try to port a Löve app from 0.10.2 to 11.1 version, I had :
width, height = love.window.getMode()
buffer = love.graphics.newCanvas(width, height, "rgba32f")
but when I try to do this :
buffer = love.graphics.newCanvas(width, height, { "2d"; "rgba32f"; true; 0; 1; "none" })
I have the error :
main.lua:6: bad argument #5 to 'new canvas' (string expected, got number)
can someone help please ? is my settings table incorrect ?
newCanvas function
Re: newCanvas function
Try this:
The docs are not very clear about the fact that you need named table entries, not an array.
Code: Select all
buffer = love.graphics.newCanvas(width, height, { type="2d"; format="rgba32f"; readable=true; msaa=0; dpiscale=1; mipmaps="none" })
Re: newCanvas function
It works
Many thanks (with a 6 years delay !)
Many thanks (with a 6 years delay !)
Re: newCanvas function
Better late than never!
Who is online
Users browsing this forum: No registered users and 8 guests