add basic window system

This commit is contained in:
백현웅 2024-12-26 20:19:05 +09:00
parent 0ce34bd35c
commit bc8308723b
2 changed files with 3 additions and 1 deletions

View file

@ -15,3 +15,5 @@ function w.new(inner, x, y, w, h)
local r = window.new(a, x, y, h, w)
return r
end
return w

View file

@ -22,7 +22,7 @@ function w.new(inner, x, y, w, h)
function r:draw()
love.graphics.push()
love.graphics.setTransform(self.transform)
love.graphics.applyTransform(self.transform)
inner:draw()
love.graphics.pop()
end