newCanvas function
Posted: Fri Sep 07, 2018 9:51 pm
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 ?
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 ?