Canvas support 99% ?
Posted: Mon Dec 28, 2020 3:57 pm
How many devices will support the Canvas functions Using the latest love version?
https://love2d.org/wiki/Canvas
For now my target is MacOs/Windows/iOS/latest android and if everything goes very goed (keep on dreaming, nintendo switch and maybe other consoles when possible in the future).
Maybe I want to try/use this example here https://github.com/a327ex/STALKER-X
Now I did ask this question, are there other functions that are not supported for all systems so I can try to avoid them ?
https://love2d.org/wiki/Canvas
For now my target is MacOs/Windows/iOS/latest android and if everything goes very goed (keep on dreaming, nintendo switch and maybe other consoles when possible in the future).
Maybe I want to try/use this example here https://github.com/a327ex/STALKER-X
Code: Select all
function love.load()
love.graphics.setDefaultFilter('nearest', 'nearest') -- scale everything with nearest neighbor
canvas = love.graphics.newCanvas(400, 300)
end
function love.draw()
love.graphics.setCanvas(canvas)
love.graphics.clear()
-- draw the game here
love.graphics.setCanvas()
-- Draw the 400x300 canvas scaled by 2 to a 800x600 screen
love.graphics.setColor(1, 1, 1, 1)
love.graphics.setBlendMode('alpha', 'premultiplied')
love.graphics.draw(canvas, 0, 0, 0, 2, 2)
love.graphics.setBlendMode('alpha')
end
Now I did ask this question, are there other functions that are not supported for all systems so I can try to avoid them ?