All I've coded work fine (including simple shaders usage),
The simple code to see this (only little change from the wiki example).
Made a Pleroma (Fediverse publication tool, linked to Mastodon) post about this with video and .love included.
https://pleroma.popolon.org/notice/AbpaQ6r7Ru6Qw4Zkiu
Code: Select all
ox, oy = 0,0
function love.load()
love.window.setFullscreen(true)
end
function love.draw()
local touches = love.touch.getTouches()
for i, id in ipairs(touches) do
local x, y = love.touch.getPosition(id)
love.graphics.circle("fill", x, y, 20)
love.graphics.line(x,y, ox,oy)
ox,oy=x,y
end
end